/*
----------------------------------------------------------------------------------------------------------
    CSS -> Galia Web - Custom ["header.css"]
----------------------------------------------------------------------------------------------------------
*/

/* ===== HERO CAROUSEL SECTION ===== */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px); /* Ocupa el 100% del alto de la ventana */
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background-color: #000; /* Fondo negro por si las imágenes tardan */
}

/* Ajuste para compensar el menú fijo si es necesario */
.navbar.fixed-top + .hero-carousel-section {
    margin-top: 0; /* El menú está superpuesto, no empuja */
}

/* Cada slide ocupa el 100% */
.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner {
    height: 100%;
    
}

/* Estilo para cada slide con imagen de fondo */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Textos del hero - usando tus colores */
.hero-title {
    font-family: 'Montserrat', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align:center;
}

.hero-subtitle{
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #f1f1f1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align:center;
}

/* Botones usando tu color #af3f38 */
.hero-buttons {
    text-align:center;
}

.hero-buttons .btn-primary {
    background-color: #af3f38;
    border-color: #af3f38;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background-color: #8f2f2a; /* Versión más oscura del rojo */
    border-color: #8f2f2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(175, 63, 56, 0.4);
}

.hero-buttons .btn-outline-light {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Personalizar indicadores (puntos) con tu color */
.hero-carousel-section .carousel-indicators [data-bs-target] {
    background-color: #fff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-carousel-section .carousel-indicators .active {
    background-color: #af3f38;
    opacity: 1;
    transform: scale(1.2);
}

/* Personalizar flechas de control */
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(175, 63, 56, 0.2);
}

/* ===== RESPONSIVE ===== */
/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Moviles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

/* Moviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}


/* ===== VIDEO DE YOUTUBE COMO FONDO ===== */
.youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.youtube-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* El transform se controla desde JS */
    pointer-events: none;
    border: 0;
}

/* Capa oscura */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    pointer-events: none;
}
