/* ==========================================================
   ESTÉTICA CREACIONES MARILYN - MINIMALISMO & LUMINOSIDAD
   Fase 8: Performance & Smooth Loading
   ========================================================== */

/* 1. Reset & Tipografía */
body { 
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* 2. Variables Globales (Luz LED Rosa) */
:root {
    --brillo-led: rgba(255, 182, 193, 0.5); /* Rosa suave joyería */
    --negro-dawn: #121212;
}

/* 3. Hero Section - Efecto de Profundidad */
#hero-section {
    transition: background-image 0.7s ease-in-out;
    background-color: var(--negro-dawn);
}

/* 4. Tarjetas de Producto (Efecto Vitrina) */
article {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

article:hover {
    transform: translateY(-5px);
}

/* 5. Efecto Iluminación Lineal LED sobre Imágenes */
article div.relative::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0px var(--brillo-led);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

article:hover div.relative::after {
    box-shadow: inset 0 0 40px 2px var(--brillo-led);
}

/* 6. Botón de WhatsApp (Minimalismo Shopify) */
article a {
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

article a:hover {
    background-color: var(--negro-dawn);
    color: white;
    box-shadow: 0 4px 15px var(--brillo-led);
}

/* 7. Detalles Finales: Scrollbar y Selección */
::selection {
    background-color: var(--brillo-led);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f9f9f9;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d1d1d1;
}

/* ==========================================================
   NUEVO: ANIMACIONES DE RENDIMIENTO (FASE 8)
   ========================================================== */

/* Animación de aparición suave */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Clase que aplicaremos a las imágenes cargadas */
.img-lazy-load {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Fondo gris suave mientras la imagen descarga */
.img-container-placeholder {
    background-color: #f3f4f6;
    position: relative;
}

/* Ajuste para que el contador de la galería no se oculte */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}