/* =====================================================================
   AFIANZAGROUP · Landing premium
   Mobile first. Paleta tomada del logo: negro profundo + oro.
   Índice: 0 Tokens · 1 Base · 2 Cargador · 3 Encabezado · 4 Botones y piezas
           5 Hero · 6 Cinta · 7 Manifiesto · 8 Servicios · 9 Ruta del contrato
           10 Perfiles · 11 Cine · 12 Por qué · 13 FAQ · 14 Contacto · 15 Pie
           16 Flotantes · 17 Revelado · 18 Animaciones · 19 Escritorio · 20 Movimiento reducido
   ===================================================================== */

/* ---------- 0. TOKENS ---------- */
:root {
  --bg: #050505;
  --bg-2: #0b0905;
  --bg-3: #14110a;
  --ivory: #f7f2e7;
  --ivory-2: #efe6d0;
  --ink: #15110a;
  --text: #f3ecdc;
  --muted: rgba(243, 236, 220, 0.72);
  --gold-100: #fbeeb4;
  --gold-300: #f1d77a;
  --gold-400: #e2bd4b;
  --gold-500: #c99a2b;
  --gold-600: #a97b17;
  --gold-700: #7a5710;
  --line: rgba(226, 189, 75, 0.22);
  --font-display: 'Sora Variable', 'Sora', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --gutter: clamp(20px, 5.2vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

/* ---------- 1. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--bg);
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grano de película muy sutil sobre toda la página */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img.is-broken {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--gold-400);
  color: #120d02;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 500;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--gold-400);
  color: #120d02;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* Contenedor raíz: recorta cualquier desborde horizontal sin crear scroll interno */
.page {
  position: relative;
  overflow-x: clip;
}

section {
  position: relative;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

h1 em,
h2 em {
  font-size: 1.08em;
}

.gold-text {
  background: linear-gradient(100deg, #a97b17 0%, #f1d77a 35%, #fff4c4 50%, #f1d77a 65%, #a97b17 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.kicker::before {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 7.4vw, 3.9rem);
}

.lead {
  margin-top: 1.2rem;
  max-width: 58ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
}

section:not(.hero):not(.route):not(.cinema):not(.manifest):not(.faq):not(.profiles) {
  padding-block: clamp(76px, 12vw, 150px);
}

/* Secciones de tema claro: marfil con acentos de oro */
.section--light {
  --muted: #51472f;
  position: relative;
  padding-block: clamp(76px, 12vw, 150px);
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(226, 189, 75, 0.2), transparent 62%),
    radial-gradient(50% 40% at 0% 100%, rgba(226, 189, 75, 0.12), transparent 60%),
    var(--ivory);
  color: var(--ink);
}

.section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.section--light .kicker {
  color: var(--gold-700);
}

.section--light em {
  color: var(--gold-700);
}

/* ---------- 2. CARGADOR (bóveda) ---------- */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.js .loader {
  display: block;
  /* Respaldo: si el JavaScript falla, el cargador se oculta solo a los 2.4 s */
  animation: loader-fallback 0.01s linear 2.4s forwards;
}

.loader__door {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.6%;
  background: var(--bg);
  transition: transform 0.62s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.loader__door--top {
  top: 0;
  background:
    radial-gradient(60% 130% at 50% 100%, rgba(226, 189, 75, 0.16), transparent 70%),
    var(--bg);
  border-bottom: 1px solid rgba(226, 189, 75, 0.55);
}

.loader__door--bottom {
  bottom: 0;
  background:
    radial-gradient(60% 130% at 50% 0%, rgba(226, 189, 75, 0.16), transparent 70%),
    var(--bg);
  border-top: 1px solid rgba(226, 189, 75, 0.55);
}

.loader__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  transition: opacity 0.3s ease, transform 0.6s var(--ease);
}

.loader.is-open .loader__door--top {
  transform: translateY(-101%);
}

.loader.is-open .loader__door--bottom {
  transform: translateY(101%);
}

.loader.is-open .loader__center {
  opacity: 0;
  transform: scale(1.12);
}

.loader__emblem {
  position: relative;
  width: min(54vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.loader__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 14s linear infinite;
}

.ring {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.ring--a {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.25s var(--ease) 0.1s forwards;
}

.ring--b {
  stroke: rgba(241, 215, 122, 0.7);
  stroke-width: 1;
  stroke-dasharray: 0.018 0.014;
  opacity: 0;
  animation: fadein 0.6s ease 0.7s forwards, spin-rev 9s linear infinite;
}

.ring--c {
  stroke: rgba(226, 189, 75, 0.28);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) 0.3s forwards;
}

.ring-dots circle {
  fill: var(--gold-300);
  opacity: 0;
  animation: fadein 0.4s ease 1.1s forwards;
}

.loader__logo {
  width: 56%;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.86);
  animation: logo-in 0.9s var(--ease) 0.45s forwards, glowpulse 2.2s ease-in-out 1.3s infinite;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text);
  opacity: 0;
  animation: fadein 0.7s ease 0.6s forwards;
}

.loader__brand span {
  color: var(--gold-400);
}

.loader__meter {
  width: min(56vw, 220px);
  height: 2px;
  background: rgba(226, 189, 75, 0.18);
  overflow: hidden;
  border-radius: 2px;
}

.loader__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-100));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.loader__count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. ENCABEZADO ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* El fondo con desenfoque vive en un pseudo-elemento para no romper el menú fijo móvil */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(226, 189, 75, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled::before,
html.menu-open .site-header::before {
  opacity: 1;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.logo-tile {
  display: block;
  position: relative;
  aspect-ratio: 640 / 740;
  overflow: hidden;
  background: #000;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.brand__tile {
  width: 38px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(226, 189, 75, 0.35), 0 8px 24px -8px rgba(226, 189, 75, 0.5);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand__name b {
  font-weight: 800;
  background: linear-gradient(100deg, #c99a2b, #f1d77a, #c99a2b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand__name sup {
  font-size: 0.5em;
  color: var(--gold-400);
  margin-left: 2px;
}

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 96px var(--gutter) 40px;
  background:
    radial-gradient(70% 50% at 80% 10%, rgba(226, 189, 75, 0.16), transparent 70%),
    rgba(5, 5, 5, 0.98);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

html.menu-open .nav {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.nav__list {
  display: grid;
  gap: 0.2rem;
}

.nav__list a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.3s, opacity 0.5s ease, transform 0.6s var(--ease);
}

html.menu-open .nav__list a {
  opacity: 1;
  transform: none;
}

html.menu-open .nav__list li:nth-child(2) a {
  transition-delay: 0.05s;
}

html.menu-open .nav__list li:nth-child(3) a {
  transition-delay: 0.1s;
}

html.menu-open .nav__list li:nth-child(4) a {
  transition-delay: 0.15s;
}

html.menu-open .nav__list li:nth-child(5) a {
  transition-delay: 0.2s;
}

html.menu-open .nav__list li:nth-child(6) a {
  transition-delay: 0.25s;
}

.nav__list a:hover,
.nav__list a[aria-current='true'] {
  color: var(--gold-300);
}

.header__cta {
  position: relative;
  z-index: 3;
}

.burger {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(226, 189, 75, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold-300);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

html.menu-open .burger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

html.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

html.menu-open .burger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 4. BOTONES Y PIEZAS ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn {
  --h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--h);
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn > span,
.btn > svg {
  position: relative;
  z-index: 1;
}

.btn .ico {
  transition: transform 0.35s var(--ease);
}

.btn:hover .ico {
  transform: translateX(4px);
}

.btn--sm {
  --h: 42px;
  padding: 0 1.05rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.btn--lg {
  --h: 58px;
  padding: 0 1.7rem;
  font-size: 1rem;
}

/* Botones principales en azul marino (el nombre de la clase se conserva) */
.btn--gold {
  color: #fff;
  background: #152843;
  border-color: rgba(140, 172, 224, 0.38);
  box-shadow: 0 12px 32px -12px rgba(21, 40, 67, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 4.8s ease-in-out infinite;
}

.btn--gold:hover {
  background: #1f3a63;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(31, 58, 99, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(140, 172, 224, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: #152843;
  border-color: rgba(140, 172, 224, 0.7);
  transform: translateY(-2px);
}

.btn--dark {
  color: #fff;
  background: #152843;
  border-color: #152843;
  box-shadow: 0 14px 30px -14px rgba(21, 40, 67, 0.7);
}

.btn--dark:hover {
  color: #fff;
  background: #1f3a63;
  border-color: #1f3a63;
  transform: translateY(-2px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-300);
  background: rgba(226, 189, 75, 0.07);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(226, 189, 75, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}

.status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8574;
}

.status.is-open .status__dot {
  background: #3ddc84;
  animation: pulsedot 2s ease-out infinite;
}

.status.is-open .status__text {
  color: var(--text);
}

.status--card {
  margin: 0 0 0.7rem;
}

/* ---------- 5. HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 270px);
  padding-bottom: 56px;
  isolation: isolate;
  overflow: clip;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 189, 75, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 189, 75, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 55% at 50% 30%, #000 15%, transparent 78%);
  mask-image: radial-gradient(75% 55% at 50% 30%, #000 15%, transparent 78%);
  animation: gridmove 18s linear infinite;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 120vmax;
  height: 120vmax;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(226, 189, 75, 0.2), rgba(226, 189, 75, 0.06) 45%, transparent 72%);
  animation: breathe 7s ease-in-out infinite;
}

.hero__beam {
  position: absolute;
  top: -20%;
  width: 34vmax;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(226, 189, 75, 0.1), transparent);
  transform: rotate(18deg);
}

.hero__beam--a {
  left: -8%;
  animation: beam 14s ease-in-out infinite alternate;
}

.hero__beam--b {
  right: -12%;
  opacity: 0.7;
  animation: beam 18s ease-in-out -6s infinite alternate-reverse;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(226, 189, 75, 0.32);
  border-radius: 999px;
  background: rgba(226, 189, 75, 0.07);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(226, 189, 75, 0.7);
  animation: pulsedot-gold 2.2s ease-out infinite;
}

.hero__title {
  margin-top: 1.1rem;
  font-size: clamp(2.7rem, 12.2vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.line {
  display: block;
  overflow: hidden;
  padding: 0 0.1em 0.14em 0;
  margin-bottom: -0.14em;
}

.line > span {
  display: inline-block;
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  color: var(--muted);
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hchip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(226, 189, 75, 0.4);
  border-radius: 999px;
  background: rgba(10, 8, 4, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-100);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite alternate;
}

.hchip .ico {
  width: 1em;
  height: 1em;
  color: var(--gold-400);
}

.hchip--1 {
  display: inline-flex;
  top: 108px;
  left: var(--gutter);
}

.hchip--2 {
  display: inline-flex;
  top: 168px;
  right: var(--gutter);
  animation-delay: -2s;
}

.hchip--3 {
  display: inline-flex;
  top: 262px;
  left: calc(var(--gutter) + 14px);
  animation-delay: -4s;
}

.hchip--4 {
  animation-delay: -1s;
}

.hero__cue {
  display: none;
}

/* Intro del hero (solo CSS, no depende de JS; empieza al abrirse el cargador) */
.js .intro {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(1.75s + var(--d, 0s));
}

.js .intro-line {
  transform: translateY(115%);
  animation: lineup 1.05s var(--ease) forwards;
  animation-delay: calc(1.7s + var(--d, 0s));
}

.js .hero__canvas {
  opacity: 0;
  animation: fadein 1.6s ease forwards;
  animation-delay: 1.8s;
}

.js .hchip {
  opacity: 0;
  animation: float 6s ease-in-out infinite alternate, fadein 0.8s ease forwards;
  animation-delay: -2s, 2.4s;
}

.js .hchip--2 {
  animation-delay: -4s, 2.55s;
}

.js .hchip--3 {
  animation-delay: -1s, 2.7s;
}

.js .hchip--4 {
  animation-delay: -3s, 2.85s;
}

.motion .hero__content {
  transform: translate3d(0, calc(var(--hp, 0) * -60px), 0);
  opacity: calc(1 - var(--hp, 0) * 1.15);
}

/* ---------- 6. CINTA EN MOVIMIENTO ---------- */
.marquee {
  --mq-gap: clamp(26px, 4vw, 56px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: clamp(18px, 3.4vw, 34px);
  background: linear-gradient(180deg, #050505, #0b0905);
  border-block: 1px solid rgba(226, 189, 75, 0.2);
}

.marquee__row {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__row + .marquee__row {
  margin-top: 0.4rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: mq 52s linear infinite;
}

.marquee__row[data-dir='1'] .marquee__track {
  animation-direction: reverse;
}

.marquee__set {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee__set span {
  margin-right: var(--mq-gap);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.marquee__set i {
  display: block;
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: var(--mq-gap);
  background: var(--gold-400);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: spin 9s linear infinite;
}

.marquee__row--outline .marquee__set span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 189, 75, 0.75);
}

.motion .marquee__track {
  animation: none;
}

/* ---------- 7. MANIFIESTO ---------- */
.manifest {
  overflow: clip;
}

.manifest__hex {
  position: absolute;
  top: -6%;
  right: -34%;
  width: min(130vw, 920px);
  stroke-width: 0.8;
  color: rgba(122, 87, 16, 0.22);
  pointer-events: none;
  animation: spin 110s linear infinite;
}

.manifest__text {
  position: relative;
  margin-top: 1.6rem;
  max-width: 24em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.8vw, 3.7rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.manifest__text .w {
  opacity: var(--o, 1);
}

.pillars {
  position: relative;
  display: grid;
  gap: 1.2rem;
  margin-top: clamp(48px, 8vw, 96px);
}

.pillar {
  position: relative;
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid rgba(21, 17, 10, 0.2);
}

.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transition: width 0.6s var(--ease);
}

.pillar:hover::before {
  width: 100%;
}

.pillar__n {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-600);
}

.pillar h3 {
  font-size: 1.5rem;
}

.pillar p {
  margin-top: 0.7rem;
  color: var(--muted);
}

/* ---------- 8. SERVICIOS ---------- */
.services {
  overflow: clip;
  background: linear-gradient(180deg, #050505, #0a0805);
}

.services__glow {
  position: absolute;
  top: 10%;
  left: -20%;
  width: 90vmax;
  height: 90vmax;
  background: radial-gradient(closest-side, rgba(226, 189, 75, 0.1), transparent 70%);
  pointer-events: none;
}

.services .container {
  position: relative;
}

.services__layout {
  display: grid;
  gap: 2rem;
}

.acc {
  border-top: 1px solid var(--line);
}

.acc__item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.acc__item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-300), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}

.acc__item.is-open::before,
.acc__item:hover::before {
  transform: scaleX(1);
}

.acc__btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    'n name plus'
    '. tag plus';
  align-items: center;
  gap: 0.2rem 1rem;
  width: 100%;
  padding: 1.35rem 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.acc__n {
  grid-area: n;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-500);
}

.acc__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: color 0.3s ease, transform 0.6s var(--ease);
}

.acc__tag {
  grid-area: tag;
  font-size: 0.8rem;
  color: var(--muted);
}

.acc__plus {
  grid-area: plus;
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}

.acc__plus::before,
.acc__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.6px;
  background: var(--gold-300);
  translate: -50% -50%;
  transition: transform 0.45s var(--ease), background 0.3s;
}

.acc__plus::after {
  transform: rotate(90deg);
}

.acc__item.is-open .acc__plus {
  background: var(--gold-400);
  border-color: var(--gold-400);
}

.acc__item.is-open .acc__plus::before,
.acc__item.is-open .acc__plus::after {
  background: #150f03;
}

.acc__item.is-open .acc__plus::after {
  transform: rotate(0deg);
}

.acc__item:hover .acc__name,
.acc__item.is-open .acc__name {
  color: var(--gold-300);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.65s var(--ease), visibility 0s 0.65s;
}

.acc__item.is-open > .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

html:not(.js) .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.acc__inner {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  min-height: 0;
  overflow: hidden;
  max-width: 62ch;
}

.acc__inner > p {
  color: var(--muted);
}

.acc__inner > :last-child {
  margin-bottom: 1.7rem;
}

.services__aside {
  display: none;
}

.aside__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(226, 189, 75, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.02);
}

.aside__frame::before {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(226, 189, 75, 0.35);
  border-radius: 50%;
  animation: spin 46s linear infinite;
}

.aside__mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76%;
  height: auto;
  stroke-width: 1.5;
  color: var(--gold-400);
  transform: rotate(var(--rot, 0deg));
  transition: transform 1.3s var(--ease);
}

.aside__mark--inner {
  width: 44%;
  stroke-width: 2;
  color: var(--gold-300);
  opacity: 0.85;
  transform: rotate(calc(var(--rot, 0deg) * -1.5));
}

.aside__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--gold-400);
}

.aside__corner--tl {
  top: 14px;
  left: 14px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.aside__corner--tr {
  top: 14px;
  right: 14px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
}

.aside__corner--bl {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}

.aside__corner--br {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.aside__cap {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
}

.aside__cap strong {
  color: var(--gold-300);
}

/* ---------- 9. RUTA DEL CONTRATO (sección fijada) ---------- */
.route {
  background: #080705;
  border-block: 1px solid rgba(226, 189, 75, 0.14);
}

.route__sticky {
  position: relative;
  padding-block: 84px 56px;
  overflow: clip;
}

.route__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 189, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 189, 75, 0.06) 1px, transparent 1px),
    radial-gradient(60% 50% at 75% 45%, rgba(226, 189, 75, 0.14), transparent 70%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

.route__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 0;
}

.route__head h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.55rem, 6.2vw, 3.1rem);
}

.route__visual {
  position: relative;
  height: min(86vw, 400px);
}

.bld {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bld__ground {
  fill: none;
  stroke: rgba(226, 189, 75, 0.55);
  stroke-width: 1.5;
}

.bld__ground--dash {
  stroke: rgba(226, 189, 75, 0.26);
  stroke-dasharray: 4 6;
}

.bld .floor {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--f, 1));
}

.bld .win {
  fill: rgba(226, 189, 75, 0.16);
  stroke: rgba(226, 189, 75, 0.55);
  stroke-width: 1;
  opacity: var(--w, 1);
}

.bld .crane {
  fill: none;
  stroke: rgba(243, 236, 220, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bld .crane--thin {
  stroke-width: 1;
  stroke: rgba(243, 236, 220, 0.4);
}

.bld__hook {
  transform-origin: 284px 28px;
  animation: swing 4.6s ease-in-out infinite alternate;
}

.bld__seal {
  filter: drop-shadow(0 0 calc(var(--s, 1) * 8px) rgba(241, 215, 122, 0.85));
}

.bld .seal {
  fill: rgba(226, 189, 75, 0.14);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: var(--s, 1);
  transform-origin: 150px 50px;
  transform: scale(calc(0.5 + var(--s, 1) * 0.5));
}

.bld .seal--in {
  fill: none;
  stroke-width: 1.2;
}

.route__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(226, 189, 75, 0.5);
  border-radius: 999px;
  background: rgba(10, 8, 4, 0.7);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  white-space: nowrap;
  opacity: var(--s, 1);
}

.route__stages {
  display: grid;
  gap: 2rem;
}

.route__stage {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.route__num {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.route__num span {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-400);
}

.route__stage h3 {
  font-size: clamp(1.45rem, 5.2vw, 2.5rem);
}

.route__stage p:not(.route__num) {
  max-width: 50ch;
  font-size: 0.98rem;
  color: var(--muted);
}

.route__stage .btn {
  margin-top: 0.5rem;
  justify-self: start;
}

.route__rail {
  display: none;
}

.motion .route {
  height: 430vh;
}

.motion .route__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 78px 18px;
}

.motion .route__grid {
  height: 100%;
}

.motion .route__visual {
  flex: 1 1 0;
  height: auto;
  min-height: 150px;
}

.motion .route__stages {
  gap: 0;
}

.motion .route__stage {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.8s var(--ease), visibility 0s 0.5s;
}

.motion .route__stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.motion .route__rail {
  display: flex;
  gap: 6px;
  margin-top: 0.9rem;
}

.route__rail li {
  flex: 1;
  min-width: 0;
}

.route__rail li::before {
  content: '';
  display: block;
  height: 3px;
  margin-bottom: 0.45rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-300)) 0 0 / calc(var(--fill, 0) * 100%) 100% no-repeat, rgba(226, 189, 75, 0.2);
}

.route__rail span {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(243, 236, 220, 0.45);
  transition: color 0.4s;
}

.route__rail li.is-active span {
  color: var(--gold-300);
}

/* ---------- 10. PERFILES ---------- */
.profiles {
  padding-block: clamp(76px, 12vw, 150px);
}

.tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

html:not(.js) .tabs {
  display: none;
}

.tab {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(21, 17, 10, 0.2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}

.tab__n {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-700);
}

.tab:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.tab.is-active {
  background: #14110a;
  border-color: #14110a;
  color: #f6e7a5;
}

.tab.is-active .tab__n {
  color: var(--gold-400);
}

.profile {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(21, 17, 10, 0.1);
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: 0 40px 90px -40px rgba(80, 55, 5, 0.45);
  margin-bottom: 1.5rem;
}

.js .panels {
  display: grid;
}

.js .profile {
  grid-area: 1 / 1;
  margin-bottom: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.8s var(--ease), visibility 0s 0.5s;
}

.js .profile.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.profile__media {
  position: relative;
  margin: 0;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1b160b, #3a2c0c);
}

.profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.8);
  transform: scale(1.08);
  transition: filter 0.9s ease, transform 1.8s var(--ease);
}

.profile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 8, 4, 0.6)),
    linear-gradient(160deg, rgba(226, 189, 75, 0.55), rgba(122, 87, 16, 0.4));
  mix-blend-mode: color;
  opacity: 0.9;
  transition: opacity 0.9s ease;
}

.profile.is-active .profile__media img {
  transform: scale(1);
}

.profile:hover .profile__media img {
  filter: grayscale(0.15) contrast(1.05) brightness(0.9);
}

.profile:hover .profile__media::after {
  opacity: 0.35;
}

.profile__body {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: clamp(1.6rem, 4.2vw, 3.2rem);
}

.profile__body h3 {
  font-size: clamp(1.6rem, 4.8vw, 2.5rem);
}

.profile__worry {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--gold-700);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(21, 17, 10, 0.16);
  font-size: 0.96rem;
  color: var(--muted);
}

.checks .ico {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.05rem;
  padding: 0.28rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbeeb4, #c99a2b);
  color: #150f03;
}

.profile__body .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

/* ---------- 11. CINE: la imagen se abre con el scroll ---------- */
.cinema {
  background: var(--bg);
}

.cinema__sticky {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.cinema__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0905;
  clip-path: inset(calc((1 - var(--e, 1)) * 18svh) calc((1 - var(--e, 1)) * 9vw) round calc((1 - var(--e, 1)) * 34px));
}

.cinema__fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(226, 189, 75, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(226, 189, 75, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(60% 50% at 72% 30%, rgba(226, 189, 75, 0.38), transparent 62%),
    linear-gradient(160deg, #1a1408, #050505 72%);
}

.cinema__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08) brightness(0.78);
  transform: scale(calc(1.3 - var(--e, 1) * 0.3));
  will-change: transform;
}

.cinema__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.1) 38%, rgba(5, 5, 5, 0.88)),
    linear-gradient(120deg, rgba(226, 189, 75, 0.22), transparent 55%);
  opacity: calc(0.4 + var(--e, 1) * 0.6);
}

.cinema__intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7svh;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
  opacity: clamp(0, calc(1 - var(--e, 1) * 3), 1);
  pointer-events: none;
}

.cinema__intro i {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold-300), transparent);
  animation: cue 1.8s ease-in-out infinite;
}

.cinema__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  justify-items: start;
  gap: 1.2rem;
  padding-block: 0 clamp(64px, 12svh, 120px);
  opacity: clamp(0, calc((var(--e, 1) - 0.55) * 3), 1);
  transform: translateY(calc((1 - var(--e, 1)) * 46px));
}

.cinema__copy > * {
  max-width: 880px;
}

.cinema__copy h2 {
  font-size: clamp(2.1rem, 8.6vw, 5.2rem);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.cinema__copy p:not(.kicker) {
  max-width: 54ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(243, 236, 220, 0.85);
}

.motion .cinema {
  height: 300vh;
}

.motion .cinema__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

/* ---------- 12. POR QUÉ AFIANZAGROUP ---------- */
.why {
  overflow: clip;
  background: linear-gradient(180deg, #050505, #0a0805 55%, #050505);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Afianzadoras con las que trabajamos */
.allies {
  margin-top: 14px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(226, 189, 75, 0.18);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.allies h3 {
  font-size: clamp(1.25rem, 3.6vw, 1.8rem);
}

.allies__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.allies__list li {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(226, 189, 75, 0.06);
  font-size: 0.95rem;
  color: var(--gold-100);
}

.cell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 220px;
  padding: 1.7rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(226, 189, 75, 0.18);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}

.cell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 189, 75, 0.2), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cell:hover {
  border-color: rgba(226, 189, 75, 0.5);
}

.cell:hover::before {
  opacity: 1;
}

.cell h3 {
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
}

.cell p {
  color: var(--muted);
  font-size: 0.97rem;
}

.cell__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(226, 189, 75, 0.08);
  color: var(--gold-300);
}

.cell__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 12;
}

.cell--hero {
  min-height: 340px;
  align-content: end;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(226, 189, 75, 0.2), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
}

.cell--hero h3 {
  max-width: 14ch;
  font-size: clamp(1.7rem, 5.4vw, 2.5rem);
}

.cell__art {
  position: absolute;
  top: -18%;
  right: -22%;
  width: 78%;
  aspect-ratio: 1;
  pointer-events: none;
  color: var(--gold-400);
  opacity: 0.55;
}

.cell__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 1;
  animation: spin 60s linear infinite;
}

.cell__art svg + svg {
  inset: 22%;
  width: 56%;
  height: 56%;
  color: var(--gold-300);
  animation: spin-rev 40s linear infinite;
}

.loopcheck {
  display: grid;
  gap: 0.35rem;
}

.loopcheck li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  font-size: 0.96rem;
  color: var(--text);
  opacity: 0.3;
  animation: lc 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.5s);
}

.loopcheck .ico {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbeeb4, #c99a2b);
  color: #150f03;
}

.ripple {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.ripple i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 3.6s ease-out infinite;
}

.ripple i:nth-child(2) {
  animation-delay: 1.2s;
}

.ripple i:nth-child(3) {
  animation-delay: 2.4s;
}

.ripple b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 18px 4px rgba(241, 215, 122, 0.7);
}

.cell--map {
  padding-top: 8rem;
  align-content: end;
}

.cell--cta {
  align-content: end;
  background:
    radial-gradient(80% 90% at 100% 100%, rgba(226, 189, 75, 0.22), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
}

.cell--cta .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

/* ---------- 13. FAQ ---------- */
.faq {
  padding-block: clamp(76px, 12vw, 150px);
}

.faq__layout {
  display: grid;
  gap: 2.4rem;
}

.faq__layout .section-head {
  margin-bottom: 0;
}

.faq__layout .section-head .btn {
  margin-top: 1.6rem;
}

.faq__list {
  border-top: 1px solid rgba(21, 17, 10, 0.18);
}

.faq__item {
  border-bottom: 1px solid rgba(21, 17, 10, 0.18);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--gold-700);
}

.faq__item summary i {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(21, 17, 10, 0.28);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s;
}

.faq__item summary i::before,
.faq__item summary i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.6px;
  background: var(--ink);
  translate: -50% -50%;
  transition: transform 0.45s var(--ease), background 0.3s;
}

.faq__item summary i::after {
  transform: rotate(90deg);
}

.faq__item[open] summary i {
  background: var(--ink);
  border-color: var(--ink);
}

.faq__item[open] summary i::before,
.faq__item[open] summary i::after {
  background: var(--gold-300);
}

.faq__item[open] summary i::after {
  transform: rotate(0deg);
}

.faq__body {
  padding: 0 2.6rem 1.5rem 0;
  color: var(--muted);
  animation: faq-in 0.55s var(--ease);
}

/* ---------- 14. CONTACTO ---------- */
.contact {
  overflow: clip;
  background: var(--bg);
}

.contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(226, 189, 75, 0.22), transparent 62%),
    radial-gradient(50% 40% at 0% 100%, rgba(226, 189, 75, 0.12), transparent 60%);
}

.contact__bg::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -240px;
  width: 640px;
  height: 640px;
  opacity: 0.4;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200' fill='none' stroke='%23e2bd4b' stroke-width='0.5' stroke-linejoin='round'><path d='M0 -90 L77.94 -45 L77.94 45 L0 90 L-77.94 45 L-77.94 -45 Z'/><path d='M0 -90 L77.94 45 L-77.94 45 Z M0 90 L77.94 -45 L-77.94 -45 Z'/><path d='M25.98 -45 L51.96 0 L25.98 45 L-25.98 45 L-51.96 0 L-25.98 -45 Z'/><path d='M0 0 L0 -90 M0 0 L77.94 45 M0 0 L-77.94 45 M0 0 L0 90 M0 0 L77.94 -45 M0 0 L-77.94 -45'/></svg>") center / contain no-repeat;
  animation: spin 90s linear infinite;
}

.contact__layout {
  position: relative;
  display: grid;
  gap: 2.6rem;
}

.contact h2 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.field input,
.field select,
.field textarea,
.form__result textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(226, 189, 75, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field textarea,
.form__result textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 236, 220, 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(226, 189, 75, 0.16);
}

.field select {
  padding-right: 2.6rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e2bd4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 9l7 7 7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field select option {
  background: #14110a;
  color: #f3ecdc;
}

.field.is-invalid input {
  border-color: #ff8a73;
  box-shadow: 0 0 0 4px rgba(255, 138, 115, 0.15);
}

.field__err {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ffb4a3;
}

.field__err[hidden] {
  display: none;
}

.form__actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.form__actions .btn {
  width: 100%;
}

.form__note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form__result {
  display: grid;
  gap: 0.8rem;
  padding: 1.3rem;
  border: 1px solid rgba(226, 189, 75, 0.4);
  border-radius: 18px;
  background: rgba(226, 189, 75, 0.07);
}

.form__result[hidden] {
  display: none;
}

.form__result-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-300);
}

.form__result-text {
  font-size: 0.92rem;
  color: var(--muted);
}

.form__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 189, 75, 0.3);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card__map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b160b, #0b0905);
}

.card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.88) sepia(0.45) hue-rotate(-10deg);
}

.card__info {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem;
}

.card__info h3 {
  font-size: 1.5rem;
}

.card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.card__row > .ico {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--gold-400);
}

.hours {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.hours > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.93rem;
}

.hours dt {
  color: var(--text);
}

.hours dd {
  margin: 0;
  color: var(--muted);
}

.hours > div.is-today {
  background: rgba(226, 189, 75, 0.12);
  box-shadow: inset 2px 0 0 var(--gold-400);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- 15. PIE ---------- */
.footer {
  position: relative;
  overflow: clip;
  padding-top: clamp(96px, 15vw, 170px);
  background: #030303;
  border-top: 1px solid var(--line);
}

.footer__word {
  position: absolute;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11.4vw, 12.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 189, 75, 0.2);
  pointer-events: none;
  user-select: none;
}

.footer__grid {
  position: relative;
  display: grid;
  gap: 2.2rem;
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 36ch;
  color: var(--muted);
}

.footer h2 {
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.footer__nav ul {
  display: grid;
  gap: 0.5rem;
}

.footer a:not(.brand):not(.btn) {
  color: var(--muted);
  transition: color 0.3s;
}

.footer a:not(.brand):not(.btn):hover {
  color: var(--gold-300);
}

.footer__info address,
.footer__info p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__info p {
  margin-top: 0.7rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.6rem 6rem;
  border-top: 1px solid rgba(226, 189, 75, 0.14);
  font-size: 0.85rem;
  color: rgba(243, 236, 220, 0.55);
}

/* ---------- 16. FLOTANTES ---------- */
.wa-float,
.cta-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 56px;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.wa-float {
  background: #25d366;
  color: #06210f;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6);
  animation: pulsering 2.6s ease-out infinite;
}

.wa-float[hidden] {
  display: none;
}

.wa-float .ico {
  width: 1.5rem;
  height: 1.5rem;
}

.cta-float {
  color: #fff;
  background: #152843;
  border: 1px solid rgba(140, 172, 224, 0.38);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.6s var(--ease), visibility 0s 0.4s;
}

.cta-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.cta-float .ico {
  transition: transform 0.35s var(--ease);
}

.cta-float:hover .ico {
  transform: translateX(4px);
}

html.wa-on .cta-float {
  display: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-100));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 17. REVELADO AL HACER SCROLL (solo si el JS ya está activo) ---------- */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition: opacity 0.95s ease, transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 18. ANIMACIONES ---------- */
@keyframes loader-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@keyframes logo-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowpulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35) drop-shadow(0 0 14px rgba(241, 215, 122, 0.55));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes pulsedot {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(61, 220, 132, 0);
  }
}

@keyframes pulsedot-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 189, 75, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(226, 189, 75, 0);
  }
}

@keyframes pulsering {
  0% {
    box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  100% {
    box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6), 0 0 0 18px rgba(37, 211, 102, 0);
  }
}

@keyframes gridmove {
  to {
    background-position: 56px 56px;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    scale: 1;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes beam {
  from {
    transform: translateX(-6vw) rotate(18deg);
  }

  to {
    transform: translateX(8vw) rotate(18deg);
  }
}

@keyframes float {
  from {
    transform: translateY(-7px);
  }

  to {
    transform: translateY(9px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lineup {
  to {
    transform: none;
  }
}

@keyframes mq {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes swing {
  from {
    transform: rotate(-7deg);
  }

  to {
    transform: rotate(7deg);
  }
}

@keyframes lc {
  0%,
  4% {
    opacity: 0.3;
    transform: translateX(-6px);
  }

  12%,
  80% {
    opacity: 1;
    transform: none;
  }

  94%,
  100% {
    opacity: 0.3;
    transform: translateX(-6px);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.8;
    transform: scale(0.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 19. TABLET Y ESCRITORIO ---------- */
@media (min-width: 640px) {
  .hero__actions {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .form {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .form__actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.2rem;
  }

  .form__actions .btn {
    width: auto;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell--hero,
  .cell--list,
  .cell--map,
  .cell--cta {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 80px;
  }

  .header__cta,
  .burger {
    display: none;
  }

  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: 2.2rem;
    padding: 0;
    background: none;
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .nav__list {
    display: flex;
    gap: 1.8rem;
  }

  .nav__list a {
    position: relative;
    padding: 0.4rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 1;
    transform: none;
    color: rgba(243, 236, 220, 0.8);
  }

  .nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
  }

  .nav__list a:hover::after,
  .nav__list a[aria-current='true']::after {
    transform: scaleX(1);
  }

  .nav__cta {
    --h: 44px;
    font-size: 0.88rem;
  }

  .hero {
    justify-content: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 90px;
  }

  .hero__content > * {
    max-width: 700px;
  }

  .hero__title {
    font-size: clamp(3.6rem, 7.4vw, 7.2rem);
  }

  .hero__glow {
    left: 68%;
    top: 50%;
  }

  .hero__cue {
    position: absolute;
    left: var(--gutter);
    bottom: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-300);
  }

  .hero__cue-line {
    position: relative;
    display: block;
    width: 56px;
    height: 1px;
    overflow: hidden;
    background: rgba(226, 189, 75, 0.3);
  }

  .hero__cue-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-300);
    animation: cue-x 2s ease-in-out infinite;
  }

  .hchip {
    font-size: 0.78rem;
  }

  .hchip--1 {
    top: 20%;
    left: 56%;
  }

  .hchip--2 {
    top: 34%;
    right: 4%;
    left: auto;
  }

  .hchip--3 {
    top: auto;
    bottom: 24%;
    left: 53%;
  }

  .hchip--4 {
    display: inline-flex;
    top: auto;
    bottom: 17%;
    right: 9%;
  }

  .services__layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }

  .services__aside {
    position: sticky;
    top: 120px;
    display: block;
  }

  .route__sticky {
    padding-block: 110px 60px;
  }

  .route__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 6vw, 6rem);
    row-gap: 1.5rem;
    align-items: start;
  }

  .route__head {
    grid-column: 1;
    grid-row: 1;
  }

  .route__body {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  .route__visual {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 420px;
    align-self: stretch;
  }

  .motion .route__sticky {
    padding-block: 100px 40px;
  }

  .motion .route__visual {
    flex: none;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    gap: 0.8rem;
  }

  .tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.1rem 1.2rem;
    border-radius: 20px;
    white-space: normal;
    text-align: left;
  }

  .profile {
    grid-template-columns: 1.02fr 1fr;
  }

  .profile__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(230px, auto);
  }

  .cell--hero {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 100%;
  }

  .cell--list,
  .cell--map,
  .cell--cta {
    grid-column: span 2;
  }

  .faq__layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 7vw, 6rem);
    align-items: start;
  }

  .faq__layout .section-head {
    position: sticky;
    top: 120px;
  }

  .contact__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }

  .contact__card {
    position: sticky;
    top: 110px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 3rem;
  }
}

@keyframes cue-x {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Teléfonos de pantalla corta: la sección fijada de la ruta se compacta para que todo quepa */
@media (max-width: 899px) and (max-height: 740px) {
  .motion .route__sticky {
    padding-block: 70px 12px;
  }

  .motion .route__head h2 {
    font-size: 1.25rem;
  }

  .motion .route__stage p:not(.route__num) {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .motion .route__stage h3 {
    font-size: 1.3rem;
  }

  .motion .route__num span {
    font-size: 1.7rem;
  }
}

@media (min-width: 1200px) {
  .hero__beam {
    width: 26vmax;
  }
}

@media (hover: none) {
  .btn--gold:hover,
  .btn--ghost:hover,
  .btn--dark:hover,
  .tab:hover {
    transform: none;
  }
}

/* ---------- 20. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .intro,
  .js .intro-line,
  .js .hero__canvas,
  .js .hchip {
    opacity: 1;
    transform: none;
  }

  .ring--a,
  .ring--c {
    stroke-dashoffset: 0;
  }

  .loopcheck li {
    opacity: 1;
  }
}
