/* ============================================
   Centro de Bienestar Xiomara — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #fbbf24;
    color: #4d2030;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — only active when
   JS is enabled AND user prefers motion
   ============================================ */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
.js-enabled .reveal-delay-4 { transition-delay: 0.4s; }
.js-enabled .reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(45, 17, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Cards — subtle lift on hover
   ============================================ */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* ============================================
   Image lazy-load placeholder
   ============================================ */
img {
    background-color: rgba(143, 58, 88, 0.08);
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Focus visible
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #2d1119;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8f3a58;
}
