:root {
  --green-900: #1e3311;
  --green-700: #3d6b1a;
  --green-500: #6a9a1f;
  --sand-50: #f8faf3;
  --sand-100: #eef3e2;
  --sand-300: #d5e2b5;
  --terra: #2b6fd1;        /* azul del logo (acento) */
  --terra-dark: #1d55a8;
  --ink: #1c2617;
  --muted: #5a6653;
  --line: #e0e7d0;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 51, 17, .12);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--sand-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 12px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 600 .95rem var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--terra-dark); }
.btn.soon { background: var(--sand-100); color: var(--muted); border-color: var(--line); cursor: default; padding: 8px 16px; font-size: .85rem; }
.btn.soon:hover { transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-900); }

/* Hero */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--sand-100), var(--sand-50)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-logo { width: min(340px, 80%); margin-bottom: 20px; }
.hero h1 span { color: var(--green-500); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.addr { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 500; color: var(--green-700); }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 22px; background: var(--sand-300); z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }

/* Features */
.features { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--sand-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-quote { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 40px; }
.about-quote p { font: 500 1.5rem/1.35 var(--font-head); margin: 0; }
.about-quote small { display: block; margin-top: 18px; color: var(--sand-300); }

/* Portal teaser */
.portal-band { background: var(--green-900); color: #fff; }
.portal-band h2 { color: #fff; }
.portal-band .lead { color: rgba(255,255,255,.8); }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.portal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portal-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.portal-item svg { color: var(--sand-300); margin-bottom: 8px; }
.portal-item strong { display: block; }
.portal-item span { font-size: .86rem; color: rgba(255,255,255,.7); }
.tag-soon { display: inline-block; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Contact */
.contact-box { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-box h2 { margin-bottom: 8px; }
.contact-box p { margin: 0; color: var(--muted); }

.site-footer { background: #142209; color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .hero-grid, .about-grid, .portal-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo::before { inset: 12px -8px -12px 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--sand-50); padding: 8px 16px 16px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { justify-content: center; margin-top: 12px; }
}
@media (max-width: 560px) {
  .cards, .portal-list { grid-template-columns: 1fr; }
  .contact-box { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
