/* ============================================================
   HATO MONTAÑA — JZ Design Solutions
   Sitio multipágina (español) · diseño premium
   ============================================================ */

:root {
  --navy:     #0f2030;
  --navy-2:   #142f49;
  --brand:    #2e6fa8;
  --brand-d:  #1f5686;
  --green:    #4c8b5a;
  --green-d:  #2e5f42;
  --cream:    #f7f3ec;
  --cream-2:  #efe9dd;
  --ink:      #20252b;
  --muted:    #5b666f;
  --line:     #e3dccd;
  --white:    #ffffff;
  --serif: "Sora", "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:  "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-1: 0 1px 2px rgba(15,32,48,.06), 0 8px 24px rgba(15,32,48,.08);
  --shadow-2: 0 2px 6px rgba(15,32,48,.08), 0 18px 40px rgba(15,32,48,.12);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.65; background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.14; }
p { margin: 0; }
ul { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1180px, 90%); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 700; font-size: .95rem; padding: .95rem 1.7rem; border-radius: 999px; text-align: center; transition: transform 160ms var(--ease), box-shadow 200ms, background 200ms, color 200ms; }
.btn:active { transform: scale(.97); }
.btn-full { width: 100%; }
.btn-accent { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(46,111,168,.6); }
.btn-accent:hover { background: var(--brand-d); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(46,95,66,.6); }
.btn-green:hover { background: var(--green-d); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-loading { display: none; }
.site-form.loading .btn-text { display: none; }
.site-form.loading .btn-loading { display: inline; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15,32,48,.06); transition: background .3s, box-shadow .3s, height .3s; }
.nav .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.nav.scrolled { height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; transition: filter .3s; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; font-family: inherit; font-weight: 600; font-size: .88rem; color: var(--ink); background: none; border: 0; cursor: pointer; position: relative; padding-block: .35rem; transition: color .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active, .has-dropdown.is-active > .nav-link { color: var(--brand); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); transition: width .25s var(--ease); }
.nav-link:hover::after, .nav-link.active::after, .has-dropdown.is-active > .nav-link::after { width: 100%; }
.nav-caret { transition: transform .25s var(--ease); }
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-bridge { position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); min-width: 244px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: .5rem; display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 120; }
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown a { display: block; padding: .55rem .85rem; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: var(--cream); color: var(--brand); }
.nav-cta { font-weight: 700; font-size: .85rem; padding: .6rem 1.15rem; border-radius: 999px; background: var(--brand); color: #fff; transition: background .2s, transform .16s var(--ease); white-space: nowrap; }
.nav-cta:hover { background: var(--brand-d); transform: translateY(-1px); }

/* ---------- Selector de idioma ---------- */
.lang-switcher { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid currentColor; border-radius: 999px; padding: 2px; margin-right: .5rem; opacity: .92; }
.lang-opt { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .26rem .5rem; border-radius: 999px; color: inherit; text-decoration: none; opacity: .7; transition: opacity .18s; }
.lang-opt:hover { opacity: 1; }
.lang-opt.is-active { background: var(--brand); color: #fff; opacity: 1; }
.mobile-lang { display: flex; gap: .5rem; margin: .6rem 0 1rem; }
.mobile-lang-btn { flex: 1; text-align: center; padding: .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; font-weight: 600; color: inherit; text-decoration: none; }
.mobile-lang-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* Nav transparente solo en la portada (sobre el hero) */
.route-inicio .nav { background: transparent; box-shadow: none; backdrop-filter: none; }
.route-inicio .nav #nav-logo { filter: brightness(0) invert(1); }
.route-inicio .nav .nav-link { color: #fff; }
.route-inicio .nav .nav-link::after { background: #fff; }
.route-inicio .nav-cta { background: #fff; color: var(--brand-d); }
.route-inicio .menu-toggle span { background: #fff; }
.route-inicio .nav.scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15,32,48,.06); }
.route-inicio .nav.scrolled #nav-logo { filter: none; }
.route-inicio .nav.scrolled .nav-link { color: var(--ink); }
.route-inicio .nav.scrolled .nav-link::after { background: var(--brand); }
.route-inicio .nav.scrolled .nav-cta { background: var(--brand); color: #fff; }
.route-inicio .nav.scrolled .menu-toggle span { background: var(--ink); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; transform: translateX(100%); transition: transform .32s var(--ease); overflow-y: auto; padding: 2rem; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.mobile-menu a.active { color: var(--brand); }
.mobile-group { display: grid; gap: .15rem; justify-items: center; margin-top: .5rem; }
.mobile-group__label { font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: .15rem; }
.mobile-menu .mobile-sublink { font-size: 1.1rem; color: var(--muted); }
.mobile-menu .mobile-sublink.active { color: var(--brand); }
.mobile-menu__cta { font-family: var(--sans) !important; font-size: 1rem !important; background: var(--brand); color: #fff !important; padding: .85rem 1.6rem; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,32,48,.55) 0%, rgba(15,32,48,.25) 40%, rgba(15,32,48,.9) 100%); }
.hero__content { position: relative; z-index: 2; padding-bottom: 5rem; padding-top: 9rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: #cfe6f5; margin-bottom: 1.2rem; }
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: #cfe6f5; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.3rem); max-width: 20ch; font-weight: 600; }
.hero__sub { margin-top: 1.4rem; max-width: 62ch; font-size: 1.1rem; color: rgba(255,255,255,.92); }
.hero__cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Hero slider (portada) ---------- */
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide__bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,32,48,.55) 0%, rgba(15,32,48,.25) 40%, rgba(15,32,48,.9) 100%); }
.hero-slider .hero__content { padding-top: 9rem; padding-bottom: 5.5rem; }
.hero__title em { font-style: normal; color: #dff2e3; font-weight: 700; }
.hero-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: background .2s, transform .16s ease; }
.hero-slider__nav:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.05); }
.hero-slider__nav svg { width: 22px; height: 22px; }
.hero-slider__prev { left: clamp(1rem, 3vw, 2.2rem); }
.hero-slider__next { right: clamp(1rem, 3vw, 2.2rem); }
.hero-slider__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.6rem; z-index: 5; display: flex; gap: .6rem; }
.hero-dot { width: 12px; height: 12px; border-radius: 999px; padding: 0; border: 0; cursor: pointer; background: rgba(255,255,255,.4); transition: width .3s ease, background .3s; }
.hero-dot.active { width: 30px; background: #fff; }

/* ---------- Page head (interior) ---------- */
.pagehead { background: linear-gradient(160deg, #142f49 0%, #0f2030 70%); color: #fff; padding: 8.5rem 0 3.5rem; position: relative; overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 0%, rgba(46,111,168,.28), transparent 60%); }
.pagehead > .container { position: relative; }
.pagehead__title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 24ch; margin-top: .6rem; }
.pagehead__lead { margin-top: 1rem; max-width: 62ch; color: #c6d5cc; font-size: 1.08rem; }
.crumbs { font-size: .8rem; letter-spacing: .04em; color: #9cc7ea; margin-bottom: .4rem; }
.crumbs a { color: #9cc7ea; } .crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .4rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: #fff; }
.section--navy { background: linear-gradient(160deg, #142f49 0%, #0f2030 60%, #0b1a27 100%); color: #e6eef4; overflow: hidden; }
.section--navy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 40% at 85% 10%, rgba(46,111,168,.22), transparent 60%); }
.section--navy > .container { position: relative; z-index: 1; }
.section--navy .sec-label { color: #9cc7ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .sec-lede { color: #c6d5cc; }
.section--dynamic { background: var(--green-d); color: #e9f0ec; overflow: hidden; }
.section--dynamic::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
    radial-gradient(52% 42% at 88% 8%, rgba(76,139,90,.30), transparent 60%),
    radial-gradient(46% 40% at 5% 70%, rgba(46,111,168,.22), transparent 60%),
    linear-gradient(160deg, #1c332b 0%, #23463b 45%, #1a2f3f 100%); }
.section--dynamic > .container { position: relative; z-index: 1; }
.section--dynamic .sec-label { color: #a8e0b8; }
.section--dynamic .sec-lede, .section--dynamic .muted-p { color: #c6d5cc; }
.section--dynamic h2, .section--dynamic h3 { color: #fff; }

.sec-head { margin-bottom: 2.8rem; }
.sec-label { display: inline-block; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .9rem; }
.sec-h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: 22ch; }
.sub-h3 { font-size: 1.15rem; margin: 1.8rem 0 .9rem; }
.sec-lede { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }
.sec-lede.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.center .sec-h2 { margin-inline: auto; }
.sec-head.center .sec-lede:not(.center) { margin-inline: auto; }
.sec-head .sec-lede { margin-top: 1rem; }
.muted-p { margin-top: 1rem; color: var(--muted); max-width: 68ch; }
.muted-p.small { font-size: .85rem; }
.section--navy .muted-p { color: #c6d5cc; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.2rem; align-items: center; }
.split--top { align-items: start; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__body .btn { margin-top: 1.5rem; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.pillar__num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--brand); opacity: .5; }
.pillar__title { font-size: 1.15rem; margin: .5rem 0 .5rem; font-family: var(--sans); font-weight: 700; }
.pillar__text { color: var(--muted); font-size: .95rem; }

/* ---------- Explore ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.explore-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.explore-card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.explore-card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.explore-card__link { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--brand); }
.explore-card:hover .explore-card__link svg { transform: translateX(4px); }
.explore-card__link svg { transition: transform .25s var(--ease); }

/* ---------- Bandas ---------- */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.band--rev .band__body { order: 2; }
.band__body .btn { margin-top: 1.6rem; }
.band__art { display: flex; flex-wrap: wrap; gap: .6rem; }
.band__chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem .55rem 1.6rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .82rem; color: #dbe7ef; }
.band__chip::before { content: ""; position: absolute; left: .8rem; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #888); }
.band__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.band__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Final CTA ---------- */
.finalcta { text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: clamp(2.5rem, 5vw, 4rem); }
.finalcta__title { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 24ch; margin-inline: auto; }
.finalcta__text { margin: 1rem auto 0; max-width: 60ch; color: var(--muted); }
.finalcta__actions { margin-top: 1.8rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Mini stats ---------- */
.mini-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.mini-stat { display: grid; }
.mini-stat strong { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-d); }
.mini-stat span { font-size: .82rem; color: var(--muted); }
.section--dynamic .mini-stats { border-color: rgba(255,255,255,.2); }
.section--dynamic .mini-stat strong { color: #fff; } .section--dynamic .mini-stat span { color: #c6d5cc; }

/* ---------- Steps (historia) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; text-align: center; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.step__title { font-size: 1.1rem; margin-bottom: .5rem; font-family: var(--sans); font-weight: 700; }
.step__text { color: var(--muted); font-size: .93rem; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 1.4rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 0 18px 18px 0; padding: 2rem 2.2rem; box-shadow: var(--shadow-1); }
.callout--sm { border-left-color: var(--green); }
.callout__icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: #eef3ea; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.callout--sm .callout__icon { color: var(--green); }
.callout__icon svg { width: 24px; height: 24px; }
.callout__title { font-size: 1.4rem; margin-bottom: .7rem; }
.callout p { color: var(--muted); }
.section--navy .callout { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section--navy .callout p { color: #c6d5cc; }

/* ---------- Nextlink ---------- */
.nextlink { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; display: grid; gap: .2rem; }
.nextlink__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--muted); }
.nextlink__title { font-family: var(--serif); font-size: 1.5rem; color: var(--brand-d); }
.nextlink__title:hover { color: var(--brand); }

/* ---------- Proyectos ---------- */
.legend-inline { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0 3rem; }
.legend-inline__item { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.legend-inline .dot-res, .legend-inline__item span[class^="dot-"] { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
[class^="dot-"] { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dot-res { background: var(--brand); } .dot-com { background: #c98a3c; } .dot-srv { background: #b06a1f; }
.dot-edu { background: #8b5cf6; } .dot-inst { background: #7c4dbe; } .dot-salud { background: #b94a48; }
.dot-rec { background: var(--green); } .dot-hito { background: var(--muted); } .dot-otro { background: #999; }
.proj-group { margin-bottom: 2.4rem; }
.proj-group__sector { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; letter-spacing: .03em; color: var(--brand-d); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.proj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proj-card { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.proj-card__type { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.proj-card--com .proj-card__type, .proj-card--srv .proj-card__type { color: #b06a1f; }
.proj-card--edu .proj-card__type, .proj-card--inst .proj-card__type { color: #7c4dbe; }
.proj-card--rec .proj-card__type { color: var(--green-d); }
.proj-card--salud .proj-card__type { color: #b94a48; }
.proj-card__name { font-size: 1.03rem; margin: .5rem 0 .4rem; font-family: var(--sans); font-weight: 700; }
.proj-card__org { font-size: .84rem; color: var(--muted); }

/* ---------- Comunidades ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.comm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.9rem; display: flex; flex-direction: column; }
.comm-card__num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--brand); opacity: .3; }
.comm-card__name { font-size: 1.3rem; margin: .4rem 0 .8rem; }
.comm-card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.comm-card__meta { margin: 1.2rem 0 0; }
.comm-card__meta dt { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-top: .7rem; }
.comm-card__meta dd { margin: .15rem 0 0; font-size: .9rem; }

/* ---------- Master Plan ---------- */
.plan-wrap { display: grid; grid-template-columns: 2.1fr 1fr; gap: 2rem; margin-top: 2.5rem; align-items: start; }
.plan { border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); }
.plan__img { display: block; line-height: 0; background: #f4f1ea; }
.plan__img img { width: 100%; height: auto; display: block; }
.plan__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1.1rem; background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.15); color: #dcebf6; font-size: .82rem; line-height: 1.3; }
.plan__bar-link { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.plan__bar-link:hover { text-decoration: underline; }
.plan__schematic { position: relative; aspect-ratio: 16/11; background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #16324a, #0d2030); padding: 1rem; }
.plan__road { position: absolute; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #cfe6f5; }
.plan__road--main { top: 0; right: 10%; transform: rotate(90deg) translateX(60%); transform-origin: right top; opacity: .7; }
.plan__zone { position: absolute; border-radius: 10px; background: color-mix(in srgb, var(--c) 82%, #0b1a27); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .55rem .7rem; display: grid; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.plan__zone span { font-weight: 700; font-size: .78rem; line-height: 1.2; }
.plan__zone em { font-style: normal; font-size: .66rem; opacity: .85; }
.plan__zone--sur      { left: 6%;  top: 16%; width: 34%; height: 20%; }
.plan__zone--este     { left: 44%; top: 10%; width: 40%; height: 20%; }
.plan__zone--valencia { left: 6%;  top: 44%; width: 48%; height: 18%; }
.plan__zone--parque   { left: 58%; top: 40%; width: 32%; height: 22%; }
.plan__zone--edu      { left: 10%; top: 70%; width: 26%; height: 16%; }
.plan__zone--disp     { left: 60%; top: 68%; width: 32%; height: 20%; }
.plan__zone--norte    { left: 40%; top: 66%; width: 16%; height: 14%; }
.plan__side { background: #fff; border-radius: var(--radius); padding: 1.7rem; color: var(--ink); display: flex; flex-direction: column; }
.plan__side-title { font-size: 1.05rem; margin-bottom: .8rem; }
.plan__legend { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.plan__legend li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.swatch { width: 18px; height: 18px; border-radius: 5px; flex: 0 0 18px; border: 1px solid rgba(0,0,0,.1); }
.plan__side .btn { align-self: flex-start; }
.plan__note { margin-top: .8rem; font-size: .8rem; color: var(--muted); }

/* ---------- Figura de mapa (Master Plan / metro) ---------- */.mapfig { margin: 0; }
.mapfig img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); border: 1px solid var(--line); display: block; }
.mapfig figcaption { margin-top: .8rem; font-size: .8rem; color: var(--muted); }

/* ---------- QR de WhatsApp (contacto) ---------- */
.wa-qr { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.wa-qr__code { width: 132px; height: 132px; flex: 0 0 132px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.wa-qr__code img { width: 100%; height: 100%; display: block; }
.wa-qr__caption { font-size: .85rem; color: var(--muted); max-width: 20ch; margin: 0; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 1.2rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; }
.check-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--green); background: #eef3ea; border-radius: 50%; padding: 3px; margin-top: .1rem; }

/* ---------- Duo (contenido + formulario) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.6rem; align-items: start; }
.duo__body .btn { margin-top: 1.8rem; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow-1); }
.form-title { font-size: 1.35rem; margin-bottom: 1.4rem; }
.site-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: grid; gap: .45rem; }
.form-group label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.form-group label span { color: var(--brand); }
.form-group input, .form-group select, .form-group textarea { width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink); padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,111,168,.14); background: #fff; }
.form-group textarea { resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .1rem; flex: 0 0 18px; accent-color: var(--brand); }
.form-parent-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-parent-note a { color: var(--brand); font-weight: 700; }
.form-feedback { font-size: .9rem; }
.form-feedback.ok { padding: .9rem 1.1rem; background: #eaf5ec; border: 1px solid #bfe0c6; color: var(--green-d); border-radius: 12px; }
.form-feedback.err { padding: .9rem 1.1rem; background: #fceeea; border: 1px solid #f0c6ba; color: #a33f2b; border-radius: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.6rem; align-items: start; }
.contact-info { border-radius: 20px; padding: 2.2rem; }
.contact-info--light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.contact-info__title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.contact-item { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item em { display: block; font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.contact-item strong { font-size: 1.02rem; font-weight: 700; }
.contact-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef3ea; color: var(--brand); }
.contact-ic svg { width: 20px; height: 20px; }
.contact-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-actions a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; padding: .65rem 1.1rem; border-radius: 999px; color: #fff; transition: transform .16s var(--ease), filter .2s; }
.contact-actions a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-maps { background: var(--brand); }
.btn-waze { background: #132a47; }
.contact-actions img { width: 20px; height: 20px; border-radius: 4px; background: #fff; padding: 2px; }

/* ---------- Ubicación ---------- */
.map-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.4rem; align-items: stretch; }
.map-embed { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: #e9eef3; min-height: 420px; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-side { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow-1); }
.map-side .btn { margin-top: 1.2rem; }
.map-note { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); }
.privacy { margin-top: 2rem; font-size: .82rem; color: var(--muted); max-width: 90ch; }
.privacy strong { color: var(--ink); }

/* ---------- Feat grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.feat { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; }
.feat__ic { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #eef3ea; color: var(--green); align-items: center; justify-content: center; margin-bottom: 1rem; }
.feat__ic svg { width: 24px; height: 24px; }
.feat__title { font-size: 1.1rem; margin-bottom: .4rem; font-family: var(--sans); font-weight: 700; }
.feat__text { color: var(--muted); font-size: .94rem; }

/* ---------- 404 ---------- */
.err404 { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.err404 > .container { display: grid; gap: .6rem; justify-items: center; }
.err404__code { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: rgba(255,255,255,.18); line-height: 1; }
.err404__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.err404__text { color: #c6d5cc; max-width: 50ch; }
.err404__actions { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Video ---------- */
.video-block { max-width: 900px; margin: 0 auto; }
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #0d1d16; box-shadow: var(--shadow-2); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: rgba(10,20,16,.42); cursor: pointer; border: 0; transition: background .3s; }
.play-overlay:hover { background: rgba(10,20,16,.28); }
.play-btn { width: 82px; height: 82px; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; color: var(--green-d); box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.play-overlay:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-label { color: #fff; font-family: var(--serif); font-size: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #0f2030 0%, #0a1722 100%); color: #a4bccd; }
.footer__top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; padding: 3.5rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 44px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 38ch; font-size: .95rem; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, transform .16s var(--ease); }
.footer__social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__col h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.footer__col a, .footer__col p { display: block; font-size: .95rem; color: #a4bccd; margin-bottom: .5rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom a { color: #dbe7ef; font-weight: 700; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; background: #25d366; color: #fff; font-weight: 700; font-size: .9rem; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .18s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 680px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nuestro equipo (organigrama) ---------- */
.org { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.org__head { text-align: center; max-width: 64ch; margin: 0 auto 2.2rem; }
.org__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .35rem 0 .6rem; }
.org__lead { color: var(--muted); }
.org__chart { display: grid; gap: 1.1rem; justify-items: center; }
.org__row { display: grid; gap: 1.1rem; width: 100%; }
.org__row--single { justify-items: center; }
.org__row--single .org__box { max-width: 340px; }
.org__row + .org__row { position: relative; padding-top: 1.1rem; }
.org__row + .org__row::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 1.1rem; background: var(--line); }
.org__col { display: grid; gap: .55rem; justify-items: center; align-content: start; width: 100%; }
.org__cols2 { display: grid; gap: 1.1rem; width: 100%; }
.org__node { display: grid; gap: .45rem; justify-items: stretch; }
.org__box { display: block; width: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; font-weight: 600; font-size: .93rem; color: var(--ink); box-shadow: 0 1px 2px rgba(15,32,48,.05); }
.org__box small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.org__box--main { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 18px -8px rgba(15,32,48,.5); }
.org__box--main small { color: rgba(255,255,255,.75); }
.org__group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: center; }
.org__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; width: 100%; }
.org__list--chain { gap: .45rem; padding-left: 1rem; border-left: 1px dashed var(--line); }
@media (min-width: 860px) { .org__row { grid-template-columns: 1fr 1.6fr; align-items: start; } }
@media (min-width: 620px) { .org__cols2 { grid-template-columns: 1fr 1fr; } .org__list--split { grid-template-columns: 1fr 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .82rem; }
}
@media (max-width: 1000px) {
  .split, .duo, .band, .contact-grid, .plan-wrap, .map-grid { grid-template-columns: 1fr; }
  .band--rev .band__body { order: 0; }
  .pillars, .steps { grid-template-columns: repeat(2, 1fr); }
  .explore-grid, .feat-grid, .comm-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta, .lang-switcher { display: none; }
  .menu-toggle { display: flex; }
  .route-inicio .menu-toggle span { background: #fff; }
  .route-inicio .nav.scrolled .menu-toggle span { background: var(--ink); }
  .pillars, .explore-grid, .steps, .proj-cards, .comm-grid, .feat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .callout { flex-direction: column; gap: 1rem; }
  .hero__cta { flex-direction: column; }
  .mini-stats { gap: 1.2rem; }
}
@media (max-width: 680px) {
  .hero-slider__prev, .hero-slider__next { top: auto; bottom: 3.2rem; width: 40px; height: 40px; transform: none; }
  .hero-slider__prev { left: 1rem; }
  .hero-slider__next { right: 1rem; }
  .hero-slider__nav:hover { transform: scale(1.05); }
  .hero-slider .hero__content { padding-top: 7.5rem; padding-bottom: 6.5rem; }
}
@media (max-width: 560px) {
  .footer__bottom { flex-direction: column; text-align: center; }
  .plan__zone em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: scale(1.02); }
}
