/* ===== CUSTOM STYLES FOR LA NIÑA FRESA ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== SCROLL REVEAL (below-fold only, progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }
}

/* ===== NAVBAR SCROLL STATE ===== */
.nav-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    box-shadow: 0 4px 30px rgba(154, 43, 43, 0.08);
}

/* ===== SMOOTH IMAGE LOADING ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9a2b2b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fffcf8;
}

::-webkit-scrollbar-thumb {
    background: #d4c4a0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b83939;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRODUCT CARD HOVER ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: #f9d0d0;
    color: #6a1f1f;
}
