/* VARIABLES DE COLOR (Identidad Cofradía) */
:root {
    --color-primario: #4a148c;   /* Morado Nazareno */
    --color-secundario: #c5a059; /* Dorado */
    --color-texto: #2c3e50;
    --color-fondo: #f8f9fa;
    --fuente-titulos: 'Cinzel', serif;
    --fuente-cuerpo: 'Lato', sans-serif;
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
}

/* --- NAVBAR (MENÚ) COMPACTO --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0; /* Espaciado reducido */
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px; /* Logo controlado */
    width: auto;
}

.nav-link {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primario) !important;
    font-size: 0.9rem;
    padding: 0 15px !important;
}

.nav-link:hover {
    color: var(--color-secundario) !important;
}

/* --- HERO (VIDEO/IMAGEN PRINCIPAL) --- */
.hero-section {
    position: relative;
    height: 100vh; /* Pantalla completa */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: #000;
    overflow: hidden;
    margin-top: 60px; /* Compensa la barra fija */
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border-bottom: 3px solid var(--color-secundario);
    display: inline-block;
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-secundario);
    margin: 10px auto 0;
}

/* --- TARJETAS (JUNTA) --- */
.card-junta {
    border: none;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    height: 100%;
    border-bottom: 4px solid var(--color-secundario);
}

.card-junta:hover {
    transform: translateY(-5px);
}

.card-junta i {
    font-size: 2rem;
    color: var(--color-primario);
    margin-bottom: 15px;
}

/* --- GALERÍA --- */
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s;
    margin-bottom: 20px;
}

.gallery-img:hover {
    opacity: 0.8;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer a { color: var(--color-secundario); text-decoration: none; }

/* --- COOKIES POPUP --- */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 350px;
    border-left: 5px solid var(--color-primario);
    display: none; /* Se activa con JS */
}
/* HERO SECTION OPTIMIZADA */
.hero-section {
    position: relative;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: #000; /* Fondo negro mientras carga */
}

/* El video se comporta como una imagen de fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover; /* CLAVE: Recorta el video para llenar sin deformar */
}

/* Fallback de imagen */
.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Capa oscura transparente */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% de oscuridad */
    z-index: 2;
}

/* Texto por encima de todo */
.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    border-bottom: 3px solid var(--color-secundario);
    display: inline-block;
    padding-bottom: 10px;
}