﻿/* =========================================================
   🧩 HERO COMPONENT
   Reutilizable para banners y secciones destacadas
   ========================================================= */

.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    background-color: var(--color-bg-main);
    margin-bottom: 30px;
    margin-top: 30px;
}

.hero-img {
    width: clamp(280px, 70vw, 950px);
    height: auto;
    display: block;
}

/* HERO tipo VALORES */
.valores-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
}

.valores-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.valores-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient( to right, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100% );
    z-index: 2;
}

.valores-content {
    position: relative;
    z-index: 3;
}

.valores-text {
    position: relative;
    padding-left: 20px;
}

    .valores-text::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        width: 3px;
        height: 60px;
        background-color: var(--color-divider);
    }

    .valores-text h2 {
        font-size: 3.5rem;
        font-weight: 700;
        color: var(--color-text-SubTitulos);
        line-height: 1.1;
        margin: 0;
    }

.valores-sub {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 10px;
}

/* Variante invertida */
#valores-hero-invert .valores-img {
    left: 0;
    right: auto;
}

#valores-hero-invert .valores-overlay {
    left: auto;
    right: 0;
    background: linear-gradient( to left, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100% );
}

#valores-hero-invert .valores-text {
    padding-left: 30px;
    padding-right: 40px;
    margin-left: 180px;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .hero-img {
        width: 95vw;
    }
}

@media (max-width: 768px) {
    .valores-hero {
        height: 300px;
    }

    .valores-img {
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        opacity: 0.4;
    }

    .valores-overlay {
        width: 100%;
        background: linear-gradient( to right, rgba(255,255,255,0.85), rgba(255,255,255,0.6) );
    }

    .valores-content {
        width: 100%;
    }

    .valores-text h2 {
        font-size: 2.2rem;
    }
}


/* =========================================================
   🧩 HERO SPLIT (GENÉRICO Y REUTILIZABLE)
   ========================================================= */

.hero-split {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: visible;
    margin-bottom: 30px;
    padding-bottom:40px;

}

/* Imagen */
.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 85%;
    height: 100%;
    background: linear-gradient( to right, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.6) 60%, rgba(255,255,255,0) 100% );
    z-index: 2;
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Texto */
.hero-text {
    position: relative;
    padding-left: 20px;
}

    .hero-text::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        width: 3px;
        height: 60px;
        background-color: var(--color-divider);
    }

    .hero-text h2 {
        font-size: 3.5rem;
        font-weight: 700;
        color: var(--color-divider);
        line-height: 1.1;
        margin: 0;
    }

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 10px;
}

/* ===============================
   🔄 VARIANTE INVERTIDA
   =============================== */
.hero-split-invert .hero-image {
    left: 0;
    right: auto;
}

.hero-split-invert .hero-overlay {
    left: auto;
    right: 0;
    background: linear-gradient( to left, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100% );
}

.hero-split-invert .hero-text {
    padding-left: 30px;
    padding-right: 40px;
    margin-left: 180px;
}

    .hero-split-invert .hero-text::before {
        left: 5px;
    }

/* ===============================
   📱 RESPONSIVE
   =============================== */
@media (max-width: 768px) {

    .hero-split {
        height: 300px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        opacity: 0.4;
    }

    .hero-overlay {
        width: 100%;
        background: linear-gradient( to right, rgba(255,255,255,0.85), rgba(255,255,255,0.6) );
    }
}
