/* ============================
   Estilos Generales
============================ */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
    color: #333;  
}

/* ============================
   Header y Navbar
============================ */
.header {
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: white;
    overflow: visible;
}   

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;   /* Garantiza estar sobre el contenido */
    height: 70px;
    padding: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px;
    transition: color 0.3s ease-in-out;
}

.nav-menu a:hover {
    color: #cccccc;
}

/* ============================
   Menú desplegable (submenús)
============================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: rgba(20, 20, 20, 0.95);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 160px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 3000; /* Siempre encima del contenido */
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================
   Sección de Producto
============================ */
.product-content {
    max-width: 1200px;
    margin:  60px auto 30px;
    padding: 0 20px;
}

.product-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #f9f9f9;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
    line-height: 1.6;
}

/* Columna izquierda → Texto */
.product-info-section .text-box {
    flex: 1 1 55%;
    min-width: 300px;
}

/* Columna derecha → Imágenes */
.product-info-section .image-box {
    flex: 1 1 40%;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Galería → ahora con GRID */
.product-info-section .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    width: 100%;
}

.product-info-section .gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.product-info-section .gallery img:hover {
    transform: scale(1.05);
}

/* En pantallas chicas, vuelve a una sola columna */
@media (max-width: 768px) {
    .product-info-section {
        flex-direction: column;
    }

    .product-info-section .gallery {
        grid-template-columns: 1fr;
    }
}

/* Modal para ampliar imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 5000; /* bien arriba de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ============================
   Footer
============================ */
.footer { 
    background-color: #333; 
    color: white; 
    padding: 3rem 2rem; 
    box-sizing: border-box; 
}

.footer-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.footer-contact, .footer-map { 
    flex: 1; 
    min-width: 300px; 
    margin: 1rem; 
}

.footer-contact h3, .footer-map h3 { 
    border-bottom: 2px solid #fff; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.footer-contact a { 
    color: #4da6ff; 
    text-decoration: none; 
}

.footer-contact a:hover { 
    text-decoration: underline; 
}

/* ============================
   Responsive
============================ */
@media (max-width: 960px) {
    .navbar {
        height: 80px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(20, 20, 20, 0.95);
        width: 100%;
        height: 100vh;
        text-align: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 2500;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        min-width: auto;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .dropdown.open .dropdown-menu {
        max-height: 400px;
    }

    .dropdown-menu a {
        padding: 12px 0;
    }
}

/* --- Botón Hamburguesa --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Mostrar hamburguesa solo en móviles */
@media (max-width: 960px) {
    .hamburger {
        display: block;
        z-index: 3000;
    }

    /* Animación al activar */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Botón flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 4000;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* hace el logo blanco */
}

/* Miniatura */
.video-thumb {
  position: relative;
  display: inline-block;
  width: 100%;     /* Ocupa todo el ancho disponible */
  cursor: pointer;
}

.video-thumb video {
  width: 100%;
  height: auto;
  pointer-events: none; /* desactiva clic en miniatura */
  border-radius: 6px;
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Modal exclusivo para video */
.video-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  overflow: auto;
  padding-top: 60px;
}

.video-modal video {
  display: block;
  margin: auto;
  width: 90%;        /* casi todo el ancho */
  max-width: 1200px; /* límite opcional en escritorio */
}

.video-modal .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .video-modal video {
    width: 100%; /* móvil ocupa todo el ancho */
  }
}

/* Contenedor de la sección de videos */
.video-section {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

/* Título */
.video-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Grid responsive para los videos */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  justify-items: center;
}

/* Miniatura de cada video dentro de la galería */
.video-gallery .video-thumb {
  max-width: 100%;  /* elimina el límite de 280px */
}
