/* =========================================
   1. RESET Y BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* =========================================
   2. CABECERA (Header)
   ========================================= */
.main-header {
    background: #fff;
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Flotante */
.logo-wrapper {
    position: absolute;
    top: -70px;
    left: 0;
}

.hero-logo {
    height: 250px;
    width: auto;
    filter: drop-shadow(0px 4px 5px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    margin-left: 35px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #D4AF37;
}

/* =========================================
   3. CUERPO Y BANNER
   ========================================= */
.shop-container {
    padding-top: 40px;
}

.banner {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.banner h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.banner p {
    color: #888;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Grid de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 8%;
}

/* --- NUEVA REGLA PARA EL SCROLL --- */
#contenedor-productos {
    scroll-margin-top: 120px; /* Evita que el menú tape los productos al bajar */
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #bbb;
    font-style: italic;
    padding: 50px;
}

/* =========================================
   4. TARJETAS DE PRODUCTOS
   ========================================= */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: 0.4s;
    border-radius: 8px;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* CORRECCIÓN DE IMÁGENES (Ajuste perfecto) */
.product-img-container {
    width: 100%;
    height: 250px; /* Altura ideal */
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita recortes */
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.08);
}

/* =========================================
   5. ESTILOS DE CONTACTO
   ========================================= */
.contact-container {
    padding: 100px 5% 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.method-card {
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    transition: 0.3s;
    border-radius: 8px;
}

.method-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.method-card i {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 20px;
}

.btn-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 4px;
}

.btn-contact:hover {
    background: #D4AF37;
}

/* =========================================
   6. PIE DE PÁGINA (Footer)
   ========================================= */
.main-footer {
    background: #000;
    color: #fff;
    padding: 60px 8% 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 1px;
}

.footer-content strong {
    color: #D4AF37;
}

/* ALINEACIÓN DE MÉTODOS DE PAGO */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 2rem;
    margin-top: 15px;
    width: 100%;
}

.payment-methods i {
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
    vertical-align: middle;
}

.payment-methods i:hover {
    color: #D4AF37;
    transform: translateY(-3px);
}

/* CORRECCIÓN ENLACE WHATSAPP */
.wa-footer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* =========================================
   7. EXTRAS (Carrusel, Splash)
   ========================================= */

/* Carrusel de Marcas */
.brands-carousel {
    width: 100%;
    overflow: hidden;
    background: #faf7f7;
    padding: 30px 0;
    border-bottom: 10px solid #D4AF37;
}

.brands-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll-infinito 30s linear infinite;
}

.brand-slide {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-slide img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.4s;
}

.brand-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

/* Splash Screen (Pantalla de Carga) */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    height: 150px;
    margin-bottom: 20px;
    animation: pulse-luxury 2s infinite ease-in-out;
}

.luxury-loader {
    width: 50px;
    height: 2px;
    background: #D4AF37;
    margin: 10px auto;
    animation: loading-bar 1.5s infinite secondary;
}

#splash-screen p {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}

@keyframes pulse-luxury {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loading-bar {
    0% { width: 0; }
    100% { width: 100px; }
}

/* Clase para ocultar el splash */
.hidden-splash {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.8s ease, visibility 0.8s !important;
}

/* =========================================
   8. RESPONSIVE (Móvil Adaptable)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Cabecera Flexible */
    .main-header {
        height: auto;
        padding: 10px 0;
        position: relative;
    }

    .header-container {
        flex-direction: column;
        gap: 5px;
        algin-items: center;
    }

    /* 2. Logo Ajustado (Grande) */
    .logo-wrapper {
        position: static;
        margin-bottom: 0; /* Quitamos el margen inferior */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
        text-align: center;
    }
   /* Regla especial para que el enlace no estorbe */
    .logo-wrapper a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-logo {
        display: block;       /* Se comporta como bloque sólido */
        margin: 0 auto;       /* <--- LA CLAVE: Márgenes automáticos a los lados */
        height: auto;
        width: 80%;           /* Tamaño grande pero controlado */
        max-width: 280px;
        object-fit: contain;
    }

    /* 3. Menú Visible y Ordenado */
    .main-nav {
        width: 100%;
        margin-left: 0;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        background: #f8f8f8;
        padding: 10px;
        border-radius: 15px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        color: #333;
    }

    /* 4. Ajustes Generales */
    .banner h1 {
        font-size: 1.8rem;
    }
     .banner {
           padding: 30px 15px;
       }
    
    .shop-container {
        padding-top: 10px;
    }
   /* IMPORTANTE: Ajuste del scroll en móvil */
    #contenedor-productos {
        scroll-margin-top: 20px; /* En móvil no es sticky, así que bajamos el margen */
    }
}



