/* =========================================
   Estilos Generales - Fiesta Las Raíces
   ========================================= */

html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
}

/* Colores y Botones de la Marca */
.text-brand { color: #d97706; }
.bg-brand { background-color: #d97706; }

.btn-brand {
    background-color: #d97706;
    color: white;
    border: none;
}
.btn-brand:hover {
    background-color: #b45309;
    color: white;
}

.btn-outline-brand {
    color: #d97706;
    border-color: #d97706;
}
.btn-outline-brand:hover {
    background-color: #d97706;
    color: white;
}

/* Hero Sections */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* Modificadores de altura para el inicio y subpáginas */
.hero-section.home { min-height: 100vh; }
.hero-section.page { min-height: 60vh; }

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.8) 75%, rgba(15,23,42,1) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Botón Volver Arriba */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #212529;
    color: #ffffff;
    border: 2px solid #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    font-size: 1.2rem;
}
#btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Ajustes de anclaje para el fixed navbar */
section {
    scroll-margin-top: 76px;
}

/* Horizontal Scroll para Shows */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #d97706 #f1f1f1;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
.horizontal-scroll-wrapper::-webkit-scrollbar { height: 8px; }
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #d97706;
    border-radius: 10px;
}
.horizontal-scroll-wrapper > .show-card { flex: 0 0 320px; }

/* Efectos Glassmorphism Generales */
.glass-navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animación de caída en cascada para la Navbar */
@keyframes dropBounce {
    0% {
        opacity: 0;
        transform: translateY(-25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.drop-anim {
    display: inline-block;
    opacity: 0;
    animation: dropBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* Animación de aparición hacia arriba (Slide Up) para el Hero */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.slide-up-anim {
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* Animación de entrada lateral (Slide In Left) al hacer scroll */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.stagger-group .stagger-item {
    opacity: 0;
}
.stagger-group.visible .stagger-item {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.2) !important;
    border-color: rgba(217, 119, 6, 0.5) !important;
}

/* Tarjetas de Colectividades */
.colectividad-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.colectividad-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.2) !important;
    border-color: rgba(217, 119, 6, 0.5) !important;
}
.colectividad-card .arrow-icon { transition: transform 0.3s ease, color 0.3s ease; color: rgba(255, 255, 255, 0.3) !important; }
.colectividad-card:hover .arrow-icon { transform: translateX(5px); color: #d97706 !important; }