/* =========================================================================
   HouseSnap Landing — Dark Luxury Edition
   Tema: Oscuro premium · Dorado · Glassmorphism suave
   ========================================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---- Tokens ---- */
:root {
  /* Fondos */
  --bg:            #06080f;
  --bg-deep:       #030508;
  --surface:       #0d1120;
  --surface-2:     #131827;
  --surface-glass: rgba(255,255,255,0.04);

  /* Dorado */
  --gold:          #c9a24b;
  --gold-light:    #e8c96b;
  --gold-bright:   #f5df99;
  --gold-dim:      rgba(201,162,75,0.18);
  --gold-glow:     rgba(201,162,75,0.35);

  /* Texto */
  --text:          #eef2f8;   /* 17.4:1 sobre el fondo */
  --text-secondary:#8a95a8;   /*  6.6:1 — cumple AA */
  --text-muted:    #6d7c95;   /*  4.7:1 — cumple AA; antes #4a5568 daba 2.7:1 */

  /* Bordes */
  --border:        rgba(201,162,75,0.15);
  --border-hover:  rgba(201,162,75,0.45);
  --border-input:  rgba(255,255,255,0.1);

  /* Sombras — tintadas con el azul del fondo, nunca negro puro */
  --shadow-card:   0 9px 22px -10px rgba(3,6,18,0.75), 0 2px 6px -2px rgba(3,6,18,0.55), inset 0 1px 0 rgba(255,255,255,0.045);
  --shadow-raised: 0 18px 32px -14px rgba(3,6,18,0.82), 0 4px 10px -3px rgba(3,6,18,0.6), inset 0 1px 0 rgba(255,255,255,0.07);
  /* La tarjeta destacada se eleva con sombra real, no con un halo dorado:
     el resplandor de color es decoracion, no profundidad. */
  --shadow-gold:   0 20px 34px -16px rgba(3,6,18,0.85), 0 5px 12px -4px rgba(3,6,18,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  --shadow-btn:    0 10px 20px -10px rgba(3,6,18,0.85), 0 3px 8px -3px rgba(3,6,18,0.6);

  /* UI */
  --radius:        14px;
  --radius-sm:     8px;
  --radius-pill:   999px;

  /* Tipografía */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala tipográfica fluida */
  /* Techo bajo a propósito: el titular tiene 11 palabras, a 4rem se parte en
     cuatro líneas y empuja los CTA fuera de la primera pantalla. */
  --step-h1: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  --step-h2: clamp(1.75rem, 1.28rem + 2.05vw, 2.75rem);
  --step-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --step-lead: clamp(1.02rem, 0.95rem + 0.32vw, 1.2rem);

  /* Medida de lectura */
  --measure:       65ch;
  --measure-wide:  72ch;

  /* Ritmo vertical de sección */
  --section-y: clamp(4rem, 2.9rem + 4.4vw, 7rem);

  /* Timing */
  --t-fast:  150ms;
  --t-base:  220ms;
  --t-slow:  350ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 0.78, 0.4);
  /* Ease-out exponencial: arranque rápido, frenada larga */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%,   rgba(201,162,75,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 30% at 15% 55%,  rgba(10,25,60,0.35)   0%, transparent 60%),
    radial-gradient(ellipse 60% 25% at 85% 80%,  rgba(201,162,75,0.05) 0%, transparent 55%),
    linear-gradient(170deg, #06080f 0%, #070c18 28%, #060b16 55%, #05080f 78%, #030508 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(201,162,75,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 8%,  rgba(201,162,75,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 25%, rgba(201,162,75,0.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 12%, rgba(201,162,75,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 65%, rgba(201,162,75,0.09) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(201,162,75,0.11) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 80%, rgba(201,162,75,0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grano fino: rompe la planitud digital de las zonas oscuras grandes.
   Fijo y sin eventos de puntero para no repintar al hacer scroll. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-nav { width: 100%; padding: 0 24px; display: flex; justify-content: center; align-items: center; gap: 3rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); line-height: 1.08; letter-spacing: -0.032em; }
h2 { font-size: var(--step-h2); line-height: 1.14; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: var(--step-h3); line-height: 1.28; margin-bottom: 0.8rem; letter-spacing: -0.014em; }
h4 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.6rem; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color var(--t-base) var(--ease-out);
}
a:hover { color: var(--gold-light); }

.text-gold { color: var(--gold); }
.muted { color: var(--text-muted); }

/* Cifras alineadas en columnas y comparativas */
.stat-value,
.price-amount,
.price-value,
.total-value,
.roi-value,
table td, table th { font-variant-numeric: tabular-nums; }

/* =========================================================================
   SUPERFICIES DEL NAVEGADOR
   Selección, cursor, scrollbar y foco heredan la paleta, no el default.
   ========================================================================= */
::selection {
  background: rgba(201,162,75,0.28);
  color: var(--gold-bright);
}

body { caret-color: var(--gold); }

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

html {
  scrollbar-color: rgba(201,162,75,0.38) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(201,162,75,0.3);
  border: 3px solid var(--bg-deep);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,162,75,0.55); }

/* Salto al contenido para navegación por teclado */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 300;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--t-base) var(--ease-expo);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--bg-deep);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.navbar {
  background: rgba(6,8,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--t-base);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold-light); }

/* Blog nav link — gold underline */
.nav-blog {
  color: var(--gold) !important;
  position: relative;
  padding-bottom: 3px;
  font-weight: 600;
}
.nav-blog::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
}
.nav-blog:hover { color: var(--gold-light) !important; }

.nav-360 {
  padding: 5px 13px;
  border: 1px solid rgba(201,162,75,0.5);
  border-radius: var(--radius-pill);
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.78rem;
  transition: border-color var(--t-base), color var(--t-base);
}

.nav-360:hover {
  border-color: var(--gold);
  color: var(--gold-light) !important;
}

.nav-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep) !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--t-base);
}

.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,162,75,0.2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--t-base);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(6,8,15,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    text-align: center;
    align-items: center;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(201,162,75,0.08);
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  /* Blog link: keep gold styling, stack as full-width row */
  .nav-links .nav-blog {
    width: 100%;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(201,162,75,0.08);
    border-radius: 0;
    padding-bottom: 0.75rem;
  }
  .nav-links .nav-blog::after { display: none; }

  /* Contactar: pill button, centered, its own row */
  .nav-links .nav-cta {
    width: auto;
    margin: 0.6rem auto 0.4rem;
    padding: 10px 32px;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    border-bottom: none;
    display: inline-block;
  }

  /* El selector de idioma ya no vive dentro del menu: se queda en la cabecera,
     visible, entre el logo y el boton del menu. */
  .container-nav {
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 16px;
  }

  .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .logo-text { font-size: 1.05rem; }
  .logo-section { gap: 8px; }
}

/* =========================================================================
   PROMO BANNER (cuenta atras)
   ========================================================================= */
.promo-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  padding: 6px 20px;
  isolation: isolate;
}

.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
}

/* Sin versalitas: 60 caracteres en caja alta se leen letra a letra. El peso y
   el espaciado ya dan el enfasis. */
.promo-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bg-deep);
  letter-spacing: 0.01em;
}

/* Se ve solo mientras main.js no ha arrancado, y si no hay JS se queda. */
.promo-deadline {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bg-deep);
}

.promo-countdown {
  display: flex;
  align-items: center;
  gap: 7px;
}

.promo-countdown[hidden],
.promo-deadline[hidden] { display: none; }

.promo-unit {
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-digits {
  display: flex;
  gap: 3px;
}

/* tabular-nums: sin esto el contador baila cada vez que cambia un digito.
   Alto fijo porque las caras van absolutas: sin el, la caja colapsaria. */
.promo-digit {
  position: relative;
  overflow: hidden;
  min-width: 17px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Cada cifra rueda hacia arriba: la vieja sale por el techo y la nueva entra
   desde el suelo. Las dos caras solo conviven durante la animacion; main.js
   retira la saliente al terminar. */
.promo-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-face.is-entrante {
  animation: promo-entra 320ms var(--ease-expo);
  will-change: transform, opacity;
}

.promo-face.is-saliente {
  animation: promo-sale 320ms var(--ease-expo) forwards;
  will-change: transform, opacity;
}

@keyframes promo-entra {
  from { transform: translateY(105%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes promo-sale {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-105%); opacity: 0; }
}

/* Quien pide menos movimiento ve el numero cambiar, no rodar. */
@media (prefers-reduced-motion: reduce) {
  .promo-face.is-entrante,
  .promo-face.is-saliente { animation: none; }
}

.promo-unit-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-deep);
}

@media (max-width: 768px) {
  .promo-text,
  .promo-deadline { font-size: 11.5px; }
  .promo-banner { padding: 5px 14px; }
  .promo-inner { gap: 3px 9px; }
  .promo-countdown { gap: 6px; }
  .promo-digit { min-width: 15px; height: 16px; font-size: 11px; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease-expo),
    box-shadow var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -12px rgba(3,6,18,0.9), 0 4px 10px -3px rgba(3,6,18,0.65);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 3px 10px -4px rgba(3,6,18,0.7);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-secondary {
  background: rgba(201,162,75,0.08);
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(201,162,75,0.15);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.985);
  transition: transform 0.08s ease;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.2rem;
}

.btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-subtext {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  padding: 3.5rem 0 4rem;
  padding-top: calc(3.5rem + 115px);
  min-height: 85dvh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 1.6rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: var(--step-h1);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--step-lead);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.68;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.5rem + 1.1vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0; padding-top: calc(3rem + 96px); min-height: auto; }
  .hero-logo { width: 130px; height: 130px; margin-bottom: 1.5rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; align-items: center; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 2rem; padding-top: 2.5rem; margin-top: 2rem; }
}

/* =========================================================================
   PROBLEM SECTION
   ========================================================================= */
.problem {
  border-top: 1px solid var(--border);
}

.problem h2 {
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-base) var(--ease-expo),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.problem-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}

.icon-problem {
  color: var(--gold);
  margin-bottom: 1rem;
}

.problem-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================================================
   FEATURES SECTION
   ========================================================================= */
.features {
}

.features h2 {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-base) var(--ease-expo),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.feature-card::after {
  content: attr(data-num);
  position: absolute;
  right: 0.5rem;
  bottom: -0.5rem;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.055;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}

.feature-card:hover::after { opacity: 0.1; }

/* Icono suelto, sin la baldosa redondeada: el cuadradito con icono encima del
   titulo es el envoltorio por defecto y no aporta jerarquia. */
.feature-icon {
  display: flex;
  align-items: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-number { display: none; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.7;
  font-weight: 300;
}

/* =========================================================================
   VIDEO SECTION
   ========================================================================= */
.video-section {
}

.video-section h2 {
  margin-bottom: 0.5rem;
}

.video-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  text-align: center;
}

.video-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.video-container video {
  border-radius: var(--radius);
  box-shadow: 0 24px 44px -20px rgba(3,6,18,0.85), 0 6px 14px -5px rgba(3,6,18,0.6);
}

.video-container video {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #06080f;
  display: block;
}

/* =========================================================================
   BENEFITS SECTION
   ========================================================================= */
.benefits {
  border-top: 1px solid var(--border);
}

.benefits h2 {
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* Regla de 1px + sangrado lateral: marca el borde sin la barra de color
   maciza que delata una plantilla. */
.benefit-item {
  background:
    linear-gradient(90deg, rgba(201,162,75,0.09), rgba(201,162,75,0) 42%),
    rgba(255,255,255,0.022);
  border-left: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 2rem;
  transition:
    transform var(--t-base) var(--ease-expo),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.benefit-item:hover {
  background:
    linear-gradient(90deg, rgba(201,162,75,0.15), rgba(201,162,75,0) 46%),
    rgba(255,255,255,0.05);
  border-left-color: var(--gold-light);
  transform: translateX(6px);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================================
   PRICING SECTION
   ========================================================================= */
.pricing {
}

.pricing h2 { margin-bottom: 0.5rem; }

.pricing-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-modes-note {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 auto 3rem;
}

.pricing-modes-note strong {
  color: var(--text-secondary);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  max-width: 320px;
  margin: 0 auto 3rem;
}

.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(201,162,75,0.15), rgba(201,162,75,0.08));
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.price-original {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.6;
  font-weight: 400;
  vertical-align: middle;
}

.price-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.price-features li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.price-highlight {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.05rem;
}

.pricing-total {
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.total-calculation {
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-top: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.calc-row.total {
  border: none;
  padding: 1rem 0;
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.calc-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* =========================================================================
   CTA SECTION
   ========================================================================= */
.cta-section {
  border-top: 1px solid var(--border);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.cta-box h2 {
  margin-bottom: 0.5rem;
}

.cta-box p:nth-of-type(2) {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  width: 100%;
}

.contact-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  background: rgba(9,12,20,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.contact-form input::placeholder {
  color: var(--text-muted);
  opacity: 1; /* el opacity rebajaba el contraste por debajo de AA */
}

.contact-form input:focus-visible {
  outline: none;
  border-color: rgba(201,162,75,0.7);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.22);
}

.contact-form button {
  padding: 12px 32px;
  min-height: 44px;
  align-self: center;
}

/* ---- Privacy Checkbox ---- */
.privacy-check-wrapper {
  margin-bottom: 1.5rem;
  text-align: left;
}

.privacy-check-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.privacy-check-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  pointer-events: none;
}

.privacy-check-box {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold-dim);
  border-color: rgba(201,162,75,0.4);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.privacy-check-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  transition: all 0.15s ease;
}

.privacy-check-input:checked + .privacy-check-box {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 6px -2px rgba(3,6,18,0.7);
}

.privacy-check-input:checked + .privacy-check-box::after {
  border-color: #06080f;
  opacity: 1;
  visibility: visible;
}

.privacy-check-label:hover .privacy-check-input:not(:checked) + .privacy-check-box {
  border-color: var(--gold);
  background: rgba(201,162,75,0.08);
}

.privacy-check-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.privacy-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,162,75,0.4);
  transition: color 0.2s;
}

.privacy-link:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 7px;
  text-align: left;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(76,175,80,0.2);
  border: 1px solid rgba(76,175,80,0.4);
  color: #4caf50;
}

.form-message.error {
  background: rgba(231,76,60,0.2);
  border: 1px solid rgba(231,76,60,0.4);
  color: #ff6b6b;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}

.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.faq-item[open] {
  border-color: rgba(201,162,75,0.4);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--t-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* cta-box padding removed */
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: auto; }
  .contact-form button { width: 100%; justify-content: center; }
}

@media (hover: none) {
  .privacy-check-box,
  .privacy-check-box::after { transition: none; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: block;
}

.footer-logo-section h4 {
  color: var(--text);
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 42px;
}

/* h3 por jerarquia (venian de h4 saltandose un nivel), con el tamano de antes */
.footer-section h3 {
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

/* =========================================================================
   EJEMPLOS DE CREATIVIDADES
   ========================================================================= */

.examples-section {
  margin-top: 2.5rem;
  text-align: center;
}

.examples-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.examples-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.example-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}

.example-btn svg {
  pointer-events: none;
}

.example-btn:not(:disabled):hover {
  background: var(--gold-dim);
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
}

.example-btn:not(:disabled):active {
  background: var(--gold);
  color: var(--bg);
  transform: scale(0.97);
  transition: background 0.05s, color 0.05s, transform 0.05s;
}

.example-btn--soon {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--text-secondary);
}

.example-soon-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  color: var(--text-muted);
}

/* Modal */
.example-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.example-modal.active {
  display: flex;
}

.example-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 0;
}

.example-modal__content {
  position: relative;
  z-index: 10;
  max-width: 520px;
  width: 90%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-gold);
  padding: 1.5rem;
  animation: modalIn 0.25s ease;
  pointer-events: all;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.example-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast), border-color var(--t-fast);
  z-index: 20;
  pointer-events: all;
}

.example-modal__close:hover {
  color: var(--gold);
  border-color: var(--border-hover);
}

#exampleModalBody img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
}

#exampleModalBody video {
  display: block;
}

.carrusel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carrusel-img {
  flex: 1;
  min-width: 0;
}

.carrusel-arrow {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.carrusel-arrow:hover {
  background: var(--gold-dim);
  border-color: var(--border-hover);
}

.carrusel-counter {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .examples-buttons { flex-direction: column; align-items: center; }
  .example-btn { width: 100%; justify-content: center; max-width: 280px; padding: 1rem 2rem; min-height: 48px; }
}

.footer-section a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-base) var(--ease-out);
  color: var(--text-secondary);
}

.footer-social a:hover {
  color: var(--gold);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
}

.social-icon.whatsapp-thin {
  width: 21px;
  height: 21px;
}

/* =========================================================================
   UTILITIES & RESPONSIVE GLOBAL
   ========================================================================= */

/* =========================================================================
   REVELADO AL ENTRAR EN VIEWPORT
   Un solo gesto de entrada por sección, escalonado dentro de cada grupo.
   Sólo se oculta si el JS arrancó (.js-motion), así una carga fallida
   nunca deja contenido invisible.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 640ms var(--ease-expo),
      transform 640ms var(--ease-expo);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

/* Ritmo vertical fluido. El pie de cada sección lleva algo más de aire que la
   cabecera: matemáticamente simétrico se lee apretado por abajo. */
.problem,
.features,
.video-section,
.benefits,
.pricing,
.faq-section,
.cta-section {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) * 1.12);
}

/* Texto centrado en todas las secciones */
.hero, .problem, .features, .benefits, .pricing, .cta-section, .footer {
  text-align: center;
}

.benefits-grid, .footer-content { text-align: left; }
.benefit-item, .next-steps { text-align: left; }

/* El interior de las tarjetas se alinea a la izquierda: un párrafo de varias
   líneas centrado deja el borde izquierdo dentado y cuesta más de leer.
   Los encabezados de sección siguen centrados. */
.problem-card, .feature-card { text-align: left; }
.feature-card .feature-icon { align-self: flex-start; }
.problem-card p, .feature-card p { max-width: 42ch; }

/* Grids — colapsan a 1 columna en móvil */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  /* Los tamaños de encabezado los resuelve la escala fluida clamp() en :root */

  .problem-grid,
  .features-grid,
  .benefits-grid { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }

  .hero-stats { flex-direction: column; gap: 1.5rem; }

  /* cta-box padding removed */

  .footer-content { grid-template-columns: 1fr; }

  /* Pricing total */
  .total-calculation { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .container, .container-nav { padding: 0 16px; }

  .hero { padding: 2.5rem 0; padding-top: calc(2.5rem + 96px); }
  .problem, .features, .benefits, .pricing, .cta-section { padding: 3rem 0; }

  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .stat-value { font-size: 1.6rem; }

  .feature-card, .problem-card { padding: 1.5rem; }
  .feature-number { font-size: 3.5rem; }

  /* cta-box padding removed */
  .contact-form button { width: 100%; }
}

/* ---- Language switcher ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  border: 1px solid rgba(201,162,75,0.25);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  line-height: 1;
}
.lang-active {
  color: var(--gold);
  cursor: default;
  text-decoration: none;
}
.lang-sep {
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}
.lang-link {
  color: rgba(255,255,255,0.35);
  text-decoration: none !important;
  transition: color 0.2s;
}
.lang-link:hover { color: var(--gold); }

/* En escritorio el selector sigue a los enlaces con el mismo hueco que tenia
   cuando estaba dentro de .nav-links (2rem en vez de los 3rem del contenedor). */
.container-nav > .lang-switch { margin-left: -1rem; }

/* ---- Aviso de idioma ----
   Lo crea main.js solo si el idioma del navegador es el de la OTRA version.
   No redirige nunca: sugiere y deja decidir. position:fixed, asi que no empuja
   el contenido ni mueve la maquetacion (CLS 0). El top lo fija main.js segun
   la altura real de la cabecera. Por debajo de la cabecera (100) y del menu
   movil (200), por encima del contenido. */
.aviso-idioma {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--aviso-top, 96px);
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.aviso-idioma-box {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  background: rgba(14,19,32,0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  padding: 0.25rem 0.25rem 0.25rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.aviso-idioma-box p { margin: 0; }
.aviso-idioma-box a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.aviso-idioma-box a:hover { color: var(--gold-light); }
.aviso-idioma-box button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.aviso-idioma-box button:hover { color: var(--text); }
.aviso-idioma-box button:focus-visible,
.aviso-idioma-box a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }


/* =========================================================================
   AREAS DE TOQUE
   En pantallas tactiles todo control independiente necesita 44px de alto
   como minimo (WCAG 2.5.8). Medido antes de esto: el boton del menu movil
   estaba en 44x36, el toggle de precios en 153x37, los botones de cookies
   en 148x38 y los tres iconos del pie en 24x24.
   No se tocan los enlaces dentro de un parrafo: la norma los exime, y
   estirarlos rompe el interlineado del texto.
   ========================================================================= */
@media (max-width: 768px), (pointer: coarse) {
  .nav-toggle,
  .toggle-btn,
  .skip-link {
    min-height: 44px;
  }

  .toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Selector de idioma: cada mitad es una zona de 44px de alto. */
  .lang-switch {
    padding: 0;
    gap: 0;
  }
  .lang-active,
  .lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 44px;
  }
  .lang-sep { display: none; }

  /* El icono sigue midiendo 24px: lo que crece es la zona pulsable. */
  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .footer-social {
    margin-left: -10px;   /* compensa el hueco nuevo y mantiene la alineacion */
  }

  .footer-logo-section {
    min-height: 44px;
  }
}


/* =========================================================================
   Banner de cookies (Kit GDPR / Cookies UE, /cookies/cookie-consent.css)
   Aceptar y Rechazar comparten estilo: el kit los pinta con --cc-primary.
   El dorado sobre el fondo oscuro cumple AA (ver tokens); el texto del boton
   primario usa el fondo de la pagina, no blanco, para no bajar el contraste.
   ========================================================================= */
:root,
[data-cc-theme="dark"] {
  --cc-font: var(--font-body);
  --cc-font-size: 15px;
  --cc-title-weight: 600;
  --cc-bg: var(--surface);
  --cc-text: var(--text);
  --cc-muted: var(--text-secondary);
  --cc-border: rgba(201,162,75,0.28);
  --cc-link: var(--gold-light);
  --cc-primary: var(--gold);
  --cc-primary-text: var(--bg);
  --cc-primary-hover: var(--gold-light);
  --cc-secondary-bg: transparent;
  --cc-secondary-text: var(--text);
  --cc-secondary-border: rgba(238,242,248,0.28);
  --cc-secondary-hover: rgba(201,162,75,0.12);
  --cc-toggle-off: #3a4459;
  --cc-focus: var(--gold-light);
  --cc-radius: var(--radius);
  --cc-btn-radius: var(--radius-sm);
  --cc-shadow: var(--shadow-raised);
  --cc-backdrop: rgba(3,6,18,0.6);
}

/* Boton "Configurar cookies" del pie: parece un enlace mas de la lista */
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-link-btn:hover { color: var(--gold); }
.footer-link-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
