/* ============================================
   SALA GEEK - STYLESHEET
   Version: 1.16.1 (Epic Torch - Warm Orange-Yellow Edition)
   Last Modified: 2025-11-07
   
   📋 ESTRUCTURA:
   1. Variables CSS (Design Tokens)
   2. Reset & Base Styles
   3. Layout & Grid Systems
   4. Components (Header, Hero, Features, etc.)
   5. Animations & Effects
   6. Responsive (Tablet & Mobile)
   
   🎨 TEMA: Modo Oscuro Permanente
   📱 RESPONSIVE: Progressive enhancement desde 968px
   ♿ ACCESIBILIDAD: WCAG 2.1 AA compliant
   ⚡ RENDIMIENTO: Optimizado para Core Web Vitals
   
   ============================================ */

/* ============================================
   SECCIÓN 1: DESIGN TOKENS (CSS Variables)
   ============================================ */

:root {
  /* 🎨 Paleta de colores principal */
  --logo-color-1: #0d6efd; /* Azul logo */
  --logo-color-2: #ffd166; /* Amarillo logo */
  --logo-accent: #ffd166;
  --accent-primary: #ffd166; /* Amarillo dorado (CTA) */
  --accent-secondary: #e76f51; /* Naranja coral (hover) */
  --white: #ffffff;
  --black: #000000;

  /* 🌑 Backgrounds (Modo oscuro) */
  --bg: #071428; /* Base oscuro */
  --bg-primary: #0a0e27; /* Primario oscuro */
  --bg-secondary: #1a1f3a; /* Secundario (cards) */
  --bg-gradient: linear-gradient(135deg, #e8eaf2 0%, #f0f2f7 100%);

  /* 📝 Textos (Jerarquía visual) */
  --text-primary: #f0f2f7; /* Headings & texto principal */
  --text-secondary: #a0aec0; /* Subtítulos & descripciones */
  --text-tertiary: #718096; /* Texto terciario & hints */

  /* 🔲 Utilidades de UI */
  --border-color: #2d3748; /* Bordes sutiles */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(255, 209, 102, 0.15);
  --shadow-lg: 0 12px 40px rgba(255, 209, 102, 0.25);

  /* ⚡ Transiciones (Performance-optimized) */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* 📐 Border radius (Consistencia) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ============================================
   TRANSICIÓN NATURAL Y SUAVE ENTRE TEMAS
   ============================================ */

/* Transición suave y natural para todos los elementos */
.theme-transitioning,
.theme-transitioning * {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    fill 0.4s ease,
    stroke 0.4s ease !important;
}

/* Animación sutil del botón de tema al hacer clic */
.theme-toggle.switching {
  animation: themeSwitchRotate 0.5s ease;
}

@keyframes themeSwitchRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* ============================================
   TEMA CLARO - PALETA VIBRANTE
   ============================================ */

/* Transición suave al cambiar de tema */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

* {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Background blanco para tema claro */

/* HERO SECTION - Blanco con acentos naranjas sutiles */

@keyframes gradientShiftLight {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
  }
}

/* Typewriter en modo claro - borde más oscuro y visible */

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes newsletterPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* CARDS - Blancas puras con bordes naranjas GRUESOS */

/* INPUTS - Blanco puro con borde naranja */

/* ICONS & EMOJIS - Sombras naranjas VIBRANTES */

/* NEWSLETTER - Gradiente radial naranja igual que otros títulos */

/* SOCIAL CARDS - Shimmer amarillo/naranja */

/* LEGAL PAGES - Más coloridas */

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

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

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

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

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

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

/* ============================================
   SECCIÓN 3: HEADER & NAVEGACIÓN
   ============================================ */

/**
 * Header Placeholder
 * Sticky container para mantener el header fijo
 */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/**
 * Site Header Principal
 * - Gradient background con borde dorado
 * - Smooth scroll con backdrop blur
 * - Performance optimizada con will-change
 */
.site-header {
  background: linear-gradient(180deg, var(--black) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--logo-accent);
  will-change: transform;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(255, 209, 102, 0.8);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--logo-accent) 20%,
    var(--logo-accent) 80%,
    transparent 100%
  );
  box-shadow: 0 0 15px var(--logo-accent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.site-header .logo {
  display: block;
  filter: drop-shadow(0 0 10px var(--logo-accent));
  border-radius: var(--radius-sm);
  transition:
    transform var(--transition),
    filter var(--transition);
  outline: none;
}

.site-header .logo:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 0 15px var(--logo-accent));
}

.site-header .logo:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.site-header .logo img {
  width: 80px;
  height: 80px;
  display: block;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  background: transparent;
  outline: none;
}

.menu .nav-icon {
  font-size: 1.1rem;
  transition: transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu .nav-link:hover {
  color: var(--logo-accent);
  background: rgba(255, 209, 102, 0.1);
  transform: translateY(-2px);
}

.menu .nav-link:hover .nav-icon {
  transform: scale(1.2) rotate(5deg);
}

.menu .nav-link:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

.menu .nav-link.active {
  color: var(--logo-accent);
  background: rgba(255, 209, 102, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.3);
}

/* Home Link en menú legal */
.menu .nav-link-home {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  font-weight: 600;
  border: 2px solid transparent;
}

.menu .nav-link-home:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.3);
}

.menu .nav-link-home .nav-icon {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* Social Icons in Nav */
.nav-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 209, 102, 0.2);
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.1);
  transition: all var(--transition);
  border: 1px solid rgba(255, 209, 102, 0.2);
}

.nav-social-link svg,
.nav-social-link img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Colores específicos para cada red social */
.nav-social-link.facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.3);
}

.nav-social-link.facebook svg {
  fill: #1877f2;
}

.nav-social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.nav-social-link.facebook:hover svg {
  fill: #ffffff;
}

.nav-social-link.instagram {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.3);
}

.nav-social-link.instagram svg {
  fill: #e1306c;
}

.nav-social-link.instagram:hover {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  border-color: #e1306c;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.nav-social-link.instagram:hover svg {
  fill: #ffffff;
}

.nav-social-link.tiktok {
  color: #00f2ea;
  background: rgba(0, 242, 234, 0.1);
  border-color: rgba(0, 242, 234, 0.3);
}

.nav-social-link.tiktok svg {
  fill: #00f2ea;
}

.nav-social-link.tiktok:hover {
  background: #00f2ea;
  border-color: #00f2ea;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 242, 234, 0.4);
}

.nav-social-link.tiktok:hover svg {
  fill: #000000;
}

/* Focus visible para accesibilidad */
.nav-social-link:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

/* CTA Button in Nav */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
  margin-left: 1rem;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.5);
}

.cta-icon {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Search Bar */
.header-search {
  position: relative;
  margin-left: 1rem;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.1);
  color: var(--logo-accent);
  border: 1px solid rgba(255, 209, 102, 0.2);
  transition: all var(--transition);
  cursor: pointer;
}

.search-toggle:hover {
  background: rgba(255, 209, 102, 0.2);
  transform: scale(1.1);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-primary);
  border: 2px solid var(--logo-accent);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  min-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.search-dropdown.active {
  display: flex;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--logo-accent);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border: none;
  border-radius: 8px;
  color: var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.search-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.1);
  border: 2px solid rgba(255, 209, 102, 0.2);
  color: var(--logo-accent);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 0.5rem;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(255, 209, 102, 0.2);
  transform: scale(1.1) rotate(15deg);
  border-color: var(--logo-accent);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(180deg);
}

/* Animación del cambio de tema */
@keyframes themeSwitch {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.theme-toggle.switching .theme-toggle-icon {
  animation: themeSwitch 0.6s ease;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 209, 102, 0.3);
  padding: 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
  width: 44px;
  height: 44px;
  position: relative;
  touch-action: manipulation;
  cursor: pointer;
  outline: none;
}

.nav-toggle:hover {
  background: rgba(255, 209, 102, 0.1);
  border-color: var(--logo-accent);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 209, 102, 0.1);
  border: 2px solid var(--logo-accent);
  border-radius: 50%;
  color: var(--logo-accent);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1001;
}

.nav-close:hover {
  background: var(--logo-accent);
  color: var(--bg-primary);
  transform: rotate(90deg);
}

.nav-close:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: var(--logo-accent);
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--logo-accent);
  transition: all var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */
.animate-fade,
.animate-slide-down,
.animate-slide-up {
  opacity: 1;
  transform: none;
}

/* ANIMACIONES ANTIGUAS DESACTIVADAS - Ahora usamos data-scroll
.js .animate-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.js .animate-slide-down {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.js .animate-slide-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.js .animate-in {
  opacity: 1;
  transform: none;
}
*/

/* ============================================
   SECCIÓN 2: COMPONENTES DE UI
   ============================================ */

/**
 * Section Separator
 * Decorador visual entre secciones con efecto de luz
 */
.section-separator {
  position: relative;
  height: 60px;
  margin: 2rem 0;
  background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.06), transparent);
  overflow: hidden;
}

.section-separator::before {
  content: "•••";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--logo-accent);
  font-size: 24px;
  letter-spacing: 12px;
  text-shadow: 0 0 8px var(--logo-accent);
}

.section-separator::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--logo-accent) 20%,
    var(--logo-accent) 80%,
    transparent 100%
  );
  opacity: 0.2;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd166 0%, #ffe67d 50%, #5eced2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition);
}

.section-title:hover {
  transform: scale(1.05);
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
  margin-bottom: 3rem;
}

/* ============================================
   SECCIÓN 4: HERO SECTION
   ============================================ */

/**
 * Hero Section Principal
 * - Full viewport height con padding
 * - Gradient background con efectos radiales
 * - Animated floating badges
 * - Typewriter effect en título
 * - CTA buttons con hover effects
 */
.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 209, 102, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(231, 76, 60, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(255, 209, 102, 0.1);
  animation: titleGlow 3s ease-in-out infinite;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Desktop: alinear a la izquierda (solo pantallas grandes) */
@media (min-width: 969px) {
  .hero-title {
    align-items: flex-start;
    text-align: left;
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.5));
  }
}

.hero-brand {
  display: block;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 95%;
  font-weight: 400;
  opacity: 0.95;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
  z-index: 0;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmerButton 3s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shimmerButton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--bg-primary);
  box-shadow:
    0 4px 20px rgba(255, 209, 102, 0.4),
    0 0 0 0 rgba(255, 209, 102, 0.4);
  background-size: 200% 200%;
  animation:
    buttonGradient 3s ease infinite,
    buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(255, 209, 102, 0.4),
      0 0 20px rgba(255, 209, 102, 0.2);
  }
  50% {
    box-shadow:
      0 4px 25px rgba(255, 209, 102, 0.5),
      0 0 30px rgba(255, 209, 102, 0.4);
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.7);
  animation: buttonPulse 0.6s ease;
}

@keyframes buttonPulse {
  0% {
    transform: translateY(-3px) scale(1.02);
  }
  50% {
    transform: translateY(-5px) scale(1.08);
  }
  100% {
    transform: translateY(-3px) scale(1.05);
  }
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.5);
}

.btn-secondary {
  background: rgba(255, 209, 102, 0.05);
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.1);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.5);
  animation: buttonPulse 0.6s ease;
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.btn-large {
  padding: 1.3rem 2.8rem;
  font-size: 1.15rem;
}

/* Hero Image Area */
.hero-image {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.hero-badge {
  position: absolute;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-weight: 800;
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: floatBadge 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 145px;
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 100% 100%;
  opacity: 0.6;
  animation: particlesFloat 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes particlesFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}

@keyframes badgeShimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-badge:hover {
  transform: scale(1.15) translateY(-8px) rotate(3deg) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px currentColor,
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation:
    floatBadge 4s ease-in-out infinite,
    badgePulse 0.6s ease;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1.15) translateY(-8px) rotate(3deg);
  }
  50% {
    transform: scale(1.2) translateY(-12px) rotate(-2deg);
  }
}

.badge-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-badge:hover .badge-icon {
  transform: scale(1.2) rotate(15deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.3) rotate(20deg);
  }
  50% {
    transform: scale(1.15) rotate(-10deg);
  }
  75% {
    transform: scale(1.25) rotate(18deg);
  }
  100% {
    transform: scale(1.2) rotate(15deg);
  }
}

.badge-text {
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.hero-badge:hover .badge-text {
  letter-spacing: 1.2px;
}

.hero-badge.movies {
  top: 10%;
  left: 10%;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.3) 0%, rgba(255, 165, 0, 0.25) 100%);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  animation-delay: 0s;
  box-shadow:
    0 10px 40px rgba(255, 209, 102, 0.4),
    0 0 20px rgba(255, 209, 102, 0.2);
  text-shadow: 0 2px 10px rgba(255, 209, 102, 0.3);
}

.hero-badge.movies::before {
  animation-delay: 0s;
}

.hero-badge.movies:hover {
  border-color: var(--accent-secondary);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.5) 0%, rgba(255, 165, 0, 0.4) 100%);
}

.hero-badge.series {
  top: 20%;
  right: 5%;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.3) 0%, rgba(192, 57, 43, 0.25) 100%);
  border: 2px solid #e74c3c;
  color: #ff6b6b;
  animation-delay: 0.5s;
  box-shadow:
    0 10px 40px rgba(231, 76, 60, 0.4),
    0 0 20px rgba(231, 76, 60, 0.2);
  text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.hero-badge.series::before {
  animation-delay: 1s;
}

.hero-badge.series:hover {
  border-color: #ff6b6b;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.5) 0%, rgba(192, 57, 43, 0.4) 100%);
}

.hero-badge.anime {
  bottom: 25%;
  left: 5%;
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.3) 0%, rgba(255, 99, 71, 0.25) 100%);
  border: 2px solid #ff7f50;
  color: #ff9966;
  animation-delay: 1s;
  box-shadow:
    0 10px 40px rgba(255, 127, 80, 0.4),
    0 0 20px rgba(255, 127, 80, 0.2);
  text-shadow: 0 2px 10px rgba(255, 127, 80, 0.3);
}

.hero-badge.anime::before {
  animation-delay: 2s;
}

.hero-badge.anime:hover {
  border-color: #ff9966;
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.5) 0%, rgba(255, 99, 71, 0.4) 100%);
}

.hero-badge.gaming {
  bottom: 15%;
  right: 15%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.25) 100%);
  border: 2px solid #3498db;
  color: #5dade2;
  animation-delay: 1.5s;
  box-shadow:
    0 10px 40px rgba(52, 152, 219, 0.4),
    0 0 20px rgba(52, 152, 219, 0.2);
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.hero-badge.gaming::before {
  animation-delay: 3s;
}

.hero-badge.gaming:hover {
  border-color: #5dade2;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.5) 0%, rgba(41, 128, 185, 0.4) 100%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-25px) rotate(2deg);
  }
}

/* ========== HERO ANIMATIONS & EFFECTS ========== */

/* Animated Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Animated Gradient Background */
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 209, 102, 0.03) 0%,
    rgba(231, 111, 81, 0.03) 25%,
    rgba(13, 110, 253, 0.03) 50%,
    rgba(255, 209, 102, 0.03) 75%,
    rgba(231, 111, 81, 0.03) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  box-shadow:
    0 0 20px rgba(255, 209, 102, 0.6),
    300px 200px 0 rgba(255, 209, 102, 0.4),
    600px 100px 0 rgba(231, 111, 81, 0.4),
    900px 300px 0 rgba(255, 209, 102, 0.3),
    450px 400px 0 rgba(231, 111, 81, 0.3),
    750px 50px 0 rgba(255, 209, 102, 0.4),
    200px 450px 0 rgba(231, 111, 81, 0.3);
}

.hero-particles::after {
  top: 60%;
  left: 70%;
  animation-delay: 4s;
  box-shadow:
    0 0 20px rgba(231, 111, 81, 0.6),
    -300px -100px 0 rgba(255, 209, 102, 0.4),
    -600px 150px 0 rgba(231, 111, 81, 0.4),
    -200px -250px 0 rgba(255, 209, 102, 0.3),
    -500px 200px 0 rgba(231, 111, 81, 0.3),
    -400px -50px 0 rgba(255, 209, 102, 0.4);
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  25% {
    opacity: 0.6;
    transform: translateY(-30px) scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-60px) scale(1);
  }
  75% {
    opacity: 0.4;
    transform: translateY(-90px) scale(0.8);
  }
}

/* Fade-in inicial del Hero */
.hero-section {
  animation: heroFadeIn 1s ease-out;
}

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

/* Typewriter effect para el título */
.typewriter {
  display: inline-block !important;
  overflow: visible !important;
  border-right: 4px solid var(--accent-primary);
  white-space: nowrap !important;
  padding-right: 2px;
  vertical-align: bottom;
  animation: blink 0.75s step-end infinite;
  /* Remover efectos de gradient para evitar difuminado */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: inherit !important;
  background-clip: unset !important;
  color: inherit;
  text-align: center;
  min-height: 1em;
}

/* Animación única que se adapta al tamaño de fuente */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 15ch; /* 14 caracteres + 1ch extra para estar seguros */
  }
}

/* Ajustar para desktop - fuente más grande necesita más espacio */
@media (min-width: 768px) {
  .typewriter {
    border-right-width: 5px;
    padding-right: 4px;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 9em; /* Ajustado para desktop */
    }
  }
}

@keyframes blink {
  0%,
  49% {
    border-color: var(--accent-primary);
  }
  50%,
  100% {
    border-color: transparent;
  }
}

/* Remover el cursor después de la animación */
.typewriter.typing-complete {
  border-right: none;
}

/* Gradient animado mejorado para "Sala Geek" */
.hero-brand {
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 25%,
    #5dade2 50%,
    var(--accent-secondary) 75%,
    var(--accent-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.6));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(93, 173, 226, 0.6));
  }
}

/* Pulse animation para botón primario */
.btn-pulse {
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 20px rgba(255, 209, 102, 0.4),
      0 0 0 0 rgba(255, 209, 102, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 6px 30px rgba(255, 209, 102, 0.6),
      0 0 0 10px rgba(255, 209, 102, 0);
  }
}

/* Parar la animación al hacer hover */
.btn-pulse:hover {
  animation: none;
  transform: scale(1.08) translateY(-2px);
}

/* Stagger animations para elementos del hero */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-animate[data-delay="1"] {
  animation-delay: 2.5s;
}

.hero-animate[data-delay="2"] {
  animation-delay: 3s;
}

.hero-animate[data-delay="3"] {
  animation-delay: 3.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de badges mejorada - aparecen después del título */
.hero-badge {
  animation:
    floatBadge 4s ease-in-out infinite,
    badgeFadeIn 0.6s ease-out backwards;
}

.hero-badge.movies {
  animation-delay: 0s, 3.2s;
}
.hero-badge.series {
  animation-delay: 0.5s, 3.4s;
}
.hero-badge.anime {
  animation-delay: 1s, 3.6s;
}
.hero-badge.gaming {
  animation-delay: 1.5s, 3.8s;
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Badge desaparece al hacer hover */
/* ===== SISTEMA DE BADGES: HOVER SUTIL + EXPLOSIÓN AL SALIR ===== */

/* Animación SUTIL al hacer hover (NO desaparece, solo efecto visual) */
.hero-badge.badge-hover {
  animation: badgeHoverEffect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes badgeHoverEffect {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}

/* Mantener el efecto mientras está en hover */
.hero-badge.badge-hover {
  transform: scale(1.1) !important;
  filter: brightness(1.2) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px currentColor,
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Animación de EXPLOSIÓN al salir del badge (mouseleave) */
.hero-badge.badge-explode {
  animation: badgeExplodeEffect 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes badgeExplodeEffect {
  0% {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
  }
  20% {
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
    filter: blur(3px);
  }
  40% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.4) rotate(180deg);
    filter: blur(0px) brightness(2);
  }
  80% {
    opacity: 1;
    transform: scale(0.95) rotate(170deg);
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
    filter: brightness(1);
  }
}

/* Onda expansiva al explotar */
.hero-badge.badge-explode::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0;
  animation: badgeShockwave 1s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

@keyframes badgeShockwave {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Partículas brillantes al explotar */
.hero-badge.badge-explode::before {
  animation: badgeSparkles 1s ease-out !important;
}

@keyframes badgeSparkles {
  0% {
    filter: brightness(1);
  }
  30% {
    filter: brightness(2.5) saturate(2);
  }
  70% {
    filter: brightness(1.8) saturate(1.5);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 209, 102, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(231, 111, 81, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.about-card {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(10, 14, 39, 0.6) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 102, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.about-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  pointer-events: none;
}

.about-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 209, 102, 0.15);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.about-card:hover .about-icon {
  transform: scale(1.15) rotate(360deg);
  filter: drop-shadow(0 0 15px rgba(255, 209, 102, 0.5));
}

.about-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.about-card:hover .about-title {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.about-card:hover .about-text {
  color: var(--text-primary);
}

/* About Stats - Horizontal Layout */
.about-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about-stat:hover {
  transform: scale(1.1);
}

.about-stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(255, 209, 102, 0.3);
}

.about-stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
}

/* ============================================
   SECCIÓN 5: RESPONSIVE - TABLET
   Breakpoint: 968px (Entre desktop y móvil)
   ============================================ */

/**
 * About Section - Tablet
 * Grid de 2 columnas con tercer card centrado
 */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Centrar el tercer card (último hijo) */
  .about-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }

  .about-stats {
    gap: 3rem;
  }

  .about-stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-intro {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  /* Resetear el centrado del tercer card en móvil */
  .about-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .about-card {
    padding: 2rem;
  }

  .about-icon {
    font-size: 2.5rem;
  }

  .about-title {
    font-size: 1.2rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .about-stats {
    gap: 2rem;
    flex-direction: column;
  }

  .about-stat-number {
    font-size: 2.2rem;
  }

  .about-stat-label {
    font-size: 0.85rem;
  }
}

/* ============================================
   FEATURES SECTION (SERVICES)
   ============================================ */
.features-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 209, 102, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(231, 111, 81, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.6) 100%);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 102, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  pointer-events: none;
}

.feature-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 209, 102, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  color: var(--accent-primary);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 2px 8px rgba(255, 209, 102, 0.3));
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotateY(360deg);
  animation: iconBounce 0.6s ease;
}

.feature-card:hover .feature-icon svg {
  color: var(--accent-secondary);
  filter: drop-shadow(0 0 20px rgba(231, 111, 81, 0.6));
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1.15) rotateY(360deg) translateY(0);
  }
  25% {
    transform: scale(1.3) rotateY(360deg) translateY(-8px);
  }
  50% {
    transform: scale(1.1) rotateY(360deg) translateY(-4px);
  }
  75% {
    transform: scale(1.2) rotateY(360deg) translateY(-6px);
  }
}

.feature-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-text {
  color: var(--text-primary);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 209, 102, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 209, 102, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1) 0%, rgba(231, 111, 81, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.stat-card::after {
  content: "✨";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover::after {
  opacity: 0.3;
  transform: scale(1) rotate(0deg);
}

.stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 209, 102, 0.3);
  border-color: var(--accent-primary);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  background-size: 200% 200%;
  animation: statGradient 5s ease infinite;
  transition: all 0.4s ease;
}

@keyframes statGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.6));
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
  color: var(--accent-primary);
}

/* ============================================
   TESTIMONIALS CAROUSEL SECTION
   ============================================ */
.testimonials-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 209, 102, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(231, 111, 81, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Carousel Container */
.testimonials-carousel {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 60px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(26, 31, 58, 0.8) 100%);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 102, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.testimonial-card.active {
  border-color: rgba(255, 209, 102, 0.3);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 209, 102, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  transition: all 0.5s ease;
}

.testimonial-card:hover::before {
  color: rgba(255, 209, 102, 0.15);
  transform: scale(1.1);
}

.testimonial-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover::after {
  transform: scaleX(1);
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: block;
  transition: all 0.3s ease;
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  min-height: 80px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 209, 102, 0.1);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.9) 0%, rgba(231, 111, 81, 0.9) 100%);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.carousel-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 209, 102, 0.5);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn svg {
  color: var(--bg-primary);
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2.5rem;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 209, 102, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-indicators .indicator:hover {
  border-color: var(--accent-primary);
  transform: scale(1.2);
}

.carousel-indicators .indicator.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-primary);
  width: 32px;
  border-radius: 6px;
}

/* Carousel Touch Support */
.carousel-container {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.carousel-indicators .indicator {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Carousel Responsive */
@media (max-width: 968px) {
  .testimonials-carousel {
    max-width: 100%;
    padding: 0 50px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .testimonial-card {
    padding: 2.5rem 2rem;
  }

  .testimonial-text {
    font-size: 1rem;
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 1.5rem;
  }

  .testimonials-carousel {
    padding: 0 45px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    opacity: 0.95;
  }

  .carousel-btn:hover {
    opacity: 1;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .testimonial-card {
    padding: 2.5rem 2rem;
    border-radius: 18px;
  }

  .testimonial-card::before {
    font-size: 6rem;
    top: -8px;
    left: 15px;
  }

  .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.75;
    min-height: auto;
    margin-bottom: 1.8rem;
  }

  .testimonial-stars {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
  }

  .testimonial-author {
    gap: 0.8rem;
  }

  .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }

  .author-name {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
  }

  .author-role {
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .carousel-indicators {
    gap: 8px;
    margin-top: 1.8rem;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  .carousel-indicators .indicator.active {
    width: 26px;
  }
}

@media (max-width: 480px) {
  /* Testimonios optimizados para móvil */
  .testimonials-section {
    padding: 3.5rem 1rem;
  }

  .testimonials-carousel {
    padding: 0 45px;
  }

  /* Botones táctiles más grandes */
  .carousel-btn {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-container {
    border-radius: 16px;
  }

  .testimonial-card {
    padding: 2.2rem 1.8rem;
    border-radius: 18px;
  }

  .testimonial-card::before {
    font-size: 5.5rem;
    top: -8px;
    left: 15px;
    opacity: 0.5;
  }

  .testimonial-stars {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
  }

  .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
  }

  .testimonial-author {
    gap: 0.8rem;
    padding-top: 1rem;
  }

  .author-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .author-name {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .author-role {
    font-size: 1rem;
    opacity: 0.9;
  }

  /* Indicadores táctiles más grandes */
  .carousel-indicators {
    gap: 8px;
    margin-top: 1.8rem;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-width: 2px;
    cursor: pointer;
  }

  .carousel-indicators .indicator.active {
    width: 28px;
  }

  .carousel-indicators .indicator.active {
    width: 22px;
  }
}

@media (max-width: 375px) {
  .testimonials-carousel {
    padding: 0 38px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .testimonial-card {
    padding: 1.5rem 1.1rem;
  }

  .testimonial-card::before {
    font-size: 4.5rem;
    left: 8px;
  }

  .testimonial-text {
    font-size: 0.88rem;
  }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 209, 102, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(231, 76, 60, 0.12) 0%, transparent 50%);
  animation: gradientPulse 8s ease infinite;
  pointer-events: none;
}

@keyframes gradientPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
  border-radius: 24px;
  border: 2px solid rgba(255, 209, 102, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.5));
  }
}

.newsletter-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.newsletter-form::before {
  content: "✉️";
  position: absolute;
  left: 1.2rem;
  top: 1.3rem;
  font-size: 1.3rem;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}

.newsletter-form:focus-within::before {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.6));
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 1.3rem 1.5rem 1.3rem 3.5rem;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 209, 102, 0.2);
  border-radius: 12px;
  background: rgba(26, 31, 58, 0.8);
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.newsletter-input:hover {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(26, 31, 58, 0.9);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow:
    0 0 0 4px rgba(255, 209, 102, 0.15),
    0 8px 20px rgba(255, 209, 102, 0.2);
  background: rgba(26, 31, 58, 1);
}

.newsletter-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Newsletter Messages */
.newsletter-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.newsletter-message .message-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.newsletter-message.success .message-text::before {
  content: "✓ ";
  color: #22c55e;
  font-weight: bold;
  margin-right: 0.5rem;
}

.newsletter-message.error .message-text::before {
  content: "✕ ";
  color: #ef4444;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Button Loader */
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter-form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   WEEKLY NEWS SECTION - POWER EDITION
   ============================================ */
.weekly-news-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  animation: section-pulse 8s ease-in-out infinite;
}

@keyframes section-pulse {
  0%,
  100% {
    background-color: var(--bg-primary);
  }
  50% {
    background-color: rgba(10, 14, 39, 0.98);
  }
}

.weekly-news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 209, 102, 0.08) 0%,
    rgba(13, 110, 253, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Fire Emoji - ANTORCHA ÉPICA - Resplandor intenso con pulso energético */
.fire-emoji {
  display: inline-block;
  position: relative;
  z-index: 2;
  animation:
    epic-torch-flare 2s ease-in-out infinite,
    epic-torch-pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center bottom;
}

/* Animación principal: Resplandor intenso con múltiples capas */
@keyframes epic-torch-flare {
  0% {
    text-shadow:
      0 0 5px #ff8800,
      0 0 10px #ff9900,
      0 0 15px #ffaa00,
      0 0 20px #ffbb00,
      0 0 30px #ffcc00,
      0 0 40px #ffdd00,
      0 0 50px rgba(255, 204, 0, 0.5);
    filter: brightness(1.2) contrast(1.1);
  }

  20% {
    text-shadow:
      0 0 8px #ff7700,
      0 0 15px #ff9900,
      0 0 25px #ffbb00,
      0 0 35px #ffcc00,
      0 0 50px #ffdd00,
      0 0 70px #ffee00,
      0 0 90px rgba(255, 238, 0, 0.6);
    filter: brightness(1.4) contrast(1.2);
  }

  40% {
    text-shadow:
      0 0 6px #ff9900,
      0 0 12px #ffaa00,
      0 0 20px #ffbb00,
      0 0 28px #ffcc00,
      0 0 40px #ffdd00,
      0 0 55px #ffee00,
      0 0 70px rgba(255, 238, 0, 0.5);
    filter: brightness(1.3) contrast(1.15);
  }

  60% {
    text-shadow:
      0 0 10px #ff8800,
      0 0 20px #ffaa00,
      0 0 30px #ffcc00,
      0 0 45px #ffdd00,
      0 0 60px #ffee00,
      0 0 80px #ffff00,
      0 0 100px rgba(255, 255, 0, 0.7);
    filter: brightness(1.5) contrast(1.25);
  }

  80% {
    text-shadow:
      0 0 7px #ff9900,
      0 0 14px #ffaa00,
      0 0 22px #ffbb00,
      0 0 32px #ffcc00,
      0 0 45px #ffdd00,
      0 0 60px #ffee00,
      0 0 75px rgba(255, 238, 0, 0.6);
    filter: brightness(1.35) contrast(1.18);
  }

  100% {
    text-shadow:
      0 0 5px #ff8800,
      0 0 10px #ff9900,
      0 0 15px #ffaa00,
      0 0 20px #ffbb00,
      0 0 30px #ffcc00,
      0 0 40px #ffdd00,
      0 0 50px rgba(255, 204, 0, 0.5);
    filter: brightness(1.2) contrast(1.1);
  }
}

/* Animación secundaria: Pulso energético (escala) */
@keyframes epic-torch-pulse {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  33% {
    transform: scale(1.08) translateY(-3px);
  }

  66% {
    transform: scale(1.15) translateY(-5px);
  }
}

/* Badge NUEVO rotativo en título - DESACTIVADO
.nuevo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 1rem;
  position: relative;
  top: -0.3rem;
  animation: rotate-nuevo 3s ease-in-out infinite, glow-nuevo 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
}

@keyframes rotate-nuevo {
  0%, 100% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

@keyframes glow-nuevo {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 8, 68, 0.6), 0 0 40px rgba(255, 8, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 8, 68, 0.8), 0 0 60px rgba(255, 8, 68, 0.5);
  }
}
*/

/* Badge de actualización semanal */
.news-badge {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(6, 255, 165, 0.15) 0%, rgba(0, 217, 255, 0.15) 100%);
  border: 2px solid rgba(6, 255, 165, 0.4);
  color: #06ffa5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse-badge 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(6, 255, 165, 0.2);
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(6, 255, 165, 0.4);
  }
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured News - Ancho completo arriba */
.featured-full-width {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
  min-height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem !important;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  transition: background-size 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay oscuro sobre la imagen de fondo - OPTIMIZADO PARA LEGIBILIDAD */
.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(7, 10, 20, 0.97) 0%,
    rgba(7, 10, 20, 0.93) 20%,
    rgba(10, 14, 39, 0.9) 40%,
    rgba(10, 14, 39, 0.82) 60%,
    rgba(26, 31, 58, 0.65) 85%,
    rgba(26, 31, 58, 0.45) 100%
  );
  border-radius: 16px;
  z-index: 1;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenido sobre el overlay */
.featured-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Badges y textos con sombras para legibilidad */
.featured-full-width .featured-badge {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.featured-full-width .news-title {
  background: linear-gradient(135deg, #ffd166 0%, #e76f51 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.featured-full-width .news-description {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.8);
  color: #f0f2f7;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* Badge de categoría más separado de la imagen en featured */
.featured-full-width .news-category {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* News Card */
.news-card {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(15, 15, 30, 0.8) 100%);
  border: 1px solid rgba(255, 209, 102, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 15px 50px rgba(255, 209, 102, 0.25);
}

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

/* Featured News Card con Spotlight */
.featured-news {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.08) 0%, rgba(26, 31, 58, 0.6) 100%);
  border: 2px solid rgba(255, 209, 102, 0.3);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-news::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.3) 0%, transparent 50%);
  animation: spotlight-rotate 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.featured-news > * {
  position: relative;
  z-index: 1;
}

/* Featured Image (Noticia Destacada) */
.featured-image {
  width: 100%;
  height: 180px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  border-bottom: 2px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85) contrast(1.1);
}

.featured-news:hover .featured-image img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.15);
}

/* Overlay gradient sobre imagen - Más dramático */
.featured-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(10, 14, 39, 0.98) 0%,
    rgba(26, 31, 58, 0.85) 30%,
    rgba(26, 31, 58, 0.4) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Glow effect en hover */
.featured-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 209, 102, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.featured-news:hover .featured-image::before {
  opacity: 1;
}

@keyframes spotlight-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.featured-news:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow:
    0 12px 35px rgba(255, 209, 102, 0.25),
    0 0 20px rgba(255, 209, 102, 0.15);
}

/* Hover effect - Zoom sutil + overlay más claro */
.featured-full-width:hover {
  background-size: 102%;
}

.featured-full-width:hover .featured-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 10, 20, 0.94) 0%,
    rgba(7, 10, 20, 0.88) 20%,
    rgba(10, 14, 39, 0.84) 40%,
    rgba(10, 14, 39, 0.75) 60%,
    rgba(26, 31, 58, 0.58) 85%,
    rgba(26, 31, 58, 0.35) 100%
  );
}

.featured-badge {
  position: relative;
  display: inline-block;
  top: 0;
  left: 0;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffd166 0%, #ffaa33 100%);
  color: #0a0e27;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.5);
  animation: float-badge 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* News Category Badge */
.news-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-category.gaming {
  background: rgba(13, 110, 253, 0.15);
  color: #4dabf7;
  border: 1px solid rgba(13, 110, 253, 0.3);
}

.news-category.movies,
.news-category.series {
  background: rgba(231, 111, 81, 0.15);
  color: #ff8b7b;
  border: 1px solid rgba(231, 111, 81, 0.3);
}

.news-category.anime {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b9d;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* News Title */
.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Description */
.news-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News CTA */
.news-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 209, 102, 0.1);
}

.news-cta-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.news-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.news-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.3);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.social-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 209, 102, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.social-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.social-title {
  font-size: 2rem;
  text-align: center;
}

.social-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.social-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
  border: 2px solid rgba(255, 209, 102, 0.1);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 209, 102, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.social-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover::after {
  transform: translateX(100%);
}

.social-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 209, 102, 0.2);
}

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

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.15);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.2);
}

.social-icon svg {
  width: 28px;
  height: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover .social-icon {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.4);
  animation: socialIconBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes socialIconBounce {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.25) rotate(15deg);
  }
  50% {
    transform: scale(1.1) rotate(-8deg);
  }
  75% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1.15) rotate(8deg);
  }
}

.social-card:hover .social-icon svg {
  transform: scale(1.1);
  animation: iconWiggle 0.5s ease;
}

@keyframes iconWiggle {
  0%,
  100% {
    transform: scale(1.1) rotate(0deg);
  }
  25% {
    transform: scale(1.15) rotate(-5deg);
  }
  75% {
    transform: scale(1.15) rotate(5deg);
  }
}

.social-content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 1;
}

.social-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.social-card:hover .social-name {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-handle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-card:hover .social-handle {
  color: var(--accent-primary);
}

.social-arrow {
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.social-card:hover .social-arrow {
  transform: translateX(8px) scale(1.2);
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.6));
  animation: arrowSlide 0.6s ease infinite;
}

@keyframes arrowSlide {
  0%,
  100% {
    transform: translateX(8px) scale(1.2);
  }
  50% {
    transform: translateX(12px) scale(1.25);
  }
}

/* Colores específicos por red social */
.social-card.facebook .social-icon {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.social-card.facebook:hover {
  border-color: #1877f2;
}

.social-card.facebook .social-name {
  color: #1877f2;
}

.social-card.facebook .social-arrow {
  color: #1877f2;
}

.social-card.instagram .social-icon {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.social-card.instagram:hover {
  border-color: #e1306c;
}

.social-card.instagram .social-name {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-card.instagram .social-arrow {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-card.tiktok .social-icon {
  background: rgba(0, 0, 0, 0.8);
  color: #00f2ea;
}

.social-card.tiktok:hover {
  border-color: #00f2ea;
}

.social-card.tiktok .social-name {
  color: #00f2ea;
}

.social-card.tiktok .social-arrow {
  color: #00f2ea;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.9), rgba(10, 14, 39, 0.9));
  border: 2px solid rgba(255, 209, 102, 0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.95), rgba(10, 14, 39, 0.95));
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 209, 102, 0.12),
    0 0 15px rgba(255, 209, 102, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* Progress Ring */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.1s linear;
  stroke: rgba(255, 209, 102, 0.12);
  stroke-width: 2.5;
}

.progress-ring-progress {
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
  stroke-linecap: round;
  stroke: var(--accent-primary);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 2px rgba(255, 209, 102, 0.4));
}

/* Arrow Icon */
.arrow-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(255, 209, 102, 0.3));
}

.back-to-top:hover .arrow-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.5));
}

/* Tablet Optimization */
@media (max-width: 968px) {
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
  }

  .progress-ring {
    width: 52px;
    height: 52px;
  }

  .progress-ring-circle,
  .progress-ring-progress {
    r: 22;
    cx: 26;
    cy: 26;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .progress-ring {
    width: 50px;
    height: 50px;
  }

  .progress-ring-circle,
  .progress-ring-progress {
    r: 21;
    cx: 25;
    cy: 25;
  }

  .arrow-icon {
    width: 19px;
    height: 19px;
  }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-width: 1.5px;
  }

  .progress-ring {
    width: 48px;
    height: 48px;
  }

  .progress-ring-circle,
  .progress-ring-progress {
    r: 20;
    cx: 24;
    cy: 24;
    stroke-width: 2;
  }

  .arrow-icon {
    width: 18px;
    height: 18px;
  }

  .back-to-top:hover {
    transform: translateY(-3px) scale(1.03);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--black) 100%);
  color: var(--text-secondary);
  padding: 3rem 0 1.5rem;
  border-top: 2px solid var(--logo-accent);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--logo-accent) 50%, transparent 100%);
  box-shadow: 0 0 15px var(--logo-accent);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main Footer Content */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 209, 102, 0.15);
  align-items: start;
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 0 10px var(--logo-accent));
  transition: all var(--transition);
}

.footer-logo:hover {
  filter: drop-shadow(0 0 15px var(--logo-accent));
  transform: scale(1.05);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40ch;
  opacity: 0.9;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.1);
  border: 1.5px solid rgba(255, 209, 102, 0.2);
  transition: all var(--transition);
  position: relative;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  transition: all var(--transition);
}

.footer-social-link.facebook {
  color: #1877f2;
}

.footer-social-link.facebook svg {
  fill: #1877f2;
}

.footer-social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.footer-social-link.facebook:hover svg {
  fill: #ffffff;
}

.footer-social-link.instagram {
  color: #e1306c;
}

.footer-social-link.instagram svg {
  fill: #e1306c;
}

.footer-social-link.instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: #e1306c;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.footer-social-link.instagram:hover svg {
  fill: #ffffff;
}

.footer-social-link.tiktok {
  color: #00f2ea;
}

.footer-social-link.tiktok svg {
  fill: #00f2ea;
}

.footer-social-link.tiktok:hover {
  background: #00f2ea;
  border-color: #00f2ea;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 242, 234, 0.3);
}

.footer-social-link.tiktok:hover svg {
  fill: #000000;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
}

/* Footer Legal Section */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

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

.footer-legal-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-block;
  position: relative;
  padding-left: 1.2rem;
}

.footer-legal-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--logo-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.footer-legal-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--logo-accent);
  transition: width var(--transition);
}

.footer-legal-list a:hover {
  color: var(--logo-accent);
  padding-left: 1.5rem;
}

.footer-legal-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-legal-list a:hover::after {
  width: calc(100% - 1.5rem);
}

.footer-legal-list a:focus-visible {
  outline: 2px solid var(--logo-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-copyright strong {
  color: var(--logo-accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-love {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  opacity: 0.85;
}

.heart {
  color: #e74c3c;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(1.15);
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* ========== SCROLL REVEAL ANIMATIONS ========== */
/* Fallback: Mostrar elementos si JavaScript no está disponible */
[data-scroll] {
  opacity: 1;
}

/* Estado inicial (oculto) cuando JS está activo */
.js [data-scroll="fade-up"]:not(.reveal),
.js [data-scroll="fade-down"]:not(.reveal),
.js [data-scroll="fade-left"]:not(.reveal),
.js [data-scroll="fade-right"]:not(.reveal),
.js [data-scroll="scale"]:not(.reveal),
.js [data-scroll="flip"]:not(.reveal) {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Posiciones iniciales específicas */
.js [data-scroll="fade-up"]:not(.reveal) {
  transform: translateY(50px);
}

.js [data-scroll="fade-down"]:not(.reveal) {
  transform: translateY(-50px);
}

.js [data-scroll="fade-left"]:not(.reveal) {
  transform: translateX(-50px);
}

.js [data-scroll="fade-right"]:not(.reveal) {
  transform: translateX(50px);
}

.js [data-scroll="scale"]:not(.reveal) {
  transform: scale(0.8);
}

.js [data-scroll="flip"]:not(.reveal) {
  transform: rotateY(-90deg);
  transform-style: preserve-3d;
}

/* Estado revelado */
.js .reveal[data-scroll="fade-up"],
.js .reveal[data-scroll="fade-down"],
.js .reveal[data-scroll="fade-left"],
.js .reveal[data-scroll="fade-right"] {
  opacity: 1;
  transform: translate(0, 0);
}

.js .reveal[data-scroll="scale"] {
  opacity: 1;
  transform: scale(1);
}

.js .reveal[data-scroll="flip"] {
  opacity: 1;
  transform: rotateY(0);
}

/* Delays para efecto stagger (cascada) */
[data-scroll-delay="100"] {
  transition-delay: 0.1s;
}
[data-scroll-delay="200"] {
  transition-delay: 0.2s;
}
[data-scroll-delay="300"] {
  transition-delay: 0.3s;
}
[data-scroll-delay="400"] {
  transition-delay: 0.4s;
}
[data-scroll-delay="500"] {
  transition-delay: 0.5s;
}
[data-scroll-delay="600"] {
  transition-delay: 0.6s;
}
[data-scroll-delay="700"] {
  transition-delay: 0.7s;
}
[data-scroll-delay="800"] {
  transition-delay: 0.8s;
}

/* Duraciones personalizadas */
[data-scroll-duration="fast"] {
  transition-duration: 0.4s;
}
[data-scroll-duration="normal"] {
  transition-duration: 0.8s;
}
[data-scroll-duration="slow"] {
  transition-duration: 1.2s;
}

/* ========== LAZY LOADING IMAGES ========== */
/* Placeholder para imágenes que aún no han cargado */
img[data-src]:not([src]) {
  background: linear-gradient(
    90deg,
    var(--color-surface-elevated, #2a2a2a) 0%,
    var(--color-border, #3a3a3a) 50%,
    var(--color-surface-elevated, #2a2a2a) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 200px;
}

/* Animación shimmer para el placeholder */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Fade in cuando la imagen carga */
img.lazy-loaded {
  animation: fadeIn 0.5s ease-in;
}

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

/* Aspectos ratio comunes para evitar layout shift */
.lazy-img-16-9 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lazy-img-4-3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lazy-img-1-1 {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablets grandes y laptops pequeñas - Features 2x2 */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Rango especial para Social Cards: 1073px - 680px */
@media (max-width: 1073px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
  }

  /* TikTok card centrado (tercer card) - mismo ancho que las demás */
  .social-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
    text-align: center;
  }

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

  .hero-image {
    height: 400px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 968px) {
  /* Theme toggle responsive - Menú hamburguesa aparece antes para proteger el logo */
  .theme-toggle {
    order: -1;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    padding-top: 5rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease,
      visibility 0s 0.4s;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 1rem;
    padding: 0;
  }

  .menu li {
    width: 100%;
  }

  .menu .nav-link {
    width: 100%;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    justify-content: center;
  }

  .menu .nav-icon {
    font-size: 1.4rem;
  }

  .nav-social {
    padding-left: 0;
    border-left: none;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 209, 102, 0.2);
    justify-content: center;
    width: auto;
  }

  .nav-social-link {
    width: 48px;
    height: 48px;
  }

  .nav-social-link svg {
    width: 24px;
    height: 24px;
  }

  .site-header .logo img {
    width: 70px;
    height: 70px;
  }

  .nav-cta {
    margin: 0 1.5rem;
    justify-content: center;
    width: calc(100% - 3rem);
  }

  .header-search {
    margin-left: 0.5rem;
  }

  .search-dropdown {
    right: auto;
    left: 0;
    min-width: 280px;
  }

  .hero-section {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

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

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

  /* Newsletter responsive mejorado */
  .newsletter-section {
    padding: 4rem 1.5rem;
  }

  .newsletter-container {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 90%;
    margin: 0 auto;
  }

  .newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
    line-height: 1.6;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    position: relative;
  }

  .newsletter-form::before {
    left: 1.2rem;
    font-size: 1.2rem;
    transform: translateY(-50%);
  }

  .newsletter-input {
    min-width: 100%;
    width: 100%;
    padding: 1.3rem 1.2rem 1.3rem 3.2rem;
    font-size: 1.05rem;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .newsletter-form .btn {
    width: 100%;
    padding: 1.3rem 2rem;
  }

  .newsletter-note {
    font-size: 0.9rem;
    padding: 0 1rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Social responsive mejorado */
  .social-section {
    padding: 4rem 1.5rem;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
  }

  .social-card {
    min-width: auto;
    padding: 1.8rem 1.5rem;
    gap: 1.3rem;
  }

  /* Weekly News responsive */
  .weekly-news-section {
    padding: 4rem 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-full-width {
    max-width: 100%;
    min-height: 280px;
    padding: 2rem !important;
  }

  .featured-full-width .news-title {
    font-size: 1.6rem;
  }

  .news-card {
    padding: 1.25rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-description {
    font-size: 0.875rem;
  }

  .news-cta-text {
    font-size: 1rem;
  }

  .social-icon {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }

  .social-icon svg {
    width: 32px;
    height: 32px;
  }

  .social-name {
    font-size: 1.35rem;
  }

  .social-handle {
    font-size: 1rem;
  }

  .social-arrow {
    font-size: 1.4rem;
  }

  /* Footer responsive - Diseño elegante */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
  }

  .footer-tagline {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .footer-social {
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
  }

  .footer-social-link svg {
    width: 22px;
    height: 22px;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-heading {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .footer-legal-list {
    gap: 1rem;
  }

  .footer-legal-list a {
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
  }
}

/* ============================================
   SECCIÓN 6: RESPONSIVE - MÓVIL
   Breakpoint: 768px (Smartphones)
   
   📱 OPTIMIZACIONES MÓVIL:
   - Performance: Desactivar partículas/animaciones pesadas
   - Touch targets: Mínimo 44px (WCAG)
   - Typography: Escalado responsive
   - Badges y botones: Aumentados para legibilidad
   ============================================ */

/**
 * Performance - Deshabilitar efectos pesados en móvil
 */
@media (max-width: 768px) {
  /* Desactivar particles en móvil para mejor performance */
  .hero-particles::before,
  .hero-particles::after {
    display: none;
  }

  .hero-gradient {
    animation: none; /* Sin animaciones en móvil */
    background: linear-gradient(
      135deg,
      rgba(255, 209, 102, 0.02) 0%,
      rgba(231, 111, 81, 0.02) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 1rem 2.5rem;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  /* Badges más grandes y legibles en móvil */
  .hero-badge {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    min-width: auto;
    gap: 0.5rem;
  }

  .hero-badge {
    padding: 0.8rem 1.2rem;
    min-width: 130px;
    gap: 0.5rem;
  }

  .badge-icon {
    font-size: 1.6rem;
  }

  .badge-text {
    font-size: 0.9rem;
    letter-spacing: 0.6px;
  }

  .hero-image {
    height: 280px;
    margin-top: 2rem;
  }

  /* Botones táctiles optimizados (mínimo 44px altura) */
  .btn {
    padding: 1.2rem 2rem;
    font-size: 1.3rem; /* Base para tablet */
    min-height: 52px;
    border-radius: 10px;
    font-weight: 600;
  }

  .btn-large {
    padding: 1.4rem 2.5rem;
    font-size: 1.4rem; /* Base para tablet */
    min-height: 56px;
    font-weight: 600;
  }

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

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

/* Tablet mediano: 768px - Texto un poco más grande */
@media (max-width: 768px) {
  .btn {
    font-size: 1.25rem;
  }

  .btn-large {
    font-size: 1.35rem;
  }

  .hero-badge {
    padding: 0.85rem 1.3rem;
    min-width: 135px;
  }

  .badge-icon {
    font-size: 1.7rem;
  }

  .badge-text {
    font-size: 0.95rem;
  }

  .newsletter-container {
    max-width: 92%;
    padding: 2.3rem 1.8rem;
  }

  .newsletter-title {
    font-size: 1.9rem;
  }

  .newsletter-subtitle {
    font-size: 1.08rem;
  }

  .newsletter-input {
    font-size: 1.03rem;
    padding: 1.25rem 1.15rem 1.25rem 3.1rem;
  }

  /* Footer optimizado para tablet */
  .footer-main {
    gap: 2.5rem;
    padding-bottom: 2.2rem;
  }

  .footer-logo {
    width: 65px;
    height: 65px;
  }

  .footer-tagline {
    font-size: 1.03rem;
    line-height: 1.65;
  }

  .footer-social {
    gap: 0.9rem;
  }

  .footer-social-link {
    width: 42px;
    height: 42px;
  }

  .footer-social-link svg {
    width: 21px;
    height: 21px;
  }

  .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
  }

  .footer-legal-list a {
    font-size: 0.98rem;
  }

  .footer-bottom {
    padding-top: 1.8rem;
    gap: 0.7rem;
  }

  .footer-copyright {
    font-size: 0.93rem;
  }

  .footer-love {
    font-size: 0.88rem;
  }
}

/* Móvil grande: 680px - Features grid pasa a 1 columna */
@media (max-width: 680px) {
  /* Features grid pasa a 1 columna en móviles */
  .features-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  /* Social cards pasa a 1 columna en móviles */
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }

  .social-card {
    padding: 1.5rem;
  }

  /* Reset del TikTok centrado */
  .social-card:nth-child(3) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - MOBILE OPTIMIZATIONS
   Estrategia de breakpoints para noticias y badges:
   
   - 968px: Ajustes generales de layout responsive
   - 768px: Optimización móvil para noticias (tablets y phones grandes)
           * Texto blanco con sombras para legibilidad
           * Overlay oscuro en featured news
           * Posición de imagen al 35% para mejor composición
           * Badges pequeños y alineados a la izquierda
   
   - 500px: Optimización touch para móviles pequeños
           * Botón newsletter ancho completo
           * Badges de categoría ancho completo y centrados
           * Badge "Destacado" mantiene diseño compacto
           * Texto más grande para mejor legibilidad
   
   - 400px: Ajustes finos para pantallas muy pequeñas
   =================================================================== */

/* ===================================================================
   TABLET & LARGE PHONES - 768px
   =================================================================== */
@media (max-width: 768px) {
  /* Sección de noticias semanales */
  .weekly-news-section {
    padding: 3.5rem 1rem;
  }

  .news-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Featured News - Optimización para móvil */
  .featured-full-width {
    max-width: 100%;
    min-height: 240px;
    padding: 2rem 1.5rem !important;
    background-size: cover;
    background-position: 35% center; /* Mejor composición en móvil */
    transition: none; /* Desactivar transiciones en móvil */
  }

  /* Overlay oscuro para contraste con texto blanco */
  .featured-full-width .featured-overlay {
    background: linear-gradient(
      to top,
      rgba(7, 10, 20, 0.98) 0%,
      rgba(7, 10, 20, 0.96) 15%,
      rgba(7, 10, 20, 0.93) 30%,
      rgba(10, 14, 39, 0.9) 50%,
      rgba(10, 14, 39, 0.82) 70%,
      rgba(26, 31, 58, 0.7) 90%,
      rgba(26, 31, 58, 0.55) 100%
    );
  }

  /* Mantener overlay consistente sin efectos hover en móvil */
  .featured-full-width:hover {
    background-size: cover;
  }

  .featured-full-width:hover .featured-overlay {
    background: linear-gradient(
      to top,
      rgba(7, 10, 20, 0.98) 0%,
      rgba(7, 10, 20, 0.96) 15%,
      rgba(7, 10, 20, 0.93) 30%,
      rgba(10, 14, 39, 0.9) 50%,
      rgba(10, 14, 39, 0.82) 70%,
      rgba(26, 31, 58, 0.7) 90%,
      rgba(26, 31, 58, 0.55) 100%
    );
  }

  /* Badge destacado compacto */
  .featured-full-width .featured-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
  }

  /* Título con texto blanco y sombras fuertes para legibilidad */
  .featured-full-width .news-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    background: none; /* Remover gradiente */
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #ffffff; /* Texto blanco sólido */
    filter: none;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 1),
      0 4px 16px rgba(0, 0, 0, 0.9),
      0 1px 3px rgba(0, 0, 0, 0.95);
  }

  /* Descripción con texto blanco legible */
  .featured-full-width .news-description {
    font-size: 1rem;
    line-height: 1.6;
    text-shadow:
      0 1px 4px rgba(0, 0, 0, 0.95),
      0 2px 10px rgba(0, 0, 0, 0.9);
  }

  /* Noticias secundarias en columna única */
  .news-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  /* Badges compactos y alineados a la izquierda */
  .featured-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
    text-align: left;
    width: auto;
    max-width: fit-content; /* Evita que el badge tome todo el ancho del contenedor */
  }

  .news-category {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
    text-align: left;
    width: auto;
    max-width: fit-content;
  }

  /* Títulos y descripciones de noticias secundarias */
  .news-title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
  }

  .news-description {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
  }

  .news-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .news-cta-text {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
}

/* Móvil grande: 576px - Texto más grande para móviles */
@media (max-width: 576px) {
  .btn {
    font-size: 1.2rem;
  }

  .btn-large {
    font-size: 1.3rem;
  }

  .hero-badge {
    padding: 0.7rem 1.1rem;
    min-width: 110px;
  }

  .badge-icon {
    font-size: 1.5rem;
  }

  .badge-text {
    font-size: 0.85rem;
  }

  /* Aumentar tamaño del texto del hero en móvil - sutil */
  .hero-title {
    font-size: clamp(3rem, 6.5vw, 4.7rem);
  }
}

/* ===================================================================
   SMALL MOBILE - 500px
   Optimización para pantallas táctiles pequeñas
   =================================================================== */
@media (max-width: 500px) {
  /* Botones generales */
  .btn {
    font-size: 1.15rem;
    padding: 1.15rem 1.8rem;
  }

  .btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
  }

  /* Botón newsletter - Ancho completo con texto grande para mejor legibilidad */
  .news-cta-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.0625rem; /* Texto más grande en móvil */
  }

  /* Badge de categoría - Ancho completo y centrado para mejor UX táctil */
  .news-category {
    font-size: 0.875rem; /* Texto más grande para legibilidad */
    padding: 0.6rem 1.4rem;
    text-align: center;
    display: block;
    width: 100% !important;
    max-width: none !important; /* Override de estilos de 768px */
    margin-left: 0;
    margin-right: 0;
  }

  /* Badge "Destacado" - Mantiene diseño compacto pero con texto más grande */
  .featured-badge,
  .featured-full-width .featured-badge {
    font-size: 0.875rem; /* Texto más grande para legibilidad */
    padding: 0.6rem 1.4rem;
    text-align: left; /* Siempre alineado a la izquierda */
    display: inline-block;
    width: auto !important; /* Mantiene tamaño compacto */
    max-width: fit-content !important;
  }
}

/* ===================================================================
   EXTRA SMALL MOBILE - 400px
   Ajustes finos para pantallas muy pequeñas
   =================================================================== */
@media (max-width: 400px) {
  /* Botones en pantallas muy pequeñas */
  .btn {
    font-size: 1.1rem;
    padding: 1.1rem 1.6rem;
  }

  .btn-large {
    font-size: 1.15rem;
    padding: 1.15rem 1.8rem;
  }

  /* Hero badges */
  .hero-badge {
    padding: 0.75rem 1.2rem;
    min-width: 115px;
  }

  .badge-icon {
    font-size: 1.6rem;
  }

  .badge-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  /* Hero title responsive */
  .hero-title {
    font-size: clamp(2.9rem, 6.5vw, 4.6rem);
  }

  /* Feature cards optimizadas */
  .feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
  }

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

  .feature-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Stats mejoradas */
  .stat-card {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 1.05rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Secciones con mejor espaciado */
  .section-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .section-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
  }

  /* Newsletter extra-small screens - Optimizado para táctil */
  .newsletter-section {
    padding: 3.5rem 1rem;
  }

  .newsletter-container {
    padding: 2.2rem 1.5rem;
    border-width: 1.5px;
    max-width: 95%;
    margin: 0 auto;
    border-radius: 18px;
  }

  .newsletter-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .newsletter-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.65;
  }

  .newsletter-form {
    gap: 1rem;
  }

  .newsletter-form::before {
    font-size: 1.15rem;
    left: 1.1rem;
    transform: translateY(-50%);
  }

  /* Input táctil optimizado - mínimo 44px altura */
  .newsletter-input {
    padding: 1.25rem 1.1rem 1.25rem 3rem;
    font-size: 1.05rem;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
  }

  .newsletter-input::placeholder {
    font-size: 0.95rem;
  }

  /* Botón newsletter táctil optimizado */
  .newsletter-form .btn {
    padding: 1.25rem 2rem;
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    font-weight: 600;
  }

  .newsletter-note {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 0 0.2rem;
    margin-top: 0.75rem;
    text-align: center;
  }

  /* Social extra-small screens - Optimizado */
  .social-section {
    padding: 3.5rem 1rem;
  }

  .social-title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .social-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
  }

  .social-grid {
    gap: 1rem;
  }

  /* Cards táctiles más grandes */
  .social-card {
    padding: 1.8rem 1.2rem;
    min-height: 120px;
    border-radius: 16px;
    min-width: auto;
  }

  .social-card::after {
    height: 2px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .social-name {
    font-size: 1.15rem;
  }

  .social-handle {
    font-size: 0.85rem;
  }

  .social-arrow {
    font-size: 1.2rem;
  }

  /* Footer optimizado para móvil pequeño */
  .site-footer {
    padding: 2.5rem 0 1.2rem;
  }

  .footer-container {
    padding: 0 1.2rem;
  }

  .footer-main {
    gap: 2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .footer-social {
    gap: 1rem;
    margin-top: 1rem;
  }

  .footer-social-link {
    width: 46px;
    height: 46px;
  }

  .footer-social-link svg {
    width: 22px;
    height: 22px;
  }

  .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-legal-list {
    gap: 1rem;
  }

  .footer-legal-list a {
    font-size: 1rem;
    padding-left: 1.3rem;
  }

  .footer-bottom {
    padding-top: 1.8rem;
    gap: 0.8rem;
  }

  .footer-copyright {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .footer-love {
    font-size: 0.9rem;
  }
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98), rgba(26, 31, 58, 0.98));
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--logo-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999999999;
  transition: bottom 0.4s ease;
  padding: 1.5rem;
}

.cookie-consent.show {
  bottom: 0;
}

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

.cookie-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-link {
  color: var(--logo-accent);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.cookie-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--logo-accent);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-link:hover {
  color: var(--accent-primary);
}

.cookie-link:hover::after {
  width: 100%;
  background: var(--accent-primary);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--bg-primary);
  border: none;
}

.cookie-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
}

.cookie-btn.reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-btn.reject:hover {
  border-color: var(--logo-accent);
  color: var(--logo-accent);
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-text {
    min-width: 100%;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

/* Móvil: Banner más compacto para no estorbar */
@media (max-width: 576px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-inner {
    gap: 1rem;
  }

  .cookie-text {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */

/* Skip Link para Accesibilidad */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition);
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.4);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--logo-accent);
  outline-offset: 4px;
}

/* Container Legal */
.legal-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Header de la Página Legal */
.legal-header {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.05) 0%, rgba(231, 111, 81, 0.05) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.legal-header.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.legal-header .section-title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.legal-header .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

.legal-updated {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.legal-updated-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-updated-chip time {
  font-weight: 600;
}

/* Tabla de Contenidos (TOC) */
.legal-toc {
  position: sticky;
  top: 120px;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 209, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.6s ease 0.1s,
    transform 0.6s ease 0.1s;
}

/* Contenedor de Contenido Legal */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-toc.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.legal-toc-title {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 209, 102, 0.2);
  font-weight: 600;
}

.legal-toc nav ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.legal-toc nav ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.75rem;
}

.legal-toc nav ol li a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.legal-toc nav ol li a::before {
  content: counter(toc-counter) ".";
  font-weight: 600;
  color: var(--accent-primary);
  min-width: 1.5rem;
}

.legal-toc nav ol li a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-primary);
  border-radius: 2px;
  transition:
    height 0.25s ease,
    box-shadow 0.25s ease;
}

.legal-toc nav ol li a:hover {
  color: var(--text-primary);
  background: rgba(255, 209, 102, 0.08);
  padding-left: 1rem;
}

.legal-toc nav ol li a.active {
  color: var(--accent-primary);
  background: rgba(255, 209, 102, 0.12);
  padding-left: 1rem;
  font-weight: 600;
}

.legal-toc nav ol li a:hover::after {
  height: 60%;
}

.legal-toc nav ol li a.active::after {
  height: 100%;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Secciones de Contenido */
.legal-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 209, 102, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  scroll-margin-top: 120px;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition);
}

.legal-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.legal-section:hover {
  border-color: rgba(255, 209, 102, 0.3);
  box-shadow: 0 8px 32px rgba(255, 209, 102, 0.1);
  transform: translateY(-2px);
}

.legal-section h2 {
  color: var(--accent-primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 209, 102, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-section h2::before {
  content: "§";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.legal-section p {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-primary);
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.legal-section ul li::marker {
  color: var(--accent-primary);
}

.legal-section ol li::marker {
  color: var(--accent-primary);
  font-weight: 600;
}

.legal-section a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 209, 102, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.legal-section a:hover {
  color: var(--accent-secondary);
  text-decoration-color: var(--accent-secondary);
}

.legal-section strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Botón Volver Arriba */
.legal-backtop {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 209, 102, 0.2);
}

.legal-backtop a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1) 0%, rgba(231, 111, 81, 0.1) 100%);
  border: 2px solid rgba(255, 209, 102, 0.3);
  border-radius: 50px;
  color: var(--accent-primary);
  font-weight: 600;
  transition: all var(--transition);
}

.legal-backtop a:hover {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.3);
}

/* Stagger Animation para secciones */
.legal-content .legal-section:nth-child(1) {
  transition-delay: 0.2s;
}
.legal-content .legal-section:nth-child(2) {
  transition-delay: 0.25s;
}
.legal-content .legal-section:nth-child(3) {
  transition-delay: 0.3s;
}
.legal-content .legal-section:nth-child(4) {
  transition-delay: 0.35s;
}
.legal-content .legal-section:nth-child(5) {
  transition-delay: 0.4s;
}
.legal-content .legal-section:nth-child(6) {
  transition-delay: 0.45s;
}
.legal-content .legal-section:nth-child(7) {
  transition-delay: 0.5s;
}
.legal-content .legal-section:nth-child(8) {
  transition-delay: 0.55s;
}
.legal-content .legal-section:nth-child(9) {
  transition-delay: 0.6s;
}
.legal-section:nth-child(10) {
  transition-delay: 0.55s;
}
.legal-section:nth-child(11) {
  transition-delay: 0.6s;
}

/* Scrollbar personalizado para TOC */
.legal-toc::-webkit-scrollbar {
  width: 6px;
}

.legal-toc::-webkit-scrollbar-track {
  background: rgba(255, 209, 102, 0.05);
  border-radius: 3px;
}

.legal-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 209, 102, 0.3);
  border-radius: 3px;
  transition: background var(--transition);
}

.legal-toc::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Responsive Design para Páginas Legales */
@media (max-width: 968px) {
  .legal-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: stretch;
  }

  .legal-toc {
    position: static;
    max-height: none;
    order: 1;
    margin-bottom: 1.5rem;
  }

  .legal-toc-title {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
  }

  .legal-toc-title::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--accent-primary);
  }

  .legal-toc.collapsed .legal-toc-title::after {
    transform: translateY(-50%) rotate(-90deg);
  }

  .legal-toc nav {
    max-height: 500px;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease;
  }

  .legal-toc.collapsed nav {
    max-height: 0;
    opacity: 0;
  }

  .legal-header {
    order: 0;
  }

  .legal-content {
    order: 2;
  }

  .legal-backtop {
    order: 3;
  }

  .legal-header .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .legal-page {
    padding: 1rem;
  }

  .legal-header {
    padding: 2rem 1rem;
  }

  .legal-header .section-title {
    font-size: 1.75rem;
  }

  .legal-section {
    padding: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-toc {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .legal-header .section-title {
    font-size: 1.5rem;
  }

  .legal-section {
    padding: 1rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-updated-chip {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
}

/* ============================================
   VERSION: 2.02.0
   LEGAL PAGES - Align-Items Fix (Mobile Stretch)
   Last Modified: 2025-11-02
   ============================================ */
