@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   VARIABLES Y SISTEMA DE DISEÑO
   ========================================== */
:root {
  /* Paleta Oficial e Institucional */
  --color-primary: #0d9488;          /* Verde Esmeralda / Teal Principal */
  --color-primary-light: #14b8a6;    /* Teal Vibrante */
  --color-primary-dark: #0f766e;     /* Teal Profundo */
  --color-primary-hsl: 174, 84%, 31%;
  
  --color-secondary: #fb923c;        /* Naranja Albaricoque / Coral */
  --color-secondary-hover: #f97316;  /* Naranja Intenso */
  --color-secondary-hsl: 27, 96%, 61%;
  
  --color-bg-sand: #faf9f6;          /* Arena Alabastro / Crema Claro (Fondo Principal) */
  --color-text-charcoal: #1a2421;    /* Carbono Bosque / Charcoal */
  --color-text-muted: #536b65;       /* Charcoal Muted */
  --color-white: #ffffff;
  
  /* Sistema de Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Elevación y Sombras */
  --shadow-sm: 0 4px 12px rgba(26, 36, 33, 0.04);
  --shadow-md: 0 12px 32px rgba(26, 36, 33, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 36, 33, 0.12);
  --shadow-primary: 0 10px 25px rgba(13, 148, 136, 0.25);
  --shadow-secondary: 0 10px 25px rgba(251, 146, 60, 0.25);
  
  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================
   RESET Y CONFIGURACIÓN BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-sand);
  color: var(--color-text-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-text-charcoal);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* ==========================================
   ANIMACIONES GLOBALES
   ========================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.98); opacity: 0.8; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Clases de Reveal al hacer Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   DISEÑO DE COMPONENTES COMUNES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(251, 146, 60, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-dark {
  background-color: var(--color-text-charcoal);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background-color: #273531;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Badges / Etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-title);
}

.badge-primary {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.badge-secondary {
  background-color: rgba(251, 146, 60, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

/* ==========================================
   HEADER / NAVEGACIÓN (Glassmorphism)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
}

header.scrolled {
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(26, 36, 33, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--color-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-charcoal);
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}

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

.nav-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

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

.nav-cta-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Menú Hamburguesa Móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text-charcoal);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* ==========================================
   SECCIÓN HERO (Presentación Principal)
   ========================================== */
.hero {
  padding: 160px 0 100px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.05), transparent 60%);
}

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

.hero-content {
  display: flex;
  flex-direction: flex-start;
  flex-direction: column;
  gap: 24px;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-title span.accent {
  color: var(--color-primary);
}

.hero-title span.highlight {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 580px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* Celular Mockup CSS Adaptativo (100% de la Imagen Real) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1.2s ease, float 6s ease-in-out infinite;
}

.phone-mockup-frame {
  width: 100%;
  max-width: 320px;
  background-color: #0b0f0e;
  border: 12px solid #0b0f0e;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border-bottom-width: 14px;
  border-top-width: 14px;
}

/* Dynamic Island del Celular */
.phone-mockup-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 20px;
  background-color: #000;
  border-radius: 12px;
  z-index: 10;
}

/* Pantalla del Teléfono */
.phone-screen {
  background-color: #fff;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  height: auto;
  position: relative;
  display: block;
}

/* Imagen sin recortes */
.phone-screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Brillo Reflectivo en el Vidrio */
.phone-mockup-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  pointer-events: none;
  z-index: 8;
}

/* ==========================================
   ESTADÍSTICAS COMUNITARIAS (Métricas Reales)
   ========================================== */
.stats {
  padding: 60px 0;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background-color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 36, 33, 0.03);
}

.stat-card {
  text-align: center;
  padding: 10px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(26, 36, 33, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-family: var(--font-title);
  letter-spacing: -1px;
}

.stat-number span.plus {
  color: var(--color-secondary);
}

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

/* ==========================================
   BANNER DE CAPTURA PANORÁMICA (imagen_1)
   ========================================== */
.banner-showcase {
  padding: 80px 0;
  background-color: var(--color-white);
  border-top: 1px solid rgba(26, 36, 33, 0.05);
  border-bottom: 1px solid rgba(26, 36, 33, 0.05);
}

.banner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.banner-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.banner-header p {
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.banner-frame {
  width: 100%;
  max-width: 950px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 8px solid var(--color-bg-sand);
  transition: var(--transition-smooth);
}

.banner-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(13, 148, 136, 0.15);
}

.banner-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ==========================================
   SECCIÓN MISIÓN Y VISIÓN (imagen_2)
   ========================================== */
.mision-vision {
  padding: 100px 0;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.mision-vision-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mv-card {
  position: relative;
  padding-left: 28px;
  border-left: 4px solid var(--color-primary);
}

.mv-card.vision {
  border-left-color: var(--color-secondary);
}

.mv-tag {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.mv-card.vision .mv-tag {
  color: var(--color-secondary);
}

.mv-title {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.mv-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Card 1:1 para la Ilustración Completa */
.mv-visual-card {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 36, 33, 0.05);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.mv-visual-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 70px rgba(26, 36, 33, 0.15);
}

.mv-visual-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ==========================================
   SECCIÓN OBJETIVOS COMUNITARIOS (Pilares)
   ========================================== */
.objectives {
  padding: 100px 0;
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.obj-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-sand);
  border: 1px solid rgba(26, 36, 33, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.obj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.obj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--color-white);
}

.obj-card:hover::before {
  height: 100%;
}

.obj-card:nth-child(even):hover::before {
  background-color: var(--color-secondary);
}

.obj-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: rgba(13, 148, 136, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.obj-card:nth-child(even) .obj-icon-wrapper {
  background-color: rgba(251, 146, 60, 0.08);
  color: var(--color-secondary);
}

.obj-card:hover .obj-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.obj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.obj-card-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.obj-card-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   CÓMO FUNCIONA (Paso a Paso)
   ========================================== */
.how-it-works {
  padding: 100px 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 40px;
}

.steps-container::after {
  content: '';
  position: absolute;
  top: 100px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: dashed rgba(13, 148, 136, 0.15);
  z-index: 1;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Contenedor Visual de Pasos Juguetones - Círculos Ordenados y Limpios */
.step-visual-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background-color: var(--color-white);
  border: 3px solid rgba(13, 148, 136, 0.08);
  border-radius: 50%;
  box-shadow: var(--shadow-sm), inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  overflow: visible; /* Permitir que las colitas y orejas de los dibujos sobresalgan un poquito con gracia */
}

.step-card:nth-child(2) .step-visual-wrapper {
  border-color: rgba(251, 146, 60, 0.08);
}

/* El número gigante en el centro del círculo - INTENSO, NÍTIDO Y SÓLIDO */
.step-giant-number {
  font-family: var(--font-title);
  font-size: 4.8rem; /* Ajustado perfectamente al círculo de 130px */
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary); /* Color principal sólido y premium */
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-smooth);
  z-index: 2;
}

.step-card:nth-child(2) .step-giant-number {
  color: var(--color-secondary); /* Color secundario sólido para el paso 2 */
}

/* Efectos de Hover Interactivos y Limpios */
.step-card:hover .step-visual-wrapper {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-md), 0 10px 20px rgba(13, 148, 136, 0.08);
  transform: translateY(-4px);
}

.step-card:nth-child(2):hover .step-visual-wrapper {
  border-color: rgba(251, 146, 60, 0.3);
  box-shadow: var(--shadow-md), 0 10px 20px rgba(251, 146, 60, 0.08);
}

.step-card:hover .step-giant-number {
  transform: translate(-50%, -50%) scale(1.15); /* Aumentar escala con dinamismo */
  text-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.step-card:nth-child(2):hover .step-giant-number {
  text-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 10px;
}

.step-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.5;
}

/* ==========================================
   DOWNLOAD CENTER (Fomento Activo de Descargas)
   ========================================== */
.downloads {
  padding: 100px 0;
  background: radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.05), transparent 50%),
              radial-gradient(circle at top right, rgba(13, 148, 136, 0.05), transparent 50%);
}

.download-box {
  background-color: var(--color-text-charcoal);
  border-radius: var(--radius-xl);
  padding: 60px 80px;
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.download-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-box h2 {
  color: var(--color-white);
  font-size: 2.6rem;
}

.download-box h2 span.accent {
  color: var(--color-secondary);
}

.download-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.store-btn:hover {
  background-color: var(--color-white);
  color: var(--color-text-charcoal);
  border-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-icon {
  font-size: 2rem;
}

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

.store-sub {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.store-main {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Área QR Cómoda */
.download-qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.qr-box {
  width: 160px;
  height: 160px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Vector QR Renderizado con CSS para lucir impecable sin imágenes externas */
.qr-vector-code {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, var(--color-text-charcoal) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--color-text-charcoal) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--color-text-charcoal) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--color-text-charcoal) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  opacity: 0.9;
  border: 4px solid var(--color-white);
}

/* Detalle de las esquinas del QR */
.qr-box::before {
  content: '🐾';
  position: absolute;
  font-size: 1.5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  padding: 6px;
  border-radius: 50%;
}

.qr-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-align: center;
}

/* ==========================================
   FOOTER (Identidad y Redes)
   ========================================== */
footer {
  background-color: var(--color-text-charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr repeat(2, 0.6fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-link:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.heart-icon {
  color: var(--color-secondary);
  display: inline-block;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ==========================================
   MODAL DE DESCARGA INTERACTIVO
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 36, 33, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 2010;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 36, 33, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
  text-align: center;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-charcoal);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  width: 100%;
  padding: 14px;
}

/* ==========================================
   MEDIA QUERIES / DISEÑO RESPONSIVO
   ========================================== */

/* Tablets Grandes (Desktop Mediano) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .mision-vision-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .mv-visual-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .download-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
    text-align: center;
  }
  
  .download-platforms {
    justify-content: center;
  }
  
  .download-qr-zone {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* Tablets e IPads */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg-sand);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    z-index: 1050;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }
  
  .stat-card:not(:last-child)::after {
    display: none;
  }
  
  .banner-header h2 {
    font-size: 1.8rem;
  }
  
  .objectives-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .steps-container::after {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Smartphone */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .badge {
    font-size: 0.75rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .banner-frame {
    border-width: 4px;
  }
  
  .download-box h2 {
    font-size: 2rem;
  }
}

/* ==========================================
   EFECTOS DIVERTIDOS Y JUGUETONES (Easter Eggs)
   ========================================== */

/* Efecto Divertido de Huellitas Click */
.paw-click-effect {
  position: absolute;
  pointer-events: none;
  font-size: 28px;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: floatUpAndFade 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes floatUpAndFade {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100px) scale(0.7) rotate(15deg);
    opacity: 0;
  }
}

/* Animación Temblor del Logo al hacer Click */
.logo-img.logo-wiggle {
  animation: logoWiggleAnim 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes logoWiggleAnim {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.25) rotate(-15deg); }
  30% { transform: scale(1.25) rotate(15deg); }
  45% { transform: scale(1.25) rotate(-10deg); }
  60% { transform: scale(1.25) rotate(10deg); }
  80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Partícula de Confeti de Animales */
.pet-confetti-particle {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  z-index: 10000;
  animation: confettiFall 1.2s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--vx) * 8), calc(var(--vy) * 8 + 120px)) rotate(var(--rot)) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================
   MASCOTA FLOTANTE COMPAÑERA (Floating Companion)
   ========================================== */
.pet-companion {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1900;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.pet-avatar {
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.25);
  transition: all 0.3s ease;
  position: relative;
}

/* Pulsación sutil en el borde */
.pet-avatar::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  opacity: 0;
  animation: petPulse 2.5s infinite;
}

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

.pet-bubble {
  background-color: var(--color-white);
  border: 1px solid rgba(26, 36, 33, 0.08);
  border-radius: 18px 18px 0 18px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-charcoal);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  white-space: normal;
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

/* Triángulo del bocadillo de diálogo */
.pet-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--color-white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* Hover e interacciones */
.pet-companion:hover .pet-avatar {
  transform: scale(1.1) rotate(8deg);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 30px rgba(251, 146, 60, 0.35);
}

.pet-companion:hover .pet-bubble,
.pet-companion.active .pet-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Animación de Wiggle para llamar la atención cada cierto tiempo */
.pet-companion.attention .pet-avatar {
  animation: petAttentionWiggle 0.8s ease infinite alternate;
}

@keyframes petAttentionWiggle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-8deg); }
  100% { transform: translateY(-6px) rotate(8deg); }
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .pet-companion {
    bottom: 20px;
    right: 20px;
  }
  
  .pet-avatar {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  
  .pet-bubble {
    font-size: 0.75rem;
    max-width: 160px;
    padding: 8px 12px;
  }
}

/* ==========================================
   CÓDIGO KONAMI: FIESTA DE MASCOTAS (Easter Egg)
   ========================================== */

/* Banner de Notificación del Código Secreto */
.konami-party-banner {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(26, 36, 33, 0.96);
  border: 3px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  padding: 30px 40px;
  color: var(--color-white);
  text-align: center;
  z-index: 10000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(251, 146, 60, 0.4);
  max-width: 90%;
  width: 450px;
  pointer-events: none;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  animation: bannerPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bannerPopIn {
  0% { transform: translate(-50%, -30%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.party-banner-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pulse-glow 1s infinite alternate;
}

.konami-party-banner h3 {
  color: var(--color-secondary);
  font-size: 1.8rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.konami-party-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Animación de salto de Mapatito durante la fiesta */
@keyframes petJumpParty {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-35px) scale(0.9) rotate(-15deg); }
  100% { transform: translateY(0) scale(1.15) rotate(15deg); }
}

/* Elementos de animales cayendo */
.party-animal-element {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes partyAnimalFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) rotate(180deg) translateX(calc(var(--wobble-x) / 2));
  }
  100% {
    transform: translateY(115vh) rotate(var(--rot-end)) translateX(var(--wobble-x));
    opacity: 0;
  }
}

/* ==========================================
   EFECTO PRESTIGIO: HUELLITAS EN EL SCROLL (Acompañante)
   ========================================== */
.scroll-paw-track {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  z-index: 1800;
  opacity: 0.18; /* Sutiles e institucionales, no saturan */
  transition: opacity 1s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.scroll-paw-track.fade-out {
  opacity: 0;
}
