/*
=========================================================
PM UI FRAMEWORK
HERO
Version: 0.1.0
=========================================================

Componente:
Hero editorial premium

Responsabilidades:
- Hero principal de páginas pilar
- Presentación de contenido
- CTA principal/secundario
- Imagen destacada
- Beneficios rápidos

=========================================================
*/


/* =====================================================
   HERO BASE
===================================================== */

.pm-hero {

    width: 100%;
    margin: 0 auto;

    padding: 76px 40px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #f7fbf7 48%,
            #edf8f3 100%
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .08);

    overflow: hidden;

}


/* =====================================================
   CONTENEDOR INTERNO
===================================================== */

.pm-hero__inner {

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, .85fr);

    align-items: center;

    gap: 56px;

}


/* =====================================================
   CONTENIDO
===================================================== */

.pm-hero__content {

    min-width: 0;

}


/* =====================================================
   TÍTULO
===================================================== */

.pm-hero__title {

    margin: 0 0 22px;

    max-width: 700px;

    color: #063f3b;

    font-size:
        clamp(2.35rem, 4vw, 3.55rem);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -.035em;

}


/*
   Permite controlar visualmente la segunda línea
   sin convertirla en una dependencia del año.
*/

.pm-hero__title span {

    display: inline;

}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.pm-hero__description {

    max-width: 680px;

    margin: 0 0 28px;

    color: #40545b;

    font-size: 1.08rem;

    line-height: 1.8;

}

.pm-hero__description strong {

    color: #33474d;

    font-weight: 700;

}


/* =====================================================
   CTA
===================================================== */

.pm-hero__actions {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 14px;

    margin-bottom: 26px;

}


/* =====================================================
   BOTONES
===================================================== */

.pm-hero__button {

    min-height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0 24px;

    border-radius: 11px;

    font-size: .98rem;

    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        border-color .2s ease;

}


/* PRIMARY */

.pm-hero__button--primary {

    color: #fff;

    background:
        var(--pm-primary, #2E7D32);

    border:
        2px solid var(--pm-primary, #2E7D32);

    box-shadow:
        0 8px 18px rgba(46, 125, 50, .20);

}


.pm-hero__button--primary:hover {

    color: #fff;

    background:
        var(--pm-primary-dark, #1B5E20);

    border-color:
        var(--pm-primary-dark, #1B5E20);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px rgba(46, 125, 50, .28);

}


/* SECONDARY */

.pm-hero__button--secondary {

    color:
        var(--pm-primary, #2E7D32);

    background:
        rgba(255, 255, 255, .85);

    border:
        2px solid var(--pm-primary, #2E7D32);

}


.pm-hero__button--secondary:hover {

    color:
        var(--pm-primary-dark, #1B5E20);

    background:
        #fff;

    border-color:
        var(--pm-primary-dark, #1B5E20);

    transform:
        translateY(-2px);

}


/* =====================================================
   FEATURES
===================================================== */

.pm-hero__features {

    max-width: 650px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin: 0;

    padding: 0;

    list-style: none;

}


/* =====================================================
   FEATURE ITEM
===================================================== */

.pm-hero__feature {

    min-height: 52px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        12px 16px;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .92);

    color: #24353a;

    font-size: .94rem;

    font-weight: 600;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .055);

}


.pm-hero__feature-icon {

    flex:
        0 0 auto;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width: 22px;

    height: 22px;

    font-size:
        1rem;

}


/* =====================================================
   MEDIA
===================================================== */

.pm-hero__media {

    min-width: 0;

}


/* =====================================================
   IMAGE
===================================================== */

.pm-hero__image {

    position: relative;

    width: 100%;

    margin: 0;

    overflow: hidden;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .10);

}


.pm-hero__image img {

    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    transition:
        transform .5s ease;

}


.pm-hero__image:hover img {

    transform:
        scale(1.025);

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

.pm-hero__button:focus-visible {

    outline:
        3px solid rgba(25, 118, 210, .35);

    outline-offset:
        3px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 980px) {

    .pm-hero {

        padding:
            56px 30px;

    }


    .pm-hero__inner {

        grid-template-columns:
            1fr;

        gap:
            38px;

    }


    .pm-hero__content {

        max-width:
            760px;

    }


    .pm-hero__media {

        max-width:
            620px;

        width:
            100%;

        margin:
            0 auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {

    .pm-hero {

        padding:
            38px 20px;

        border-radius:
            22px;

    }


    .pm-hero__inner {

        gap:
            30px;

    }


    .pm-hero__title {

        margin-bottom:
            18px;

        font-size:
            clamp(2rem, 9vw, 2.65rem);

        line-height:
            1.08;

    }


    .pm-hero__description {

        margin-bottom:
            24px;

        font-size:
            1rem;

        line-height:
            1.7;

    }


    .pm-hero__actions {

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            10px;

    }


    .pm-hero__button {

        width:
            100%;

    }


    .pm-hero__features {

        grid-template-columns:
            1fr;

        gap:
            10px;

    }


    .pm-hero__image {

        border-radius:
            18px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .pm-hero {

        padding:
            30px 16px;

    }


    .pm-hero__title {

        font-size:
            1.95rem;

    }


    .pm-hero__feature {

        padding:
            11px 13px;

        font-size:
            .9rem;

    }

}