/* sections/hero.css */

/* --- Hero Genérico (Home) --- */
.hero-section {
    background-color: var(--color-dark-alt);
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../../Recursos/eventos/festival-del-queso-2018/banner-evento-festival-del-queso-tenosique.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--color-light);
    padding-top: calc(var(--header-height, 95px) + 100px);
    padding-bottom: 250px;
    text-align: left;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: clamp(2.8em, 6vw, 4.8em);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.hero-section h1 span {
    display: block;
    line-height: 1.1;
}

.hero-title-strong {
    font-weight: 900;
    font-size: 1.1em;
}

.hero-title-regular {
    font-weight: 400;
}

.hero-buttons {
    margin: 35px 0;
}

.hero-section .hero-text {
    max-width: 680px;
    font-weight: 300;
    line-height: 1.75;
    font-size: 1.05em;
    opacity: 0.9;
}

/* --- Hero de Portafolio --- */
.portfolio-hero {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 160px 0 200px 0;
    text-align: left;
    min-height: auto;
}

.portfolio-hero h1 {
    font-size: clamp(2.8em, 6vw, 4.5em);
    line-height: 1.1;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: none;
}

.portfolio-hero .portfolio-hero-subtitle {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 35px;
}

.portfolio-hero .btn {
    padding: 12px 28px;
    font-size: 0.9em;
}

/* --- Hero de Plantilla de Evento --- */
.event-hero {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, .18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .45) 100%),
        var(--event-bg-image);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--color-light);
    padding: 180px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.event-hero__title {
    font-size: clamp(3em, 8vw, 5.5em);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.event-hero__year {
    font-size: clamp(1.5em, 4vw, 2.5em);
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 25px;
}

.event-hero__description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0;
    opacity: 0.9;
}

/* --- Hero de Stands --- */
.stands-hero {
    background-color: var(--color-primary);
    color: var(--color-light);
    text-align: center;
    padding-top: calc(var(--header-height, 95px) + 60px);
    padding-bottom: 180px;
    overflow: visible;
}

.stands-hero__title {
    font-size: clamp(3em, 8vw, 6em);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 10px 0;
}

.stands-hero__sub-title {
    font-size: clamp(1.2em, 3vw, 1.8em);
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

.stands-hero__image-container {
    width: 50%;
    max-width: 900px;
    margin: 40px auto -250px auto;
    position: relative;
    z-index: 2;
}

/* --- Media Queries para Héroes --- */
@media (max-width: 992px) {
    .hero-section {
        padding-bottom: 220px;
        padding-top: calc(var(--header-height, 80px) + 60px);
    }

    .portfolio-hero {
        padding: 140px 0 160px 0;
    }
}

@media (max-width: 767px) {

    h1,
    .hero-section h1 {
        font-size: clamp(2em, 7vw, 2.8em) !important;
    }

    .hero-section,
    .dmc-hero,
    .event-hero {
        text-align: center;
        min-height: 60vh;
        /* antes 85vh */
        padding: 110px 0 70px;
        /* antes 180px 0 */
        background-attachment: scroll;
        /* ya lo habíamos dicho */
        background-position: center top;
        /* suele rescatar sujetos */
    }

    .hero-section {
        padding-top: calc(var(--header-height, 70px) + 40px);
        padding-bottom: 160px;
        min-height: 60vh;
    }

    .hero-section .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio-hero {
        padding: 120px 0 120px 0;
        text-align: center;
    }

    .dmc-hero {
        padding-top: calc(var(--header-height, 70px) + 100px);
        padding-bottom: 100px;
        min-height: 60vh;
    }

    .event-hero {
        padding: 120px 0;
        min-height: 70vh;
    }

    .stands-hero__image-container {
        width: 80%;
        margin-bottom: -150px;
    }
}