/* ============================================================
   ALFA START ONLINE — CSS Principal
   Mobile First | Sin dependencias externas
   ============================================================ */

/* === 1. VARIABLES === */
:root {
  /* ——————————————————————————————————
     PALETA OFICIAL ALFA START ONLINE
     Negro #000000 | Amarillo #f2b705
     Blanco #ffffff | Rojo #d90429
     —————————————————————————————————— */
  --color-navy:        #000000;  /* negro principal — fondos oscuros */
  --color-navy-mid:    #111111;  /* negro secundario */
  --color-navy-light:  #1c1c1c;  /* negro terciario */
  --color-blue:        #f2b705;  /* AMARILLO institucional (reemplaza azul) */
  --color-blue-light:  #f5c82a;  /* amarillo claro */
  --color-red:         #d90429;  /* ROJO institucional */
  --color-red-dark:    #b00020;
  --color-red-light:   #ff1f42;

  /* Marca directa */
  --color-yellow:      #f2b705;
  --color-yellow-dark: #d4a004;
  --color-yellow-glow: rgba(242,183,5,0.25);

  /* Neutros */
  --color-white:       #ffffff;
  --color-off-white:   #f5f5f5;
  --color-gray-100:    #f0f0f0;
  --color-gray-200:    #e0e0e0;
  --color-gray-300:    #c0c0c0;
  --color-gray-400:    #909090;
  --color-gray-500:    #666666;
  --color-gray-700:    #333333;
  --color-dark:        #080808;
  --color-text:        #111111;
  --color-text-muted:  #666666;

  /* Tipografía */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, Consolas, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Bordes */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --shadow:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-xl:   0 25px 50px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 30px rgba(242,183,5,0.3);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition:        250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  1200px;
  --header-height:  72px;
}

/* === 2. RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* === 3. SKIP LINK (accesibilidad) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-2);
}

/* === 4. LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: var(--space-16) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-24) 0;
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--navy-mid {
  background-color: var(--color-navy-mid);
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-off-white);
}

.section--gray {
  background-color: var(--color-gray-100);
}

/* === 5. TIPOGRAFÍA === */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
}

.section-label--light {
  color: var(--color-red-light);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.section-title--white {
  color: var(--color-white);
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 620px;
}

.section-subtitle--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle--white {
  color: var(--color-gray-300);
}

@media (min-width: 768px) {
  .section-title { font-size: var(--text-3xl); }
}
@media (min-width: 1024px) {
  .section-title { font-size: var(--text-4xl); }
}

/* Cabecera de sección centrada */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

/* === 6. BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* Primary (amarillo institucional) */
.btn--primary {
  background: var(--color-yellow);
  color: #000000;
  border-color: var(--color-yellow);
  font-weight: var(--fw-bold);
}
.btn--primary:hover {
  background: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
  transform: translateY(-2px);
  box-shadow:
    0 6px 32px rgba(242,183,5,0.55),
    0 2px 8px  rgba(242,183,5,0.30),
    0 0  0 1px rgba(242,183,5,0.20);
}

/* Secondary (outline blanco) */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

/* Outline dark */
.btn--outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* WhatsApp */
.btn--wa {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}
.btn--wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}

/* Tamaños */
.btn--sm {
  padding: 0.5rem var(--space-4);
  font-size: var(--text-sm);
}
.btn--lg {
  padding: 1.1rem var(--space-8);
  font-size: var(--text-lg);
}
.btn--full {
  width: 100%;
}

/* === 7. HEADER & NAV === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(13,27,46,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
  font-size: 1rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-white);
}

.logo-alfa  { color: var(--color-white); }
.logo-start { color: var(--color-gray-300); }
.logo-online {
  color: var(--color-red);
  font-size: 0.7em;
  letter-spacing: 0.1em;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 1010;
}

.burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-toggle.is-active .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav mobile */
.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-navy-mid);
  padding: var(--space-4) 0 var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 999;
  border-bottom: 2px solid var(--color-red);
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-5);
}

.nav-link {
  display: block;
  padding: var(--space-3) 0;
  color: var(--color-gray-300);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-white);
}

.nav-link--active {
  color: var(--color-red-light);
  font-weight: var(--fw-semibold);
}

.nav-item--cta { border-bottom: none; padding-top: var(--space-4); }

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  backdrop-filter: blur(3px);
}
.nav-overlay.is-visible { display: block; }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    border-bottom: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    border-bottom: none;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .nav-link:hover::after,
  .nav-link--active::after {
    transform: scaleX(1);
  }

  .nav-item--cta { padding-top: 0; margin-left: var(--space-2); }
}

/* === 8. HERO — Ciudad nocturna institucional === */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #000;
  overflow: hidden;
  padding-top: var(--header-height);
}

/*
 * ::before — overlay compuesto sobre la ciudad
 * Gradiente horizontal con 8 paradas para transición completamente suave,
 * sin línea vertical visible. Viñeta vertical + glow amarillo institucional.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.98)  0%,
      rgba(0,0,0,0.92) 20%,
      rgba(0,0,0,0.85) 35%,
      rgba(0,0,0,0.70) 50%,
      rgba(0,0,0,0.45) 65%,
      rgba(0,0,0,0.20) 80%,
      rgba(0,0,0,0.08) 90%,
      transparent      100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0.65) 0%,
      transparent      22%,
      transparent      72%,
      rgba(0,0,0,0.80) 100%
    ),
    radial-gradient(ellipse 52% 68% at 83% 52%,
      rgba(242,183,5,0.18) 0%,
      transparent          62%
    );
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ::after — dot grid corporativo con fade suave en todos los bordes */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(255,255,255,0.030) 1px, transparent 1px);
  background-size: 38px 38px;
  /* Máscara radial: dots se disuelven hacia los 4 bordes, sin líneas duras */
  mask-image: radial-gradient(
    ellipse 75% 75% at 55% 50%,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.35) 50%,
    transparent      80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 75% 75% at 55% 50%,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.35) 50%,
    transparent      80%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: var(--space-16) 0 var(--space-12);
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(242,183,5,0.15);
  border: 1px solid rgba(242,183,5,0.4);
  color: var(--color-red-light);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--color-yellow);
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-300);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* Trust pills bajo los CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.trust-pill svg {
  color: var(--color-yellow);
  flex-shrink: 0;
}

/*
 * Mobile: agente compacto arriba, texto abajo
 * Desktop: grid 52/48 — texto izq, agente der anclado al suelo
 * El agente usa sizing por ALTURA (clamp) para llenar el hero
 * como figura protagonista
 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  order: -1;
  margin-bottom: var(--space-3);
  max-height: 240px;
  overflow: hidden;
}

@media (min-width: 480px) {
  .hero-visual { max-height: 280px; }
}

@media (min-width: 768px) {
  .hero-title    { font-size: var(--text-5xl); }
  .hero-subtitle { font-size: var(--text-xl); }
  .hero-visual   { max-height: 340px; }
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    /*
     * Texto ocupa 58% — zona protegida amplia
     * Columna derecha (agente) es "marcador de espacio" en el grid
     * El agente real está absolute al hero, no dentro del grid
     */
    grid-template-columns: 58fr 42fr;
    align-items: center;
    gap: var(--space-12);
  }
  .hero-title { font-size: var(--text-6xl); }
  .hero-visual {
    order: 0;
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
    /* Solo un marcador de espacio — el agente es absolute al hero */
    position: static;
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-6) 0 var(--space-10);
  }
}

/* === 9. INDICADORES DE CONFIANZA === */
.trust-bar {
  background: var(--color-navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(242,183,5,0.15);
  border: 1px solid rgba(242,183,5,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-red-light);
}

.trust-item-text strong {
  display: block;
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.trust-item-text span {
  color: var(--color-gray-400);
  font-size: var(--text-xs);
}

@media (min-width: 640px) {
  .trust-bar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* === 10. TARJETAS DE SERVICIO === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  border-color: var(--color-gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--dark {
  background: var(--color-navy-mid);
  border-color: rgba(255,255,255,0.06);
  color: var(--color-white);
}

.service-card--dark:hover {
  border-color: rgba(242,183,5,0.45);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(242,183,5,0.1);
  border: 1px solid rgba(242,183,5,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-red);
}

.service-card--dark .service-icon {
  background: rgba(242,183,5,0.15);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
  color: var(--color-navy);
}

.service-card--dark h3 { color: var(--color-white); }

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-card--dark p { color: var(--color-gray-400); }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-red);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  transition: gap var(--transition-fast);
}

.service-card-link:hover { gap: var(--space-2); }

/* === 11. PLANES === */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--color-red);
}

.plan-card--featured {
  border-color: var(--color-red);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
  transform: scale(1.02);
}

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

.plan-badge-top {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-yellow);
  color: #000000;
  font-size: var(--text-xs);
  font-weight: var(--fw-black);
  padding: var(--space-1) var(--space-4);
  border-radius: 0 0 var(--radius) var(--radius);
  white-space: nowrap;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.plan-name {
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.plan-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.plan-price-block {
  background: var(--color-off-white);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}

.plan-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-1) 0;
}

.plan-price-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.plan-price-value {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
}

.plan-price-value--highlight {
  color: var(--color-red);
  font-size: var(--text-xl);
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-3) 0;
}

.plan-includes-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.plan-features {
  flex: 1;
  margin-bottom: var(--space-6);
}

.plan-feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
}

.plan-feature:last-child { border-bottom: none; }

.plan-feature-check {
  width: 18px;
  height: 18px;
  background: rgba(242,183,5,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-red);
}

.plan-bonus {
  background: rgba(242,183,5,0.07);
  border: 1px solid rgba(242,183,5,0.2);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-red-dark);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}

.plan-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-3);
}

/* === 12. COMPARATIVA DE PLANES (tabla) === */
.plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
}

.plan-compare-table thead th {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--fw-bold);
}

.plan-compare-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}
.plan-compare-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.plan-compare-table thead th.featured-col {
  background: var(--color-red);
}

.plan-compare-table tbody tr:nth-child(even) {
  background: var(--color-gray-100);
}

.plan-compare-table tbody td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-text);
}

.plan-compare-table tbody td:first-child {
  font-weight: var(--fw-medium);
  color: var(--color-gray-700);
}

.check-yes {
  color: #16a34a;
  font-weight: var(--fw-bold);
}
.check-no {
  color: var(--color-gray-400);
}

@media (min-width: 768px) {
  .plan-compare-table { display: table; }
}

/* === 13. SECCIÓN SPLIT (texto + imagen) === */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.split-section--reverse {}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .split-section--reverse .split-content { order: 2; }
  .split-section--reverse .split-visual  { order: 1; }
}

.split-visual {
  position: relative;
}

.split-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-img-placeholder--dark {
  background: #05070b;
}

.split-img-placeholder svg {
  opacity: 0.15;
}

.split-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-yellow);
  color: #000000;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--fw-black);
  font-size: var(--text-sm);
  box-shadow: 0 4px 20px rgba(242,183,5,0.4);
  letter-spacing: 0.02em;
  z-index: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(242,183,5,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-red);
}

.feature-item h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === 14. ESTADÍSTICAS / NÚMEROS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  color: var(--color-red-light);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-300);
}

/* === 15. FORMULARIO === */
.form-section {
  background: var(--color-navy);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(242,183,5,0.08), transparent 60%);
  pointer-events: none;
}

.form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.875rem var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.2);
}

.form-control.is-invalid {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.1);
}

.form-control::placeholder { color: var(--color-gray-400); }

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-red);
  margin-top: var(--space-1);
}

.form-control.is-invalid + .form-error { display: block; }

/* Campo honeypot: ocultar a usuarios reales */
.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

/* Alerta success/error */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  display: none;
}

.alert--success {
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.3);
  color: #15803d;
}

.alert--error {
  background: rgba(242,183,5,0.08);
  border: 1px solid rgba(242,183,5,0.25);
  color: var(--color-red-dark);
}

/* === 16. FAQ === */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  background: transparent;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-red); }

.faq-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition-fast);
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-question { color: var(--color-red); }
.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
  background: var(--color-red);
  color: var(--color-white);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding var(--transition);
}

.faq-answer-inner {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* === 17. CTA FINAL === */
.cta-final {
  background: linear-gradient(135deg, #000000 0%, #0d0d00 55%, #1a1500 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(242,183,5,0.15);
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(242,183,5,0.2), transparent 65%);
  pointer-events: none;
}

.cta-final .section-title { font-size: var(--text-3xl); }
.cta-final .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 auto var(--space-8); }

.cta-final-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-final .section-title { font-size: var(--text-4xl); }
}

/* === 18. FOOTER === */
.site-footer {
  background: var(--color-navy);
  color: var(--color-gray-300);
}

.footer-top {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1.5fr 1.5fr 2fr; }
}

.footer-col--brand {}

.footer-logo {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.footer-badge {
  display: inline-flex;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

.badge--live {
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.3);
  color: #4ade80;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.footer-contact li svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }

.footer-contact a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--color-white); }

.footer-wa-btn { margin-top: var(--space-2); }

.footer-bottom {
  padding: var(--space-5) 0;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-align: center;
}

.footer-sep {
  margin: 0 var(--space-2);
  opacity: 0.4;
}

/* === 19. WHATSAPP FLOTANTE === */
.wa-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 990;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
  transform: translateY(-2px) scale(1.03);
}

.wa-float-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

/* En mobile, solo ícono */
@media (max-width: 480px) {
  .wa-float { padding: var(--space-4); border-radius: 50%; }
  .wa-float-label { display: none; }
}

/* === 20. HERO VISUAL DECORATIVO === */
.hero-deco-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-deco-metric {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-deco-metric:last-child { border-bottom: none; }

.hero-deco-icon {
  width: 48px;
  height: 48px;
  background: rgba(242,183,5,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red-light);
  flex-shrink: 0;
}

.hero-deco-metric h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
}

.hero-deco-metric p {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

/* === 21. PAGE HERO (interno) === */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-gray-300);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: var(--text-5xl); }
}

/* === 22. CHIPS / TAGS === */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-gray-700);
}

.chip--red {
  background: rgba(242,183,5,0.08);
  border-color: rgba(242,183,5,0.2);
  color: var(--color-red-dark);
}

/* === 23. COBERTURA / MAPA VISUAL === */
.coverage-box {
  background: var(--color-navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}

.coverage-box h3 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.coverage-box p {
  color: var(--color-gray-400);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.coverage-zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.zone-badge {
  background: rgba(242,183,5,0.15);
  border: 1px solid rgba(242,183,5,0.25);
  color: var(--color-red-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

/* === 24. TESTIMONIAL / QUOTE === */
.quote-block {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
}

.quote-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
}

/* === 25. ANIMACIONES === */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease forwards;
}

/* Intersección observer: elementos que entran en viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 26. UTILIDADES === */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-red     { color: var(--color-red); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.text-sm      { font-size: var(--text-sm); }

.fw-bold   { font-weight: var(--fw-bold); }
.fw-black  { font-weight: var(--fw-black); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none !important; }

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

/* === 27. PÁGINA CONTACTO === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; }
}

.contact-info-box {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  color: var(--color-white);
  height: fit-content;
}

.contact-info-box h2 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.contact-info-box p {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.contact-data-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.contact-data-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-data-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-red-light);
}

.contact-data-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
}

.contact-data-item span,
.contact-data-item a {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.contact-data-item a:hover { color: var(--color-white); }

/* === 28. ADMIN STYLES (importado desde admin/assets/admin.css) === */
/* Ver /admin/assets/admin.css */

/* === 29. PÁGINA ÉXITO === */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  padding: var(--space-8);
}

.success-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(22,163,74,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: #16a34a;
}

/* === 30. BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.breadcrumb a { color: var(--color-gray-400); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-sep { opacity: 0.4; }

/* === 31. STICKY BODY OFFSET === */
body {
  padding-top: var(--header-height);
}

/* Para las páginas con hero fullscreen no aplicar el offset */
body.hero-fullscreen {
  padding-top: 0;
}

/* ============================================================
   32. BRANDING — LOGO IMAGEN
   ============================================================ */

/* Logo imagen en header y footer */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Sobre fondo oscuro: invertir negro a blanco */
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast);
}

/* En fondos claros usar logo negro (sin filtro) */
.logo-img--dark {
  filter: none;
}

/* Contenedor del logo en header */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-subbrand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-subbrand-main {
  font-size: 0.65rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.logo-subbrand-sub {
  font-size: 0.55rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Footer logo */
.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
  margin-bottom: var(--space-4);
}

/* ============================================================
   33. HERO AGENT IMAGE — PNG transparente, integración total
   ============================================================ */

/*
 * AGENTE:
 * PNG con canal alpha real → no necesita mix-blend-mode ni brightness hacks
 * drop-shadow para volumen y separación del fondo de ciudad
 * mask-image gradient → pies del agente se disuelven en el fondo
 * animation agent-float → flotado suave 6px, sensación viva
 */
/*
 * HERO AGENT WRAP
 * En desktop: position:absolute sobre todo el panel derecho
 * El agente crece por ALTURA hasta 88vh — sizing cinematográfico
 * El ancho se calcula solo (width:auto) preservando proporción
 */
.hero-agent-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  animation: agent-float 7s ease-in-out infinite;
  /* en mobile: dentro del flujo normal */
  width: 100%;
}

/*
 * IMAGEN:
 * height: clamp → mínimo 480px, ideal 84vh, máximo 920px
 * width: auto   → respeta proporción del PNG transparente
 * max-width: none → NO cap horizontal (se escala con la altura)
 * La imagen ancla al fondo (align-items: flex-end en el wrapper)
 * drop-shadow doble: sombra profunda + halo amarillo suave
 * mask gradient: disolución empieza al 68%, visible casi entero
 */
.hero-agent-img {
  display: block;
  position: relative;
  z-index: 2;
  /* ——— TAMAÑO PROTAGONISTA ——— */
  height: clamp(380px, 60vw, 580px);   /* mobile/tablet base */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  /* ——— PROFUNDIDAD ——— */
  filter:
    drop-shadow(0 32px 56px rgba(0,0,0,0.80))
    drop-shadow(0  0  40px rgba(242,183,5,0.12))
    drop-shadow(0 -4px 20px rgba(242,183,5,0.06));
  /* ——— DISOLUCIÓN INFERIOR ——— */
  mask-image: linear-gradient(
    to bottom,
    black            0%,
    black           68%,
    rgba(0,0,0,0.35) 86%,
    transparent     100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black            0%,
    black           68%,
    rgba(0,0,0,0.35) 86%,
    transparent     100%
  );
}

/* ——— DESKTOP: agente anclado al borde DERECHO del hero ——— */
@media (min-width: 1024px) {
  .hero-agent-wrap {
    /*
     * Absolute relativo a .hero (position:relative)
     * right:0 → pegado al borde derecho del contenedor
     * width fijo → garantiza que el agente NUNCA desborda hacia el texto
     * El texto vive en el 58% izquierdo; el agente en el 42% derecho
     */
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: clamp(360px, 42vw, 620px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: visible;               /* permite sangrar hacia la derecha */
  }
  .hero-agent-img {
    /*
     * height: 100% → llena la altura del contenedor (= altura del hero)
     * max-height → cap absoluto para pantallas muy altas
     * max-width: 100% → nunca desborda el ancho del wrap
     * object-fit: contain → sin distorsión si alguna dimensión se satura
     * object-position: bottom → ancla los pies al suelo
     */
    height: 100%;
    max-height: clamp(520px, 88vh, 940px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
    /* sangra 3% a la derecha — efecto de escena sin tocar el texto */
    margin-right: -3%;
  }
}

/* Pantallas grandes — más margen derecho, figura aún más imponente */
@media (min-width: 1280px) {
  .hero-agent-wrap {
    width: clamp(440px, 44vw, 680px);
  }
  .hero-agent-img {
    max-height: clamp(600px, 90vh, 980px);
    margin-right: -4%;
  }
}

/* Separador eliminado — causaba el corte vertical visible.
   El hero::before ya cubre la zona con gradiente full-width suave. */

/* Halo/glow amarillo pulsante — escalado al nuevo tamaño */
.hero-agent-wrap::before {
  content: '';
  position: absolute;
  inset: -5% -10%;             /* más grande que el contenedor */
  z-index: 1;
  background: radial-gradient(
    ellipse 70% 65% at 55% 48%,
    rgba(242,183,5,0.30) 0%,
    rgba(242,183,5,0.10) 42%,
    transparent          68%
  );
  filter: blur(30px);
  pointer-events: none;
  animation: glow-pulse 4.5s ease-in-out infinite;
}

/* Sombra de suelo — más ancha para sostener la figura grande */
.hero-agent-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(242,183,5,0.32) 0%, transparent 68%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

/* ——— MOBILE < 480px ——— */
@media (max-width: 479px) {
  .hero-agent-img {
    height: clamp(220px, 52vw, 300px);
    mask-image: linear-gradient(
      to bottom, black 0%, black 50%, transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom, black 0%, black 50%, transparent 100%
    );
  }
}

/* ——— TABLET 480–1023px ——— */
@media (min-width: 480px) and (max-width: 1023px) {
  .hero-agent-wrap { justify-content: center; }
  .hero-agent-img {
    height: clamp(280px, 48vw, 420px);
  }
}

/* ============================================================
   34. HERO DECORATIVO — actualizar colores a marca
   ============================================================ */

/* Badge "live" en header hero */
.hero-badge {
  background: rgba(242,183,5,0.1);
  border: 1px solid rgba(242,183,5,0.35);
  color: var(--color-yellow);
}

/* Ajuste de la deco card del hero */
.hero-deco-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(242,183,5,0.12);
}

.hero-deco-metric {
  border-bottom-color: rgba(242,183,5,0.07);
}

/* zone-badge amarillo */
.zone-badge {
  background: rgba(242,183,5,0.12);
  border: 1px solid rgba(242,183,5,0.25);
  color: var(--color-yellow);
  font-weight: var(--fw-semibold);
}

/* badge live — monitoreo activo */
.badge--live {
  background: rgba(242,183,5,0.1);
  border: 1px solid rgba(242,183,5,0.3);
  color: var(--color-yellow);
}

.badge-dot {
  background: var(--color-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ==========================================
   35 — SPLIT AGENT IMAGE (servicios.php)
   ========================================== */
.split-agent-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy);
}

.split-agent-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(242,183,5,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.split-agent-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: luminosity;
  border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
  .split-agent-img {
    max-height: 360px;
    object-fit: cover;
    object-position: top center;
  }
}

/* ============================================================
   36. HERO BACKGROUND — Ciudad nocturna animada
   ============================================================ */

/*
 * .hero-bg — div posicionado absolute dentro de .hero
 * Contiene la imagen de casino-mardel.jpg
 * Se extiende 6% más allá del contenedor para permitir el drift
 * filter oscurece + desatura la foto para tono institucional
 * animation: drift suave en 28s, sensación cinematográfica
 */
.hero-bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image: url('/assets/img/hero/casino-mardel.jpg');
  background-size: cover;
  background-position: center 38%;
  filter: brightness(0.50) saturate(0.60) contrast(1.08);
  animation: hero-bg-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-bg-drift {
  0%   { transform: scale(1.00) translate(  0px,  0px); }
  100% { transform: scale(1.05) translate(-10px, -5px); }
}

/* ============================================================
   37. ANIMACIONES HERO — performance-safe
   ============================================================ */

/* Flotado suave del agente — 7s muy lento */
@keyframes agent-float {
  0%   { transform: translateY(  0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(  0px); }
}

/* Glow pulsante del halo amarillo */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1.00); }
  50%       { opacity: 1.00; transform: scale(1.04); }
}

/* Shimmer suave en el CTA principal del hero */
@keyframes cta-shimmer {
  0%   { box-shadow: 0 4px 24px rgba(242,183,5,0.30), 0 0 0 0 rgba(242,183,5,0.18); }
  50%  { box-shadow: 0 6px 36px rgba(242,183,5,0.50), 0 0 0 6px rgba(242,183,5,0.00); }
  100% { box-shadow: 0 4px 24px rgba(242,183,5,0.30), 0 0 0 0 rgba(242,183,5,0.00); }
}

/* Aplicar shimmer al botón CTA principal dentro del hero */
.hero .btn--primary {
  animation: cta-shimmer 3.5s ease-in-out infinite;
}
.hero .btn--primary:hover {
  animation: none;
  box-shadow:
    0 6px 32px rgba(242,183,5,0.55),
    0 2px 8px  rgba(242,183,5,0.30),
    0 0  0 1px rgba(242,183,5,0.20);
}

/* ============================================================
   38. ACCESIBILIDAD — prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg          { animation: none; transform: scale(1.03); }
  .hero-agent-wrap  { animation: none; }
  .hero-agent-wrap::before { animation: none; opacity: 0.80; }
  .hero .btn--primary      { animation: none; }
}
