/* =========================================================
    CHATAGAMES – RETRO NEON FINAL UI THEME
    Optimizado, corregido y unificado para todas las páginas
========================================================= */

/* ---------- VARIABLES GLOBALES ---------- */
:root {
  --bg: linear-gradient(50deg, #0d0221 0%, #3d0c5a 35%, #ff1493 70%, #00f0ff 100%);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-light: rgba(255, 255, 255, 0.14);
  --glass-dark: rgba(0, 0, 0, 0.45);

  --neon-blue: #00eaff;
  --neon-pink: #ff00d4;
  --neon-green: #00ff9d;

  /* Sombras simplificadas */
  --shadow-simple: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-blue: 0 2px 10px rgba(0, 234, 255, 0.4);
  --shadow-pink: 0 2px 10px rgba(255, 0, 212, 0.4);
  --shadow-green: 0 2px 10px rgba(0, 255, 157, 0.4);

  --text-light: #eafcff;
  --text-white: #ffffff;
}

/* =========================================================
    RESET
========================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: Rajdhani, Segoe UI, Tahoma, sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
}

a {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
  transition: 0.2s;
}
a:hover { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
a:visited { color: #c8b3ff; text-shadow: 0 0 6px #c8b3ff; }
a:active { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }

/* =========================================================
    HEADER
========================================================= */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 85, 0.85),
    rgba(13, 9, 125, 0.85),
    rgba(0, 255, 251, 0.85)
  );
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-blue);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  padding: 1px;
  border-radius: 50%;
  background: linear-gradient(180deg, #00f7ff, #ff0080);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-blue);
}

header h1 {
  font-family: Orbitron, sans-serif;
  margin: 0;
  font-size: 34px;
  color: var(--text-white);
  text-shadow: 0 0 15px var(--neon-blue);
}

.tag {
  color: var(--text-white);
  font-size: 18px;
}

/* ---------- NAV ---------- */

nav {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  padding: 8px 16px;
  background: linear-gradient(
    45deg,
    rgba(0,255,255,0.3),
    rgba(255,0,200,0.3)
  );
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: white;
  font-weight: 700;
  text-shadow: 0 0 8px var(--neon-blue);
  transition: 0.25s;
}

nav a:hover {
  box-shadow: var(--shadow-blue);
  
}

/* ---------- NAV RESPONSIVE ---------- */
@media (max-width: 760px) {
  nav a {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* =========================================================
    MAIN
========================================================= */

main {
  max-width: 1150px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

/* =========================================================
    PAGE HEADER (centrado)
========================================================= */

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 25px;
}

.page-header h3 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 28px;
  text-shadow: 0 0 10px var(--neon-pink);
  color: white;
}

.page-banner img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-blue);
}

/* =========================================================
    PAGE SECTIONS
========================================================= */

.page { display: none; }
.page.active { display: block; }

/* =========================================================
    PRODUCTOS – Grid Responsive 3→2→1
========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.card {
  background: var(--glass);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.3); 
  box-shadow: var(--shadow-blue);
}

.card:hover {
  
  box-shadow: 0 4px 15px rgba(0, 234, 255, 0.6);
}

/* -------- PRODUCT LIST RESPONSIVE -------- */

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.product {
  background: rgba(255,255,255,0.12);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,0,200,0.4);
  box-shadow: var(--shadow-pink);
  text-align: center;
  transition: 0.25s;
}

.product:hover { transform: scale(1.05); }

.product img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.price { color: #000000; font-weight: bold; }

.add {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  transition: 0.25s;
}

.add:hover {
  background: rgba(255,0,200,0.25);
  box-shadow: var(--shadow-pink);
}

/* =========================================================
    IFRAMES – TARJETAS COMPACTAS
========================================================= */

.news-wrapper { margin-top: 32px; }

.news-title {
  margin: 0 0 10px 0;
  font-family: Orbitron, sans-serif;
  font-size: 22px;
  color: white;
  text-shadow: 0 0 8px var(--neon-blue);
}

.news-disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

.news-flex {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.news-box {
  height: 350px;
  background: var(--glass-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}

.news-frame {
  position: relative;
  inset: 0;
  width: 100%;
  height: 340px;
  border: none;
}

/* =========================================================
    MODIFICACIONES
========================================================= */

.modifications {
  margin-top: 25px;
  background: rgba(0,0,0,0.35);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-pink);
}

.modifications h4 {
  margin: 0 0 6px 0;
  color: var(--neon-pink);
  font-family: Orbitron, sans-serif;
  text-shadow: 0 0 8px var(--neon-pink);
}

/* =========================================================
    FOOTER
========================================================= */

footer {
  margin: 38px auto;
  max-width: 1150px;
  padding: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-info p {
  margin: 4px 0;
  color: #e6faff;
  text-shadow: 0 0 6px rgba(0,255,255,0.5);
}


/* =========================================================
    CERDITO MASCOTA
========================================================= */

/* Estilos para la mascota con sprite sheet */
#pig {
    width: 64px;      /* Mismo ancho que frameWidth */
    height: 64px;     /* Mismo alto que frameHeight */
    object-fit: none; /* Evita que la imagen se redimensione */
    object-position: 0 0; /* Posición inicial del frame */
    image-rendering: crisp-edges; /* Mejora la calidad en sprites */
    image-rendering: pixelated;    /* Para sprites pixel art */   
    position: fixed;
    bottom: 20px;
    left: 0;
    z-index: 1000;
    
    /* Transición suave para el rebote */
    transition: transform 0.05s linear;
}
/* =========================================================
    LOADING
========================================================= */

#loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#loading .loader {
  background: rgba(255,255,255,0.2);
  padding: 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-blue);
}

#loading .logo {
  color: var(--neon-pink);
  font-family: Orbitron;
  font-size: 20px;
  text-shadow: 0 0 8px var(--neon-pink);
}

#loading .dots span {
  width: 10px;
  height: 10px;
  background: var(--neon-pink);
  margin: 0 6px;
  display: inline-block;
  border-radius: 50%;
  opacity: 0;
  animation: dot 1s infinite;
}

#loading .dots span:nth-child(2) { animation-delay: 0.15s; }
#loading .dots span:nth-child(3) { animation-delay: 0.30s; }

@keyframes dot {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* =========================================================
    CONTACTO — Formulario + Mapa (Neon Retro)
========================================================= */

.contact-container {
  max-width: 1100px;
  margin: 30px auto 50px;
  text-align: center;
}

.contact-title {
  font-family: Orbitron, sans-serif;
  font-size: 32px;
  color: white;
  text-shadow: 0 0 15px var(--neon-blue);
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.4;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ---------- GRID FORM + MAP ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FORM ---------- */

.contact-form {
  background: var(--glass-dark);
  padding: 25px;
  border-radius: 14px;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(0,255,255,0.25);
}

.contact-form h3 {
  font-family: Orbitron;
  color: var(--neon-blue);
  margin-bottom: 15px;
  text-shadow: 0 0 8px var(--neon-blue);
}

/* Inputs */

.contact-form label {
  display: block;
  text-align: left;
  margin-top: 12px;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0,0,0,0.5);
  color: white;
  font-family: Rajdhani;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
  box-shadow: inset 0 0 6px rgba(0,255,255,0.4);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(200,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px rgba(0,255,255,0.6);
  border-color: var(--neon-blue);
}

/* ---------- BOTÓN ENVIAR ---------- */

.btn-send {
  width: 100%;
  padding: 12px;
  margin-top: 18px;
  background: linear-gradient(45deg, #00eaffaa, #ff00d4aa);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  font-family: Orbitron;
  cursor: pointer;
  color: white;
  text-shadow: 0 0 8px var(--neon-blue);
  box-shadow: var(--shadow-pink);
  transition: 0.25s;
}

.btn-send:hover {
  
  box-shadow: var(--shadow-blue);
}

/* =========================================================
    CONTACTO DIRECTO
========================================================= */

.contact-direct {
  margin-top: 20px;
  text-align: left;
}

.contact-direct p a {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
  font-weight: bold;
}

.contact-direct p a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

/* =========================================================
    MAPA
========================================================= */

.contact-map {
  background: var(--glass-dark);
  padding: 25px;
  border-radius: 14px;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(0,255,255,0.25);
}

.contact-map h3 {
  font-family: Orbitron;
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
  margin-bottom: 14px;
}

.map-box {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(255,255,255,0.2);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
  color: #ccfaff;
}

/* =========================================================
    SMALL CONTACT TEXT IN FOOTER
========================================================= */

.contact-small a {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
}

.contact-small a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

/* =========================================================
   CONTACTO — Ajustes avanzados (2 columnas + imagen extra)
========================================================= */

/* ---- CONTACT DIRECT IN 2 COLUMNS ---- */

.contact-direct {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.contact-direct p {
  margin: 0;
}

@media (max-width: 650px) {
  .contact-direct {
    grid-template-columns: 1fr;
  }
}

/* ---- IMAGE BOX UNDER MAP ---- */

.map-image-box {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass-dark);
  border: 1px solid rgba(0,255,255,0.25);
  box-shadow: var(--shadow-blue);
}

.map-image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* ===== BOTÓN TOGGLE ESTILOS ===== */
.style-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 255, 252, 0.2);
    border: 2px solid #00fffc;
    color: #00fffc;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-shadow: 0 0 8px #00fffc;
       
    box-shadow: var(--shadow-blue);
}

.style-toggle:hover {
    background: rgba(0, 255, 252, 0.3);
    box-shadow: 0 3px 12px rgba(0, 255, 252, 0.6);
    
}


/* ===== ICONOS REDES SOCIALES (ESTILO RETRO) ===== */
.socials-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #00fffc;
    background: rgba(0, 255, 252, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-blue);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 252, 0.4), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: rgba(0, 255, 252, 0.2);
    box-shadow: 0 3px 12px rgba(0, 255, 252, 0.6);
    
}

/* Nuevo estilo para los iconos de Font Awesome */
.social-icon i {
    /* Mantiene el tamaño visual */
    font-size: 1.5rem; 
    /* El color base será el color de la marca que definiremos abajo */
    color: currentColor; 
    /* Aplica el filtro de sombra al icono */
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); 
    /* Asegura que el icono esté centrado (aunque .social-icon ya hace el centrado) */
    display: block; 
}

/* Colores de marca - Aplicados al <a> (que le dará el color a <i> gracias a currentColor) */
.social-icon:has(.fa-facebook-f) { color: #1900ff; }
.social-icon:has(.fa-instagram) { color: #9ee5f7; }
.social-icon:has(.fa-x-twitter) { color: #000000; }
.social-icon:has(.fa-tiktok) { color: #ffffff; }
.social-icon:has(.fa-youtube) { color: #f50000; }

/* Opcional: Si quieres que el icono brille un poco al pasar el ratón */
.social-icon:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/* ===== ESTILO ORIGINAL (como clase alternativa) ===== */
body.original-style {
    background: #1a1a1a;
    color: #ffffff;
}

body.original-style header {
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    box-shadow: none;
}

body.original-style header::before {
    display: none;
}

body.original-style .logo-circle {
    border: 2px solid #666;
    box-shadow: none;
    animation: none;
}

body.original-style .brand h1 {
    text-shadow: none;
    color: #fff;
}

body.original-style header > nav a {
    background: #333;
    border: 1px solid #555;
    text-shadow: none;
    color: #fff;
}

body.original-style header > nav a:hover {
    background: #444;
    box-shadow: none;
}

body.original-style .page-header {
    background: #333;
    border-bottom: 1px solid #555;
    box-shadow: none;
}

body.original-style .page-header::before {
    display: none;
}

body.original-style .page-header h3 {
    text-shadow: none;
    color: #fff;
    animation: none;
}

body.original-style .card {
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: none;
}

body.original-style .card::before {
    display: none;
}


/* ===== ESTILOS PARA PÁGINA DE CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    max-width: 1200px;
}

.contact-info, .contact-form {
    background: rgba(0, 15, 30, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #00fffc;
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.contact-info h4, .contact-form h4 {
    color: #ff00ff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px #ff00ff;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 30, 60, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 252, 0.3);
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.contact-details strong {
    color: #00fffc;
    display: block;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.contact-details p {
    margin: 5px 0;
    color: #ccc;
}

.contact-details a {
    color: #00fffc;
    text-decoration: none;
    
}

.contact-details a:hover {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
}

/* BOTONES DE ACCIÓN RÁPIDA */
.quick-actions {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.whatsapp-btn {
    display: block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    
    border: 2px solid #25D366;
}

.whatsapp-btn.support {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.whatsapp-btn:hover {
    
    box-shadow: 0 3px 12px currentColor;
}

/* FORMULARIO */
.form-description {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
    font-style: italic;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00fffc;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 255, 252, 0.3);
    border-radius: 8px;
    background: rgba(0, 30, 60, 0.6);
    color: #00fffc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00fffc;
    box-shadow: 0 0 10px rgba(0, 255, 252, 0.5);
    background: rgba(0, 30, 60, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    
    border: 2px solid #25D366;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.5);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.6);
}

/* MAPA */
.map-section {
    margin-top: 50px;
    text-align: center;
}

.map-section h4 {
    color: #ff00ff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px #ff00ff;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #00fffc;
    box-shadow: var(--shadow-blue);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info, .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ===== ESTILOS CATÁLOGO ===== */
.catalog-filters {
    background: rgba(0, 15, 30, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #00fffc;
    box-shadow: var(--shadow-blue);
    margin: 30px auto;
    max-width: 1200px;
}

.filter-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 255, 252, 0.1);
    border: 2px solid #00fffc;
    color: #00fffc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    
    text-shadow: 0 0 8px #00fffc;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(0, 255, 252, 0.3);
    box-shadow: var(--shadow-blue);
    
}

.filter-btn.active {
    background: #00fffc;
    color: #000;
    text-shadow: none;
}

.search-input {
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid #00fffc;
    color: #00fffc;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 252, 0.5);
    background: rgba(0, 30, 60, 0.9);
}

.search-input::placeholder {
    color: #666;
}

/* GRID DE PRODUCTOS */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(0, 128, 255, 0.425);
    border-radius: 15px;
    border: 2px solid #00fffc;
    box-shadow: var(--shadow-blue);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    
    box-shadow: 0 4px 15px rgba(0, 255, 252, 0.5);
    border-color: #ff00ff;
}

.product-card.destacado::before {
    content: '⭐ DESTACADO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff00ff;
    color: #1b1ef16e;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #00fffc;
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    border: 1px solid #ff00ff;
}

.product-name {
    color: #00fffc;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00fffc;
}

.product-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    color: #ff00ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 8px #ff00ff;
}

.product-price-mayoreo {
    color: #00fffc;
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.product-platform {
    background: rgba(0, 255, 252, 0.2);
    color: #00fffc;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #00fffc;
}

.product-stock {
    color: #25D366;
}

.whatsapp-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #25D366, #00ffff);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    
    border: 2px solid #25D366;
    margin-top: 15px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.6);
    
}

/* LOADING Y ESTADOS */
.loading-products {
    text-align: center;
    color: #00fffc;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    padding: 40px;
}

.no-products {
    text-align: center;
    color: #ff00ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    padding: 40px;
    grid-column: 1 / -1;
}

/* =========================================================
    MEDIA QUERIES PARA PANTALLAS PEQUEÑAS (< 400px)
========================================================= */

/* SOLO en pantallas menores a 400px - Secciones apiladas */
@media (max-width: 399px) {
    .grid {
        grid-template-columns: 1fr; /* Una columna */
        gap: 15px;
    }
    
    .news-flex {
        grid-template-columns: 1fr; /* Una columna */
        gap: 15px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    header h1 {
        font-size: 1.3rem;
    }
    
    .tag {
        font-size: 0.8rem;
    }
    
    nav a {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .page-header h3 {
        font-size: 1.4rem;
    }
}

/* En 400px o más, mantener 2 columnas */
@media (min-width: 400px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    }
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    .filter-row {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .product-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/*especificas para catalogo */

        /* Contenedor general */
        .catalogo-container {
            width: 90%;
            max-width: 1300px;
            margin: auto;
            padding: 40px 0;
        }

        /* FILTROS */
        .filtros-wrapper {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .filtros-wrapper select {
            padding: 10px;
            background: #18181873;
            color: #fff;
            border: 1px solid #444;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
        }

        /* Grid de productos */
        .productos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        /* Tarjeta de producto */
        .producto-card {
            background: #3733ff54;
            padding: 15px;
            text-align: center;
            border-radius: 12px;
            border: 1px solid #222;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .producto-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 14px rgba(248, 138, 12, 0.4);
        }

        .producto-card img {
            width: 100%;
            height: 180px;
            object-fit: contain;
            margin-bottom: 10px;
        }

        .producto-card h3 {
            margin: 10px 0 5px;
            font-size: 18px;
            color: #fff;
        }

        .producto-card p {
            color: #aaa;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .precio {
            font-size: 22px;
            font-weight: bold;
            color: #3cb371;
        }
/* =========================================================
    ESTILOS ESPECÍFICOS DE ADMINISTRACIÓN
========================================================= */

/* Modificación de la tarjeta para la vista de admin */
.producto-card.admin-card-actions {
    /* Asegura que la tarjeta use Flexbox para posicionar los botones abajo */
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    /* Resaltar la tarjeta de admin con un estilo Neon Pink */
    border: 1px solid var(--neon-pink); 
    box-shadow: var(--shadow-pink);
}

.admin-card-actions .card-details {
    flex-grow: 1; /* Permite que el contenido tome el espacio disponible */
    padding: 10px 0;
}

.product-id {
    font-size: 0.7em;
    color: #000000;
    margin-top: 5px;
}

/* Contenedor de botones de acción */
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.admin-actions button {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Orbitron', sans-serif;
}

.admin-actions .btn-editar {
    background: var(--neon-green);
    color: #000;
}

.admin-actions .btn-editar:hover {
    background: #00ffc8;
}

.admin-actions .delete-btn {
    background: var(--neon-pink);
    color: #000;
}

.admin-actions .delete-btn:hover {
    background: #ff47d4;
}

/* Ajuste de imagen para tarjetas de admin/catálogo para uniformidad */
.producto-card img {
    /* La altura de 180px ya estaba, pero aquí la confirmamos */
    height: 180px; 
    object-fit: contain;
}

/* Quita el estilo de enlace por defecto */
.producto-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Para que ocupe todo el espacio de la tarjeta */
    transition: transform 0.3s ease;
}

.producto-card-link:hover {
    transform: translateY(-5px); /* Efecto de levante al pasar el mouse */
}

/* Asegúra de que las imágenes no se deformen */
.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}



/* para la galería de detalle */
.galeria-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.galeria-thumbnails img:hover {
    filter: brightness(1.2);
    border-color: white !important;
}

.detalle-imagen img {
    max-height: 500px;
    object-fit: contain;
    background: #333;
}

.galeria-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap; /* Por si son muchas imágenes, que bajen a la siguiente línea */
}

.galeria-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ffcc00;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    background: #222;
}

.galeria-thumbnails img:hover {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Ajuste para que la imagen principal no sea gigante en monitores grandes */
#main-img {
    max-height: 500px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
}


/* Asegurar tarjetas uniformes */
.product {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    background: rgba(255,255,255,0.12);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,0,200,0.4);
    transition: 0.25s;
}

.product .title {
    font-weight: bold;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product .desc {
    font-size: 0.8rem;
    color: #ddd;
    line-height: 1.3;
    margin: 5px 0;
    /* Truncado de respaldo por si JS falla */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
}

.product .price {
    margin-top: auto;
    font-weight: bold;
}

/* =========================================================
    CARRUSEL LIGERO - MÍNIMO RECURSOS
========================================================= */

.neon-carousel {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0, 0, 0); /* Shadow simple, no blur pesado */
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 350px; /* Altura fija evita reflows */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease; /* Transición simple */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Una sola capa de fondo, sin overlay extra */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
}

/* Texto sobre la imagen directamente */
.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(255, 0, 0, 0.315); /* Overlay simple, sin gradiente */
}

.slide-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 0 0 8px var(--neon-blue); /* Sombra más pequeña */
}

.slide-content p {
    font-size: 1.1rem;
    margin: 12px 0;
}

.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--neon-pink);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    color: white;
}

/* Botones - más ligeros */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 4, 255, 0.349); /* Fondo sólido, sin blur */
    color: white;
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--neon-blue);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: var(--neon-blue);
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slides { height: 280px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .carousel-slides { height: 220px; }
    .slide-content h2 { font-size: 1.2rem; }
}

/* =========================================================
    VIDEO PLACEHOLDER - SOLUCION 3
========================================================= */

.video-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
}

.video-thumb:hover {
    transform: scale(1.02);
}

.play-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #ff00d4;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-thumb:hover .play-icon {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(255, 0, 212, 0.9);
    background: white;
}

.video-text {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-blue);
    letter-spacing: 1px;
}

.video-desc {
    color: #ccc;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Asegurar que el news-box tenga posición relativa */
.news-box {
    position: relative;
    overflow: hidden;
    background: var(--glass-dark);
    border-radius: 12px;
}

/* Cuando se carga el iframe, ocupa todo */
.news-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .play-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .video-text {
        font-size: 14px;
    }
    
    .video-desc {
        font-size: 11px;
    }
}


/* =========================================================
    VIDEO CON MINIATURA LIGERA
========================================================= */

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumb:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.video-thumb:hover .play-icon-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ff00d4;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.video-thumb:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 212, 0.8);
}

.video-text {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-blue);
    text-align: center;
    padding: 0 20px;
}

.video-desc {
    color: #ccc;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .play-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .video-text {
        font-size: 14px;
    }
    
    .video-desc {
        font-size: 11px;
    }
}