/* ============================================================
   Inmoreality — sistema visual
   Tipografía: Manrope (variable, autoalojada)
   Tema oscuro cinematográfico · azul de marca #2289CA
   Acento cálido de apoyo para rótulos y numerales
   Escala de espaciado: 4/8/12/16/24/32/40/48/64/80/96/120
   ============================================================ */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #141516;
  --bg-deep: #0E0F10;
  --surface: #1B1C1E;
  --surface-2: #232527;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #FFFFFF;
  --muted: #A6A8AB;
  --muted-soft: #8A8D91;
  --accent: #2289CA;
  --accent-soft: #74BCEA;
  --accent-deep: #1A6FA6;
  --accent-ink: #06141F;
  --warm: #E2C6A4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, 0.95);
  --shadow-lift: 0 28px 60px -32px rgba(0, 0, 0, 1);
  --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px; --s-1000: 120px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 var(--s-300); font-weight: 800; text-wrap: balance; }
h1, h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 var(--s-200); }

h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.35; }
h4 { font-size: 18px; line-height: 1.4; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-deep); color: #FFFFFF; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-deep); color: #FFFFFF;
  padding: var(--s-100) var(--s-200); border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { left: var(--s-200); top: var(--s-200); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-300); }
.narrow { max-width: 780px; }

section { position: relative; padding: var(--s-800) 0; }
@media (min-width: 900px) { section { padding: var(--s-1000) 0; } }

/* Rótulo corto sobre el titular de cada sección */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-100);
  margin: 0 0 var(--s-200);
  color: var(--warm);
  font-size: 13px; line-height: 1.4; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; flex: none;
  background: currentColor; opacity: 0.6;
}

.section-head { max-width: 760px; margin-bottom: var(--s-600); }
.section-head h2 { margin-bottom: var(--s-200); }
.section-head p {
  color: var(--muted); font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6; margin: 0; max-width: 62ch;
}

/* ---------- Navegación flotante ---------- */

.nav {
  position: fixed; top: var(--s-200); left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: var(--s-100);
  width: max-content; max-width: calc(100% - var(--s-400));
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(20, 21, 22, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(14, 15, 16, 0.92);
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 1);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--s-75);
  margin-right: var(--s-75);
  font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-size: 16px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 28px; height: 24px; }
.nav-links { display: none; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100);
  color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600;
  border-radius: var(--r-pill);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.nav-lang {
  margin-left: var(--s-50);
  font-size: 13px; line-height: 20px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: var(--s-50) var(--s-100);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-lang:hover { color: var(--text); border-color: var(--accent-soft); text-decoration: none; }
.nav-call { gap: 6px; padding-left: var(--s-100); padding-right: var(--s-100); }
.nav-call svg { width: 16px; height: 16px; flex: none; }
.nav-call span { display: none; }
@media (min-width: 1100px) {
  .nav-call { padding-left: var(--s-200); padding-right: var(--s-200); }
  .nav-call span { display: inline; }
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 11px;
  background: none; border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* En pantallas pequeñas la barra deja solo marca, teléfono, contacto y menú */
@media (max-width: 1099px) {
  .nav-lang { display: none; }
}
@media (max-width: 430px) {
  .nav { gap: var(--s-50); padding-left: var(--s-100); }
  .nav-logo { gap: var(--s-50); font-size: 15px; margin-right: 0; }
  .nav .btn-sm { padding-left: var(--s-100); padding-right: var(--s-100); font-size: 13px; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-700) var(--s-400);
  background: rgba(14, 15, 16, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  visibility: hidden; opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li {
  opacity: 0; transform: translateY(20px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu li:nth-child(1) { transition-delay: 0ms; }
.mobile-menu li:nth-child(2) { transition-delay: 50ms; }
.mobile-menu li:nth-child(3) { transition-delay: 100ms; }
.mobile-menu li:nth-child(4) { transition-delay: 150ms; }
.mobile-menu li:nth-child(5) { transition-delay: 200ms; }
.mobile-menu li:nth-child(6) { transition-delay: 250ms; }
.mobile-menu li:nth-child(7) { transition-delay: 300ms; }
.mobile-menu li:nth-child(8) { transition-delay: 350ms; }
.mobile-menu li:nth-child(9) { transition-delay: 400ms; }
.mobile-menu li:nth-child(10) { transition-delay: 440ms; }
.mobile-menu a {
  display: block; padding: var(--s-100) 0;
  color: var(--text); font-size: clamp(22px, 5vw, 30px); line-height: 1.3; font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu a[aria-current="page"] { color: var(--accent-soft); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: 13px var(--s-300);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 16px; line-height: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer; text-align: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  background: var(--accent-deep); color: #FFFFFF;
  box-shadow: 0 14px 30px -18px rgba(34, 137, 202, 0.9);
}
.btn-primary:hover { background: #2080C0; color: #FFFFFF; box-shadow: 0 18px 36px -16px rgba(34, 137, 202, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-soft); background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px var(--s-200); font-size: 14px; line-height: 20px; }

/* Flecha de los botones y enlaces de avance */
.btn .arr, .more .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr, .card-link:hover .more .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero {
  display: flex; align-items: flex-end;
  min-height: min(92vh, 860px);
  padding: calc(var(--s-900) + var(--s-500)) 0 var(--s-700);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.34) 0%, rgba(10, 11, 12, 0.02) 36%,
                    rgba(10, 11, 12, 0.36) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.68) 0%, rgba(10, 11, 12, 0.4) 30%,
                    rgba(10, 11, 12, 0.06) 62%, rgba(10, 11, 12, 0) 78%);
}
.hero .container { position: relative; }
.hero h1 { max-width: 16ch; margin-bottom: var(--s-300); }
.hero h1 em {
  font-style: normal;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.hero-sub {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6;
  margin-bottom: var(--s-400);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-200); align-items: center; }
.hero-proof {
  margin: var(--s-400) 0 0;
  color: var(--muted);
  font-size: 14px; line-height: 1.5;
  max-width: 62ch;
}
.hero-proof strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

/* Datos destacados bajo el hero */
.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-300) var(--s-600);
  margin: var(--s-500) 0 0; padding: var(--s-300) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li { max-width: 24ch; }
.hero-facts b {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-facts span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Cabecera tipográfica de páginas interiores */
.page-hero { padding: calc(var(--s-900) + var(--s-600)) 0 var(--s-600); overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/hero-960.webp") center 35% / cover no-repeat;
  opacity: 0.3;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 16, 0.45), rgba(14, 15, 16, 0.72) 55%, var(--bg) 96%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .hero-sub { color: var(--muted); }
.breadcrumbs { margin-bottom: var(--s-300); font-size: 14px; line-height: 20px; color: var(--muted-soft); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

/* Hero interior con fotografía propia */
.page-hero.has-photo {
  display: flex; align-items: flex-end;
  min-height: min(66vh, 680px);
  padding: calc(var(--s-900) + var(--s-600)) 0 var(--s-700);
}
.page-hero.has-photo::before, .page-hero.has-photo::after { display: none; }
.page-hero.has-photo .hero-scrim {
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.3) 0%, rgba(10, 11, 12, 0.03) 44%,
                    rgba(10, 11, 12, 0.32) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.72) 0%, rgba(10, 11, 12, 0.45) 28%,
                    rgba(10, 11, 12, 0.1) 58%, rgba(10, 11, 12, 0) 76%);
}

/* Hero con fotografia muy clara: necesita mas velo para que el texto se lea */
.page-hero.has-photo.hero-claro .hero-scrim {
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.36) 0%, rgba(10, 11, 12, 0.1) 44%,
                    rgba(10, 11, 12, 0.36) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.82) 0%, rgba(10, 11, 12, 0.62) 30%,
                    rgba(10, 11, 12, 0.24) 62%, rgba(10, 11, 12, 0) 82%);
}

/* Sobre fotografia el parrafo va casi blanco, no gris */
.hero .hero-sub, .page-hero.has-photo .hero-sub { color: #E9EBED; }
.hero .hero-proof, .page-hero.has-photo .hero-proof { color: #C9CDD2; }

/* Sombra suave bajo el texto del hero: permite dejar la foto clara
   sin que el parrafo se pierda sobre las zonas iluminadas */
.hero h1, .page-hero.has-photo h1 { text-shadow: 0 2px 20px rgba(8, 9, 10, 0.5); }
.hero .hero-sub, .hero .hero-proof, .hero .hero-kicker,
.hero .hero-facts b, .hero .hero-facts span,
.page-hero.has-photo .hero-sub, .page-hero.has-photo .hero-proof,
.page-hero.has-photo .breadcrumbs {
  text-shadow: 0 1px 12px rgba(8, 9, 10, 0.75), 0 0 3px rgba(8, 9, 10, 0.55);
}

/* ---------- Franja de logos ---------- */

.logo-strip { padding: var(--s-600) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip h2 {
  font-size: 13px; line-height: 20px; font-weight: 700; color: var(--muted-soft);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: var(--s-300);
}
.logo-grid {
  display: grid; gap: var(--s-200);
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 700px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }
.logo-grid div {
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border-radius: var(--r-md);
  padding: var(--s-100); min-height: 60px;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.logo-grid div:hover { opacity: 1; filter: none; }
.logo-grid img { max-height: 34px; width: auto; max-width: 100%; }

/* ---------- Rejillas ---------- */

.grid { display: grid; gap: var(--s-300); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Tarjetas ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 38%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.card-body { padding: var(--s-300); }
.card-body h3 { margin-bottom: var(--s-100); }
.card-body p { color: var(--muted); margin-bottom: 0; }
.card-body p + p, .card-body p + a { margin-top: var(--s-200); }
.card > img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--surface-2);
}
.card > img[src$="kit-digital.webp"] { object-fit: contain; background: #FFFFFF; padding: var(--s-400); }
.card ul { margin: var(--s-200) 0 0; padding-left: var(--s-300); color: var(--muted); }
.card li { margin-bottom: var(--s-50); }
.card .price {
  color: var(--text); font-size: 20px; line-height: 28px; font-weight: 800;
  letter-spacing: -0.02em; margin-top: var(--s-300);
  padding-top: var(--s-200); border-top: 1px solid var(--line);
}

a.card-link { color: inherit; display: block; height: 100%; }
a.card-link:hover { text-decoration: none; }
a.card-link .more {
  display: inline-flex; align-items: center; gap: var(--s-75);
  color: var(--accent-soft); font-weight: 700; font-size: 15px;
  margin-top: var(--s-200);
}

/* ---------- Beneficios ---------- */

.benefit {
  padding: var(--s-300);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.benefit:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.benefit svg {
  width: 22px; height: 22px; color: var(--accent-soft);
  padding: 9px; margin-bottom: var(--s-300);
  box-sizing: content-box;
  background: rgba(34, 137, 202, 0.14);
  border: 1px solid rgba(116, 188, 234, 0.22);
  border-radius: var(--r-md);
}
.benefit h3 { font-size: 18px; line-height: 1.35; margin-bottom: var(--s-75); }
.benefit p { color: var(--muted); margin: 0; }

/* ---------- Frase destacada ---------- */

.tagline { padding: var(--s-900) 0; }
.tagline p {
  max-width: 20ch; margin: 0;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 900px) { .tagline p { max-width: 24ch; } }
.tagline .w { color: rgba(255, 255, 255, 0.22); transition: color 0.5s var(--ease); }
.tagline .w.on { color: var(--text); }

/* ---------- Pasos ---------- */

.steps { counter-reset: paso; }
.step {
  position: relative; overflow: hidden;
  padding: var(--s-400) var(--s-300) var(--s-300);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  position: absolute; right: var(--s-200); top: var(--s-100);
  font-size: 60px; line-height: 1; font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.05);
}
.step h3 { position: relative; font-size: 18px; line-height: 1.35; margin-bottom: var(--s-75); }
.step h3::before {
  content: ""; display: block;
  width: 26px; height: 2px; margin-bottom: var(--s-200);
  background: var(--warm);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Configurador (portada) ---------- */

.config-layout { display: grid; gap: var(--s-400); align-items: start; }
@media (min-width: 900px) { .config-layout { grid-template-columns: 1.35fr 1fr; gap: var(--s-500); } }

.config-stage {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-card);
}
.config-shots { position: relative; aspect-ratio: 16 / 10; }
.config-shots img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.config-shots img[hidden] { display: none; }
.config-tag {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 1;
  background: rgba(10, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px var(--s-100);
  font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.config-caption {
  margin: 0; padding: var(--s-200) var(--s-300) var(--s-300);
  color: var(--muted); border-top: 1px solid var(--line);
  min-height: 92px;
}
.config-caption b { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }

.config-options { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-bottom: var(--s-300); }
.config-options button {
  padding: 9px var(--s-200);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.config-options button:hover { color: var(--text); border-color: var(--line-strong); }
.config-options button[aria-selected="true"] {
  background: var(--accent-deep); border-color: var(--accent-deep); color: #FFFFFF;
}
.config-side h3 { font-size: 22px; margin-bottom: var(--s-200); }
.config-side > p { color: var(--muted); }
.config-list { list-style: none; margin: 0 0 var(--s-300); padding: 0; }
.config-list li {
  position: relative;
  padding: var(--s-100) 0 var(--s-100) var(--s-300);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.config-list li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warm);
}
.config-list b { color: var(--text); font-weight: 700; }

.center-cta { margin: var(--s-400) 0 0; }

/* ---------- Demos con carga diferida ---------- */

.demo {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.demo:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.demo .demo-media { position: relative; overflow: hidden; }
.demo .poster { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.demo iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.demo-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-100);
  width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.15), rgba(10, 11, 12, 0.6));
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color 0.3s var(--ease);
}
.demo-play:hover { background: linear-gradient(180deg, rgba(10, 11, 12, 0.05), rgba(10, 11, 12, 0.45)); }
.demo-play .ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease);
}
.demo-play .ring::after {
  content: ""; position: absolute; inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ring-pulse 2.8s var(--ease) infinite;
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.demo-play:hover .ring { transform: scale(1.08); }
.demo-caption { padding: var(--s-300); }
.demo-caption h3 { font-size: 17px; line-height: 1.35; margin: 0 0 var(--s-50); }
.demo-caption p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.demo-open {
  display: inline-flex; align-items: center; gap: var(--s-75);
  margin-top: var(--s-200);
  font-size: 14px; line-height: 20px; font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s-75);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  padding: var(--s-200) var(--s-600) var(--s-200) var(--s-300);
  cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.45;
  letter-spacing: -0.01em;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: var(--s-300); top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--accent-soft);
  border-bottom: 2px solid var(--accent-soft);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 var(--s-500) var(--s-300) var(--s-300); color: var(--muted); }
.faq details > div p { margin-bottom: 0; max-width: 78ch; }

/* ---------- CTA final ---------- */

.cta-final {
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(34, 137, 202, 0.16), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-final .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-400); }
.cta-final h2 { margin-bottom: var(--s-100); max-width: 18ch; }
.cta-final p { color: var(--muted); margin: 0; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-200); align-items: center; }

/* ---------- Formulario ---------- */

.form-grid { display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: var(--s-75); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: var(--s-100) var(--s-200);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 24px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
input:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, textarea:focus { outline: none; border-color: var(--accent-soft); background: #26282B; }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: var(--s-100); align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--muted); }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.field-error { display: none; color: #F09C9C; font-size: 14px; line-height: 20px; margin-top: var(--s-50); }
.invalid .field-error { display: block; }
.invalid input, .invalid textarea { border-color: #F09C9C; }
.form-status { margin-top: var(--s-200); font-size: 14px; line-height: 20px; color: var(--muted-soft); }

/* ---------- Datos de contacto ---------- */

.contact-info { display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }
.contact-info .benefit p a { color: var(--text); font-weight: 700; }

/* ---------- Texto legal ---------- */

.legal h2 { margin-top: var(--s-600); font-size: clamp(22px, 2.2vw, 28px); }
.legal h3 { margin-top: var(--s-500); }
.legal p, .legal li { color: var(--muted); max-width: 76ch; }
.legal .updated { font-size: 14px; line-height: 20px; }

/* ---------- Pie ---------- */

footer { border-top: 1px solid var(--line); padding: var(--s-700) 0 var(--s-400); background: var(--bg-deep); }
.footer-grid { display: grid; gap: var(--s-500); grid-template-columns: 1fr; margin-bottom: var(--s-500); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h3 {
  font-size: 12px; line-height: 20px; color: var(--muted-soft); margin-bottom: var(--s-200);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s-100); }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { width: 40px; height: 34px; margin-bottom: var(--s-200); }
.footer-brand p { max-width: 34ch; }
.social { display: flex; gap: var(--s-75); margin-top: var(--s-300); }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.social a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.social svg { width: 17px; height: 17px; }
.footer-legal {
  border-top: 1px solid var(--line); padding-top: var(--s-300);
  display: flex; flex-wrap: wrap; gap: var(--s-200); justify-content: space-between;
  color: var(--muted-soft); font-size: 14px; line-height: 20px;
}
.footer-legal p { margin: 0; }

/* ---------- Revelado al hacer scroll (solo si hay JavaScript) ---------- */

html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.grid > .reveal:nth-child(2).in { transition-delay: 70ms; }
.grid > .reveal:nth-child(3).in { transition-delay: 140ms; }
.grid > .reveal:nth-child(4).in { transition-delay: 210ms; }
.grid > .reveal:nth-child(5).in { transition-delay: 280ms; }
.grid > .reveal:nth-child(6).in { transition-delay: 350ms; }

/* ---------- Página 404 ---------- */

.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-page .btn { margin: 0 var(--s-75) var(--s-100) 0; }

/* ---------- Efectos de entrada ---------- */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
/* El H1 solo se desplaza: así es visible desde el primer pintado (LCP) */
@keyframes hero-in-title {
  from { transform: translateY(14px); }
  to { transform: none; }
}
.hero h1, .page-hero h1 { animation: hero-in-title 0.6s var(--ease) both; }
.hero .hero-sub, .page-hero .hero-sub { animation: hero-in 0.7s var(--ease) 0.08s both; }
.hero .btn, .page-hero .btn { animation: hero-in 0.7s var(--ease) 0.18s both; }
.hero .hero-proof, .page-hero .hero-proof,
.hero .hero-facts, .hero .breadcrumbs { animation: hero-in 0.7s var(--ease) 0.28s both; }

/* Zoom lento de la imagen del hero (una sola vez, solo transform) */
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-bg { animation: hero-zoom 14s var(--ease) both; transform-origin: 50% 40%; }

/* Rotador de palabras clave sobre el titular */
.hero-kicker {
  margin: 0 0 var(--s-200);
  font-size: 13px; line-height: 20px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rotator { display: inline-grid; text-align: left; }
.rotator span {
  grid-area: 1 / 1;
  color: var(--warm);
  opacity: 0;
  animation: rotate-word 12s var(--ease) infinite;
  white-space: nowrap;
}
.rotator span:nth-child(2) { animation-delay: 3s; }
.rotator span:nth-child(3) { animation-delay: 6s; }
.rotator span:nth-child(4) { animation-delay: 9s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(8px); }
  3% { opacity: 1; transform: none; }
  22% { opacity: 1; transform: none; }
  26% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}
.rotator span:first-child { animation-name: rotate-word-first; }
@keyframes rotate-word-first {
  0% { opacity: 1; transform: none; }
  22% { opacity: 1; transform: none; }
  26% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

/* Indicador de scroll al pie del hero */
.hero-scroll {
  position: absolute; left: 50%; bottom: var(--s-300);
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  display: none;
}
@media (min-width: 900px) { .hero-scroll { display: block; } }
.hero-scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent-soft);
  animation: scroll-dot 2.2s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(16px); }
}
.hero-scroll:hover { border-color: var(--accent-soft); }

/* El contenido del hero se aleja al hacer scroll (sin JavaScript) */
@supports (animation-timeline: view()) {
  .hero .container {
    animation: hero-away linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 90%;
  }
  @keyframes hero-away {
    to { opacity: 0.1; transform: translateY(-40px); }
  }
}

/* Zoom suave de las imágenes al pasar el cursor */
.card > img, .demo .poster { transition: transform 0.8s var(--ease); }
.card:hover > img { transform: scale(1.04); }
.demo:hover .poster { transform: scale(1.05); }

/* Tarjeta ancha (Kit Digital en portada) */
.card-wide { grid-column: 1 / -1; }
.card-wide > img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: var(--s-300);
}

/* ---------- Visor modal de tours virtuales ---------- */

.demo-modal {
  width: min(1200px, 94vw);
  padding: 0; margin: auto;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: visible;
}
.demo-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.demo-modal[open] { animation: hero-in 0.4s var(--ease) both; }
.demo-frame { position: relative; }
.demo-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-200); margin: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  color: var(--muted); font-size: 15px; font-weight: 600;
}
.demo-loading .spin {
  width: 34px; height: 34px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent-soft);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-frame iframe {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; max-height: 86vh;
  border: 0; border-radius: var(--r-lg);
}
.demo-modal .demo-title {
  position: absolute; left: var(--s-200); top: calc(-1 * var(--s-600));
  margin: 0; color: var(--text); font-size: 16px; line-height: 24px; font-weight: 700;
}
.demo-close {
  position: absolute; right: 0; top: calc(-1 * var(--s-700));
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.demo-close:hover { background: var(--accent-deep); color: #FFFFFF; transform: scale(1.06); }

/* ---------- Banner oficial del Kit Digital ---------- */

.kit-banner {
  display: block;
  background: #FFFFFF;
  border-radius: var(--r-md);
  padding: var(--s-200) var(--s-300);
  margin: var(--s-400) 0 0;
  max-width: 880px;
}
.kit-banner img { display: block; width: 100%; height: auto; }

/* ---------- Fondos de sección ---------- */

.glow::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 80% 10%, rgba(34, 137, 202, 0.1), transparent 62%);
  pointer-events: none;
}
.glow > .container { position: relative; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .tagline .w { color: var(--text); transition: none; }
  .mobile-menu li { transition: opacity 0.3s ease-out; transform: none; }
  .card:hover, .btn:hover, .benefit:hover, .demo:hover { transform: none; }
  .card:hover > img, .demo:hover .poster { transform: none; }
  .grid > .reveal.in { transition-delay: 0ms !important; }
  .rotator span { animation: none !important; opacity: 0; }
  .rotator span:first-child { opacity: 1; }
  .demo-play .ring::after { animation: none; opacity: 0; }
  .hero .container, .hero h1, .page-hero h1, .hero-bg,
  .hero .hero-sub, .page-hero .hero-sub, .hero .btn, .page-hero .btn,
  .hero .hero-proof, .page-hero .hero-proof, .hero .hero-facts { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ---------- Aviso de cookies ---------- */

.cookies {
  position: fixed; left: var(--s-400); right: var(--s-400); bottom: var(--s-400);
  z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-300) var(--s-400);
  max-width: 760px; margin: 0 auto;
  padding: var(--s-300) var(--s-400);
  background: rgba(24, 25, 27, 0.94);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: cookies-in 0.45s var(--ease) both;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; max-width: 46ch; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookies a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookies-botones { display: flex; gap: var(--s-200); margin-left: auto; }
.cookies-btn {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cookies-btn:hover { background: rgba(255, 255, 255, 0.07); }
.cookies-si { background: var(--accent-deep); border-color: transparent; color: #fff; }
.cookies-si:hover { background: var(--accent); }
@keyframes cookies-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }
@media (max-width: 560px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; padding: var(--s-300); }
  .cookies-botones { width: 100%; }
  .cookies-btn { flex: 1; }
}
