/* /assets/css/style.css */

/* ============================================ */
/* 1. PALETA DE COLORES "EARTH TONES" Y VARIABLES */
/* ============================================ */
:root {
    --color-darkest: #4A443F;
    --color-primary: #8E7C6F;
    --color-primary-hover: #6B6159;
    --color-secondary: #A3968F;
    --color-light-bg: #fdfdfb;
    --color-light-accent: #E6E2D3;
    --color-text-light: #f1f1f1;
    --color-marron-claro: #c8a27a; 
}

/* ============================================ */
/* 2. ESTILOS BASE Y TIPOGRAFÍA */
/* ============================================ */
body {
    background-color: var(--color-light-bg);
    color: var(--color-darkest);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-darkest); 
    font-weight: 500;
}

a, .btn-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, .btn-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ============================================ */
/* 3. NAVEGACIÓN STICKY (CONTRASTE FIX) */
/* ============================================ */
.navbar-custom {
    background-color: rgba(0, 0, 0, 0.4) !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    z-index: 1040;
}

.navbar-custom.scrolled {
    background-color: #ffffff !important; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled .nav-link {
    color: var(--color-darkest) !important;
}

.offset-navbar {
    top: 42px !important;
}

/* ============================================ */
/* 4. HERO Y SLIDER (EFECTO ZARA - SIN RECORTES) */
/* ============================================ */
#heroSlider, .carousel-inner, .carousel-item, .hero-category-section {
    min-height: 85vh;
    max-height: 1000px; 
    background-color: var(--color-light-accent); /* Relleno lateral */
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.carousel-img-container {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* CRÍTICO: Muestra la foto entera sin cortar cabezas */
    background-size: contain !important; 
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.text-shadow { 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important; 
}

@media (max-width: 768px) { 
    .carousel-img-container { 
        min-height: 50vh; 
        background-size: cover !important; /* En móvil preferimos llenar pantalla */
    }
}

/* ============================================ */
/* 5. CARDS DE PRODUCTO Y COLECCIÓN */
/* ============================================ */
.card {
    border: none;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-img-top {
    width: 100%;
    height: 350px; 
    object-fit: contain; 
    background-color: var(--color-light-accent);
}

.btn-dark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light); 
}

/* ============================================ */
/* 6. SECCIÓN TOTAL LOOKS (FOTOS GRANDES) */
/* ============================================ */
.total-look-card .total-look-img, 
.look-card-image-container {
    width: 100%;
    height: 100%; /* Altura imponente para PC */
    object-fit: contain !important; 
    background-color: var(--color-light-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.look-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .total-look-card .total-look-img, 
    .look-card-image-container {
        height: 500px; /* Ajuste para que no sea excesivo en móvil */
    }
}

/* ============================================ */
/* 7. GALERÍA UNIVERSO SONIA B (CON VÍNCULOS) */
/* ============================================ */
.gallery-square-item { 
    padding-bottom: 100%; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
}

.gallery-square-item img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.gallery-square-item:hover img {
    transform: scale(1.05);
}

.gallery-link-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-square-item:hover .gallery-link-overlay {
    opacity: 1;
}

/* ============================================ */
/* 8. FIX AJAX (LIMPIEZA DE MARCOS DE ERROR) */
/* ============================================ */
#ajaxProductContainer {
    min-height: 100px;
    border: none !important; /* Elimina cualquier marco rojo o borde */
    outline: none !important;
}

/* ============================================ */
/* 9. OTROS BLOQUES Y UTILIDADES */
/* ============================================ */
.home-block-img { width: 100%; height: 60vh; object-fit: cover; }
.bg-light { background-color: var(--color-light-accent) !important; }
.bg-dark { background-color: var(--color-darkest) !important; }
.bg-marron { background-color: var(--color-marron-claro) !important; }

/* Ajuste para las miniaturas en la página de producto/look */
.look-image-thumbnail { 
    width: 100%; 
    height: 120px; 
    object-fit: cover; 
    cursor: pointer; 
    border: 2px solid transparent; 
}
.look-image-thumbnail.active { border-color: var(--color-primary); }