/* Reseteo básico */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body { background-color: #f9f9f9; color: #333; font-size: 18px; overflow-x: hidden; }

/* --- BARRA SUPERIOR --- */
.top-bar { background-color: #0d1b2a; color: white; text-align: center; font-size: 0.9rem; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #1a2b3c; }
.top-item { flex: 1; padding: 12px 5px; border-right: 1px solid rgba(255, 255, 255, 0.2); display: flex; justify-content: center; align-items: center; }
.top-item:last-child { border-right: none; }

/* --- NAVEGACIÓN (PEGAJOSA / STICKY) --- */
nav { 
    background: white; 
    padding: 15px 5%; 
    border-bottom: 1px solid #eee;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
.logo img { height: 60px; width: auto; display: block; }

/* --- HERO SECTION (CON VIDEO) --- */
.hero { 
    position: relative; 
    height: 650px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 20px; 
    overflow: hidden; 
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0; 
}

.hero-content { 
    background: rgba(40, 50, 65, 0.95); 
    padding: 50px 40px; 
    max-width: 550px; 
    color: white; 
    border-radius: 0; 
    position: relative;
    z-index: 1; 
}

.hero-content h2 { font-size: 2.8rem; margin-bottom: 30px; font-weight: 400; line-height: 1.2; }
.hero-content p { margin-bottom: 40px; line-height: 1.8; font-size: 1.05rem; }
.btn { background: transparent; border: 1px solid white; color: white; padding: 12px 35px; text-decoration: none; text-transform: uppercase; transition: 0.3s; font-size: 0.9rem; letter-spacing: 1px; }
.btn:hover { background: white; color: #333; }

/* --- BENEFICIOS --- */
.benefits { display: flex; justify-content: center; background: white; flex-wrap: wrap; border-bottom: 1px solid #ddd; width: 100%; }
.benefit-item { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; min-width: 250px; border-right: 1px solid #ddd; }
.benefit-item:last-child { border-right: none; }
.benefit-icon { width: 50px; height: 50px; margin-right: 20px; object-fit: contain; }
.benefit-text h3 { color: #333; font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.benefit-text p { color: #666; font-size: 1rem; }

/* --- PRODUCTOS (PORTADA) --- */
.products-section { padding: 70px 10%; text-align: center; }
.section-title { margin-bottom: 50px; font-size: 2.5rem; color: #444; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; }
.product-card { background: white; padding: 25px; border-radius: 10px; transition: transform 0.3s ease; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: auto; margin-bottom: 20px; object-fit: contain; max-height: 280px; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: #333; min-height: 45px; display: flex; align-items: center; justify-content: center; }
.price { color: #0077b6; font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.badge { position: absolute; top: 15px; left: 15px; background: #333; color: white; padding: 7px 12px; font-size: 0.8rem; text-transform: uppercase; border-radius: 4px; }
.btn-card { display: block; width: fit-content; margin: 0 auto; background-color: #0d1b2a; color: white; padding: 10px 25px; border-radius: 25px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; transition: background 0.3s; }
.product-card:hover .btn-card { background-color: #000000; }

/* --- FOOTER --- */
footer { background: #0d1b2a; color: white; padding: 70px 10% 30px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; text-align: center; margin-bottom: 50px; }
.footer-item { flex: 1; min-width: 220px; margin-bottom: 30px; }
.footer-item h4 { margin-bottom: 20px; color: white; font-weight: 600; font-size: 1.2rem; }
.footer-item p { color: #ccc; font-size: 1rem; line-height: 1.7; }
.copyright { text-align: center; font-size: 0.9rem; color: #999; border-top: 1px solid #1a2b3c; padding-top: 30px; }

/* --- ESTILOS DE DETALLE DE PRODUCTO (COMPACTADO) --- */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    /* CAMBIO: Reduje el padding superior a 30px y el inferior a 0 */
    padding: 30px 5% 0px; 
    gap: 40px;
    background: white;
    max-width: 1400px; 
    margin: 0 auto;
    align-items: flex-start;
}

/* CONTENEDOR DE LA GALERÍA */
.gallery-wrapper {
    flex: 1.5; 
    min-width: 400px;
    display: flex;
    flex-direction: row; 
    gap: 25px;
}

/* LISTA VERTICAL DE MINIATURAS */
.thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 110px; 
}

.thumb {
    width: 100px; 
    height: 100px;
    object-fit: contain;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    background-color: #fff; 
}

.thumb:hover {
    border-color: #0077b6;
    opacity: 0.8;
}

/* CONTENEDOR FOTO GRANDE */
.main-image-container {
    flex: 1;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
}

#mainImage {
    width: 100%;
    height: auto;
    max-height: 750px; 
    object-fit: contain;
}

/* INFORMACIÓN (TEXTOS MÁS JUNTOS) */
.detail-info { 
    flex: 1; 
    min-width: 300px; 
    padding-top: 0; /* Quitamos padding extra arriba */
}

.detail-info h2 { 
    font-size: 2.4rem; 
    color: #333; 
    margin-bottom: 10px; /* Reducido de 15px */
    line-height: 1.2; 
    font-weight: 400; 
}

.detail-price { 
    font-size: 2rem; 
    color: #333; 
    font-weight: 400; 
    margin-bottom: 20px; /* Reducido de 30px */
    display: block; 
}

.detail-description { 
    font-size: 1rem; 
    line-height: 1.7; 
    color: #666; 
    margin-bottom: 25px; /* Reducido de 35px */
}

.specs-title { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 10px; /* Reducido de 15px */
    border-bottom: 1px solid #ddd; 
    padding-bottom: 10px; 
    color: #333; 
}

.specs-list { 
    list-style: none; 
    margin-bottom: 25px; /* Reducido de 35px */
}

.specs-list li { 
    margin-bottom: 8px; /* Reducido de 10px */
    font-size: 0.95rem; 
    color: #666; 
}
.specs-list li::before { content: "•"; color: #0077b6; font-weight: bold; margin-right: 10px; }

/* --- BOTÓN DE WHATSAPP --- */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366; 
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px; 
    margin-top: 5px; /* Reducido */
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    max-width: 350px;
}
.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-btn { display: inline-block; text-decoration: none; color: #666; font-size: 0.9rem; border: 1px solid #ccc; padding: 10px 20px; border-radius: 5px; transition: 0.3s; margin-top: 20px;}
.back-btn:hover { background: #333; color: white; border-color: #333; }

/* --- SECCIÓN DE RESEÑAS --- */
.reviews-section {
    padding: 70px 10%;
    background-color: #f4f4f4;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-img-container {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.stars {
    color: #FFD700;
    font-size: 1.4rem; 
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: auto;
}

.reviews-cta {
    margin-top: 50px;
}

.btn-leave-review {
    display: inline-block;
    text-decoration: none;
    color: #0077b6;
    border: 2px solid #0077b6;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: transparent;
}

.btn-leave-review:hover {
    background-color: #0077b6;
    color: white;
}

/* --- SECCIÓN FAQ (PREGUNTAS FRECUENTES) --- */
.faq-section {
    padding: 70px 10%;
    background-color: white;
    margin: 0 auto;
    text-align: center; 
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left; 
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #0077b6;
}

.faq-item summary {
    background-color: #fff;
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: #333;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #0077b6;
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg); 
}

.faq-item p {
    padding: 0 20px 20px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px; 
    padding-top: 15px;
}

/* --- PRODUCTOS SIMILARES --- */
.similar-products {
    padding: 30px 10% 60px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    text-align: center;
}
.similar-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .benefit-item { border-right: none; border-bottom: 1px solid #ddd; }
    
    .gallery-wrapper { flex-direction: column-reverse; }
    .thumbnails-vertical { 
        flex-direction: row; 
        width: 100%; 
        justify-content: center;
        height: auto;
    }
    .thumb { width: 80px; height: 80px; } 
}