/* ============================================================
   DUJA — Estilos Personalizados
   ============================================================ */

/* --- Base --- */
body {
    font-family: 'Outfit', sans-serif;
    /* Fondo rosado perla suave — tono cálido y elegante */
    background: linear-gradient(145deg, #fdf0f4 0%, #fef6f8 50%, #fdf2f5 100%);
    background-attachment: fixed;
    color: #1a1a1a;
    animation: pageReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Efecto Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 133, 160, 0.15);
}

/* --- Animación de entrada suave --- */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Reveal de página al cargar --- */
@keyframes pageReveal {
    from { opacity: 0; transform: scale(1.01); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Hover en tarjetas de producto --- */
.product-card img {
    transition: transform 0.5s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* --- Animación escalonada (stagger) en galería --- */
.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 80ms; }
.product-card:nth-child(3) { animation-delay: 160ms; }
.product-card:nth-child(4) { animation-delay: 240ms; }
.product-card:nth-child(5) { animation-delay: 320ms; }
.product-card:nth-child(6) { animation-delay: 400ms; }
.product-card:nth-child(7) { animation-delay: 480ms; }
.product-card:nth-child(8) { animation-delay: 560ms; }

/* --- Scrollbar personalizada (dorado) --- */
.custom-scrollbar::-webkit-scrollbar        { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track  { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb  { background: #d4af37; border-radius: 10px; }

/* --- Animación Ken Burns para el Slider --- */
@keyframes kenburns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.ken-burns {
    animation: kenburns 10s ease-in-out infinite alternate;
}

/* ============================================================
   LIGHTBOX — Zoom de foto al hacer clic en el modal
   ============================================================ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 5, 7, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}
#lightbox.active {
    display: flex;
}
#lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    cursor: default;
    animation: zoomIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
#lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
#lightbox-close:hover {
    background: rgba(224,133,160,0.4);
}
#lightbox-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ============================================================
   ADAPTACIONES POR DISPOSITIVO
   ============================================================ */

/* --- Etiquetas de texto en el navbar (solo desktop) --- */
.nav-label {
    display: none;
}
body.is-desktop .nav-label {
    display: inline;
}

/* --- Modal: pantalla completa en móvil --- */
body.is-mobile #modal {
    padding: 0;
    align-items: flex-end;
}
body.is-mobile #modal > div {
    max-height: 95vh;
    border-radius: 2rem 2rem 0 0;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}
body.is-mobile #modal > div > div:first-child {
    height: 45vh !important;
    width: 100% !important;
}

/* --- Galería: más compacta en móvil --- */
body.is-mobile .product-card .price-label {
    font-size: 0.7rem;
}

/* --- Navbar --- */
body.is-mobile nav .logo-img  { width: 2.25rem; height: 2.25rem; }
body.is-desktop nav .logo-img { width: 3rem;    height: 3rem; }

/* --- Botones admin --- */
body.is-mobile .admin-btn-text  { display: none; }
body.is-desktop .admin-btn-text { display: inline; }
