.hero {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 124px 32px 104px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 50%;
    width: min(760px, 84vw);
    height: 320px;
    border-radius: 9999px;
    background: rgba(0, 107, 44, 0.08);
    filter: blur(56px);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero_grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 40px;
}

.hero_copy {
    display: block;
    padding-top: 48px;
    padding-bottom: 48px;
}

.cta_newsletter {
    display: flex;
    width: 100%;
    max-width: 980px;
    margin: 28px auto 96px;
    padding: 36px 42px;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(0, 107, 44, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 50px -28px rgba(28, 27, 27, 0.22);
    transform-origin: center center;
    transition: transform 300ms ease, padding 300ms ease, gap 300ms ease, box-shadow 300ms ease, background 300ms ease, border-color 300ms ease;
}

.cta_newsletter:hover {
    transform: translateY(-3px) scale(1.03);
    padding: 44px 50px;
    gap: 32px;
    border-color: rgba(0, 107, 44, 0.22);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 28px 56px -28px rgba(28, 27, 27, 0.24);
}

.cta_newsletter h2 {
    max-width: 340px;
    margin: 0;
    color: var(--on-surface);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    transition: transform 300ms ease;
}

.cta_newsletter:hover h2 {
    transform: scale(1.04);
}

.cta_newsletter p {
    margin: 0;
    color: rgba(28, 27, 27, 0.68);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 300ms ease, color 300ms ease;
}

.cta_newsletter:hover p {
    transform: scale(1.03);
    color: rgba(28, 27, 27, 0.78);
}

.cta_newsletter p:first-of-type {
    flex: 1;
    max-width: 360px;
}

.cta_newsletter p:last-child {
    display: none;
}


.contenedor_titulo_principal,
.contenedor_subtitulo {
    width: 100%;
    max-width: 1120px;
}

.contenedor_titulo_principal {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    align-items: center;
    gap: 28px;
}

.texto {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.hero_eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid rgba(0, 107, 44, 0.16);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    align-self: start;
    text-transform: uppercase;
    transition: transform 250ms ease, border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.hero_eyebrow:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 107, 44, 0.26);
    background: rgba(0, 107, 44, 0.08);
    box-shadow: 0 18px 36px -28px rgba(28, 27, 27, 0.24);
}

.texto h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    transition: transform 250ms ease, color 250ms ease;
}

.texto h1:hover {
    transform: translateY(-2px);
    color: #236b53;
}

.texto h1 span {
    color: var(--primary);
    font-style: italic;
    font-weight: 800;
    transition: color 250ms ease;
}

.texto h1:hover span {
    color: #4caf50;
}

.texto p:not(.hero_eyebrow) {
    margin: 0;
    color: rgba(28, 27, 27, 0.78);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    transition: transform 250ms ease, color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.texto p:not(.hero_eyebrow):hover {
    transform: translateY(-2px);
    color: var(--on-surface);
}

.texto p:not(.hero_eyebrow):first-of-type {
    padding-left: 16px;
    border-left: 3px solid rgba(0, 107, 44, 0.18);
    color: var(--on-surface);
    font-size: 18px;
    font-weight: 700;
}

.texto p:not(.hero_eyebrow):first-of-type:hover {
    background: rgba(0, 107, 44, 0.06);
    box-shadow: 0 18px 36px -30px rgba(28, 27, 27, 0.2);
}

#video_hero {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: var(--surface-container-low);
    box-shadow: var(--editorial-shadow);
    object-fit: cover;
}

.contenedor_subtitulo {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hero_titulo {
    max-width: 960px;
    margin: 0;
    font-size: clamp(32px, 4.4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    transition: transform 250ms ease, color 250ms ease;
}

.hero_titulo:hover {
    transform: translateY(-2px);
    color: #236b53;
}

.grid_iconos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.icono_card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    padding: 28px 24px;
    border: 1px solid rgba(0, 107, 44, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 52px -34px rgba(28, 27, 27, 0.24);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.icono_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 56px -34px rgba(28, 27, 27, 0.28);
}

.icono {
    display: flex;
    width: 168px;
    height: 168px;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 9999px;
    background: rgba(0, 107, 44, 0.08);
}

.icono img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.texto_card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.texto_card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.texto_card p {
    margin: 0;
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.cta_final {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    column-gap: 28px;
    row-gap: 18px;
    margin-top: 8px;
    padding: 36px 40px;
    border: 1px solid rgba(0, 107, 44, 0.14);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 107, 44, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
    box-shadow: var(--editorial-shadow);
    transform-origin: center center;
    transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease, border-color 300ms ease;
}

.cta_final:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(0, 107, 44, 0.22);
    background: linear-gradient(135deg, rgba(0, 107, 44, 0.14) 0%, rgba(255, 255, 255, 0.94) 100%);
    box-shadow: 0 30px 60px -28px rgba(28, 27, 27, 0.22);
}

.cta_final h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.06;
    transition: transform 300ms ease;
}

.cta_final:hover h2 {
    transform: scale(1.04);
}

.cta_final > p {
    max-width: 760px;
    margin: 0;
    color: rgba(28, 27, 27, 0.72);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    transition: transform 300ms ease, color 300ms ease;
}

.cta_final:hover > p {
    transform: scale(1.03);
    color: rgba(28, 27, 27, 0.82);
}

.cta_final:hover .btn_principal {
    transform: scale(1.05);
    box-shadow: 0 22px 42px -22px rgba(0, 107, 44, 0.35);
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta_final > .cta-group:first-of-type {
    justify-content: center;
}

.cta_final > .cta-group:last-of-type {
    justify-content: flex-end;
}

.btn_principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--editorial-shadow);
    transition: transform 250ms ease, opacity 250ms ease, box-shadow 250ms ease;
}

.cta_newsletter:hover .btn_principal {
    transform: scale(1.04);
    box-shadow: 0 18px 40px -28px rgba(28, 27, 27, 0.24);
}

.btn_principal:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.acceso_codigo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: rgba(28, 27, 27, 0.72);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.acceso_codigo .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(0, 107, 44, 0.16);
    background: rgba(255, 255, 255, 0.84);
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 1023px) {
    .hero {
        padding: 96px 28px 80px;
    }

    .contenedor_titulo_principal {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero_copy {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .texto {
        max-width: none;
        gap: 14px;
    }

    .texto h1 {
        max-width: none;
        font-size: clamp(30px, 5vw, 40px);
        line-height: 1.06;
    }

    .texto p:not(.hero_eyebrow) {
        font-size: 16px;
    }

    .texto p:not(.hero_eyebrow):first-of-type {
        font-size: 17px;
    }

    #video_hero {
        max-width: none;
        justify-self: stretch;
    }

    .cta_newsletter {
        max-width: none;
        margin: 8px 0 64px;
        padding: 28px 24px;
        flex-wrap: wrap;
    }

    .cta_newsletter h2 {
        max-width: 420px;
    }

    .cta_newsletter p:first-of-type {
        max-width: none;
    }

    .grid_iconos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .cta_final {
        grid-template-columns: 1fr;
        row-gap: 16px;
        padding: 32px 28px;
    }

    .cta_final > .cta-group:first-of-type,
    .cta_final > .cta-group:last-of-type {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 84px 20px 64px;
    }

    .hero_grid {
        gap: 24px;
    }

    .hero_copy {
        padding-top: 0;
        padding-bottom: 0;
    }

    .contenedor_titulo_principal {
        gap: 18px;
    }

    .hero_eyebrow {
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    #video_hero {
        max-width: none;
        aspect-ratio: 4 / 3;
        border-radius: 24px;
    }

    .hero_titulo {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.08;
    }

    .texto {
        max-width: none;
        gap: 12px;
    }

    .texto h1 {
        max-width: none;
        font-size: clamp(26px, 7vw, 32px);
        line-height: 1.08;
    }

    .texto p:not(.hero_eyebrow) {
        font-size: 15px;
        line-height: 1.55;
    }

    .texto p:not(.hero_eyebrow):first-of-type {
        margin-top: 2px;
        padding-left: 14px;
        font-size: 16px;
    }

    .cta_newsletter {
        margin: 4px 0 52px;
        padding: 22px 18px;
        align-items: flex-start;
        gap: 18px;
    }

    .cta_newsletter h2 {
        max-width: none;
        font-size: 24px;
    }

    .cta_newsletter p {
        font-size: 15px;
    }

    .btn_principal {
        width: 100%;
    }

    .grid_iconos {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .icono_card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .icono {
        width: 108px;
        height: 108px;
    }

    .icono img {
        width: 98px;
        height: 98px;
    }

    .cta_final {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        border-radius: 26px;
    }

    .cta_final h2 {
        font-size: 26px;
        line-height: 1.1;
    }

    .cta_final > p {
        font-size: 16px;
        line-height: 1.55;
    }

    .cta-group,
    .acceso_codigo {
        flex-direction: column;
        align-items: stretch;
    }

    .btn_principal,
    .acceso_codigo .btn {
        width: 100%;
    }

    .acceso_codigo {
        gap: 10px;
        font-size: 14px;
    }
}
