/* =========================================================
   ECAMEC
   Hero
========================================================= */


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    padding: 150px 0 90px;

    overflow: hidden;
}


/* =========================================================
   INTRO
========================================================= */

.hero__intro {
    margin-bottom: 46px;
}


.hero__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(320px, 0.55fr);

    align-items: center;

    gap: 64px;
}


.hero__title {
    max-width: 900px;

    margin-bottom: 0;

    font-size: clamp(54px, 6vw, 92px);
    font-weight: 600;
    line-height: 0.98;

    letter-spacing: -0.055em;
}


.hero__intro-side-card {
    padding: 28px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border-light);
    border-radius: 22px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.hero__intro-side {
    width: 100%;
    max-width: 420px;
}


.hero__description {
    max-width: 420px;

    margin-bottom: 28px;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.hero__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

    gap: 10px;
}


.hero__intro-side-card .hero__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

    gap: 10px;

    margin-top: 6px;
}


.hero__intro-side-card .button {
    width: auto;

    padding-left: 16px;
    padding-right: 16px;

    font-size: 13px;

    white-space: nowrap;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.hero__media {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 8.7;

    overflow: hidden;

    border: 1px solid var(--border-light);
    border-radius: 28px;

    background: #202729;

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.22);
}


.hero__video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    background: #202729;
}


.hero__media-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(24, 29, 31, 0.05) 35%,
            rgba(24, 29, 31, 0.4) 100%
        );
}


/* =========================================================
   VIDEO LABEL
========================================================= */

.hero__media-label {
    position: absolute;

    left: 24px;
    bottom: 24px;

    z-index: 2;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    min-height: 36px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);

    background: rgba(32, 39, 41, 0.72);

    color: var(--color-white);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.02em;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.hero__media-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--color-orange);

    box-shadow:
        0 0 0 5px rgba(233, 91, 12, 0.12);
}


/* =========================================================
   QUICK CARDS
========================================================= */

.hero__cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-top: 16px;
}


.hero-card {
    position: relative;

    min-height: 250px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    border: 1px solid var(--border-light);
    border-radius: 24px;

    background: var(--bg-secondary);

    transition:
        transform var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}


.hero-card:hover {
    transform: translateY(-5px);

    background: #3d4547;

    border-color: rgba(255, 255, 255, 0.22);

    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   CARD TOP
========================================================= */

.hero-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 42px;
}


.hero-card__number {
    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.08em;
}


.hero-card__arrow {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-medium);
    border-radius: 50%;

    color: var(--color-white);

    font-size: 18px;

    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}


.hero-card:hover .hero-card__arrow {
    background: var(--color-orange);

    border-color: var(--color-orange);

    transform: translate(2px, -2px);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.hero-card__content {
    max-width: 500px;
}


.hero-card__eyebrow {
    display: block;

    margin-bottom: 9px;

    color: var(--color-orange);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.hero-card__title {
    margin-bottom: 12px;

    font-size: clamp(28px, 3vw, 42px);
    font-weight: 600;

    letter-spacing: -0.04em;
}


.hero-card__text {
    max-width: 430px;

    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   LIGHT CARD
========================================================= */

.hero-card--light {
    background: var(--color-light-gray);

    border-color: transparent;

    color: var(--color-dark);
}


.hero-card--light:hover {
    background: #dadbdc;

    border-color: transparent;
}


.hero-card--light .hero-card__number {
    color: rgba(48, 56, 58, 0.55);
}


.hero-card--light .hero-card__title {
    color: var(--color-dark);
}


.hero-card--light .hero-card__text {
    color: rgba(48, 56, 58, 0.74);
}


.hero-card--light .hero-card__arrow {
    border-color: rgba(48, 56, 58, 0.22);

    color: var(--color-dark);
}


.hero-card--light:hover .hero-card__arrow {
    background: var(--color-orange);

    border-color: var(--color-orange);

    color: var(--color-white);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .hero {
        padding-top: 130px;
    }


    .hero__heading {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(260px, 0.7fr);

        gap: 48px;
    }


    .hero__title {
        font-size: clamp(48px, 6vw, 76px);
    }

}


@media (max-width: 820px) {

    .hero {
        padding: 120px 0 72px;
    }


    .hero__heading {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .hero__title {
        max-width: 760px;

        font-size: clamp(46px, 10vw, 70px);
    }


    .hero__intro-side {
        max-width: 560px;

        padding-bottom: 0;
    }


    .hero__description {
        max-width: 560px;
    }


    .hero__media {
        aspect-ratio: 16 / 9;

        border-radius: 22px;
    }


    .hero__cards {
        grid-template-columns: 1fr;
    }


    .hero-card {
        min-height: 220px;
    }

}


@media (max-width: 640px) {

    .hero {
        padding: 105px 0 56px;
    }


    .hero__intro {
        margin-bottom: 30px;
    }


    .hero__title {
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1.02;
    }


    .hero__description {
        margin-bottom: 22px;

        font-size: 16px;
    }


    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }


    .hero__actions .button {
        width: 100%;
    }


    .hero__media {
        aspect-ratio: 16 / 10;

        border-radius: 18px;
    }


    .hero__media-label {
        left: 14px;
        bottom: 14px;

        min-height: 32px;

        padding: 0 11px;
    }


    .hero__cards {
        margin-top: 12px;

        gap: 12px;
    }


    .hero-card {
        min-height: 200px;

        padding: 22px;

        border-radius: 18px;
    }


    .hero-card__top {
        margin-bottom: 32px;
    }


    .hero-card__title {
        font-size: 30px;
    }


    .hero-card__text {
        font-size: 14px;
    }


    .hero__intro-side-card .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }


    .hero__intro-side-card .button {
        width: 100%;
    }

}


/* =========================================================
   HOME HERO - VISUAL BACKGROUND
   Standard ECAMEC treatment
========================================================= */

.hero {
    position: relative;
    isolation: isolate;

    background: var(--bg-main);
}


/* =========================================================
   DESKTOP IMAGE
   Foto más suave, gris y concentrada arriba
========================================================= */

.hero::before {
    content: "";

    position: absolute;
    z-index: -2;

    top: 0;
    left: 0;

    width: 100%;
    height: 900px;

    background-image:
        linear-gradient(
            180deg,
            rgba(48, 56, 58, 0.58) 0%,
            rgba(48, 56, 58, 0.42) 28%,
            rgba(32, 39, 41, 0.28) 58%,
            rgba(16, 21, 23, 0.18) 100%
        ),
        linear-gradient(
            90deg,
            rgba(16, 21, 23, 0.97) 0%,
            rgba(16, 21, 23, 0.92) 30%,
            rgba(16, 21, 23, 0.74) 65%,
            rgba(16, 21, 23, 0.58) 100%
        ),
        url("../assets/images/hero/home-bg.jpg");

    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;

    filter:
        blur(2.5px)
        saturate(0.72)
        contrast(0.92);

    transform: scale(1.012);
    transform-origin: center top;

    pointer-events: none;
}


/* =========================================================
   FUNDIDO HACIA EL FONDO DEL SITIO
========================================================= */

.hero::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 100%;
    height: 1050px;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(48, 56, 58, 0.18) 0%,
            rgba(48, 56, 58, 0.10) 38%,
            rgba(48, 56, 58, 0.30) 62%,
            rgba(48, 56, 58, 0.68) 82%,
            var(--bg-main) 96%,
            var(--bg-main) 100%
        );
}


/* =========================================================
   INTRO CARD SOBRE FONDO
========================================================= */

.hero__intro-side-card {
    background:
        linear-gradient(
            135deg,
            rgba(20, 26, 29, 0.92),
            rgba(26, 31, 34, 0.84)
        );

    border-color: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {

    .hero::before {
        height: 920px;

        background-size: auto 920px;
        background-position: 62% top;

        filter:
            blur(2px)
            saturate(0.74)
            contrast(0.93);

        transform: scale(1.01);
    }


    .hero::after {
        height: 1040px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .hero::before {
        height: 980px;

        background-image:
            linear-gradient(
                180deg,
                rgba(48, 56, 58, 0.54) 0%,
                rgba(48, 56, 58, 0.40) 26%,
                rgba(16, 21, 23, 0.72) 58%,
                rgba(48, 56, 58, 0.98) 100%
            ),
            linear-gradient(
                180deg,
                rgba(16, 21, 23, 0.88) 0%,
                rgba(16, 21, 23, 0.76) 34%,
                rgba(16, 21, 23, 0.84) 68%,
                rgba(48, 56, 58, 0.98) 100%
            ),
            url("../assets/images/hero/home-bg-mobile.jpg");

        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;

        filter:
            blur(1.5px)
            saturate(0.78)
            contrast(0.94);

        transform: scale(1.01);
        transform-origin: center top;
    }


    .hero::after {
        height: 1120px;

        background:
            linear-gradient(
                180deg,
                rgba(48, 56, 58, 0.18) 0%,
                rgba(48, 56, 58, 0.12) 42%,
                rgba(48, 56, 58, 0.46) 66%,
                rgba(48, 56, 58, 0.82) 84%,
                var(--bg-main) 98%,
                var(--bg-main) 100%
            );
    }


    .hero__intro-side-card {
        background: rgba(20, 26, 29, 0.92);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

}