/* =====================================================================
   GATEtoSUST — Hoja de estilos única
   Identidad: esmeralda #0B6B52 · verdes #12A356/#5FC12D · aguas #0678C2/#00A6D8
   Tipografías: Outfit (display) + Manrope (texto)
   ===================================================================== */

/* =============================== 1. Tokens =============================== */
:root {
  --deep: #052B25;
  --ink: #073E36;
  --ink-soft: #3D5A54;
  --primary: #0B6B52;
  --primary-dark: #085240;
  --green: #12A356;
  --lime: #5FC12D;
  --teal: #0E8C74;
  --blue: #0678C2;
  --aqua: #00A6D8;
  --aqua-soft: #E3F4FB;
  --tint: #EAF7F2;
  --milk: #F6FBF9;
  --white: #FFFFFF;
  --line: rgba(11, 107, 82, 0.12);

  --display: 'Outfit', 'Segoe UI', sans-serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 30px;
  --shadow-card: 0 4px 22px rgba(7, 62, 54, 0.09);
  --shadow-lift: 0 18px 44px rgba(7, 62, 54, 0.16);

  --gutter: clamp(1.2rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 78px;
}

/* =============================== 2. Reset =============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; color: var(--primary); }
ul { list-style: none; padding: 0; }
::selection { background: var(--aqua); color: var(--deep); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1.1rem; background: var(--primary); color: #fff;
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1420px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ========================= 3. Transiciones de página ===================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================== 4. Splash =============================== */
.splash {
  position: fixed; inset: 0; z-index: 300;
  background: var(--deep);
  display: grid; place-items: center;
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad CSS */
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
.splash.is-out { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .55s var(--ease-out), visibility 0s .6s; }
.splash-mark { width: 74px; animation: splashSpin 1.2s var(--ease-bounce) both; }
.splash-word { margin-top: 16px; font-family: var(--display); font-weight: 700; letter-spacing: .18em; color: #9FE3C8; font-size: 14px; animation: splashFade .8s .25s var(--ease-out) both; }
@keyframes splashSpin { from { opacity: 0; transform: rotate(-70deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes splashFade { from { opacity: 0; letter-spacing: .42em; } to { opacity: 1; } }

/* ========================= 5. Cursor personalizado ======================= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity .3s var(--ease-out);
}
.cursor-dot { width: 7px; height: 7px; background: var(--teal); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(14, 140, 116, .5);
  transition: opacity .3s var(--ease-out), width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.cursor-dot.is-ready, .cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-hover { width: 52px; height: 52px; background: rgba(0, 166, 216, .14); border-color: var(--aqua); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ========================= 6. Barra de progreso ========================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 210; pointer-events: none; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ================================ 7. Nav ================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 251, 249, .85);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
@supports (backdrop-filter: blur(14px)) {
  .nav::before { background: rgba(246, 251, 249, .64); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(7, 62, 54, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1420px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 46px; width: auto; transition: transform .45s var(--ease-out); }
.nav-logo span { font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: .015em; color: var(--primary); }
.nav-logo:hover img { transform: rotate(-14deg); }
/* sobre el hero oscuro, el nav empieza en claro */
.nav--overlay:not(.is-scrolled) .nav-logo span,
.nav--overlay:not(.is-scrolled) .nav-links a:not(.btn) { color: #fff; }
.nav--overlay:not(.is-scrolled) .nav-links a:not(.btn):hover { color: #B8F0DC; }
.nav-links { display: none; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a:not(.btn) {
  font-weight: 600; font-size: 15px; color: var(--ink-soft); position: relative;
  padding: 6px 2px; transition: color .25s var(--ease-out);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--aqua); border-radius: 2px;
  transition: right .3s var(--ease-out);
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav--overlay:not(.is-scrolled) .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--white); box-shadow: var(--shadow-card);
}
.nav-burger span { position: relative; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: background .2s; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--primary); border-radius: 2px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 0; left: 0; right: 0; z-index: 190;
  background: var(--milk);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2.2rem;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(7, 62, 54, .12);
  transform: translateY(-105%);
  transition: transform .45s var(--ease-out);
  display: flex; flex-direction: column; gap: .4rem;
}
.nav.is-open ~ .nav-mobile { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--primary);
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.nav-mobile a[aria-current="page"] { color: var(--aqua); }
.nav-mobile .btn { margin-top: 1rem; align-self: flex-start; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger, .nav-mobile { display: none; }
}

/* =============================== 8. Botones ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(11, 107, 82, .28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 107, 82, .32); }
.btn--aqua { background: var(--aqua); color: var(--deep); }
.btn--aqua:hover { background: #29B8E2; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 11px 24px; }
.btn--ghost:hover { background: var(--tint); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.55); padding: 11px 24px; }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(3, 26, 22, .3); }
.btn--white:hover { transform: translateY(-2px); }
.btn--linkedin svg { width: 17px; height: 17px; }

/* ============================ 9. Componentes ============================= */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--teal);
}
.kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  transform: rotate(-45deg);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 12.5px; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; line-height: 1.2;
}
.badge--info { background: var(--tint); color: var(--primary); }
.badge--water { background: var(--aqua-soft); color: var(--blue); }
.badge--brand { background: var(--primary); color: #fff; }
.badge--outline { border: 1.5px solid rgba(255,255,255,.6); color: #fff; background: rgba(5, 43, 37, .35); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.06rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: split gestiona sus hijos */
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word > i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.is-split-visible .split-word > i { transform: none; }

/* ========================== 10. Hero (full-bleed) ======================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 8.5rem;
  overflow: clip;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(5, 43, 37, .93) 0%, rgba(7, 74, 60, .82) 38%, rgba(5, 43, 37, .38) 75%, rgba(5, 43, 37, .55) 100%),
    linear-gradient(0deg, rgba(5, 43, 37, .65) 0%, transparent 30%);
}
.hero-grid { display: grid; gap: 3.5rem; align-items: center; position: relative; }
.hero-copy .badge { margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 800; line-height: 1.05; max-width: 16ch; color: #fff;
}
.hero-title em { font-style: normal; color: #6FD9F7; position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .3em;
  background: rgba(0, 166, 216, .28); z-index: -1; border-radius: 4px;
}
.hero-sub { margin-top: 1.5rem; font-size: 1.13rem; color: rgba(255, 255, 255, .85); max-width: 54ch; }
.hero-ctas { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta .badge { background: rgba(255,255,255,.12); color: #DFF6EC; border: 1px solid rgba(255,255,255,.2); }

.hero-visual { position: relative; display: none; place-items: center; }
.hero-plate {
  background: rgba(255, 255, 255, .96);
  border-radius: 50%;
  box-shadow: 0 30px 70px rgba(2, 20, 16, .45);
  width: min(370px, 30vw); aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 2.6rem;
  position: relative; z-index: 2;
}
.hero-plate img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin-inline: auto; }
.hero-chip {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-lift);
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--primary);
  padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px;
  animation: chipFloat 5.4s ease-in-out infinite;
}
.hero-chip i { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, var(--aqua), var(--green)); font-style: normal; }
.hero-chip--1 { top: 2%; left: -8%; animation-delay: 0s; }
.hero-chip--2 { top: 30%; right: -12%; animation-delay: 1.3s; }
.hero-chip--3 { bottom: 12%; left: -12%; animation-delay: 2.4s; }
.hero-chip--4 { bottom: -4%; right: 2%; animation-delay: 3.1s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: rgba(255,255,255,.75); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  z-index: 3;
}
.hero-scroll i { width: 1.5px; height: 34px; background: linear-gradient(#fff, transparent); display: block; animation: scrollHint 1.8s var(--ease-soft) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ola inferior del hero */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: clamp(38px, 6vw, 84px); display: block; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { display: grid; }
}

/* ============================= 11. Marquee =============================== */
.marquee {
  border-block: 1px solid rgba(255,255,255,.08);
  padding: 1.05rem 0; overflow: clip; background: var(--deep);
  display: flex;
}
.marquee-track { display: flex; gap: 3.2rem; flex-shrink: 0; padding-right: 3.2rem; animation: marquee 32s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: .1em;
  text-transform: uppercase; color: #9FE3C8; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3.2rem;
}
.marquee span::after { content: "💧"; font-size: .8em; filter: grayscale(0); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ====================== 12. Bloque editorial (about) ===================== */
.about { padding: var(--section) 0; background: #fff; }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-figures { position: relative; min-height: 420px; }
.about-figures img { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); position: absolute; object-fit: cover; }
.about-img-1 { width: 74%; aspect-ratio: 4 / 4.6; left: 0; top: 0; z-index: 1; animation: chipFloat 9s ease-in-out infinite; }
.about-img-2 { width: 50%; aspect-ratio: 4 / 4.2; right: 0; bottom: -6%; z-index: 2; border: 6px solid #fff; animation: chipFloat 7s 1.2s ease-in-out infinite; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-top: .9rem; }
.about-copy > p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; }
.about-list { margin-top: 1.8rem; display: grid; gap: .9rem; }
.about-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .99rem; }
.about-list li b { color: var(--primary); }
.about-list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--aqua), var(--green));
}
@media (min-width: 960px) { .about-grid { grid-template-columns: .95fr 1.05fr; gap: 4.5rem; } }

/* ============================ 13. Ejes (cards) =========================== */
.ejes { padding: var(--section) 0; }
.ejes-grid { display: grid; gap: 1.4rem; }
.eje-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: clip;
  box-shadow: var(--shadow-card);
  border-top: 4px solid transparent;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.eje-card:nth-child(1) { border-top-color: var(--lime); }
.eje-card:nth-child(2) { border-top-color: var(--green); }
.eje-card:nth-child(3) { border-top-color: var(--aqua); }
.eje-card:nth-child(4) { border-top-color: var(--blue); }
.eje-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.eje-media { position: relative; aspect-ratio: 16 / 9.5; overflow: clip; }
.eje-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.eje-card:hover .eje-media img { transform: scale(1.06); }
.eje-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em;
  background: rgba(255, 255, 255, .93); color: var(--primary);
  padding: 7px 13px; border-radius: 999px;
}
.eje-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.eje-body h3 { font-size: 1.22rem; font-weight: 700; }
.eje-body p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.eje-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: .4rem; }
@media (min-width: 720px) { .ejes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ejes-grid { grid-template-columns: repeat(4, 1fr); } .eje-media { aspect-ratio: 4 / 3; } }

/* ====================== 14. Ciclo del agua (diferencial) ================= */
.ciclo { padding: var(--section) 0; background: linear-gradient(180deg, var(--milk), var(--tint)); }
.ciclo-flow { display: grid; gap: .9rem; margin-top: .4rem; }
.ciclo-step {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-card);
  padding: 1.05rem 1.3rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.ciclo-step:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.ciclo-step .ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.ciclo-step:nth-child(1) .ico { background: var(--ink-soft); }
.ciclo-step:nth-child(2) .ico { background: var(--teal); }
.ciclo-step:nth-child(3) .ico { background: var(--green); }
.ciclo-step:nth-child(4) .ico { background: var(--blue); }
.ciclo-step:nth-child(5) .ico { background: var(--aqua); }
.ciclo-step .ico svg { width: 22px; height: 22px; }
.ciclo-step h3 { font-size: 1.02rem; font-weight: 700; }
.ciclo-step p { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
@media (min-width: 960px) {
  .ciclo-flow { grid-template-columns: repeat(5, 1fr); }
  .ciclo-step { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.3rem 1.3rem 1.5rem; }
}

/* ========================= 15. Socios (logos row) ======================== */
.logos-band { padding: calc(var(--section) * .7) 0; background: #fff; }
.logos-band h2 { text-align: center; font-size: 1rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; font-family: var(--sans); }
.logos-row { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.8rem, 5vw, 4rem); }
.logos-row img {
  height: clamp(46px, 7vw, 74px); width: auto; max-width: 220px; object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .4s var(--ease-out), transform .4s var(--ease-out);
}
/* la rosa de los vientos es más compacta: se sirve algo mayor para igualar peso visual */
.logos-row img.logo-rosa { height: clamp(62px, 9.4vw, 100px); }
.logos-row a:hover img { filter: none; transform: translateY(-3px); }

/* ============================ 16. Banda CTA ============================== */
.cta-band { padding: var(--section) 0; }
.cta-box {
  position: relative; overflow: clip;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--deep) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.8rem, 6vw, 4.8rem);
  color: #fff; text-align: center;
}
.cta-box::before, .cta-box::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.cta-box::before { width: 380px; height: 380px; background: rgba(0, 166, 216, .25); top: -160px; right: -100px; }
.cta-box::after { width: 300px; height: 300px; background: rgba(95, 193, 45, .16); bottom: -140px; left: -80px; }
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 26ch; margin-inline: auto; position: relative; z-index: 1; }
.cta-box h2 em { font-style: normal; color: #6FD9F7; }
.cta-box p { margin: 1.1rem auto 0; max-width: 56ch; color: rgba(255, 255, 255, .84); position: relative; z-index: 1; }
.cta-box .btn { margin-top: 2.1rem; position: relative; z-index: 1; }

/* ======================== 17. Page hero (interiores) ===================== */
.page-hero {
  position: relative; overflow: clip;
  padding: calc(var(--nav-h) + clamp(3.4rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.6rem);
  background:
    radial-gradient(60vw 34vw at 88% -12%, rgba(0, 166, 216, .16), transparent 65%),
    radial-gradient(46vw 30vw at -10% 110%, rgba(18, 163, 86, .12), transparent 65%),
    var(--milk);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; max-width: 20ch; margin-top: 1rem; }
.page-hero p.lead { margin-top: 1.3rem; max-width: 64ch; color: var(--ink-soft); font-size: 1.12rem; }

/* ====================== 18. Proyecto: objetivos OE ======================= */
.oe-section { padding: var(--section) 0; background: #fff; }
.oe-grid { display: grid; gap: 1.1rem; }
.oe-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--milk); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.4rem 1.5rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.oe-card:hover { transform: translateX(6px); border-color: var(--aqua); box-shadow: var(--shadow-card); }
.oe-card b.oe-num {
  flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--primary)); border-radius: 10px; padding: 8px 12px;
}
.oe-card p { color: var(--ink); font-size: .99rem; margin-top: 2px; }
@media (min-width: 960px) { .oe-grid { grid-template-columns: 1fr 1fr; } .oe-grid .oe-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* =========================== 19. PERT rediseñado ========================= */
.pert { padding: var(--section) 0; }
.pert-canvas { display: grid; gap: 1.6rem; margin-top: .6rem; }
.pert-col { display: grid; gap: 0; align-content: start; }
.pert-duo { display: grid; gap: 1rem; }
@media (min-width: 960px) { .pert-duo { grid-template-columns: 1fr 1fr; } }
.pert-block {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: clip; border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease-out);
}
.pert-block:hover { box-shadow: var(--shadow-lift); }
.pert-block summary {
  list-style: none; cursor: pointer; user-select: none;
  background: linear-gradient(120deg, var(--primary), var(--deep));
  color: #fff; padding: 1.15rem 1.4rem;
  display: flex; align-items: center; gap: 12px;
}
.pert-block--agua summary { background: linear-gradient(120deg, var(--blue), #04496F); }
.pert-block summary::-webkit-details-marker { display: none; }
.pert-block summary .pert-pt {
  flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 12px;
  background: #6FD9F7; color: var(--deep); border-radius: 999px; padding: 5px 11px;
}
.pert-block summary h3 { color: #fff; font-size: 1.02rem; font-weight: 700; flex: 1; line-height: 1.3; }
.pert-block summary .pert-oe { font-size: 11.5px; font-weight: 600; color: #9FE3C8; white-space: nowrap; }
.pert-block--agua summary .pert-oe { color: #A8E4F8; }
.pert-block summary .pert-caret { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.pert-block summary .pert-caret svg { width: 11px; height: 11px; }
.pert-block[open] summary .pert-caret { transform: rotate(180deg); }
.pert-rows { padding: .6rem .9rem .9rem; display: grid; gap: .5rem; }
.pert-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--milk); border-radius: 12px; padding: .65rem .8rem;
  transition: background .25s var(--ease-out);
}
.pert-row:hover { background: var(--tint); }
.pert-row .pert-logos { flex-shrink: 0; display: flex; gap: 6px; }
.pert-row .pert-logos img {
  width: 68px; height: 68px; object-fit: contain; background: #fff;
  border-radius: 11px; border: 1px solid var(--line); padding: 7px;
}
.pert-row p { font-size: .88rem; line-height: 1.4; color: var(--ink); }
.pert-row p b { color: var(--primary); }
.pert-arrow { display: grid; place-items: center; padding: .35rem 0; }
.pert-arrow svg { width: 22px; height: 26px; color: var(--teal); }
.pert-side {
  background: linear-gradient(160deg, var(--tint), #fff);
  border: 1.5px dashed var(--teal); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.5rem; align-self: stretch;
}
.pert-side h3 { font-size: 1rem; font-weight: 700; }
.pert-side p { margin-top: .7rem; font-size: .89rem; color: var(--ink-soft); }
.pert-side .pert-leaders { margin-top: 1rem; display: grid; gap: .55rem; }
.pert-side .pert-leaders div { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--ink); }
.pert-side .pert-leaders b { font-family: var(--display); font-size: 11px; background: var(--primary); color: #fff; border-radius: 999px; padding: 4px 9px; flex-shrink: 0; }
.pert-side .pert-leaders img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 5px; flex-shrink: 0; }
.pert-note { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
@media (min-width: 1280px) {
  .pert-canvas { grid-template-columns: 1fr 320px; align-items: stretch; }
}

/* ============================ 20. Ficha oficial ========================== */
.ficha { padding: var(--section) 0; background: #fff; }
.ficha-table {
  width: 100%; border-collapse: collapse; background: var(--milk);
  border-radius: var(--r-lg); overflow: clip; box-shadow: var(--shadow-card);
  font-size: .97rem;
}
.ficha-table th, .ficha-table td { text-align: left; padding: .95rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ficha-table tr:last-child th, .ficha-table tr:last-child td { border-bottom: 0; }
.ficha-table th { width: 34%; font-family: var(--display); font-weight: 700; color: var(--primary); font-size: .88rem; }
.ficha-table td b { color: var(--primary); }
.ficha-wrap { overflow-x: auto; border-radius: var(--r-lg); }

/* ============================ 21. Socios page ============================ */
.socios { padding: var(--section) 0; }
.socio-lider {
  display: grid; gap: 0; overflow: clip;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lift);
  margin-bottom: 2rem;
}
.socio-lider-media { position: relative; min-height: 260px; }
.socio-lider-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.socio-lider-body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.socio-logo-plate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 20px; display: grid; place-items: center; box-shadow: var(--shadow-card);
}
.socio-logo-plate img { max-height: 96px; width: auto; max-width: 290px; object-fit: contain; }
.socio-lider-body h3 { font-size: 1.5rem; font-weight: 800; }
.socio-lider-body p { color: var(--ink-soft); font-size: .99rem; }
.socio-dato { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.socio-dato b { color: var(--primary); }
@media (min-width: 960px) { .socio-lider { grid-template-columns: .8fr 1.2fr; } .socio-lider-media { min-height: 100%; } }

.socios-grid { display: grid; gap: 1.4rem; }
.socio-card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 1.7rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.socio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.socio-card .socio-logo-plate { box-shadow: none; background: var(--milk); width: 100%; min-height: 128px; }
.socio-card h3 { font-size: 1.14rem; font-weight: 700; }
.socio-card p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.socio-web { font-weight: 700; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ease-out), color .25s var(--ease-out); }
.socio-web:hover { gap: 10px; color: var(--primary); }
.socio-web svg { width: 14px; height: 14px; }
@media (min-width: 720px) { .socios-grid { grid-template-columns: repeat(3, 1fr); } }

.colaboradores { padding: calc(var(--section) * .8) 0 var(--section); background: #fff; }
.colab-grid { display: grid; gap: 1.1rem; }
.colab-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.colab-card:hover { border-color: var(--aqua); box-shadow: var(--shadow-card); }
.colab-card img { width: 130px; height: 82px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.colab-card h3 { font-size: .99rem; font-weight: 700; }
.colab-card p { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
@media (min-width: 960px) { .colab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .colab-grid { grid-template-columns: repeat(4, 1fr); } .colab-card { flex-direction: column; align-items: flex-start; } }

/* ============================ 22. Noticias =============================== */
.noticias { padding: var(--section) 0; }
.noticias-grid { display: grid; gap: 1.5rem; }
.noticia-card {
  display: flex; flex-direction: column; overflow: clip;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.noticia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.noticia-card .media { aspect-ratio: 16 / 9; overflow: clip; }
.noticia-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.noticia-card:hover .media img { transform: scale(1.05); }
.noticia-card .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.noticia-card time { font-size: .82rem; font-weight: 700; color: var(--teal); letter-spacing: .04em; text-transform: uppercase; }
.noticia-card h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.noticia-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.noticia-card .socio-web { margin-top: .3rem; }
@media (min-width: 960px) { .noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .noticias-grid { grid-template-columns: repeat(3, 1fr); } }

.linkedin-box {
  margin-top: 2.6rem;
  background: linear-gradient(120deg, var(--blue), #04496F);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: space-between;
  position: relative; overflow: clip;
}
.linkedin-box::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(0, 166, 216, .25); filter: blur(50px); }
.linkedin-box h3 { color: #fff; font-size: 1.3rem; font-weight: 700; }
.linkedin-box p { color: rgba(255, 255, 255, .84); margin-top: .4rem; max-width: 46ch; font-size: .96rem; }
.linkedin-box .btn { position: relative; z-index: 1; }

/* Artículo de noticia */
.articulo { padding: calc(var(--nav-h) + 3.5rem) 0 var(--section); }
.articulo-head { max-width: 780px; margin-inline: auto; }
.articulo-head time { font-size: .85rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.articulo-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; margin-top: .8rem; }
.articulo-hero { max-width: 980px; margin: 2.4rem auto 0; }
.articulo-hero img { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.articulo-body { max-width: 700px; margin: 2.8rem auto 0; font-size: 1.06rem; }
.articulo-body p + p { margin-top: 1.2rem; }
.articulo-body h2 { font-size: 1.45rem; margin: 2.2rem 0 .9rem; }
.articulo-body a { color: var(--blue); font-weight: 600; border-bottom: 1.5px solid var(--aqua); transition: color .2s, border-color .2s; }
.articulo-body a:hover { color: var(--primary); border-color: var(--primary); }
.articulo-body blockquote {
  margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--green);
  background: var(--tint); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--display); font-weight: 600; color: var(--primary); font-size: 1.05rem;
}
.articulo-back { margin-top: 3rem; text-align: center; }

/* ============================ 23. Contacto =============================== */
.contacto { padding: var(--section) 0; }
.contacto-grid { display: grid; gap: 1.5rem; }
.contacto-card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; gap: .8rem; align-items: flex-start;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.contacto-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.contacto-card .icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--tint), var(--aqua-soft));
  display: grid; place-items: center; color: var(--primary);
}
.contacto-card .icon svg { width: 24px; height: 24px; }
.contacto-card h3 { font-size: 1.14rem; font-weight: 700; }
.contacto-card p { color: var(--ink-soft); font-size: .95rem; }
.contacto-card a.big { font-family: var(--display); font-weight: 700; color: var(--blue); font-size: 1.05rem; transition: color .2s; word-break: break-all; }
.contacto-card a.big:hover { color: var(--primary); }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================== 24. Footer =============================== */
.funding {
  background: #fff; border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.2rem;
}
.funding-logos { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(1rem, 3.2vw, 2.6rem); }
@media (max-width: 719px) { .funding-logos { flex-wrap: wrap; } }
.funding-logos img { height: clamp(34px, 4.6vw, 58px); width: auto; max-width: 250px; object-fit: contain; }
.funding .lema { margin-top: 1.3rem; text-align: center; font-size: .98rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 959px) { .funding .lema { white-space: normal; } }
.funding p {
  margin-top: 1.6rem; text-align: center; font-size: .88rem; color: var(--ink-soft);
  max-width: 72ch; margin-inline: auto;
}
.funding p b { color: var(--primary); }

.footer { background: var(--deep); color: rgba(255, 255, 255, .78); }
.footer-main { padding: 3.6rem 0 2.6rem; display: grid; gap: 2.4rem; }
.footer-brand .plate { background: #fff; border-radius: var(--r-md); padding: 16px 18px; display: inline-block; }
.footer-brand .plate img { height: 96px; width: auto; }
.footer-brand p { margin-top: 1.1rem; font-size: .92rem; max-width: 36ch; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a { font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #6FD9F7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.3rem 0; font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: #6FD9F7; font-weight: 600; }
@media (min-width: 960px) { .footer-main { grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 3rem; } }

/* ======================= 25. Extras ===================================== */
/* Selector de idioma */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; font-family: var(--display); font-weight: 700; font-size: 12.5px;
}
.lang-switch a, .lang-switch span {
  padding: 5px 11px; border-radius: 999px; color: var(--ink-soft); transition: color .2s, background .2s;
}
.lang-switch span { background: var(--primary); color: #fff; }
.lang-switch a:hover { color: var(--primary); background: var(--tint); }
/* dentro de la píldora blanca el enlace mantiene su color aunque el nav esté en modo overlay */
.nav--overlay:not(.is-scrolled) .nav-links .lang-switch a { color: var(--ink-soft); }
.nav--overlay:not(.is-scrolled) .nav-links .lang-switch a:hover { color: var(--primary); }
.nav-mobile .lang-switch { align-self: flex-start; margin-top: .8rem; }

/* Clusaga difunde */
.clusaga-note {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 1.5rem 1.8rem;
}
.clusaga-note img { height: 74px; width: auto; flex-shrink: 0; }
.clusaga-note div { flex: 1; min-width: 260px; }
.clusaga-note h3 { font-size: 1.05rem; font-weight: 700; }
.clusaga-note p { font-size: .93rem; color: var(--ink-soft); margin-top: .3rem; }

/* Widget de feed LinkedIn */
.feed-section { margin-top: 2.6rem; }
.feed-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.3rem; }
.feed-shell { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: clamp(1rem, 3vw, 2rem); }
.feed-soon { text-align: center; padding: 2.4rem 1rem; color: var(--ink-soft); font-size: .96rem; }
.feed-soon b { color: var(--primary); }

/* Strip institucional (inicio, sobre la marquesina) */
.inst-strip { background: #fff; padding: 1.3rem 0 1.1rem; border-top: 1px solid var(--line); }
.inst-strip .inst-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 4vw, 2.8rem); }
.inst-strip img { height: clamp(34px, 4.5vw, 48px); width: auto; max-width: 190px; object-fit: contain; }
.inst-strip .inst-lema { margin-top: .95rem; text-align: center; font-size: .93rem; font-weight: 600; color: var(--ink); }

/* Aviso de cookies */
.cookie-banner {
  position: fixed; z-index: 500; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 440px; margin-inline: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  border: 1px solid var(--line); padding: 1.3rem 1.4rem;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: cookieIn .5s var(--ease-out) both; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
.cookie-banner h3 { font-size: 1rem; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.cookie-banner p { font-size: .87rem; color: var(--ink-soft); margin-top: .45rem; }
.cookie-banner .row { display: flex; gap: 10px; margin-top: 1rem; }
.cookie-banner .btn { padding: 9px 18px; font-size: 13.5px; }
@media (min-width: 720px) { .cookie-banner { left: auto; right: 1.4rem; bottom: 1.4rem; } }

/* Placeholder del feed sin consentimiento */
.feed-consent { text-align: center; padding: 2.2rem 1rem; color: var(--ink-soft); font-size: .95rem; }
.feed-consent .btn { margin-top: 1rem; }

/* ======================= 26. Reduced motion (intrusivos) ================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-chip, .about-img-1, .about-img-2 { animation: none; }
  .hero-scroll i { animation: none; }
  /* micro-interacciones (hover, fades, counters) se mantienen */
}
