/* ==========================================================================
   CONTRANROBLE · Hoja de estilos
   Identidad: Azul Marino #0A192F · Verde Roble #1E4620 · Gris Platino #E2E8F0
   Tipografía: Playfair Display (títulos) · Cinzel (logotipo/etiquetas) · Montserrat (texto)
   ========================================================================== */

:root {
  --navy: #0A192F;
  --navy-2: #112240;
  --navy-3: #1B2E4F;
  --emerald: #1E4620;
  --emerald-2: #2B5E2E;
  --emerald-3: #3C7A40;
  --platinum: #E2E8F0;
  --platinum-2: #EEF2F6;
  --paper: #F5F7FA;
  --ink: #0A192F;
  --muted: #4A5A72;
  --line: rgba(10, 25, 47, .14);
  --line-light: rgba(226, 232, 240, .18);

  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-brand: "Cinzel", "Playfair Display", Georgia, serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 3.2vw, 3rem);
  --max: 1440px;
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--emerald); color: var(--platinum); }

:focus-visible { outline: 2px solid var(--emerald-3); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .8rem 1.2rem;
  background: var(--emerald); color: #fff; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Grano sutil para dar textura editorial */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Etiquetas y utilidades tipográficas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: #9CC59F; }
.lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.on-dark .lead { color: rgba(226, 232, 240, .78); }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: var(--platinum);
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: 1rem 1.5rem 1rem 1.6rem; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--emerald);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { width: 22px; height: 10px; transition: transform .6s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--light { --bg: var(--platinum); --fg: var(--navy); }
.btn--light:hover { color: var(--platinum); }
.btn--emerald { --bg: var(--emerald); }
.btn--emerald::before { background: var(--navy); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--navy); color: var(--platinum);
}
.no-js .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 1.6rem; }
.loader__mark { width: 84px; height: auto; overflow: visible; }
.loader__mark .draw { fill: transparent; stroke: var(--platinum); stroke-width: 1.2; }
.loader__fill { --iso-a: var(--emerald-3); --iso-b: var(--platinum); opacity: 0; }
.loader__lockup { display: grid; gap: 10px; width: min(320px, 72vw); }
.loader__word { width: 100%; height: auto; }
.loader__tag { width: 100%; height: auto; color: #A8D1AB; }
.loader__count {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-family: var(--f-display); font-size: clamp(3rem, 9vw, 8rem); line-height: .8; font-weight: 500; font-variant-numeric: tabular-nums;
}
.loader__label { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + .4rem); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--emerald-3); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   HEADER Y MENÚ
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .6s var(--ease), background .5s var(--ease), box-shadow .5s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid { background: rgba(245, 247, 250, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-dark { color: var(--platinum); }
.header.is-dark.is-solid { background: rgba(10, 25, 47, .82); box-shadow: 0 1px 0 var(--line-light); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; }
.brand__mark { width: 38px; height: 43px; flex: none; --iso-a: var(--emerald); --iso-b: var(--navy); }
.header.is-dark .brand__mark, .menu-open .brand__mark, .footer .brand__mark { --iso-a: var(--emerald-3); --iso-b: var(--platinum); }
.brand__text { display: grid; gap: 5px; width: 196px; }
.brand__word, .brand__tag { width: 100%; height: auto; }
.brand__tag { color: var(--emerald); }
.header.is-dark .brand__tag, .menu-open .brand__tag, .footer .brand__tag { color: #A8D1AB; }
.footer .brand__text { width: 250px; gap: 7px; }
.footer .brand__mark { width: 46px; height: 52px; }
.header__actions { display: flex; align-items: center; gap: 1.1rem; }
.header .btn { padding: .78rem 1.1rem .78rem 1.25rem; font-size: .82rem; }
.header.is-dark .btn { --bg: var(--platinum); --fg: var(--navy); }
.header.is-dark .btn:hover { color: var(--platinum); }

.burger { width: 48px; height: 48px; display: grid; place-items: center; position: relative; z-index: 2; }
.burger span { position: absolute; left: 11px; width: 26px; height: 2.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.menu-open .header { color: var(--platinum); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .btn { --bg: var(--platinum); --fg: var(--navy); }

.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--navy); color: var(--platinum);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav { padding: calc(var(--header-h) + 4vh) var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow-y: auto; }
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu__list a {
  display: flex; align-items: baseline; gap: 1.2rem; padding: .5rem 0;
  font-family: var(--f-display); font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em;
  transform: translateY(105%); transition: transform .9s var(--ease), color .4s;
}
.menu__list a::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-body); font-size: .75rem; letter-spacing: .2em; opacity: .55; transform: translateY(-1.6em); }
.menu__list a:hover { color: #9CC59F; font-style: italic; }
.menu-open .menu__list a { transform: translateY(0); }
.menu-open .menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .3s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .35s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .4s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .45s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: .5s; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(226,232,240,.7); }
.menu__foot a { color: var(--platinum); font-weight: 600; }
.menu__media { position: relative; overflow: hidden; }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.menu__media img.is-active { opacity: 1; transform: scale(1); }
.menu__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(10,25,47,0) 40%); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 5rem)); }
.hero__title {
  font-size: clamp(3.4rem, 13.2vw, 15.5rem); line-height: .86; letter-spacing: -.045em; font-weight: 600;
  color: var(--navy);
}
.hero__title em { font-weight: 400; color: var(--emerald); }
.hero__title .indent { padding-left: 14vw; }
.hero__meta {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem var(--gutter); align-items: end;
  margin-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero__intro { grid-column: 1 / span 5; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 0; }
.hero__intro strong { color: var(--navy); font-weight: 600; }
.credits { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0; }
.credits div { border-top: 1px solid var(--line); padding-top: .8rem; }
.credits dt { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); }
.credits dd { margin: .3rem 0 0; font-family: var(--f-display); font-size: clamp(1rem, .9rem + .4vw, 1.25rem); line-height: 1.25; }
.scroll-cue { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; width: 1px; height: 42px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--emerald); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

.hero-media { position: relative; height: 100vh; height: 100svh; }
.hero-media__frame {
  position: relative; height: 100%; width: 100%; overflow: hidden; background: var(--navy);
  clip-path: inset(9% var(--gutter) 9% var(--gutter) round 6px);
}
.no-js .hero-media__frame, .reduced .hero-media__frame { clip-path: none; }
.hero-media__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.hero-media__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,47,0) 35%, rgba(10,25,47,.85) 100%); }
.hero-media__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(2rem, 7vh, 5rem); color: var(--platinum);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end;
}
.hero-media__caption h2 { grid-column: 1 / span 7; font-size: clamp(2rem, 4.6vw, 4.8rem); line-height: 1; }
.hero-media__caption h2 em { color: #A8D1AB; font-weight: 400; }
.hero-media__caption p { grid-column: 9 / span 4; margin: 0; color: rgba(226,232,240,.85); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }

/* ==========================================================================
   MANIFIESTO (revelado palabra por palabra)
   ========================================================================== */
.manifesto { padding: clamp(6rem, 16vh, 12rem) 0; }
.manifesto__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.manifesto__side { grid-column: 1 / span 3; position: relative; }
.manifesto__side .eyebrow { position: sticky; top: calc(var(--header-h) + 1rem); }
.manifesto__text {
  grid-column: 4 / span 9; margin: 0;
  font-family: var(--f-display); font-size: clamp(1.75rem, 3.6vw, 3.6rem); line-height: 1.14; letter-spacing: -.015em; font-weight: 500;
}
.manifesto__text em { color: var(--emerald); }
.manifesto__text .w { opacity: .14; transition: opacity .2s linear; }
.no-js .manifesto__text .w, .reduced .manifesto__text .w { opacity: 1; }
.manifesto__sign { grid-column: 4 / span 9; margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; }
.manifesto__sign p { margin: 0; max-width: 46ch; color: var(--muted); }

/* ==========================================================================
   MARQUESINA
   ========================================================================== */
.marquee-wrap { overflow: hidden; padding-block: 3rem; margin-block: -1rem; }
.marquee { position: relative; overflow: hidden; background: var(--emerald); color: var(--platinum); padding: clamp(1.1rem, 2.4vw, 2rem) 0; transform: rotate(-2deg) scale(1.04); margin: 0; }
.marquee--flat { transform: none; margin: 0; background: transparent; color: var(--navy); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); padding-right: clamp(1.2rem, 3vw, 3rem); font-family: var(--f-display); font-size: clamp(1.8rem, 5vw, 4.6rem); line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.marquee__item:nth-child(even) { font-style: italic; font-weight: 400; }
.marquee__item svg { width: clamp(22px, 2.6vw, 40px); height: auto; flex: none; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px var(--navy); }
.marquee--outline .marquee__item:nth-child(even) { color: var(--navy); -webkit-text-stroke: 0; }

/* ==========================================================================
   SERVICIOS · ÍNDICE
   ========================================================================== */
.section { position: relative; padding: clamp(5rem, 14vh, 10rem) 0; }
.section__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem var(--gutter); margin-bottom: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.section__head > .eyebrow { grid-column: 1 / -1; }
.section__title { grid-column: 1 / span 8; font-size: clamp(2.6rem, 7vw, 7.2rem); line-height: .95; letter-spacing: -.035em; }
.section__title em { font-weight: 400; color: var(--emerald); }
.on-dark .section__title em { color: #A8D1AB; }
.section__head .lead { grid-column: 9 / span 4; margin: 0; }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  position: relative; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 2rem) 0; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.index a:hover, .index a:focus-visible { color: var(--platinum); padding-inline: 1.2rem; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.index__num { font-size: .78rem; font-weight: 600; letter-spacing: .2em; color: var(--emerald); transition: color .5s; }
.index a:hover .index__num { color: #A8D1AB; }
.index__name { font-family: var(--f-display); font-size: clamp(1.6rem, 4.2vw, 4rem); line-height: 1.04; letter-spacing: -.025em; }
.index__name em { font-weight: 400; }
.index__tag { font-size: .8rem; letter-spacing: .08em; color: var(--muted); text-align: right; transition: color .5s; max-width: 22ch; }
.index a:hover .index__tag { color: rgba(226,232,240,.7); }
.index__arrow { display: none; }

.cursor-img {
  position: fixed; top: 0; left: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
  overflow: hidden; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: 0 30px 60px rgba(10,25,47,.35);
}
.cursor-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cursor-img img.is-active { opacity: 1; }
@media (hover: none), (max-width: 1023px) { .cursor-img { display: none; } }

/* ==========================================================================
   SERVICIOS · PANELES HORIZONTALES
   ========================================================================== */
.services { background: var(--navy); color: var(--platinum); overflow: hidden; }
.services__pin { position: relative; }
.services__top { display: none; justify-content: space-between; align-items: center; padding: calc(var(--header-h) + .5rem) var(--gutter) 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(226,232,240,.6); }
.services__progress { flex: 1; max-width: 320px; height: 1px; background: var(--line-light); margin-inline: 1.5rem; position: relative; }
.services__progress i { position: absolute; inset: 0; background: #A8D1AB; transform: scaleX(0); transform-origin: left; }
.services__track { display: flex; flex-direction: column; width: 100%; }
.panel {
  position: relative; width: 100%; flex: none;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: center;
  padding: clamp(4.5rem, 10vh, 7rem) var(--gutter); border-top: 1px solid var(--line-light);
}
.panel:first-child { border-top: 0; }
.panel__num {
  position: absolute; right: var(--gutter); top: 1rem; font-family: var(--f-display); font-size: clamp(8rem, 24vw, 22rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(226,232,240,.14); pointer-events: none; user-select: none;
}
.panel__media { grid-column: 1 / span 6; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__body { grid-column: 8 / span 5; position: relative; }
.panel__label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #A8D1AB; margin-bottom: 1.2rem; display: block; }
.panel__title { font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.6rem; }
.panel__title em { font-weight: 400; color: #A8D1AB; }
.panel__text { color: rgba(226,232,240,.8); max-width: 48ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.6rem 0 0; }
.tags li { font-size: .78rem; padding: .45rem .85rem; border: 1px solid var(--line-light); border-radius: 100px; color: rgba(226,232,240,.85); }

/* Recorrido horizontal (lo activa JS en escritorio) */
.hscroll .services__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; }
.hscroll .services__top { display: flex; }
.hscroll .services__track { flex-direction: row; flex: 1; width: max-content; will-change: transform; }
.hscroll .panel { width: 100vw; height: 100%; padding: 2vh var(--gutter) 6vh; border-top: 0; }
.hscroll .panel__num { top: 0; }
.hscroll .panel__media { aspect-ratio: auto; height: min(66vh, 640px); }
.hscroll .panel__media img { transform: scale(1.15); }

/* ==========================================================================
   FILOSOFÍA · MISIÓN Y VISIÓN
   ========================================================================== */
.about { background: var(--platinum); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.about__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.about__media img { width: 100%; height: 120%; object-fit: cover; }
.about__content { grid-column: 7 / span 6; }
.about__content .section__title { font-size: clamp(2.4rem, 5.6vw, 5.6rem); margin: 1.4rem 0 2rem; }
.statement { border-top: 1px solid var(--line); padding: 2.2rem 0; display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; }
.statement h3 { font-family: var(--f-brand); font-size: .95rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald); line-height: 1.6; }
.statement p { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.6; }

/* ==========================================================================
   VALORES · TARJETAS APILADAS
   ========================================================================== */
.values { background: var(--paper); }
.stack { display: grid; gap: 2rem; }
.vcard {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: stretch;
  min-height: min(72vh, 640px); padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: 6px;
  background: var(--navy); color: var(--platinum); overflow: hidden; transform-origin: center top;
  box-shadow: 0 -20px 60px rgba(10,25,47,.12);
}
.vcard:nth-child(2) { background: var(--emerald); }
.vcard:nth-child(3) { background: var(--navy-3); }
.vcard:nth-child(4) { background: var(--platinum-2); color: var(--navy); }
.vcard__media { grid-column: 1 / span 5; position: relative; overflow: hidden; border-radius: 4px; min-height: 280px; }
.vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__body { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-block: .5rem; }
.vcard__num { font-family: var(--f-brand); font-size: .9rem; letter-spacing: .25em; opacity: .7; }
.vcard h3 { font-size: clamp(2.4rem, 5.8vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.vcard h3 em { font-weight: 400; }
.vcard p { margin: 0; font-size: clamp(1.02rem, 1rem + .3vw, 1.25rem); max-width: 44ch; opacity: .86; }

/* ==========================================================================
   POLÍTICAS
   ========================================================================== */
.policies { background: var(--navy); color: var(--platinum); }
.policies__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.policy { padding: 2rem 1.6rem 2.4rem 0; border-right: 1px solid var(--line-light); }
.policy + .policy { padding-left: 1.6rem; }
.policy:last-child { border-right: 0; }
.policy svg { width: 44px; height: 44px; margin-bottom: 2.6rem; color: #A8D1AB; }
.policy h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 1rem; line-height: 1.1; }
.policy p { margin: 0; color: rgba(226,232,240,.75); font-size: .95rem; }

/* ==========================================================================
   CITA · ROBLE
   ========================================================================== */
.quote { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--platinum); text-align: center; }
.quote__bg { position: absolute; inset: -10% 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,25,47,.55) 0%, rgba(10,25,47,.88) 70%); }
.quote blockquote { position: relative; margin: 0; padding: 0 var(--gutter); max-width: 1200px; }
.quote blockquote p { font-family: var(--f-display); font-size: clamp(2.2rem, 6.2vw, 6.4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 2rem; }
.quote blockquote p em { color: #A8D1AB; font-weight: 400; }
.quote cite { font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }

/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 44px; gap: 1rem; align-items: center;
  padding: 1.6rem 0; font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, transform .6s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .6s var(--ease); }
.faq details[open] summary i { background: var(--navy); color: var(--platinum); border-color: var(--navy); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 60px 1.8rem 0; color: var(--muted); max-width: 80ch; }
.faq__answer p:last-child { margin: 0; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { position: relative; background: var(--navy); color: var(--platinum); overflow: hidden; padding-bottom: clamp(4rem, 10vh, 7rem); }
.contact__hero { position: relative; height: 70vh; min-height: 460px; overflow: hidden; }
.contact__hero img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; }
.contact__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,47,.25) 0%, rgba(10,25,47,.5) 55%, var(--navy) 100%); }
.contact__headline { position: absolute; z-index: 2; left: 0; right: 0; bottom: 2rem; }
.contact__headline h2 { font-size: clamp(3rem, 10vw, 11rem); line-height: .88; letter-spacing: -.045em; }
.contact__headline h2 em { color: #A8D1AB; font-weight: 400; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); margin-top: clamp(2rem, 6vw, 4rem); }
.contact__info { grid-column: 1 / span 4; }
.contact__info p { color: rgba(226,232,240,.78); }
.mail-big { display: inline-block; margin: 1.4rem 0 1rem; font-family: var(--f-display); font-size: clamp(1.3rem, 1.75vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A8D1AB; padding: .5rem 0; }
.copy-btn svg { width: 16px; height: 16px; }

.form { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; }
.field { position: relative; display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(226,232,240,.7); }
.field label span { color: #A8D1AB; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--platinum); background: transparent;
  border: 0; border-bottom: 1px solid rgba(226,232,240,.3); border-radius: 0; padding: .7rem 0; outline: none;
  transition: border-color .4s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23E2E8F0' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .2rem center; padding-right: 1.6rem; cursor: pointer; }
.field select option { color: var(--navy); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(226,232,240,.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #A8D1AB; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: #A8D1AB; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
.field:focus-within::after { transform: scaleX(1); }
.field--check::after, .field--full.field--check::after { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #F2A7A7; }
.field__error { font-size: .78rem; color: #F2A7A7; min-height: 1em; }
.field--check { flex-direction: row; align-items: flex-start; gap: .8rem; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--emerald-3); }
.field--check label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; line-height: 1.5; color: rgba(226,232,240,.8); }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; color: var(--platinum); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.form__status { font-size: .95rem; margin: 0; min-height: 1.5em; }
.form__status.is-ok { color: #A8D1AB; }
.form__status.is-error { color: #F2A7A7; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.is-loading .arrow { animation: nudge 1s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy); color: var(--platinum); padding: 4rem 0 2rem; border-top: 1px solid var(--line-light); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); padding-bottom: 3rem; }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 1.2rem; align-content: start; }
.footer__brand p { color: rgba(226,232,240,.65); font-size: .92rem; max-width: 34ch; margin: 0; }
.footer__col { grid-column: span 2; }
.footer__col:first-of-type { grid-column: 7 / span 2; }
.footer__col h2 { font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #A8D1AB; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer__col a { color: rgba(226,232,240,.85); }
.footer__giant { width: 100%; color: rgba(226,232,240,.08); margin: 1rem 0 2rem; }
.footer__giant svg { width: 100%; height: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(226,232,240,.55); }
.footer__bottom a { color: rgba(226,232,240,.8); }
.to-top { display: inline-flex; align-items: center; gap: .5rem; }

/* ==========================================================================
   REVELADOS GENÉRICOS (solo con JS)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js.reduced [data-reveal] { opacity: 1; transform: none; }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js.reduced [data-clip] { clip-path: none; }

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal { padding: calc(var(--header-h) + 4rem) 0 6rem; }
.legal .wrap { max-width: 880px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 1rem 0 2rem; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2.6rem 0 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1199px) {
  .credits { grid-column: 1 / -1; }
  .hero__intro { grid-column: 1 / -1; }
  .policies__grid { grid-template-columns: 1fr 1fr; }
  .policy:nth-child(2) { border-right: 0; }
  .policy:nth-child(3) { padding-left: 0; }
  .policy:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .brand__text { width: 168px; }
  .menu { grid-template-columns: 1fr; }
  .menu__media { display: none; }
  .hero__title .indent { padding-left: 8vw; }
  .hero-media__caption h2, .hero-media__caption p { grid-column: 1 / -1; }
  .manifesto__side, .manifesto__text, .manifesto__sign { grid-column: 1 / -1; }
  .section__title, .section__head .lead { grid-column: 1 / -1; }
  .index a { grid-template-columns: 48px 1fr auto; }
  .index__tag { display: none; }
  .index__arrow { display: block; width: 22px; }

  .panel__media, .panel__body { grid-column: 1 / -1; }
  .panel__num { top: 2rem; font-size: 34vw; }
  .about__media { grid-column: 1 / -1; position: relative; top: 0; aspect-ratio: 4 / 3; }
  .about__content { grid-column: 1 / -1; }
  .vcard__media, .vcard__body { grid-column: 1 / -1; }
  .vcard { min-height: auto; }
  .vcard__media { aspect-ratio: 4 / 3; min-height: 0; }
  .contact__info, .form { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
}

@media (max-width: 479px) {
  .header .btn { display: none; }
}

@media (max-width: 767px) {
  .header .btn span.long { display: none; }
  .brand { gap: .6rem; }
  .brand__text { width: 150px; gap: 4px; }
  .brand__mark { width: 32px; height: 36px; }
  .credits { grid-template-columns: 1fr; gap: .6rem; }
  .statement { grid-template-columns: 1fr; gap: .6rem; }
  .policies__grid { grid-template-columns: 1fr; }
  .policy, .policy + .policy { padding: 2rem 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .policy:first-child { border-top: 0; }
  .form { grid-template-columns: 1fr; }
  .vcard { top: calc(var(--header-h) + .75rem); }
  .faq__answer { padding-right: 0; }
  .hero-media { height: 82svh; }
  .marquee:not(.marquee--flat) { transform: rotate(-3deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .loader, .header, .menu, .grain, .cursor-img, .marquee { display: none !important; }
  .js [data-reveal], .js [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
