/* ========================================
MAGIC KIDS - CSS OPTIMIZADO Y ORGANIZADO
Estructura: Variables → Base → Componentes → Páginas → Responsive
Corrección: Navbar móvil (Logo centrado, Hamburger izquierda)
======================================== */

/* ========================================
🎨 00. VARIABLES GLOBALES (Design System)
======================================== */
:root {
  /* Colores principales */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #1d4ed8;
  --secondary-dark: #ea580c;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Sombras */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.2);
  
  /* Bordes redondeados */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transiciones */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
🔤 02. TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

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

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

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

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--gray);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ========================================
🔘 04. BOTONES
======================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ========================================
🧭 05. NAVBAR (Global - Todas las páginas)
======================================== */
.navbar {
  position: sticky;
  top: 0;
  height: 80px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  transition: var(--transition);
}
.logo:hover {
  transform: scale(1.05);
}

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

.nav-link {
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 240px;
  padding: 1rem 0;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  font-weight: 500;
}
.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
  padding-left: 1.75rem;
}

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

.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
   float: right;
}
.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ========================================
🎬 06. HERO SECTION (index.html)
======================================== */
.hero {
  height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Animaciones Hero */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
⭐ 07. DESTACADOS (index.html)
======================================== */
.destacados {
  background: white;
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ========================================
📂 08. CATEGORÍAS (index.html)
======================================== */
.categorias {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.categoria-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.categoria-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.categoria-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.categoria-card.inflables .categoria-icon { background: rgb(206, 206, 6); }
.categoria-card.mecanicos .categoria-icon { background: var(--secondary); }
.categoria-card.interior .categoria-icon { background: var(--success); }
.categoria-card.carros .categoria-icon { background: var(--warning); }

/* ========================================
🎉 09. EVENTOS PREVIEW (index.html)
======================================== */
.eventos-preview {
  background: white;
}

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

.evento-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.evento-imagen-container {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.evento-imagen-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.evento-card:hover .evento-imagen-container img {
  transform: scale(1.1);
}

.evento-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(37, 99, 235, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.evento-badge.corporativo { background: rgba(249, 115, 22, 0.95); }
.evento-badge.festival { background: rgba(16, 185, 129, 0.95); }
.evento-badge.familiar { background: rgba(245, 158, 11, 0.95); }

.evento-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.evento-titulo {
  color: #1e293b;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.evento-detalles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.evento-detalle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.95rem;
}

.evento-descripcion {
  color: #475569;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.evento-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid #f1f5f9;
}

.evento-ver-mas {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}
.evento-ver-mas:hover {
  color: #1d4ed8;
}

/* ========================================
🛍️ 10. CATÁLOGO / PRODUCTOS (catalogo.html)
======================================== */
.productos-section {
  background: white;
}

.filtros-container {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filtro-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filtro-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.filtro-group select,
.filtro-group input {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: white;
  font-family: inherit;
  font-size: 1rem;
}
.filtro-group select:focus,
.filtro-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-filtrar {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-filtrar:hover {
  background: var(--primary-dark);
}

#lista-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Badges de categoría */
.badge-inflables { background: var(--primary); }
.badge-mecanicos { background: var(--secondary); }
.badge-interior { background: var(--success); }
.badge-carros { background: var(--warning); color: var(--dark); }
.badge-disponible { background: var(--success) !important; }

/* Tarjeta de producto */
.producto {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;
}

.img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  margin: 0;
  overflow: hidden;
}

.img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.producto:hover .img-box img {
  transform: scale(1.08);
}

.producto-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
  color: white;
}

.producto-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.producto-info h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}

.producto-info p {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}



/* ========================================
🔍 11. DETALLE PRODUCTO (detalle-producto.html)
======================================== */
.detalle-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}

.galeria-producto {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.imagen-principal-container {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 !important;
}

.imagen-principal-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding: 0 !important;
  margin: 0;
  background: var(--light);
}

.miniaturas {
  display: flex !important;
  gap: 0.75rem !important;
  overflow-x: auto !important;
  padding: 0.75rem 0 !important;
  margin-top: 1rem !important;
  width: 100% !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  background: transparent !important;
  justify-content: center;
    align-items: center;
}
.miniaturas::-webkit-scrollbar {
  display: none !important;
}

.miniaturas img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  border: 3px solid transparent !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  background: var(--light) !important;
  display: block !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.miniaturas img:hover,
.miniaturas img.active {
  border-color: var(--primary) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.info-producto {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-producto h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.precio-producto {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.descripcion-producto {
  margin: 1.5rem 0;
  line-height: 1.8;
  color: var(--gray);
}

.especificaciones {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light);
}

.especificacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
.especificacion:last-child {
  border-bottom: none;
}

.especificacion-label {
  font-weight: 600;
  color: var(--dark);
}

.especificacion-valor {
  color: var(--primary);
  font-weight: 600;
}

.btn-cotizar {
  display: block;
  width: 100%;
  padding: 1.25rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.btn-cotizar:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.requisitos {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light);
}

.requisitos h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.requisito-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.requisito-icono {
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
}

.requisito-texto {
  color: var(--gray);
}



/* ========================================
👥 12. QUIÉNES SOMOS (quienes-somos.html)
======================================== */
.quienes-somos-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%233b82f6"/><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

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

.mision-card, .vision-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.mision-card { border-top: 4px solid var(--primary); }
.vision-card { border-top: 4px solid var(--secondary); }

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.miembro-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.miembro-img {
  height: 300px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

.miembro-info {
  padding: 1.5rem;
}
.miembro-info h3 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.miembro-info p {
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0;
}

.estadisticas {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0;
  margin-top: 4rem;
}

.estadisticas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.estadistica-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.estadistica-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========================================
🎪 13. MEJORES EVENTOS (eventos.html)
======================================== */
.eventos-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f97316"/><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.galeria-filtros {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.galeria-filtro {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--dark);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.galeria-filtro.active,
.galeria-filtro:hover {
  background: var(--primary);
  color: white;
}

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

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  height: 300px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}
.galeria-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Testimonios (actualmente comentado en HTML) */
.testimonios {
  background: var(--light);
  margin-top: 4rem;
}

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

.testimonio-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonio-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonio-texto {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--dark);
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonio-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.testimonio-info h4 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.testimonio-info p {
  color: var(--gray);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ========================================
📞 14. CONTACTO (contacto.html)
======================================== */
.contacto-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%2310b981"/><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

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

.contacto-info {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contacto-info h3 {
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light);
}

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto-icono {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contacto-texto h4 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.contacto-texto p, .contacto-texto a {
  color: var(--gray);
  margin-bottom: 0;
}
.contacto-texto a:hover {
  color: var(--primary);
}

.contacto-formulario {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}
.form-submit:hover {
  background: var(--primary-dark);
}

/* ========================================
🦶 15. FOOTER (Global - Todas las páginas)
======================================== */
.footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #cbd5e1;
  transition: var(--transition);
}
.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contacto p {
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-contacto p i {
  color: var(--primary);
}

.footer-newsletter p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
}
.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--primary);
  font-weight: 600;
}


/* ========================================
⏳ 17. LOADER (Global)
======================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* ========================================
📱 18. RESPONSIVE / MEDIA QUERIES (TODO JUNTO AL FINAL)
======================================== */

/* ===== TABLET Y MÓVIL (≤768px) ===== */
@media (max-width: 768px) {
  /* ===== FIX NAVBAR MOBILE LAYOUT (CORREGIDO) ===== */
  .navbar {
    position: relative;
    justify-content: center;
    padding: 0 1rem;
  }
  
  /* Botón hamburguesa a la izquierda */
  .mobile-menu-btn {
    display: block;
    position: absolute;
    left: 1.5rem;
    font-size: 1.8rem;
    z-index: 1001;
  }
  
  /* Centrar logo perfectamente */
  .nav-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Opcional: ocultar WhatsApp en móvil */
  .nav-right {
    display: none;
  }
  
  /* Menú móvil deslizante */
  .nav-center {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-center.active {
    left: 0;
  }
  
  .nav-link {
    padding: 1rem 0;
    font-size: 1.25rem;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0;
    margin-top: 1rem;
  }
  .dropdown.active .dropdown-menu {
    display: flex;
  }
  
  /* Hero */
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content p { font-size: 1.15rem; }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
  
  /* Títulos */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  /* Secciones */
  .section { padding: 3rem 0; }
  
  /* Contacto */
  .contacto-grid { grid-template-columns: 1fr; }
  
  /* Detalle producto */
  .detalle-container { grid-template-columns: 1fr; }
  
  .imagen-principal-container {
    background: white !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
  .imagen-principal-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    display: block !important;
    object-fit: contain !important;
    background: var(--light) !important;
    padding: 1.5rem !important;
    margin: 0 auto !important;
  }
  
  /* WhatsApp float */
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Productos */
  .producto-info { padding: 1.25rem; }
  .producto-info h3 { font-size: 1.15rem; }
  .producto-info p { font-size: 1.35rem; }
  
  /* Eventos */
  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .evento-info { padding: 20px; }
  
  /* Especificaciones */
  .especificacion {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  /* Equipo */
  .miembro-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0061fd, #022557);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    letter-spacing: 2px;
  }
  
  /* Quiénes somos - historia */
  .quienes-somos-hero + .section .container > div[style*="background: white"] {
    padding: 1.5rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 1.75rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] div[style*="border-radius: 12px"] {
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 1.25rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] > div[style*="display: grid"] > div:last-child {
    text-align: center !important;
  }
}

/* ===== MÓVIL PEQUEÑO (≤480px) ===== */
@media (max-width: 480px) {
  .logo { height: 40px; }
  .hero-content h1 { font-size: 2rem; }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title h2 { font-size: 1.75rem; }
  
  .producto-info {
    padding: 1rem;
    gap: 0.5rem;
  }
  .producto-info h3 { font-size: 1.1rem; }
  .producto-info p { font-size: 1.25rem; }
  .producto-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
  
  .imagen-principal-container {
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
  }
  .imagen-principal-container img {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  
  .miniaturas {
  
    gap: 0.6rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .miniaturas img {
    padding: 0 !important;
    margin: 0 !important;
    width: 75px !important;
    height: 75px !important;
    border: 2px solid transparent !important;
  }
  
  .quienes-somos-hero + .section .container > div[style*="background: white"] {
    padding: 1.25rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] div[style*="border-radius: 12px"] {
    max-width: 280px !important;
    padding: 1rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] > div[style*="display: grid"] > div:last-child h3 {
    font-size: 1.45rem !important;
    margin-bottom: 1rem !important;
  }
  .quienes-somos-hero + .section .container > div[style*="background: white"] > div[style*="display: grid"] > div:last-child p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
}

/* ===== EVENTOS GRID RESPONSIVE ===== */
@media (max-width: 1024px) {
  .eventos-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}



/* Estilos básicos */
.requisitos details {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.requisitos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  cursor: pointer;
  list-style: none; /* Oculta el triángulo por defecto */
}

.requisitos-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  transition: transform 0.3s;
}

details[open] .toggle-icon {
  transform: rotate(45deg); /* Cambia + a × */
}

.requisitos-content {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
}

.requisito-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.requisito-item:last-child {
  border-bottom: none;
}

.requisito-icono {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Ocultar el triángulo por defecto del summary */
.requisitos summary::-webkit-details-marker {
  display: none;
}


@media (max-width: 768px) {
  .btn-whatsapp {
    display: none;
  }
}