/* ==========================================================================
   SISTEMA DE DISEÑO DE ALTA FIDELIDAD - CHRONOSAAS
   ========================================================================== */

:root {
  /* --- MODO CLARO (POR DEFECTO) --- */
  --bg-color: #f8fafc;
  --bg-secondary: #eef2ff;
  --bg-dots: rgba(15, 23, 42, 0.02);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: rgba(15, 23, 42, 0.1);
  --text-main: #0f172a;
  --text-muted: #5b6478;
  --primary: #4f46e5;
  --primary-hover: #3730a3;
  --primary-alpha: rgba(79, 70, 229, 0.1);
  --secondary: #0891b2;
  --accent: #7c3aed;
  --success: #059669;
  --accent-glow: rgba(79, 70, 229, 0.08);

  --font-family: 'Plus Jakarta Sans', sans-serif;
  --font-title: 'Outfit', sans-serif;
  --transition-speed: 0.4s;
  --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  /* --- MODO OSCURO --- */
  --bg-color: #090a0f;
  --bg-secondary: #0f1220;
  --bg-dots: rgba(255, 255, 255, 0.007);
  --card-bg: rgba(15, 18, 30, 0.65);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-shadow: rgba(0, 0, 0, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-alpha: rgba(99, 102, 241, 0.12);
  --secondary: #06b6d4;
  --accent: #a855f7;
  --success: #10b981;
  --accent-glow: rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   RESET & CONFIGURACIÓN BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
  line-height: 1.5;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Rejilla de Fondo Reactiva */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%),
    linear-gradient(var(--bg-dots) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-dots) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: -2;
  pointer-events: none;
}

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

/* ==========================================================================
   COMPONENTES GENÉRICOS (BOTONES Y TEXTOS)
   ========================================================================== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-curve);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

html[data-theme="light"] .btn-secondary {
  background-color: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.06);
}

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

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   NAVEGACIÓN
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--bg-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.85rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-icon {
  height: 2.1rem;
  width: auto;
}

html[data-theme="dark"] .brand-logo-icon {
  filter: invert(1);
}

.logo span {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Estos botones se duplican dentro del cajón móvil (.nav-links-mobile-cta); en escritorio se
   ocultan ahí para no mostrarlos dos veces (ver el bloque "Nav Hamburguesa móvil" más abajo). */
.nav-links-mobile-cta {
  display: none;
}

/* Sun/Moon Theme Toggle */
.btn-theme-toggle {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .btn-theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

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

.nav-toggle {
  display: none;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* MOCKUP 3D PARALLAX DEL DASHBOARD */
.hero-visual {
  perspective: 1500px;
  display: flex;
  justify-content: center;
}

.mockup-dashboard-wrapper {
  width: 100%;
  max-width: 480px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
}

.mockup-layer {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 20px 40px var(--card-shadow);
  transition: transform 0.1s ease;
  border: 1px solid var(--card-border);
}

.mockup-base-layer {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="light"] .mockup-dots span {
  background-color: rgba(15, 23, 42, 0.1);
}

.mockup-search-placeholder {
  flex: 1;
  max-width: 120px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .mockup-search-placeholder {
  background-color: rgba(15, 23, 42, 0.05);
}

.mockup-content-grid {
  flex: 1;
  display: flex;
}

.mockup-nav-placeholder {
  width: 50px;
  background-color: rgba(255, 255, 255, 0.01);
  border-right: 1px solid var(--card-border);
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mockup-nav-placeholder span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .mockup-nav-placeholder span {
  background-color: rgba(15, 23, 42, 0.05);
}

.mockup-nav-placeholder span.active {
  background-color: var(--primary);
}

.mockup-main-area {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mockup-charts-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  flex: 1;
}

.mockup-chart-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-theme="light"] .mockup-chart-card {
  background-color: rgba(15, 23, 42, 0.01);
}

.mockup-chart-header {
  height: 8px;
  width: 60px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  gap: 0.35rem;
}

.mockup-bar {
  flex: 1;
  background: linear-gradient(0deg, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
  height: 0;
  animation: grow-bar 1.8s var(--transition-curve) forwards;
}

@keyframes grow-bar {
  to { height: var(--h); }
}

.mockup-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-list-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

html[data-theme="light"] .mockup-list-item {
  background-color: rgba(15, 23, 42, 0.01);
}

.mockup-list-item span:first-child {
  height: 6px;
  width: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.mockup-list-item span:last-child {
  height: 4px;
  width: 80%;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Capas flotantes */
.float-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-active-fichaje {
  top: 10%;
  right: -8%;
  transform: translateZ(40px);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.card-details {
  display: flex;
  flex-direction: column;
}

.card-details strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.card-details span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.card-kiosko-status {
  bottom: 12%;
  left: -8%;
  transform: translateZ(60px);
}

.active-status {
  color: var(--success) !important;
  font-weight: 700;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-alt {
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: 32px;
  border: 1px solid var(--card-border);
}

html[data-theme="light"] .section-alt {
  background-color: rgba(15, 23, 42, 0.01);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN FUNCIONALIDADES (3 COLUMNAS PRESTIGIO)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition-speed) var(--transition-curve), border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px var(--card-shadow);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN CUMPLIMIENTO LEGAL (SECCIÓN DIVIDIDA)
   ========================================================================== */
.compliance-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.compliance-intro {
  display: flex;
  flex-direction: column;
}

.compliance-intro h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.compliance-highlight-box {
  background: rgba(99, 102, 241, 0.03);
  border-left: 3px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 12px 12px 0;
}

.highlight-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.compliance-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.comp-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.compliance-card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.compliance-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   BANDA CTA (sustituye a la antigua sección de precios)
   ========================================================================== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 28px;
  padding: 3.5rem 4rem;
  color: #fff;
}

.cta-band-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.cta-band-text p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 480px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.cta-band .btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .cta-band-text p {
    max-width: none;
  }
}

/* ==========================================================================
   SECCIÓN PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 25px var(--card-shadow);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-item.open .faq-answer {
  padding-bottom: 1.5rem;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD MÓVIL
   ========================================================================== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .trust-strip {
    justify-content: center;
  }

  .compliance-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  /* Las tarjetas flotantes del mockup se acercan al borde para no recortarse en tablet */
  .card-active-fichaje {
    right: -2%;
  }

  .card-kiosko-status {
    left: -2%;
  }
}

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

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .section, .downloads-section {
    padding: 4rem 1.25rem;
  }

  .hero-section {
    padding: 3rem 1.25rem 4rem;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section-header h2, .compliance-intro h2 {
    font-size: 1.85rem;
  }

  /* En móvil, la ilustración deja de "flotar" fuera de los bordes (no hay ratón para el
     efecto tilt de todos modos) y las tarjetas se apoyan dentro del propio mockup. */
  .mockup-dashboard-wrapper {
    height: auto;
    min-height: 340px;
  }

  .card-active-fichaje {
    top: 6%;
    right: 4%;
  }

  .card-kiosko-status {
    bottom: 6%;
    left: 4%;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.5rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .badge-new span:last-child {
    font-size: 0.75rem;
  }
}

/* --- SCROLL REVEAL Y NAVEGACIÓN MÓVIL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Nav Hamburguesa móvil */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-color);
    border-left: 1px solid var(--card-border);
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 2rem;
    z-index: 105;
    /* transform en vez de "right: -100%" para esconderlo: un cambio de "right" es una
       propiedad de layout y en algunos navegadores móviles el elemento sigue contando para el
       ancho desplazable de la página aunque esté fuera de la pantalla (un swipe lateral lo
       "revelaba" y estiraba la página); transform es solo de pintado y nunca afecta al scroll. */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.mobile-open {
    transform: translateX(0);
    box-shadow: -10px 0 30px var(--card-shadow);
  }

  /* "Iniciar sesión" y "Prueba gratis" competían con el logo y el propio botón de menú por el
     mismo espacio de la barra, desbordándola: se ocultan aquí y se muestran solo dentro del
     cajón (mismos enlaces, duplicados en .nav-links-mobile-cta) en vez de en la barra fija. */
  .nav-actions .btn {
    display: none;
  }

  .nav-links-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
  }
}

/* ==========================================
   SECCIÓN DE DESCARGAS
   ========================================== */
.downloads-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
  border-radius: 32px;
  margin-bottom: 6rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--card-shadow);
  border-color: var(--primary);
}

.dl-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-alpha);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.dl-info {
  flex: 1;
}

.dl-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.dl-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.dl-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.dl-version {
  background: var(--primary-alpha);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-family: 'Outfit', monospace;
}

.dl-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-download:hover {
  background: var(--primary-hover, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-download.disabled,
.btn-download[aria-disabled="true"] {
  background: var(--card-border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-download.disabled::before {
  content: '⏳ ';
}
