/* =========================================
   VARIABLES DE COLOR
========================================= */
:root {
    --fondo-oscuro: #0a0a0a;        
    --fondo-tarjeta: #1a1a1a;        
    --texto-principal: #f5f5f5;      
    --texto-secundario: #a0a0a0;      
    --dorado: #d4af37;            
    --dorado-claro: #fce883;      
    --dorado-resplandor: rgba(212, 175, 55, 0.3); 
    --borde-gris: #333333;
    --whatsapp-verde: #25D366;
    --whatsapp-resplandor: rgba(37, 211, 102, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

/* EFECTO DE FONDO PROFESIONAL ANIMADO */
body {
    background: linear-gradient(-45deg, #050505, #141414, #0a0a0a, #000000);
    background-size: 400% 400%;
    animation: gradienteFondo 15s ease infinite;
    color: var(--texto-principal);
    overflow-x: hidden;
}

@keyframes gradienteFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes subirOpacidad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulsoResplandor {
    0% { box-shadow: 0 0 8px var(--dorado-resplandor); }
    50% { box-shadow: 0 0 15px var(--dorado); }
    100% { box-shadow: 0 0 8px var(--dorado-resplandor); }
}

.animar-entrada { animation: subirOpacidad 1s ease-out both; }
.retraso-1 { animation-delay: 0.2s; }

/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */
.barra-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%; /* Reducido para no ocupar tanta pantalla */
    background-color: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid var(--borde-gris);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 1.3rem; /* Tamaño más natural */
    font-weight: 800;
    color: var(--texto-principal);
    letter-spacing: 1px;
}

.logo span { color: var(--dorado); }

.enlaces-navegacion a {
    text-decoration: none;
    color: var(--texto-principal);
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.enlaces-navegacion a:hover { color: var(--dorado); }

/* Estilos para el botón de WhatsApp Premium */
.boton-nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 211, 102, 0.12);
    color: #25d366 !important;
    padding: 8px 20px;
    border: 2px solid #25d366;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.25);
}

.boton-nav-whatsapp svg {
    width: 16px;
    height: 16px;
}

.boton-nav-whatsapp:hover {
    background-color: #25d366;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

/* =========================================
   SECCIÓN HERO
========================================= */
.seccion-principal {
    position: relative;
    min-height: 70vh; /* Ligeramente más compacto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.fondo-hero {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px; 
    background-image: url('logo.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.3); 
    z-index: 1;
}

.contenido-principal {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 5%;
}

.texto-principal h1 {
    font-size: 3.2rem; /* Ajustado de 4.5rem a algo más limpio */
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--texto-principal);
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.texto-principal p {
    color: #e0e0e0;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    font-size: 1rem; /* De 1.2rem a 1rem */
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.boton-primario {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--dorado);
    color: var(--fondo-oscuro);
    border: 2px solid var(--dorado);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px var(--dorado-resplandor);
}

.boton-primario:hover {
    background-color: transparent;
    color: var(--dorado);
    box-shadow: 0 0 25px var(--dorado);
    transform: translateY(-3px);
}

/* =========================================
   SECCIÓN PRODUCTOS Y CARRUSEL
========================================= */
.seccion-productos {
    padding: 60px 5%;
    text-align: center;
    background-color: transparent; 
}

.seccion-productos h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dorado);
}

.subtitulo {
    color: var(--texto-secundario);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.contenedor-carrusel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px; /* Añadimos padding para que las flechas flotantes no tapen el contenido */
}

/* --- Botones del Carrusel (Estilo Premium Flotante) --- */
.flecha-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Efecto Cristal (Glassmorphism) */
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Tipografía y bordes sutiles */
    color: var(--dorado);
    font-size: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.4); 
    
    /* Interacción fluida */
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.flecha-carrusel:hover {
    background: var(--dorado);
    color: var(--fondo-oscuro);
    border-color: var(--dorado);
    
    /* Efecto de elevación e iluminación premium */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3), 0 0 15px var(--dorado-resplandor);
}

.flecha-carrusel:active {
    /* Efecto físico al hacer clic */
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 5px 10px rgba(212, 175, 55, 0.2);
}

/* Posicionamiento a los extremos */
.flecha-izq { left: 0; }
.flecha-der { right: 0; }

/* AJUSTES DE CARRUSEL PARA INTEGRACIÓN JS */
.carrusel-productos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
    cursor: grab;
    scroll-snap-type: none; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.carrusel-productos::-webkit-scrollbar { display: none; }
.carrusel-productos:active { cursor: grabbing; }

.tarjeta-producto {
    flex: 0 0 calc(25% - 15px); /* Mostramos 4 por vista en PC para que no sean tan anchos */
    flex-shrink: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.6); 
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    color: inherit;
    border: 1px solid var(--borde-gris);
    transition: all 0.4s ease;
    user-select: none;
}

.contenedor-imagen {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Necesario para ubicar la sombra luego */
    
    /* ESTE ES EL SECRETO DEL FONDO */
    /* Crea un círculo gris claro en el centro que se difumina a negro puro en los bordes */
    background: radial-gradient(circle at 50% 50%, #3a3a3a 0%, #111111 60%, #000000 100%);
    
    /* Un borde muy sutil para que la tarjeta resalte */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.contenedor-imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none; 
}

.tarjeta-producto h3 { font-size: 0.95rem; margin-bottom: 5px; }
.estrellas { color: var(--dorado); margin-bottom: 8px; font-size: 1rem; }
.precio { font-weight: 800; font-size: 1.1rem; color: var(--dorado); }

.tarjeta-producto:hover {
    transform: translateY(-8px);
    border-color: var(--dorado);
    box-shadow: 0 8px 20px var(--dorado-resplandor);
    background-color: rgba(26, 26, 26, 0.9);
}

.tarjeta-producto.destacado { 
    border: 2px solid var(--dorado); 
    animation: pulsoResplandor 3s infinite; 
}

/* =========================================
   VENTANA EMERGENTE (MODAL)
========================================= */
#ventanaModal, .modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body.modal-abierta { overflow: hidden; }

.cerrar-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: var(--texto-principal);
    font-size: 35px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}

.cerrar-modal:hover { color: var(--dorado); }

.contenido-modal, #imagenAmpliada {
    max-width: 80%; 
    max-height: 55vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    animation: subirOpacidad 0.4s;
    margin-bottom: 20px;
}

.texto-modal { margin-top: 5px; text-align: center; animation: subirOpacidad 0.6s; font-size: 0.9rem; }
.modal-btn { margin-top: 15px; }

/* =========================================
   SECCIÓN ASESORÍA Y FOOTER
========================================= */
.seccion-asesoria { padding: 60px 5%; display: flex; justify-content: center; }

.caja-asesoria {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    width: 100%; max-width: 700px;
    border: 1px solid var(--borde-gris);
}

.caja-asesoria h2 { font-size: 2rem; margin-bottom: 15px; }
.caja-asesoria p { margin-bottom: 25px; font-size: 0.95rem; color: var(--texto-secundario); }

.boton-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: transparent; color: var(--whatsapp-verde);
    border: 2px solid var(--whatsapp-verde); padding: 12px 25px;
    border-radius: 30px; font-weight: 800; text-decoration: none; font-size: 0.95rem;
    text-transform: uppercase; transition: all 0.4s ease;
}
.boton-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.boton-whatsapp:hover {
    background-color: var(--whatsapp-verde); color: #000;
    box-shadow: 0 0 20px var(--whatsapp-verde); transform: scale(1.05);
}

footer {
    background-color: rgba(5, 5, 5, 0.9);
    text-align: center; padding: 40px 5%;
    border-top: 1px solid var(--borde-gris);
    font-size: 0.85rem;
}
.redes-sociales { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.redes-sociales a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background-color: transparent; color: var(--dorado);
    border: 1px solid var(--borde-gris); transition: all 0.4s ease;
}
.redes-sociales a svg { width: 18px; height: 18px; }
.redes-sociales a:hover {
    background-color: var(--dorado); color: var(--fondo-oscuro);
    transform: translateY(-5px); border-color: var(--dorado);
}

/* =========================================
   RESPONSIVO
========================================= */
@media (max-width: 900px) {
    .texto-principal h1 { font-size: 2.5rem; }
    .tarjeta-producto { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 600px) {
    .enlaces-navegacion { display: none; }
    .texto-principal h1 { font-size: 2rem; }
    .tarjeta-producto { flex: 0 0 80%; }
    .flecha-carrusel { display: none; } 
    .contenedor-carrusel { padding: 0; } /* Ajuste: quitamos el padding para aprovechar la pantalla en móvil */
    .seccion-calidad, .seccion-productos, .seccion-asesoria { padding: 40px 5%; }
}

/* WIDGETS Y SECCIONES EXTRA */
.footer-corporativo { background: #111; color: #fff; padding: 30px 20px; margin-top: 40px; font-size: 0.85rem;}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 900px; margin: auto; gap: 20px;}
.footer-col { flex: 1; min-width: 200px; margin-bottom: 15px; }
.footer-col h4 { color: #f4b400; margin-bottom: 10px; font-size: 1rem;}

#cookie-banner { 
    position: fixed; bottom: 0; width: 100%; 
    background: #333; color: white; padding: 12px; 
    text-align: center; z-index: 1000; font-size: 0.85rem;
}
#cookie-banner button { 
    background: #f4b400; border: none; padding: 8px 15px; 
    cursor: pointer; color: #000; font-weight: bold; border-radius: 5px; font-size: 0.8rem;
}

.seccion-testimonios { padding: 50px 20px; background-color: #111; text-align: center; }
.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; max-width: 900px; margin: 30px auto 0;
}
.card-testimonio {
    background: #111; padding: 20px; border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease;
    font-size: 0.9rem;
}
.card-testimonio:hover { transform: translateY(-5px); }
.card-testimonio p { font-style: italic; color: #777; margin-bottom: 10px; }

/* BANNER DE PROMOCIÓN */
.banner-promocion {
    background-color: #f5b921; color: #000000; text-align: center;
    padding: 15px; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; 
    font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    width: 100%; z-index: 1000; position: relative;
    animation: efectoAlerta 1.5s infinite alternate;
}
@keyframes efectoAlerta {
    0% { background-color: #f5b921; color: #000000; box-shadow: 0 0 5px rgba(245, 185, 33, 0.2); }
    100% { background-color: #ff3b3b; color: #ffffff; box-shadow: 0 0 15px rgba(255, 59, 59, 0.8); }
}

/* PRECIOS */
.contenedor-precios { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.precio-regular { text-decoration: line-through; color: #888888; font-size: 0.8rem; font-weight: 600; }
.precio-promo { color: #f5b921; font-size: 1.15rem; font-weight: 800; }

/* WIDGET FLOTANTE INFERIOR */
.widget-flotante {
    position: fixed; bottom: 20px; left: 20px; 
    background-color: #111111; color: #ffffff;
    border-left: 4px solid #f5b921; padding: 12px 20px 12px 12px;
    border-radius: 6px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
    z-index: 1000; max-width: 280px; font-family: 'Montserrat', sans-serif;
    animation: entrarDeslizando 0.8s ease-out;
}
.contenido-widget { display: flex; align-items: center; gap: 10px; }
.icono-alerta { font-size: 1.2rem; }
.widget-flotante p { margin: 0; font-size: 0.8rem; line-height: 1.3; font-weight: 500; }
.cerrar-widget { position: absolute; top: 2px; right: 8px; font-size: 1rem; color: #888888; cursor: pointer; transition: color 0.3s; }
.cerrar-widget:hover { color: #ffffff; }

@keyframes entrarDeslizando {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 768px) {
    .widget-flotante {
        bottom: 15px; left: 15px; right: 15px;
        max-width: none; width: auto; padding: 10px 20px 10px 10px;
    }
    .widget-flotante p { font-size: 0.75rem; }
}

/* CALIDAD TÉCNICA */
.seccion-calidad { background-color: #111111; color: #fff; padding: 50px 20px; text-align: center; }
.contenedor-ventajas { display: flex; justify-content: center; gap: 20px; margin-top: 25px; flex-wrap: wrap; }
.ventaja { background-color: #1a1a1a; padding: 20px; border-radius: 8px; max-width: 280px; border-top: 3px solid #f5b921; }
.icono-ventaja { font-size: 2rem; display: block; margin-bottom: 10px; }
.ventaja h3 { color: #f5b921; margin-bottom: 8px; font-size: 1rem;}
.ventaja p { font-size: 0.85rem; line-height: 1.4; color: #cccccc; }