/* ============================================
   SHARED NOSOTROS HERO & DOWNBAR COMPONENT
   ============================================
   
   Shared styles for Hero section and DownBar used across:
   - nosotros.html (RED downbar)
   - lo-que-hacemos.html (CYAN downbar)
   - historia.html (CYAN downbar)
   - equipo-ejecutivo.html (CYAN downbar)
   
   Created: 2025-01-28
   ============================================ */

/* ============================================
   HERO SECTION BASE STYLES
   ============================================ */

.main__hero {
    height: 450px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.main__hero__text {
    width: 100%;
    padding-top: 100px;
    position: absolute;
}

.main__hero__text__p-bar {
    color: #FFF;
    font-family: Fjalla One;
    font-size: 38px;
    font-style: normal;
    font-weight: 400;
    line-height: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 10px 0;
    padding: 0px;
}

.main__hero__text__p-gray {
    background-color: #8c827a00;
    padding-left: 200px;
    margin-right: 40vw;
    transition: all .5s;
}

.main__hero__text__p-blue {
    background-color: #0095a9AA;
    background-color: #9cdbd9;
    color: #545859;
    padding-left: 200px;
    font-size: 38px !important;
}

/* ============================================
   DOWNBAR SECTION BASE STYLES
   ============================================ */

.main__hero__downbar {
    background-color: #0096A9; /* Default: CYAN */
    display: flex;
    position: relative;
    height: 100px;
    width: 100%;
}

/* Color Modifier: RED (for nosotros.html) */
.main__hero__downbar--red {
    background-color: #d7282f;
}

.main__hero_downbar__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    height: 100px;
    padding-left: 25%;
    margin-right: 40px;
}

.main__hero_downbar__text > span {
    color: #FFF;
    font-family: Raleway;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: end;
}

.main__hero_downbar__text > p {
    color: #FFF;
    font-family: Raleway;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 19.8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: end;
}

.main__hero_downbar__text > small {
    color: #FFF;
    font-family: Raleway;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 19.8px;
    letter-spacing: 1px;
    text-align: end;
}

.main__hero_downbar__title {
    display: flex;
    width: 60%;
    background-color: #F5F3F1;
    align-items: center;
    padding-left: 40px;
    position: relative;
    left: 1500px;
    animation: startTitle 2s both;
}

.main__hero_downbar__title > h2 {
    color: #545859;
    font-family: Fjalla One;
    font-size: 33.734px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Downbar Title Animation */
@keyframes startTitle {
    0% {
        left: 1500px;
    }
    100% {
        left: 0px;
    }
}

/* ============================================
   RESPONSIVE STYLES (Mobile)
   ============================================ */

@media (max-width: 1000px) {
    /* Hero responsive */
    .main__hero {
        height: 200px;
    }

    /* Hide hero text on mobile */
    .main__hero__text {
        display: none;
    }

    .main__hero__text__p-bar {
        font-size: 28px;
    }

    /* Downbar responsive - single row layout */
    .main__hero__downbar {
        position: relative;
        top: 0;
        height: auto;
        min-height: 80px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .main__hero_downbar__text {
        width: 45%;
        height: auto;
        padding: 15px 5%;
        padding-left: 10%;
        min-height: 80px;
        margin-right: 0;
    }

    .main__hero_downbar__text > span,
    .main__hero_downbar__text > p,
    .main__hero_downbar__text > small {
        font-size: 10px;
        line-height: 14px;
    }

    .main__hero_downbar__title {
        width: 55%;
        padding-left: 20px;
        padding-right: 20px;
        animation: none; /* Disable animation on mobile */
        left: 0;
    }

    .main__hero_downbar__title > h2 {
        font-size: 20px;
        line-height: 24px;
    }
}

@media (max-width: 500px) {
    .main__hero__text__p-bar {
        font-size: 20px;
    }

    .main__hero_downbar__text {
        padding-left: 20px;
    }

    .main__hero_downbar__text > p {
        font-size: 12px;
    }

    .main__hero_downbar__text > span {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .main__hero_downbar__title > h2 {
        font-size: 26px;
    }

    .main__hero_downbar__title {
        padding-left: 20px;
    }
}
