/* ════════════════════════════════════════════════════════════
   LEFUN PÁDEL CLUB — Landing AI-native (2026)
   Negro profundo + DORADO como acento "intelligent glow".
   (La marca usa dorado, no verde neón — coherente con el logo.)
   ════════════════════════════════════════════════════════════ */

:root {
  /* ── Tema OSCURO premium (por defecto) ── */
  --bg: #0a0a0a; /* negro profundo */
  --bg-2: #111111; /* grafito */
  --gold: #c89b3c; /* dorado premium */
  --gold-hi: #e3c071;
  --gold-soft: rgba(200, 155, 60, 0.5);
  --forest: #18392b; /* verde bosque oscuro */
  --forest-hi: #2f7d57; /* verde activo */
  --green: #2f7d57;
  --cream: #f5f3ee; /* blanco hueso (titulares) */
  --text: #cfcabf;
  --muted: #8a857b;
  --line: rgba(200, 155, 60, 0.16);
  --glass: rgba(255, 255, 255, 0.025);
  --nav-bg: rgba(10, 10, 10, 0.6);
  --card-bg: rgba(255, 255, 255, 0.028);
  --hero-glow: rgba(200, 155, 60, 0.09);
  --neural-rgb: 200, 155, 60;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.6);
  --display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --maxw: 1320px;
  --pad: 40px;
}

/* ── Tema CLARO (blanco hueso + dorado) ── */
[data-theme='light'] {
  --bg: #f5f3ee;
  --bg-2: #fffefb;
  --gold: #a87d22;
  --gold-hi: #7d5c10;
  --gold-soft: rgba(168, 125, 34, 0.4);
  --forest: #18392b;
  --forest-hi: #1f6b48;
  --green: #1f6b48;
  --cream: #14140f; /* titulares oscuros sobre fondo claro */
  --text: #353128;
  --muted: #6f6a5f;
  --line: rgba(168, 125, 34, 0.22);
  --glass: rgba(0, 0, 0, 0.018);
  --nav-bg: rgba(245, 243, 238, 0.82);
  --card-bg: rgba(255, 255, 255, 0.7);
  --hero-glow: rgba(168, 125, 34, 0.1);
  --neural-rgb: 168, 125, 34;
  --shadow-card: 0 20px 55px rgba(20, 20, 15, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ai {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

body.ai .mono {
  font-family: var(--mono);
}
body.ai .display {
  font-family: var(--display);
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--gold);
}
.dot {
  color: var(--gold);
}

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

/* ── Nav ── */
.ai-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ai-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--cream);
}
.ai-nav-brand img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 6px rgba(200, 155, 60, 0.35));
}
.ai-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ai-nav-links a {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.ai-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 0;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.28s ease;
}
.ai-nav-links a:hover {
  color: var(--cream);
}
.ai-nav-links a:hover::after {
  width: 100%;
}
.ai-nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-hi) !important;
  padding: 7px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.ai-nav-cta::after {
  display: none;
}
.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
}
.auth-theme {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
}
.ai-nav-cta:hover {
  background: var(--gold);
  color: #140e00 !important;
  box-shadow: 0 0 18px var(--gold-soft);
}

/* ════════════════ HERO ════════════════ */
.ai-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px var(--pad) 90px;
  overflow: hidden;
  /* Imagen de fondo + overlays para legibilidad. Sin `fixed` (es caro en scroll). */
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.4) 35%, rgba(8, 8, 10, 0.82) 95%),
    radial-gradient(75% 55% at 0% 50%, rgba(8, 10, 12, 0.55), transparent 60%),
    url('/public/img/hero-padel.jpg') center / cover no-repeat,
    var(--bg, #0b0b0d);
}
[data-theme='light'] .ai-hero {
  background:
    linear-gradient(180deg, rgba(245, 243, 238, 0.2) 0%, rgba(245, 243, 238, 0.05) 35%, rgba(245, 243, 238, 0.85) 95%),
    radial-gradient(75% 55% at 0% 50%, rgba(245, 243, 238, 0.25), transparent 60%),
    url('/public/img/hero-padel.jpg') center / cover no-repeat,
    var(--bg, #f5f3ee);
}

/* ── Atmósfera del sur de Chile (volcán + bosque + niebla, CSS puro) ── */
.atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.atmos-sky {
  position: absolute;
  inset: 0;
  /* Sutil viñeta + tinte dorado encima de la foto, sin tapar */
  background:
    radial-gradient(120% 80% at 75% 8%, rgba(212, 166, 74, 0.05), transparent 55%),
    radial-gradient(90% 60% at 20% 100%, rgba(24, 57, 43, 0.18), transparent 60%);
  opacity: 0.6;
}
/* Silueta de volcán (Villarrica) muy sutil al fondo */
.atmos-volcano {
  position: absolute;
  bottom: 16%;
  right: 8%;
  width: min(48vw, 620px);
  height: min(34vw, 420px);
  background: linear-gradient(180deg, rgba(24, 57, 43, 0.55), rgba(10, 10, 10, 0.1));
  clip-path: polygon(50% 0, 62% 22%, 100% 100%, 0 100%, 38% 22%);
  filter: blur(2px);
  opacity: 0.18;
}
.atmos-volcano::after {
  /* nieve en la cima */
  content: '';
  position: absolute;
  top: 0;
  left: 38%;
  width: 24%;
  height: 26%;
  background: linear-gradient(180deg, rgba(245, 243, 238, 0.22), transparent);
  clip-path: polygon(50% 0, 70% 60%, 58% 55%, 50% 75%, 42% 55%, 30% 60%);
}
/* Línea de bosque al pie */
.atmos-forest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 18px,
      rgba(24, 57, 43, 0.4) 18px 20px,
      transparent 20px 38px
    ),
    linear-gradient(180deg, transparent, rgba(24, 57, 43, 0.35));
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  opacity: 0.18;
  filter: blur(1px);
}
/* Niebla en movimiento muy lento */
.atmos-fog {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(245, 243, 238, 0.04), transparent 70%);
  filter: blur(30px);
}
.atmos-fog-1 {
  bottom: 18%;
  animation: fogDrift 26s ease-in-out infinite alternate;
}
.atmos-fog-2 {
  bottom: 32%;
  opacity: 0.25;
  animation: fogDrift 34s ease-in-out infinite alternate-reverse;
}
@keyframes fogDrift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}
[data-theme='light'] .atmos-volcano,
[data-theme='light'] .atmos-forest { opacity: 0.28; }
/* Cancha de pádel en CSS puro, estática, detrás del título.
   Sin filter:blur (caro) ni animación: bordes tenues dan el efecto difuso. */
.court-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.38;
  pointer-events: none;
}
/* Dentro del hero con foto: bajamos la opacidad para que no compita */
.ai-hero .court-bg { opacity: 0.12; }
.court-frame {
  position: relative;
  width: min(70vw, 760px);
  height: min(42vw, 440px);
  border: 1.5px solid rgba(201, 150, 47, 0.4);
  border-radius: 4px;
  box-shadow:
    0 0 60px rgba(201, 150, 47, 0.1),
    inset 0 0 80px rgba(201, 150, 47, 0.04);
  transform: perspective(900px) rotateX(34deg);
}
/* red central (la malla) */
.court-net {
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: translateY(-50%);
}
/* líneas de servicio */
.court-service {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 1.5px;
  background: var(--gold-soft);
}
.court-service-l { left: 22%; }
.court-service-r { right: 22%; }
/* línea media de saque */
.court-mid {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 1.5px;
  background: var(--gold-soft);
  transform: translateY(-50%);
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* glow dorado detrás del logo (lado derecho) */
    radial-gradient(900px 600px at 78% 35%, var(--hero-glow), transparent 60%),
    /* viñeta dorada-verde en la esquina inferior izquierda */
    radial-gradient(800px 600px at 10% 95%, rgba(46, 125, 79, 0.18), transparent 65%),
    /* máscara izquierda más oscura para legibilidad del título */
    linear-gradient(90deg, rgba(8, 8, 10, 0.5) 0%, transparent 55%),
    /* fade a fondo abajo, transición suave a la siguiente sección */
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}
.ai-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
/* Hero en 2 columnas: texto a la izquierda, logo a la derecha (legacy, login). */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
/* Hero del landing sin logo: una sola columna ancha. */
.hero-grid.hero-single {
  grid-template-columns: minmax(0, 1100px);
}
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo {
  display: block;
  width: clamp(220px, 30vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 50px rgba(200, 155, 60, 0.3));
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-wrap { order: -1; margin-bottom: 8px; }
  .hero-logo { width: clamp(150px, 40vw, 220px); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-hi);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--glass);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 16px;
  color: var(--cream);
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--gold);
}
.glow-breathe {
  text-shadow: 0 0 18px rgba(200, 155, 60, 0.3), 0 0 50px rgba(200, 155, 60, 0.16);
  animation: glowBreathe 5.5s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { text-shadow: 0 0 16px rgba(200, 155, 60, 0.22), 0 0 44px rgba(200, 155, 60, 0.1); }
  50% { text-shadow: 0 0 26px rgba(200, 155, 60, 0.48), 0 0 70px rgba(200, 155, 60, 0.22); }
}

/* Chips informativos del hero */
.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(8px);
}
.hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest-hi);
  box-shadow: 0 0 8px var(--forest-hi);
}
.hc-dot.ok {
  animation: pulse 2s ease-in-out infinite;
}

.hero-slogan {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  color: var(--gold-hi);
  min-height: 1.6em;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.caret {
  color: var(--gold);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botón neón (dorado) */
.btn-neo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #140e00;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 26px;
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(201, 150, 47, 0);
}
.btn-neo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px var(--gold-soft), 0 8px 30px rgba(0, 0, 0, 0.5);
}
.btn-neo .btn-arrow {
  transition: transform 0.2s ease;
}
.btn-neo:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-line {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold-hi);
  border: 1px solid var(--line);
  padding: 13px 22px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-line:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-soft);
  color: var(--cream);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stats > div:not(.sep) {
  display: flex;
  flex-direction: column;
}
.hero-stats b {
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.hero-stats span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-stats .sep {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ════════════════ SECCIONES ════════════════ */
.ai-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad);
  position: relative;
}

/* Fondo difuminado para la sección de servicios (gym + cafetería) */
.services-bg {
  max-width: none;
  isolation: isolate;
  overflow: hidden;
}
.services-bg > * { position: relative; z-index: 1; }
.services-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* La imagen es chica (800px) y se escala a cubrir → queda naturalmente
     difuminada sin usar filter:blur (que pinta el GPU continuamente). */
  background:
    linear-gradient(180deg, var(--bg, #0b0b0d) 0%, rgba(11, 11, 13, 0.7) 12%, rgba(11, 11, 13, 0.7) 88%, var(--bg, #0b0b0d) 100%),
    radial-gradient(70% 60% at 80% 30%, rgba(212, 166, 74, 0.08), transparent 60%),
    radial-gradient(70% 60% at 15% 80%, rgba(24, 57, 43, 0.18), transparent 60%),
    url('/public/img/services-bg.jpg') center / cover no-repeat;
  pointer-events: none;
}
[data-theme='light'] .services-bg-overlay {
  background:
    linear-gradient(180deg, var(--bg, #f4f2ed) 0%, rgba(244, 242, 237, 0.62) 12%, rgba(244, 242, 237, 0.62) 88%, var(--bg, #f4f2ed) 100%),
    radial-gradient(70% 60% at 80% 30%, rgba(184, 137, 58, 0.1), transparent 60%),
    radial-gradient(70% 60% at 15% 80%, rgba(24, 57, 43, 0.08), transparent 60%),
    url('/public/img/services-bg.jpg') center / cover no-repeat;
}
.services-bg .section-head,
.services-bg .svc-grid-6 {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 12px;
}
.section-head p {
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ── Experiencia: grid de 6 cards premium ── */
.svc-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px 28px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Glow dorado que sigue al hover, muy sutil */
.svc-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(280px 200px at 50% 0%, rgba(200, 155, 60, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow:
    0 0 0 1px var(--gold-soft),
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.svc-card:hover .svc-glow {
  opacity: 1;
}
/* Card destacada (Canchas) con tinte verde bosque */
.svc-card.feat {
  background: linear-gradient(160deg, rgba(24, 57, 43, 0.5), var(--card-bg) 60%);
  border-color: rgba(47, 125, 87, 0.35);
}
.svc-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  background: var(--glass);
  transition: all 0.25s ease;
}
.svc-icon svg {
  width: 24px;
  height: 24px;
}
.svc-card:hover .svc-icon {
  border-color: var(--gold);
  box-shadow: 0 0 18px var(--gold-soft);
  color: var(--gold-hi);
}
.svc-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 10px;
}
.svc-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--muted);
}
.svc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-hi);
  transition: gap 0.2s ease, text-shadow 0.2s ease;
}
.svc-link:hover {
  text-shadow: 0 0 12px var(--gold-soft);
}
.svc-meta {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-block;
}

/* ── Cómo reservar: 2 flujos (web / whatsapp) ── */
.flows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.flow-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.flow-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 22px 56px rgba(0, 0, 0, 0.5);
}
.flow-card.flow-wa {
  border-color: rgba(47, 125, 87, 0.3);
}
.flow-card.flow-wa:hover {
  border-color: var(--forest-hi);
  box-shadow: 0 0 0 1px rgba(47, 125, 87, 0.4), 0 22px 56px rgba(0, 0, 0, 0.5);
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.flow-ic {
  font-size: 2rem;
  filter: grayscale(0.2);
}
.flow-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.flow-wa .flow-kicker {
  color: var(--green);
}
.flow-head h3 {
  font-size: 1.45rem;
  color: var(--cream);
  margin: 2px 0 0;
}
.flow-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.flow-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fl-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.flow-wa .fl-num {
  border-color: var(--green);
  color: #5fc188;
}
.flow-list li div {
  display: flex;
  flex-direction: column;
}
.flow-list li b {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 2px;
}
.flow-list li span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.flow-card .btn-neo {
  align-self: flex-start;
}
.wa-soon {
  align-self: flex-start;
  font-size: 0.78rem;
  color: #5fc188;
  border: 1px solid rgba(46, 125, 79, 0.4);
  border-radius: 8px;
  padding: 11px 18px;
}
/* Botón WhatsApp (verde) */
.btn-wa {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #06281a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.btn-wa:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.4);
  color: #06281a;
}
.btn-wa-ic {
  font-size: 1.05rem;
}

/* ── Footer ── */
.ai-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 56px var(--pad) 28px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold-hi);
}
.footer-base {
  max-width: var(--maxw);
  margin: 36px auto 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* ════════════════ AUTH (login / registro) ════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 22px 40px;
  position: relative;
  overflow: hidden;
}
.auth-wrap .court-bg {
  opacity: 0.28;
}
.auth-card {
  position: relative;
  z-index: 3;
  width: min(420px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 38px 34px;
  box-shadow: 0 0 40px var(--hero-glow), var(--shadow-card);
}
.auth-head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-head img {
  width: 110px;
  height: 110px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(200, 155, 60, 0.3));
}
.auth-head h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 4px;
}
.auth-head .sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.auth-card form {
  display: flex;
  flex-direction: column;
}
.auth-card label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}
.auth-card input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 47, 0.12);
}
.auth-card .field-hint {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 6px;
}
.auth-submit {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.auth-alt {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-alt a {
  color: var(--gold-hi);
}
.auth-alt a:hover {
  text-shadow: 0 0 10px var(--gold-soft);
}
.auth-error {
  background: rgba(178, 58, 58, 0.14);
  border: 1px solid #b23a3a;
  color: #e0908f;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

/* Aviso "viene de WhatsApp" en el login */
.wa-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.04));
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 4px;
  animation: waHintIn 0.3s ease;
}
@keyframes waHintIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.wa-hint-ico {
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 2px;
}
.wa-hint-body { flex: 1; font-size: 0.88rem; line-height: 1.5; }
.wa-hint-body strong { color: var(--text-cream, #f5f3ee); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.wa-hint-body p { margin: 0 0 10px; color: var(--text-muted, #a8a297); }
.wa-hint-btn { width: 100%; margin-top: 4px; }
.wa-hint-sent { background: linear-gradient(135deg, rgba(212, 166, 74, 0.14), rgba(212, 166, 74, 0.04)); border-color: rgba(212, 166, 74, 0.32); }
.wa-hint-sent .wa-hint-body p { margin-bottom: 0; }
.auth-back {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-back:hover {
  color: var(--gold-hi);
}

/* ── Reveal (de-blur + fade-up) ── */
.reveal,
.reveal-up {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(18px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.reveal.in,
.reveal-up.in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .reveal-up {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .svc-grid-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --pad: 22px; }
  .ai-nav-links { gap: 14px; }
  .ai-nav-links a:not(.ai-nav-cta):not([data-theme-toggle]) { display: none; }
  .svc-grid-6 { grid-template-columns: 1fr; }
  .flows-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .ai-hero { padding-top: 110px; }
  .court-frame { transform: perspective(900px) rotateX(30deg); }
  .atmos-volcano { opacity: 0.3; }
}
