/* =============================================
   E-PULSE | styles.css
   ============================================= */

/* --- BASE Y NAVEGACIÓN --- */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: white;
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #ff6600;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 30px;
}

.logo img { height: 60px; object-fit: contain; cursor: pointer; }

.menu-central { display: flex; gap: 10px; justify-content: center; }
.menu-derecha  { display: flex; gap: 20px; justify-content: flex-end; }

nav a {
  font-family: 'Exo 2', sans-serif;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s;
  padding: 10px 15px;
}

nav a:hover {
  color: #ff6600;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 5px;
}

/* --- SISTEMA DE SECCIONES --- */
.seccion {
  display: none;
  visibility: hidden;
}
.seccion.activa {
  display: block;
  visibility: visible;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- HERO --- */
.hero-container { position: relative; width: 100%; height: 450px; overflow: hidden; }

#hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay h1 {
  font-family: 'Archivo Black', sans-serif;
  font-style: italic;
  font-size: clamp(30px, 6vw, 70px);
  color: rgba(255, 102, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.logo-hero {
  height: 120px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  margin-left: -10px;
  filter: drop-shadow(0px 0px 15px rgba(255,102,0,0.4));
  position: relative;
  margin-top: -15px;
  transition: 0.3s;
}

.hero-container:hover .logo-hero {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0px 0px 20px rgba(255,102,0,0.6));
}

/* --- TÍTULOS CATÁLOGO --- */
#titulo-catalogo {
  font-size: 24px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.label-linea-chica {
  font-size: 14px;
  color: white;
  letter-spacing: 4px;
  font-family: 'Exo 2', sans-serif;
  margin-bottom: 8px;
}

/* --- GRID DE LÍNEAS (HOME) --- */
.grid-lineas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.tarjeta-linea {
  background: #111;
  height: 480px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #222;
  transition: 0.4s;
}

.tarjeta-linea:hover {
  border-color: #ff6600;
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255,102,0,0.3);
}

.info-texto-linea { position: absolute; top: 25px; left: 25px; z-index: 10; }

.info-texto-linea span {
  font-family: 'Exo 2', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  display: block;
  text-transform: uppercase;
  color: #bbb;
  letter-spacing: 1px;
}

.tarjeta-linea h2 {
  font-size: 26px;
  margin: 0;
  text-transform: uppercase;
  line-height: 0.9;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 1px;
}

.tag {
  color: white;
  padding: 5px 12px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  text-transform: uppercase;
  border-radius: 3px;
  font-size: 11px;
}

.tarjeta-linea img {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  height: 75%;
  object-fit: contain;
  z-index: 1;
  transition: 0.6s;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* --- CATÁLOGO --- */
.contenedor-detalle { max-width: 1200px; margin: auto; padding: 40px 20px; }

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.card-producto {
  background: #111;
  border-radius: 15px;
  border: 1px solid #222;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.card-producto img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: white;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
  min-height: 200px;
  display: block;
}

.card-producto h3 {
  margin: 0;
  font-size: 20px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
}

.card-precio {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0;
}

.card-info { padding: 20px; }

.btn-volver {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border: 1px solid #333;
  cursor: pointer;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 700;
}

.btn-consultar-final {
  background: #25d366;
  color: white;
  padding: 18px 40px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 800;
  display: inline-block;
  margin-top: 20px;
  text-transform: uppercase;
}

/* --- FICHA DE PRODUCTO (movido desde JS) --- */
.producto-layout-v3 {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.titulo-prod {
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  font-size: 30px;
  color: #fff;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.precio-prod {
  color: #ff6600;
  font-size: 26px;
  margin: 0 0 10px;
}

.columna-imagen-v3 {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  width: 450px;
}

.marco-foto-principal {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
  border: 1px solid #222;
  overflow: hidden;
  cursor: zoom-in;
}

.foto-principal {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foto-principal.zoom {
  transform: scale(1.25);
  cursor: zoom-out;
}

.contenedor-miniaturas-v3 {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mini-foto-nav {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 2px solid #333;
  border-radius: 8px;
  background: white;
  flex: 0 0 auto;
  cursor: pointer;
  transition: 0.2s;
}

.mini-foto-nav:hover { border-color: #ff6600; }

.info-tecnica-v3 { flex: 1; }

.tabla-specs { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-key { padding: 12px; font-weight: bold; color: #ffffff; border-bottom: 1px solid #1a1a1a; width: 40%; }
.spec-val { padding: 12px; border-bottom: 1px solid #1a1a1a; color: #ccc; }

/* --- GALERÍA (clases legacy conservadas) --- */
.galeria-fotos {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contenedor-miniaturas {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: thin;
}

.contenedor-miniaturas img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  border: 2px solid #333;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  flex: 0 0 auto;
}

.contenedor-miniaturas img:hover { border-color: #ff6600; }

.columna-imagen {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
}

.galeria-fotos-v2 {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
  border: 1px solid #222;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-wrapper { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contacto-info-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.contacto-info-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.98));
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contacto-info-overlay h2 { font-family: 'Archivo Black'; font-size: 45px; color: #ff6600; margin: 0; text-transform: uppercase; }
.contacto-info-overlay p  { font-size: 18px; color: #ddd; margin-top: 15px; line-height: 1.5; font-weight: 300; }

.contacto-form-box { background: #0a0a0a; padding: 40px; border-radius: 20px; border: 1px solid #222; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; color: #777; font-weight: bold; letter-spacing: 1px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #ff6600; }

.btn-enviar {
  background: #ff6600;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  transition: 0.3s;
  letter-spacing: 1px;
}
.btn-enviar:hover { background: #e65c00; transform: translateY(-2px); }

/* --- FAQ Y LEGAL --- */
.legal-container { max-width: 800px; }
.faq-item { margin-bottom: 30px; border-bottom: 1px solid #1a1a1a; padding-bottom: 20px; }
.faq-item h3 { color: #ff6600; }

/* --- PROXIMAMENTE --- */
.proximamente { text-align: center; padding: 80px 20px; color: #888; }
.proximamente h2 { color: #ff6600; }

/* --- WHATSAPP FLOTANTE --- */
.ws-float {
  position: fixed;
  bottom: 20px; right: 20px;
  background: #25d366;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* --- FOOTER --- */
footer { background: #0a0a0a; padding: 60px 20px; border-top: 1px solid #222; margin-top: 50px; }

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
}

.footer-section h4 { color: #ff6600; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: #888; text-decoration: none; font-size: 14px; transition: 0.3s; cursor: pointer; }
.footer-section ul li a:hover { color: white; }

.footer-bottom { border-top: 1px solid #1a1a1a; margin-top: 40px; padding-top: 20px; text-align: center; color: #444; font-size: 12px; }

/* --- PANTALLA DE MANTENIMIENTO --- */
#modo-mantenimiento {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

#modo-mantenimiento img {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0px 0px 10px rgba(255,102,0,0.3));
}

#modo-mantenimiento h1 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#modo-mantenimiento p { color: #888; max-width: 400px; font-size: 14px; line-height: 1.6; }

.ocultar-mantenimiento { display: none !important; }

/* --- RESPONSIVE Y MENÚ DESPLEGABLE --- */
.menu-toggle { display: none; font-size: 30px; color: #ff6600; cursor: pointer; }
.mobile-only  { display: none; }

@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .menu-derecha { display: none; }

  .menu-central {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    padding: 20px 0;
    border-bottom: 2px solid #ff6600;
    z-index: 999;
  }

  .menu-central.open { display: flex; }
  .mobile-only { display: block; border-top: 1px solid #222; margin-top: 10px; padding-top: 10px; }

  nav { grid-template-columns: 1fr auto; }

  .hero-container { height: 320px; }
  .hero-overlay h1 { font-size: 24px; flex-direction: column; gap: 5px; }
  .logo-hero { height: 65px; margin-left: 0; top: 0; }

  .grid-lineas {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px auto;
    padding: 0 10px;
  }

  .tarjeta-linea { height: 220px; }
  .info-texto-linea { top: 15px; left: 15px; }
  .info-texto-linea span { font-size: 9px; letter-spacing: 2px; }
  .tarjeta-linea h2 { font-size: 16px; font-weight: 600; }
  .tarjeta-linea img { height: 65%; top: 60%; }

  #grid-productos {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 10px 20px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #grid-productos .card-producto {
    min-width: 80%;
    scroll-snap-align: center;
  }

  .contacto-grid { grid-template-columns: 1fr; gap: 20px; }
  .contacto-info-box { min-height: 300px; }
  .contacto-info-overlay h2 { font-size: 32px; }

  /* Ficha de producto en móvil */
  .producto-layout-v3 { flex-direction: column; gap: 20px; }
  .columna-imagen-v3 { flex: none; width: 100%; max-width: 100%; }
  .marco-foto-principal { width: 100%; box-sizing: border-box; padding: 10px; }
  .foto-principal { max-height: 300px; }
  .contenedor-miniaturas-v3 { justify-content: flex-start; padding-bottom: 10px; }
  .mini-foto-nav { width: 60px; height: 60px; }
  .info-tecnica-v3 { width: 100%; text-align: center; }
  .btn-consultar-final { display: block; width: 100%; box-sizing: border-box; }
  .spec-key, .spec-val { font-size: 13px; }
}
