/*
Theme Name: Citesic Enhanced
Description: Versión mejorada con animaciones y diseño moderno
Version: 2.0
*/

/* === VARIABLES CSS MEJORADAS === */
:root {
  /* Colores base - Modo Día */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  
  /* Colores de marca */
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e05a2a;
  --accent-orange-light: #ff8c66;
  --accent-blue: #0d6efd;
  --accent-blue-dark: #0a58ca;
  --accent-blue-light: #3d8bfd;
  
  /* Componentes */
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-shadow: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --card-shadow-hover: rgba(0, 0, 0, 0.15);
  --footer-bg: #1a1d20;
  --footer-text: #e9ecef;
  
  /* Efectos */
  --hero-overlay: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(255, 107, 53, 0.75) 100%);
  --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
  
  /* Bordes y radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Sombras mejoradas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === MODO OSCURO MEJORADO === */
[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  
  --header-bg: rgba(13, 17, 23, 0.95);
  --header-shadow: rgba(0, 0, 0, 0.5);
  --card-bg: #161b22;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --card-shadow-hover: rgba(0, 0, 0, 0.5);
  --footer-bg: #0d1117;
  --footer-text: #e6edf3;
  
  --hero-overlay: linear-gradient(135deg, rgba(13, 110, 253, 0.7) 0%, rgba(255, 107, 53, 0.6) 100%);
  --gradient-card: linear-gradient(145deg, rgba(22,27,34,0.9) 0%, rgba(28,33,40,0.9) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* === ANIMACIONES GLOBALES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes titleSlide {
  0% { transform: translateX(-30%); }
  50% { transform: translateX(10%); }
  100% { transform: translateX(-20%); }
}

/* === HEADER MEJORADO === */
.header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px var(--header-shadow);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 30px var(--header-shadow);
}

.logo {
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 45px;
  transition: height var(--transition-fast);
}

.header.scrolled .logo img {
  height: 38px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: width var(--transition-normal);
}

.nav-menu a:hover {
  color: var(--accent-orange);
}

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

/* === BOTONES MEJORADOS === */
.cta-button {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* === TOGGLE MODO OSCURO MEJORADO === */
.dark-mode-toggle {
  background: var(--bg-tertiary);
  border: 2px solid var(--text-muted);
  width: 50px;
  height: 28px;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-normal);
}

.dark-mode-toggle:hover {
  border-color: var(--accent-orange);
}

.toggle-circle {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  top: 2px;
  left: 2px;
  transition: transform var(--transition-normal), background var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .toggle-circle {
  transform: translateX(22px);
  background: var(--gradient-primary);
}

.dark-mode-toggle {
  position: relative;
}

.dark-mode-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.dark-mode-toggle:hover::after {
  opacity: 1;
}

/* === HERO SECTION MEJORADO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
}

/* Efecto de partículas/puntos decorativos */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 120px 120px;
  z-index: 1;
  opacity: 0.5;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero h2 {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.4s both;
}

.value-message {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 500;
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-2px);
}

/* === SECCIONES MEJORADAS === */
.section {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--bg-primary);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 800;
  left: 0;
  transform: none;
  width: 100%;
  display: block;
  animation: none;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 4rem;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* === ESTADÍSTICAS / STATS BAR === */
.stats-bar {
  background: var(--gradient-primary);
  padding: 3rem 2rem;
  margin: -3rem 0 0 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  color: white;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 500;
}

/* === BENEFICIOS CON ICONOS MEJORADOS === */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  perspective: none !important;
  transform: none !important;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-md) !important;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important;
}

/* Fix icon sizes */
.benefits .benefit-icon img,
.services-grid .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* === SERVICIOS GRID MEJORADO === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--accent-blue);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}

.service-card a:hover {
  gap: 1rem;
}

.service-card a::after {
  content: '→';
  font-size: 1.2rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === PAQUETES DE PRECIOS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 3px solid transparent;
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
  content: 'MÁS POPULAR';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bg-tertiary);
}

.pricing-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 1.2rem;
}

/* === TESTIMONIOS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--accent-orange);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

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

.author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === FOOTER MEJORADO === */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer a:hover {
  color: var(--accent-orange);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background: var(--accent-orange);
  transform: translateY(-3px) !important;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === FORMULARIOS MEJORADOS === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wpcf7 input[type="submit"] {
  background: var(--gradient-secondary);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

/* === RESPONSIVE MEJORADO === */
@media (max-width: 1024px) {
  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  
  .nav-menu {
    display: none; /* Implementar menú móvil en JavaScript */
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-button {
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .benefits {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* === UTILIDADES === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* === LOADING ANIMATIONS === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* === BADGES Y ETIQUETAS === */
.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: var(--gradient-secondary);
  color: white;
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}

/* === ACORDEONES / FAQ === */
.accordion-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-tertiary);
}

.accordion-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--accent-orange);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === TABS === */
.tabs-container {
  margin: 3rem 0;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--bg-tertiary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 1rem 2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--accent-orange);
}

.tab-button.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

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

/* === MODAL / POPUP === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-orange);
}

/* === PROGRESS BAR === */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  transition: width 0.5s ease;
  border-radius: 4px;
}

/* === TOOLTIPS === */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 0.5rem 1rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === ALERTS / NOTIFICATIONS === */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
  color: #28a745;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  color: #d39e00;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  color: #dc3545;
}

.alert-info {
  background: rgba(13, 110, 253, 0.1);
  border-left: 4px solid var(--accent-blue);
  color: var(--accent-blue);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* === COUNTDOWN TIMER === */
.countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.countdown-item {
  text-align: center;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 100px;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* === IMAGEN CON ZOOM === */
.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.1);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.breadcrumbs li::after {
  content: '/';
  color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

/* === MEJORAS DE ACCESIBILIDAD === */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-orange);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: top var(--transition-fast);
  z-index: 10000;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus visible para navegación por teclado */
*:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* === PRINT STYLES === */
@media print {
  .header,
  .footer,
  .cta-button,
  .dark-mode-toggle,
  .back-to-top {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}