/* ===== CUSTOM STYLES FOR EL PATRON ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c3057;
}

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(74, 25, 66, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FLOATING CARDS (HERO) ===== */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default state: visible (for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is enabled, add hidden state via class */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* With reduced motion preference, ensure no animation */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card-1,
    .floating-card-2 {
        animation: none;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background-color: #D4A017;
    color: #4A1942;
}

/* ===== FORM STYLES ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A1942' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== DECORATIVE DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, #e5a824);
    border-radius: 2px;
}

/* ===== IMAGE LAZY LOAD PLACEHOLDER ===== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar, #backToTop, .floating-card-1, .floating-card-2 {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
