/* Aporta — estilos según el Manual de Identidad Visual V1
   Tipografía: DM Sans (Regular / Bold) · Retícula de 12 columnas · Módulos rectangulares */

:root {
  /* Colores principales */
  --azul: #477F99;
  --azul-claro: #E5F7FF;
  --azul-medio: #BADEED;
  --blanco: #FFFFFF;
  --azul-oscuro: #2F5A6E; /* sombra del Azul Aporta para texto pequeño sobre claro (contraste AA) */
  --azul-texto: var(--azul-oscuro);

  /* Ámbitos (color identificativo / medio / claro) */
  --contractual: #536E48; --contractual-medio: #BEE5AA; --contractual-claro: #EAF6E3;
  --datos: #D65724;       --datos-medio: #F2C9A1;       --datos-claro: #FDEDE1;
  --fiscal: #474F7F;      --fiscal-medio: #B5BBE2;      --fiscal-claro: #E9EBFB;
  --ciudadana: #854040;   --ciudadana-medio: #E6BDBD;   --ciudadana-claro: #F8EAEA;

  --ink: #1E2B33;
  --ink-soft: #4B5A63;
  --line: #D5E3EA;
  --grey: #56636B; /* AA sobre blanco y Azul Claro */

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --gap: clamp(12px, 1.6vw, 20px);
  --header-h: 72px;
  --ico-bg: var(--azul);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  /* DM Sans (Google Fonts) ya muestra por defecto la g de un ojo y la y curva del manual (3.2) */
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* Los logos nunca se deforman */
img.logo { object-fit: contain; height: auto; flex: none; align-self: flex-start; }
a { color: var(--azul-texto); }
p { margin: 0 0 .8em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--azul); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--datos); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.anchor { position: relative; top: calc(-1 * var(--header-h)); }

/* Tipografía */
.display { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--azul); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.h4 { font-size: 1.125rem; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); margin-top: 1rem; }
.measure { max-width: 30ch; }
.lead.measure { max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--azul-texto); margin-bottom: .9rem; }
.eyebrow--light { color: #fff; }
.source { font-size: .8rem; color: var(--grey); margin: .5rem 0 0; }
.note { color: var(--ink-soft); margin-top: 1.4rem; font-style: italic; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--azul-oscuro); }
.btn--light { background: #fff; color: var(--azul); }
.btn--light:hover { background: var(--azul-claro); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--lg { font-size: 1.125rem; padding: .9em 1.8em; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand img { width: 150px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.4rem; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap; }
.nav__cta { white-space: nowrap; }
.nav ul a:hover, .nav ul a.is-current { color: var(--azul-texto); }
.nav__cta { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.header__tools { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; border: 1px solid var(--line); }
.lang__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--azul-texto); }
.lang__item.is-active { background: var(--azul); color: #fff; }
.lang a.lang__item:hover { background: var(--azul-claro); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--azul-claro); cursor: pointer; position: relative; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--azul); content: ""; transition: transform .2s, opacity .2s; }
.menu-btn__bars { top: 21px; }
.menu-btn__bars::before { left: 0; top: -6px; }
.menu-btn__bars::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero: composición modular (retícula de 12 columnas) */
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); max-width: var(--max); margin: 0 auto; }
.hero__main { grid-column: 1 / 8; grid-row: 1 / 3; background: var(--azul); color: #fff; padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; min-height: min(78vh, 640px); }
.hero__tagline { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -0.035em; }
.hero__tagline span { display: block; }
.hero__title { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: 34ch; margin: 1.6rem 0 2rem; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__img { grid-column: 8 / 13; grid-row: 1 / 2; background: var(--azul-claro); overflow: hidden; min-height: 260px; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__about { grid-column: 8 / 12; grid-row: 2 / 3; background: var(--azul-claro); padding: clamp(20px, 3vw, 36px); }
.hero__symbol { grid-column: 12 / 13; grid-row: 2 / 3; background: var(--azul-medio); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.hero__symbol img { width: 100%; max-width: 72px; }
.hero__intro { font-weight: 700; color: var(--azul-texto); font-size: 1.1rem; }

/* Banda de confianza: casos de impacto y socios */
.trustbar { border-bottom: 1px solid var(--line); }
.trustbar__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.trustbar__label { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--azul-texto); }
.trustbar__cities { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; flex: 1; }
.trustbar__cities li { line-height: 1.25; }
.trustbar__cities strong { color: var(--azul-texto); font-size: 1.15rem; }
.trustbar__partners { display: flex; align-items: center; gap: 16px; }
/* Anthesis y Link juntos: misma altura → el asterisco y el círculo quedan del mismo tamaño y centrados */
.trustbar__partners, .footer__partners { --logo-h: 30px; }
.footer__partners { --logo-h: 32px; }
.trustbar__partners img, .footer__partners img { height: var(--logo-h); width: auto; align-self: center; }
/* El asterisco de Anthesis, medido de punta a punta, ocupa un círculo un 7,5% mayor que la altura del logo:
   el círculo de Link se escala en esa proporción para que ambos tengan exactamente el mismo diámetro */
.trustbar__partners img[src*="logo-link"], .footer__partners img[src*="logo-link"] { height: calc(var(--logo-h) * 1.075); }

.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; background: var(--azul); }
.ticks--area li::before { background: var(--area, var(--azul)); }

/* Separadores de sección: imagen con tratamiento + título */
.divider { display: grid; grid-template-columns: repeat(12, 1fr); max-width: var(--max); margin: clamp(48px, 7vw, 96px) auto 0; }
.divider__img { grid-column: 1 / 6; background: var(--azul-claro); aspect-ratio: 4 / 3; overflow: hidden; }
.divider__img img { width: 100%; height: 100%; object-fit: cover; }
.divider__text { grid-column: 6 / 13; background: var(--azul-claro); display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 56px); }
.divider__text .display { color: var(--azul); max-width: 16ch; }

/* Secciones */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tint { background: linear-gradient(var(--azul-claro), var(--azul-claro)); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; color: #fff; }
.tile--blue { background: var(--azul); --ico-bg: var(--azul); }
.tile--grey { background: var(--grey); --ico-bg: var(--grey); }
.tile--lg { width: 64px; height: 64px; }
.ico { width: 32px; height: 32px; }
.ico--lg { width: 36px; height: 36px; }
.tile--lg .ico--lg { width: 44px; height: 44px; }

/* Por qué */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
/* Subgrid: cabecera, texto y cifra comparten filas entre las 3 cajas → la raya separadora queda alineada en cualquier idioma */
.pillar { background: var(--azul-claro); padding: clamp(20px, 2.4vw, 32px); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.pillar__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; align-self: start; }
.pillar__head .h4 { color: var(--azul-oscuro); }
.pillar__text { color: var(--ink-soft); margin-bottom: 1.4rem; }
.stat { padding-top: 1.4rem; border-top: 2px solid var(--azul); align-self: start; }
.stat__num { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; line-height: 1; color: var(--azul); letter-spacing: -0.03em; margin-bottom: .6rem; }
.stat__unit { font-size: 1rem; line-height: 1.3; letter-spacing: 0; font-weight: 500; color: var(--azul-texto); }
.stat__text { font-weight: 700; margin: 0; }

/* Perfiles */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(24px, 3vw, 40px); }
.profile { background: #fff; display: flex; flex-direction: column; }
.profile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.profile figcaption { padding: 18px 20px 22px; }
.profile__role { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--azul-texto); }
.profile__q { font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.ask { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); background: var(--azul); color: #fff; padding: clamp(24px, 3.5vw, 48px); margin-top: var(--gap); }
.ask img { width: clamp(56px, 7vw, 96px); filter: brightness(0) invert(1); }
.ask p { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; }

/* Modelo: municipio / contratista / administración */
.model { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: var(--gap); }
.model__row { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gap); }
.model__label { padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.model__tag { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; }
.model__verb { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.model__role { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.model__row--city .model__label { background: var(--azul-claro); color: var(--azul-oscuro); }
.model__row--operator .model__label { background: #ECEFF1; color: var(--ink); }
.model__row--admin .model__label { background: var(--azul); color: #fff; }
.model__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.model__items li { display: flex; gap: .7rem; align-items: center; padding: 12px; background: var(--azul-claro); font-size: .95rem; font-weight: 500; line-height: 1.25; }
.model__items--two { grid-template-columns: repeat(2, 1fr); }
.model__row--operator .model__items li { background: #ECEFF1; }
.model__admin { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.model__admin > div { background: var(--azul-medio); padding: 16px 18px; }
.model__admin > div p:last-child { margin: 0; }
.model__admin .model__logo { background: var(--azul); display: flex; align-items: center; padding: 16px 24px; }
.model__logo img { width: 150px; }
.model__sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--azul-oscuro); margin-bottom: .3rem; }

/* Declaración */
.statement { background: var(--azul); color: #fff; padding: clamp(56px, 8vw, 112px) 0; }
.statement__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.statement .display span { display: block; }
.statement .display span + span { color: var(--azul-medio); }
.statement__body { font-size: 1.15rem; color: #fff; }

/* Solución */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.cap { background: var(--azul-claro); padding: clamp(22px, 2.6vw, 36px); }
.cap__n { font-size: .85rem; font-weight: 700; color: var(--azul-texto); margin: 1.2rem 0 .3rem; }
.cap .h3 { color: var(--azul-oscuro); margin-bottom: .7rem; }
.cap p:last-child { color: var(--ink-soft); margin: 0; }
.trust { margin-top: var(--gap); background: var(--azul-medio); padding: 18px 24px; font-weight: 700; color: var(--azul-oscuro); font-size: 1.1rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); }
.compare__card { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: .6rem; }
.compare__card p { margin: 0; }
.compare__card--market { background: #ECEFF1; color: var(--ink); }
.compare__card--aporta { background: var(--azul); color: #fff; }
.compare__label { text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; font-weight: 700; }
.compare__from { font-weight: 500; }
.compare__to { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.compare__card--aporta .compare__to { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.compare__note { color: #fff; }
.arrow { width: 26px; height: 26px; transform: rotate(90deg); flex: none; }
.quote { margin-top: clamp(32px, 4vw, 56px); border-left: 0; padding: 0; max-width: 52rem; }
.quote blockquote { font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.3; color: var(--azul-oscuro); }
.quote figcaption { margin-top: .8rem; color: var(--grey); font-size: .9rem; }

/* Ámbitos: colores */
.area--contractual { --area-text: var(--contractual); --area-fill: var(--contractual); --area: var(--contractual); --area-medio: var(--contractual-medio); --area-claro: var(--contractual-claro); }
.area--fiscal { --area-text: var(--fiscal); --area-fill: var(--fiscal); --area: var(--fiscal); --area-medio: var(--fiscal-medio); --area-claro: var(--fiscal-claro); }
.area--ciudadana { --area-text: var(--ciudadana); --area-fill: var(--ciudadana); --area: var(--ciudadana); --area-medio: var(--ciudadana-medio); --area-claro: var(--ciudadana-claro); }
.area--datos { --area-text: #A9471E; --area-fill: #B84A1D; --area: var(--datos); --area-medio: var(--datos-medio); --area-claro: var(--datos-claro); }

.area-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.area-tile a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: clamp(20px, 2.2vw, 28px); background: var(--area-claro); color: var(--ink); text-decoration: none; transition: background .2s; }
.area-tile a:hover { background: var(--area-medio); }
.area-tile img { width: 64px; margin-bottom: .8rem; }
.area-tile__n { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--area-text); }
.area-tile__name { font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--area-text); }
.area-tile__short { color: var(--ink-soft); }
.area-tile .arrow { transform: none; color: var(--area); margin-top: auto; }

.area { background: var(--area-claro); padding: clamp(48px, 6vw, 88px) 0; scroll-margin-top: var(--header-h); }
.area + .area { border-top: 1px solid rgba(0,0,0,.04); }
.area__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.area__head img { width: 56px; }
.area__head .eyebrow { color: var(--area-text); margin: 0; }
.area__intro .h2 { color: var(--area); max-width: 24ch; }
.area__intro .lead { max-width: 62ch; }
.area__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.area__label { text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; font-weight: 700; color: var(--area-text, var(--azul-texto)); margin-bottom: .8rem; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; padding: 16px; margin-bottom: var(--gap); }
.flow .arrow { transform: none; color: var(--area); }
.flow__inputs { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
.flow__inputs li { background: var(--area-claro); padding: 8px 12px; font-size: .92rem; font-weight: 500; }
.flow__node { margin: 0; padding: 12px 14px; background: var(--area-medio); font-weight: 700; flex: 0 1 180px; line-height: 1.25; }
.flow__node--strong { background: var(--area-fill); color: #fff; }
.flow--cycle { flex-direction: column; align-items: stretch; }
.flow--cycle .flow__inputs { flex-direction: row; flex-wrap: wrap; flex: none; }
.flow--cycle .flow__inputs li { flex: 1 1 120px; text-align: center; }
.flow--cycle .flow__node { flex: none; text-align: center; }
.area__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.area__col { background: #fff; padding: 18px 20px 8px; }
.area__col-title { font-weight: 700; color: var(--area-text); margin-bottom: .9rem; }
.area__col li { font-size: .97rem; }
.area__shots { display: grid; gap: var(--gap); }
.area__shots--2 { grid-template-columns: 3fr 2fr; align-items: start; }
.area__shots figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--grey); }
.shot { position: relative; display: block; width: 100%; border: 0; font: inherit; text-align: left; background: #fff; padding: 8px; box-shadow: 0 1px 2px rgba(30,43,51,.06), 0 8px 24px rgba(30,43,51,.08); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,43,51,.08), 0 16px 32px rgba(30,43,51,.14); }
.shot__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--azul); color: #fff; opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; }
.shot__zoom svg { width: 22px; height: 22px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot__zoom { opacity: .9; transform: none; width: 34px; height: 34px; } }

/* Visor de capturas */
.lightbox { padding: 0; border: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; background: transparent; }
.lightbox::backdrop { background: rgba(20,32,40,.88); }
.lightbox[open] { display: grid; place-items: center; animation: lb-fade .25s ease; }
.lightbox__figure { margin: 0; max-width: min(1400px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: 100%; max-height: 82dvh; width: auto; background: #fff; padding: 8px; animation: lb-zoom .3s cubic-bezier(.2,.8,.2,1); }
.lightbox__figure figcaption { color: #fff; font-size: .95rem; text-align: center; }
.lightbox__btn { position: fixed; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.94); } }
body.has-lightbox { overflow: hidden; }

/* Casos */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.case { background: #fff; display: flex; flex-direction: column; }
.case__tag { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 10px 16px; background: var(--area-fill); color: #fff; font-weight: 700; }
.case__tag img { width: 28px; }
.case__body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding: 20px; align-items: start; flex: 1; }
.case__body .arrow { transform: none; color: var(--area); margin-top: 1.6rem; }
.case__label { text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 700; color: var(--grey); margin-bottom: .4rem; }
.case__solution { background: var(--area-claro); padding: 12px 14px; margin: -2px 0; }
.case__solution .case__label { color: var(--area-text); }
.case__body p:last-child { margin: 0; }
.case__solution p:last-child { font-weight: 700; }

/* Quiénes somos */
.who { display: grid; grid-template-columns: 6fr 6fr; gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.who__partners { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.partner { background: var(--azul-claro); padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; min-height: 220px; }
/* Solo en «Quiénes somos»: ambos logos centrados en una zona de igual altura y con peso visual parecido */
.partner__logo { height: 96px; display: flex; align-items: center; justify-content: center; }
.partner__logo img { align-self: center; width: auto; max-width: 100%; }
.partner__logo img[src*="logo-anthesis"] { height: 46px; }
.partner__logo img[src*="logo-link"] { height: 72px; }
.partner p { margin: 0; font-weight: 700; color: var(--azul-oscuro); font-size: 1.1rem; line-height: 1.25; }
.who__trust { grid-column: 1 / -1; margin: 0; background: var(--azul); color: #fff; padding: 20px 24px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; }
.who__cases { background: var(--azul-claro); padding: clamp(20px, 2.5vw, 32px); }
.cities { display: grid; gap: 8px; margin-bottom: 1.6rem; }
.cities li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; background: #fff; padding: 14px 16px; align-items: baseline; }
.cities__name { font-weight: 700; color: var(--azul); font-size: 1.2rem; }

/* Sesión */
.agenda { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.agenda__total { background: var(--azul); color: #fff; display: flex; align-items: flex-end; padding: 24px; min-height: 160px; }
.agenda__total-num { font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: .9; letter-spacing: -0.03em; }
.agenda__list { display: grid; gap: 8px; }
.agenda__list li { background: #fff; padding: 16px 20px; display: grid; grid-template-columns: 5rem 1fr; column-gap: 1rem; }
.agenda__min { grid-row: 1 / 4; font-weight: 700; color: var(--azul); font-size: 1.3rem; }
.agenda__bar { display: block; height: 6px; width: calc(var(--min) / 25 * 100%); background: var(--azul-medio); margin-bottom: .6rem; }
.agenda__list .h4 { color: var(--azul-oscuro); margin-bottom: .3rem; }
.agenda__list p { margin: 0; color: var(--ink-soft); }
.shots-strip { display: grid; grid-template-columns: 3fr 2fr 1.2fr 3fr; gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); align-items: center; }
.shots-strip figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--grey); }
.cta-box { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.cta-box p { margin: 0; color: var(--ink-soft); }

/* Pie */
.site-footer { background: var(--azul); color: #fff; padding: clamp(40px, 5vw, 64px) 0 24px; }
.site-footer a { color: #fff; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(20px, 3vw, 48px); align-items: center; }
.footer__inner > img { width: 170px; }
.footer__meta p { margin: 0 0 .2rem; }
.footer__partners { display: flex; align-items: center; gap: 16px; background: #fff; padding: 10px 16px; }
.footer__lang { margin: 0; }
.footer__legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; }
.footer__legal p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .profiles { grid-template-columns: repeat(2, 1fr); }
  .model__items { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .compare__card--aporta { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .menu-btn { display: inline-block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(30,43,51,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero__main { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .hero__img { grid-column: 1 / 7; grid-row: auto; }
  .hero__about { grid-column: 7 / 13; grid-row: auto; }
  .hero__symbol { display: none; }
  .pillars, .caps { grid-template-columns: 1fr; }
  .statement__grid, .area__grid, .who, .agenda { grid-template-columns: 1fr; }
  .area-tiles { grid-template-columns: repeat(2, 1fr); }
  .model__row { grid-template-columns: 1fr; }
  .model__admin { grid-template-columns: 1fr 1fr; }
  .model__admin .model__logo { grid-column: 1 / -1; }
  .cases { grid-template-columns: 1fr; }
  .agenda__total { min-height: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 120px; }
  .hero__img, .hero__about { grid-column: 1 / -1; }
  .hero__img { aspect-ratio: 16 / 10; min-height: 0; }
  .divider__img, .divider__text { grid-column: 1 / -1; }
  .divider__img { aspect-ratio: 16 / 9; }
  .profiles, .area-tiles, .model__items, .model__items--two, .model__admin, .compare, .area__cols, .who__partners { grid-template-columns: 1fr; }
  .area__shots--2 { grid-template-columns: 1fr; }
  .case__body { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow .arrow { transform: rotate(90deg); align-self: center; }
  .flow__inputs, .flow__node { flex: none; }
  .case__body .arrow { transform: rotate(90deg); margin: 0; }
  .cities li { grid-template-columns: 1fr; gap: .2rem; }
  .agenda__list li { grid-template-columns: 1fr; }
  .agenda__min { grid-row: auto; }
  .shots-strip { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .partner { min-height: 0; }
}

/* Transiciones de entrada y carga (solo si hay JS y el usuario no pide menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero__grid > * { animation: hero-in .9s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero__img { animation-delay: .12s; }
  .js .hero__about { animation-delay: .24s; }
  .js .hero__symbol { animation-delay: .36s; }
  .js .hero__tagline span { display: block; animation: hero-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero__tagline span:nth-child(2) { animation-delay: .1s; }
  .js .hero__tagline span:nth-child(3) { animation-delay: .2s; }
  .js .hero__symbol img { animation: spin-in 1.4s cubic-bezier(.2,.7,.2,1) .4s both; }
  .js .stat__num.is-counting { font-variant-numeric: tabular-nums; }
  .js .agenda__bar { transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s; }
  .js .is-visible .agenda__bar, .js .agenda__list li.is-visible .agenda__bar { transform: none; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }

/* Imágenes: esqueleto animado mientras cargan y aparición suave */
.js img.lazy-img { opacity: 0; transition: opacity .6s ease; }
.js img.lazy-img.is-loaded { opacity: 1; }
.is-loading { background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .is-loading { animation: none; } .js img.lazy-img { opacity: 1; } }
