/* ==========================================================================
   Codice路 - Plataforma Oficial de Turismo Cultural y Ciudades Creativas
   Estilos Principales - Landing Page & Plantilla Oficial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta Cultural y Tecnológica */
  --bg-dark: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #141d33;
  --bg-card: rgba(18, 26, 45, 0.72);
  --bg-card-hover: rgba(26, 37, 64, 0.88);
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-gold: rgba(245, 158, 11, 0.28);
  --glass-border-emerald: rgba(16, 185, 129, 0.25);
  
  /* Acentos de Marca: Nicaragua Cultural */
  --primary-terracotta: #d9531e;
  --primary-terracotta-hover: #b83d0d;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-blue: #0ea5e9;
  --accent-coffee: #78350f;
  
  /* Tipografía y Textos */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Sombras y Luces */
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(245, 158, 11, 0.12);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.4);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.4);
  
  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(217, 83, 30, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(14, 165, 233, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Tipografías */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

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

/* Contenedor Común */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Barra de Navegación
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 10, 18, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-kanji {
  color: var(--accent-gold);
  font-size: 1.35rem;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--glass-border-gold);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-terracotta), var(--accent-gold));
  transition: width 0.25s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-terracotta), var(--accent-gold));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(217, 83, 30, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 83, 30, 0.5);
  filter: brightness(1.08);
}

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

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

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--glass-border-gold);
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--glass-border-gold);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
}

.tag-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #ffffff 40%, #fed7aa 80%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Botones Oficiales de Tienda y APK */
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(18, 26, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.store-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 28px -5px rgba(245, 158, 11, 0.25);
}

.store-btn:hover::before {
  opacity: 1;
}

.store-btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.store-btn-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.store-btn-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid var(--glass-border-gold);
  padding: 1px 6px;
  border-radius: 999px;
}

.store-btn.apk-btn:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 12px 28px -5px rgba(16, 185, 129, 0.25);
}

.store-btn.apk-btn .store-btn-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: var(--glass-border-emerald);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item svg {
  color: var(--accent-gold);
}

/* ==========================================================================
   Mockup Interactivo de Smartphone
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
}

.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9/19;
  border-radius: 46px;
  background: #0b1120;
  border: 7px solid #222f4b;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px -10px rgba(245, 158, 11, 0.15),
    inset 0 0 12px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #222f4b;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.phone-speaker {
  width: 45px;
  height: 4px;
  border-radius: 4px;
  background: #334155;
}

.phone-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
}

.phone-screen {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f172a 0%, #070a12 100%);
  gap: 12px;
  position: relative;
}

.mockup-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-app-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-coffee-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--glass-border-gold);
  color: var(--accent-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.mockup-map-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: 
    radial-gradient(#334155 1.5px, transparent 1.5px),
    linear-gradient(135deg, rgba(217, 83, 30, 0.25) 0%, rgba(14, 165, 233, 0.2) 100%);
  background-size: 14px 14px, 100% 100%;
}

.mockup-gps-ping {
  position: absolute;
  top: 45%;
  left: 48%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  animation: ripple 2s infinite;
  position: absolute;
}

.gps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  z-index: 2;
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.mockup-map-info {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-circuit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-circuit-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(217, 83, 30, 0.2);
  color: var(--primary-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.mockup-item-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

.mockup-item-city {
  font-size: 0.62rem;
  color: var(--text-dim);
}

.mockup-item-btn {
  font-size: 0.62rem;
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Tarjetas Flotantes Alrededor del Mockup */
.floating-card {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 18%;
  left: -25px;
  background: rgba(14, 20, 36, 0.88);
  border-color: var(--glass-border-gold);
}

.floating-card-2 {
  bottom: 15%;
  right: -25px;
  background: rgba(14, 20, 36, 0.88);
  border-color: var(--glass-border-emerald);
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.floating-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.icon-gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.floating-card-content h5 {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.floating-card-content p {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Barra de Estadísticas
   ========================================================================== */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(14, 20, 36, 0.45);
}

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

.stat-box {
  text-align: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--glass-border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff, #fed7aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-number.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-number.emerald {
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Cuadrícula de Características
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-terracotta), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-elevated);
}

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

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--glass-border-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

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

/* ==========================================================================
   Catálogo de las 10 Ciudades Creativas
   ========================================================================== */
.cities-section {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 0%, rgba(14, 20, 36, 0.4) 50%, rgba(7, 10, 18, 0) 100%);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.city-card {
  background: rgba(18, 26, 45, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.4rem;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.city-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-gold);
  background: rgba(26, 37, 64, 0.9);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.5);
}

.city-card.featured {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, rgba(26, 37, 64, 0.8), rgba(18, 26, 45, 0.9));
}

.city-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.city-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.8;
}

.city-badge {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

.city-name {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.city-tagline {
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.city-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Banner de Descarga & Acceso Temprano (CTA Principal)
   ========================================================================== */
.download-section {
  padding: 100px 0;
}

.download-box {
  background: radial-gradient(circle at 10% 20%, rgba(217, 83, 30, 0.22) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
              var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 30px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.download-box-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.download-box-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.download-box-text {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.download-buttons-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

/* Formulario de Notificación Temprana */
.notify-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
  background: rgba(14, 20, 36, 0.8);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.notify-input::placeholder {
  color: var(--text-dim);
}

.notify-btn {
  background: linear-gradient(135deg, var(--primary-terracotta), var(--accent-gold));
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all var(--transition-fast);
}

.notify-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.notify-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

/* ==========================================================================
   Modales Interactivos (Play Store, APK y Términos Legales)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0f172a;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-container.large {
  max-width: 860px;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 26, 45, 0.5);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-title {
  font-size: 1.35rem;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(18, 26, 45, 0.5);
}

/* Pestañas dentro del Modal de Términos */
.tabs-header {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  background: rgba(14, 20, 36, 0.6);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: var(--accent-gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Estilo de Contenido Legal */
.legal-document {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.legal-document h4 {
  font-size: 1.1rem;
  color: var(--accent-gold-light);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-document h4:first-child {
  margin-top: 0;
}

.legal-document p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.legal-document ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.legal-document li {
  margin-bottom: 0.4rem;
}

.legal-document strong {
  color: #f1f5f9;
}

.legal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--glass-border-gold);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.active {
  transform: translateX(0);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
}

.toast.info {
  border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: #060911;
  padding: 80px 0 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 1.2rem 0;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  color: #ffffff;
}

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

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

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Adaptabilidad / Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-meta {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  
  .stat-box:nth-child(2)::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #090d16;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-box {
    padding: 3rem 1.5rem;
  }
  
  .notify-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .notify-input {
    background: rgba(14, 20, 36, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .floating-card {
    display: none;
  }
}
