/* ==========================================================================
   COPYCOM · SISTEMA PARA BARES Y RESTAURANTES
   Hoja de estilos principal: Tokens de diseño, temas claro/oscuro y responsive
   WCAG 2.2 AA compliant · Mobile-First (320px+)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS DE DISEÑO (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Tipografías */
  --font-heading: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Escala de espaciado */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Radios de borde */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Tiempos de transición */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* PALETA MODO CLARO (Default - Fondo marfil / Gris muy claro, Azul noche, Acentos esmeralda) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;        /* Azul noche profundo */
  --text-muted: #475569;       /* Gris azulado de alto contraste */
  --text-subtle: #64748b;
  --text-inverse: #f8fafc;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0284c7;

  /* Acentos de marca Copycom & Sistema */
  --brand-blue: #2563eb;
  --brand-cyan: #0284c7;
  --brand-emerald: #059669;
  --brand-emerald-light: #10b981;
  --brand-purple: #7c3aed;
  --brand-amber: #d97706;
  --brand-red: #dc2626;

  /* Degradados modernos */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #0284c7 50%, #059669 100%);
  --grad-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-hero-bg: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
                  radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  --grad-card-glow: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* WhatsApp oficial */
  --wa-color: #25d366;
  --wa-color-dark: #128c7e;
  --wa-glow: rgba(37, 211, 102, 0.35);

  /* Anchos de layout */
  --container-max: 1200px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   2. PALETA MODO OSCURO (Activada mediante [data-theme="dark"])
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-subtle: #131d31;
  --bg-glass: rgba(15, 23, 42, 0.88);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  --border-subtle: #1e293b;
  --border-strong: #334155;
  --border-focus: #38bdf8;

  --brand-blue: #3b82f6;
  --brand-cyan: #38bdf8;
  --brand-emerald: #10b981;
  --brand-emerald-light: #34d399;
  --brand-purple: #a78bfa;
  --brand-amber: #fbbf24;
  --brand-red: #ef4444;

  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #38bdf8 50%, #10b981 100%);
  --grad-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-hero-bg: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.16) 0%, transparent 40%),
                  radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.14) 0%, transparent 40%);
  --grad-card-glow: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   3. RESET, TIPOGRAFÍA & BASES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image: var(--grad-hero-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link de accesibilidad para lectores de pantalla y teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 99999;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
}

/* Focus visible universal para WCAG 2.2 AA */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

/* Enlaces de ancla con compensación de altura del header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTENEDORES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: var(--space-sm);
}

[data-theme="dark"] .section-tag {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-cyan);
  border-color: rgba(56, 189, 248, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. COMPONENTES: BOTONES & CONTROLES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 44px; /* WCAG touch target */
  min-width: 44px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--wa-color);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--wa-glow);
}

.btn-whatsapp:hover {
  background-color: var(--wa-color-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--wa-glow);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 180px;
  height: 45px;
  color: var(--text-main);
}

/* Nav Desktop */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
  }

  .nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.25rem;
    position: relative;
  }

  .nav-link:hover {
    color: var(--brand-blue);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--grad-primary);
    transition: width var(--transition-fast);
  }

  .nav-link:hover::after {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botón Switch Tema (Claro / Oscuro) */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.theme-icon-sun, .theme-icon-moon {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Botón Hamburguesa Móvil */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Drawer / Menú Móvil Desplegable */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 999;
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--bg-subtle);
  color: var(--brand-blue);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  /* Contenedor propio del hero: 30% más ancho que .container estándar */
  max-width: calc(var(--container-max) * 1.3);
}

@media (min-width: 992px) {
  .hero-grid {
    /* Imagen a la izquierda (1fr), texto a la derecha (0.6fr) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
    gap: 2.5rem;
  }
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.hero-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="dark"] .hero-pill-primary {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.hero-pill-free {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero-title-highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero-clarification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
  border-left: 3px solid var(--brand-emerald);
  padding-left: 0.85rem;
}

.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* La imagen va primero: a la izquierda en desktop, arriba en móvil */
  order: -1;
}

.hero-visual-img {
  display: block;
  width: 100%;
  max-width: 806px;
  height: auto;
}

/* --------------------------------------------------------------------------
   8. PILARES & BENEFICIOS CLAVE (4 Cards)
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

[data-theme="dark"] .benefit-icon-box {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-cyan);
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.benefit-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. FUNCIONES GRATUITAS (10 Áreas de la tabla 4.1)
   -------------------------------------------------------------------------- */
/* Fondo parallax con foto del local */
.section-parallax {
  position: relative;
  background: url('../images/fondo.webp') center / cover no-repeat;
}

/* Parallax real solo en escritorio (attachment fixed); en móvil se adapta */
@media (min-width: 992px) {
  .section-parallax {
    background-attachment: fixed;
  }
}

/* Capa oscura translúcida para asegurar contraste del contenido */
.section-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.88));
  pointer-events: none;
}

.section-parallax > .container {
  position: relative;
  z-index: 1;
}

/* El texto del encabezado de la sección pasa a claro sobre el fondo oscuro */
.section-parallax .section-title {
  color: #ffffff;
}

.section-parallax .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.section-parallax .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Encabezado de la sección en tarjeta translúcida redondeada */
.section-parallax .section-header {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  gap: 1rem;
}

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

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 1.35rem;
}

.feature-content {
  flex: 1;
}

.feature-heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. CARRUSEL & GALERÍA DE CAPTURAS INTERACTIVAS
   -------------------------------------------------------------------------- */
.gallery-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .gallery-wrapper {
    padding: 2.25rem;
  }
}

/* Pestañas de miniaturas / selectores de capturas */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.gallery-tab-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.gallery-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.gallery-tab-btn.is-active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .gallery-tab-btn.is-active {
  background: var(--brand-cyan);
  color: #0f172a;
  border-color: var(--brand-cyan);
}

/* Visor principal de la captura */
.gallery-viewer {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #020617;
  aspect-ratio: 16 / 9;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
  color: #ffffff;
  padding: 1.75rem 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.gallery-caption-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.gallery-caption-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  max-width: 600px;
}

.gallery-expand-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
}

.gallery-expand-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Controles anterior / siguiente */
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.gallery-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.gallery-nav-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.gallery-indicator-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-subtle);
}

/* Modal de imagen expandida */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  position: relative;
  max-width: 1024px;
  width: 100%;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #dc2626;
}

.modal-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #020617;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. DÓNDE INSTALAR & CONTROL REMOTO SEGURO
   -------------------------------------------------------------------------- */

/* Utilidad: ocultar salto de línea en móvil */
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* Acento de color en el título */
.section-title-accent {
  color: var(--brand-blue);
  font-style: normal;
}

/* ── Bloque hero: preguntas + imagen panorámica ── */
.install-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Fila de preguntas ARRIBA de la imagen */
.install-questions-row {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.install-question {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.install-question svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.install-question--vps {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.install-question--local {
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.3);
  margin-left: auto; /* empuja a la derecha */
}

/* Imagen panorámica a ancho completo */
.install-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  /* Recorte vertical para no ser demasiado alta en móvil */
  max-height: 260px;
  object-position: center 20%;
}

@media (min-width: 640px) {
  .install-hero-img {
    max-height: 380px;
    object-position: center 15%;
  }
}

@media (min-width: 900px) {
  .install-hero-img {
    max-height: 520px;
    object-position: center top;
  }
}

/* ── Grid de tarjetas debajo de la imagen ── */
.install-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .install-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ── Tarjetas de opción ── */
.install-split-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 640px) {
  .install-split-card { padding: 2rem 1.75rem; }
}

.install-split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.install-split-card--vps { border-top: 3px solid var(--brand-blue); }
.install-split-card--local { border-top: 3px solid var(--brand-emerald); }

/* Header de tarjeta */
.install-split-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.install-split-labels {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Ícono */
.install-split-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-split-icon svg { width: 26px; height: 26px; }

.install-split-icon--vps {
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.install-split-icon--local {
  background: rgba(5, 150, 105, 0.12);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.22);
}

/* Badge */
.install-split-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}
.install-split-badge--vps {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.install-split-badge--local {
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.install-split-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.install-split-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Lista de ítems */
.install-split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.install-split-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}
.install-split-list li svg { width: 15px; height: 15px; flex-shrink: 0; }
.install-split-list--vps li svg  { color: var(--brand-blue); }
.install-split-list--local li svg { color: var(--brand-emerald); }

/* Modo oscuro */
[data-theme="dark"] .install-split-card { background: var(--bg-surface-elevated); }
[data-theme="dark"] .install-question--vps { background: rgba(37,99,235,0.18); }
[data-theme="dark"] .install-question--local { background: rgba(5,150,105,0.18); }

/* Legacy stubs (evitan que aparezcan si quedara alguna referencia) */
.install-split-layout,
.install-split-center,
.install-split-img-wrap,
.install-split-img,
.install-split-bubble,
.install-diagram-box,
.install-options-grid,
.install-card,
.install-badge,
.install-title,
.install-desc,
.install-list { display: none; }

/* Layout de 3 columnas: Card | Centro | Card */
.install-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .install-split-layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
  }
}

/* Tarjetas de opción */
.install-split-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  height: 100%;
}

.install-split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.install-split-card--vps {
  border-top: 3px solid var(--brand-blue);
}

.install-split-card--local {
  border-top: 3px solid var(--brand-emerald);
}

/* Header de la tarjeta: icono + badge + título */
.install-split-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.install-split-labels {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Icono grande dentro de un círculo */
.install-split-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.install-split-icon--vps {
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.install-split-icon--local {
  background: rgba(5, 150, 105, 0.12);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.22);
}

/* Badge pequeño de opción */
.install-split-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: fit-content;
}

.install-split-badge--vps {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.install-split-badge--local {
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.install-split-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.install-split-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Lista de items con check */
.install-split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

.install-split-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.4;
}

.install-split-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.install-split-list--vps li svg {
  color: var(--brand-blue);
}

.install-split-list--local li svg {
  color: var(--brand-emerald);
}

/* Columna central: imagen + burbujas */
.install-split-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  order: -1; /* Imagen arriba en mobile */
}

@media (min-width: 900px) {
  .install-split-center {
    order: 0;
    width: 280px;
  }
}

.install-split-img-wrap {
  position: relative;
  z-index: 1;
}

.install-split-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: block;
}

@media (min-width: 900px) {
  .install-split-img {
    max-width: 280px;
  }
}

/* Burbujas de pregunta sobre la imagen */
.install-split-bubble {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  max-width: 220px;
  text-align: center;
}

.install-split-bubble svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.install-split-bubble--left {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
  align-self: flex-start;
}

.install-split-bubble--right {
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
  align-self: flex-end;
}

@media (min-width: 900px) {
  .install-split-bubble--left {
    align-self: flex-start;
    margin-left: -1.5rem;
  }
  .install-split-bubble--right {
    align-self: flex-end;
    margin-right: -1.5rem;
  }
}

/* Modo oscuro: ajustes de tarjetas */
[data-theme="dark"] .install-split-card {
  background: var(--bg-surface-elevated);
}
[data-theme="dark"] .install-split-bubble--left {
  background: rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .install-split-bubble--right {
  background: rgba(5, 150, 105, 0.15);
}

/* Clases legacy (mantienen compatibilidad si algo las usa) */
.install-diagram-box {
  display: none; /* Reemplazado por el nuevo layout */
}
.install-options-grid { display: none; }
.install-card { display: none; }
.install-badge { display: none; }
.install-title { display: none; }
.install-desc { display: none; }
.install-list { display: none; }

/* Callout de honestidad técnica sobre acceso remoto */
.remote-callout {
  margin-top: var(--space-xl);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.remote-callout-icon {
  font-size: 1.5rem;
  color: var(--brand-amber);
  flex-shrink: 0;
}

/* Íconos Lucide (SVG generados por data-lucide) */
.remote-callout-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

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

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

.gallery-expand-btn svg {
  width: 15px;
  height: 15px;
}

.badge-addon svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.remote-callout-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.remote-callout-text strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. MÓDULOS OPCIONALES & COMPARATIVA
   -------------------------------------------------------------------------- */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: var(--space-2xl);
}

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

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card-featured {
  border-color: var(--brand-purple);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(124, 58, 237, 0.03) 100%);
}

.module-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.module-pill-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(220, 38, 38, 0.08);
  color: var(--brand-red);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .module-pill-paid {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.subtle-paid-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
  vertical-align: middle;
  margin-left: 0.35rem;
}

.module-pricing-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.module-pricing-hint strong {
  color: var(--text-main);
}

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 0;
}

.module-badge-purple {
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.module-badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.module-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.module-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.module-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.module-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.module-features-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-store-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* Tabla comparativa Base Gratis vs Módulos */
.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--bg-subtle);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-subtle);
}

.badge-included {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-emerald);
}

.badge-addon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-purple);
}

/* --------------------------------------------------------------------------
   13. ZONA DE DESCARGA & PASOS DE PUESTA EN MARCHA
   -------------------------------------------------------------------------- */
.download-card-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.download-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

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

.download-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.download-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}

.download-step-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.download-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Caja de especificación del paquete descargable */
.package-spec-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .package-spec-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.package-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-filename {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.package-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.package-checksum {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  background: var(--bg-surface);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   14. FAQ (Preguntas Frecuentes)
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.is-open {
  border-color: var(--brand-blue);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  gap: 1rem;
}

.faq-icon-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-subtle);
  transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   15. CONTACTO & CTA FINAL (WhatsApp)
   -------------------------------------------------------------------------- */
.contact-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-primary);
}

.contact-phone-display {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin: 1.5rem 0;
}

/* Botón flotante de WhatsApp */
.wa-floating-btn {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--wa-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--wa-glow);
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wa-floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px var(--wa-glow);
}

.wa-floating-btn svg {
  width: 32px;
  height: 32px;
}

/* Tooltip accesible del botón flotante */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.wa-floating-btn:hover .wa-tooltip,
.wa-floating-btn:focus-visible .wa-tooltip {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-2xl);
}

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

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-disclaimer {
  max-width: 780px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   17. REDUCCIÓN DE MOVIMIENTO (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;
  }
}


.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #173450;
    color: #38bdf8;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.8;
}
