/* =============================================
   La Michoacana — Custom Styles
   ============================================= */

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

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

body {
    min-height: 100vh;
}

/* Selection */
::selection {
    background: #b91c1c;
    color: #fff;
}

/* =============================================
   Hero Geometric Shapes
   ============================================= */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -100px;
    border: 2px solid rgba(255, 170, 170, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 5%;
    background: rgba(255, 122, 122, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 5%;
    background: rgba(255, 170, 170, 0.1);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.shape-rect-1 {
    width: 80px;
    height: 80px;
    top: 25%;
    left: 8%;
    background: rgba(255, 77, 77, 0.12);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 12%;
    border: 2px solid rgba(255, 170, 170, 0.2);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 122, 122, 0.08);
    top: 40%;
    left: 3%;
    animation: float 9s ease-in-out infinite;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* =============================================
   Marquee
   ============================================= */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* =============================================
   Scroll Reveal (progressive enhancement)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Navbar Scroll State
   ============================================= */
#navbar.scrolled {
    background: rgba(253, 242, 242, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(131, 20, 20, 0.08);
}

#navbar.scrolled .logo-text {
    color: #831414;
}

/* =============================================
   Mobile Menu Transitions
   ============================================= */
.mobile-link {
    transition: color 0.2s ease;
}

/* =============================================
   Smooth Image Loading
   ============================================= */
img {
    background-color: #fce7e7;
}

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

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    nav, .scroll-reveal, .animate-marquee {
        display: none;
    }
}
