/* =========================================================
   BANNER.CSS
   Todo lo relacionado exclusivamente con el Hero/Banner.
========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: clamp(42rem, 90vh, 40rem);

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(3, 18, 35, .96) 0%,
            rgba(5, 28, 52, .88) 45%,
            rgba(5, 28, 52, 0.904) 100%
        ),
        url("../assets/images/");

    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: min(32rem, 70vw);
    aspect-ratio: 1;

    left: -10rem;
    top: -14rem;

    border-radius: 50%;

    background: rgba(30, 144, 255, .16);
    filter: blur(7rem);
}

.hero__container {
    width: min(var(--container-width-fluid), var(--container-width));

    margin-inline: auto;

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .8fr);

    gap: clamp(2.5rem, 7vw, 5rem);

    align-items: center;
}

.hero__content {
    max-width: 40rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;

    margin-bottom: clamp(1.5rem, 3vw, 2rem);

    color: #8ecbff;

    font-size: clamp(.65rem, 1vw, .8rem);
    font-weight: 600;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";

    width: clamp(1.5rem, 3vw, 1.8rem);
    height: .125rem;

    background: var(--color-primary);
}

.hero__title {
    max-width: 40rem;

    margin-bottom: clamp(1.25rem, 3vw, 1.7rem);

    font-size: clamp(2.65rem, 5.5vw, 4.25rem);
    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -.045em;
}

.hero__title span {
    color: var(--color-primary-light);
}

.hero__description {
    max-width: 38rem;

    margin-bottom: clamp(1.5rem, 3vw, 2.1rem);

    color: rgba(255, 255, 255, .72);

    font-size: clamp(.95rem, 1.5vw, 1.125rem);
    line-height: 1.7;
}

.hero__benefits {
    display: flex;
    flex-wrap: wrap;

    gap: .65rem;

    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.hero__benefit {
    display: flex;
    align-items: center;
    gap: .45rem;

    padding: .55rem .85rem;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 100rem;

    background: rgba(255, 255, 255, .05);

    color: rgba(255, 255, 255, .8);

    font-size: clamp(.65rem, 1vw, .8rem);
}

.hero__benefit span {
    color: #55b0ff;
    font-weight: 800;
}

.hero__community {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.hero__avatars {
    display: flex;
    flex-shrink: 0;
}

.hero__avatars span {
    width: clamp(2rem, 4vw, 2.3rem);
    aspect-ratio: 1;

    margin-left: -.45rem;

    border: .125rem solid #0a2037;
    border-radius: 50%;

    background: linear-gradient(135deg, #1c5d91, #73bfff);
}

.hero__avatars span:first-child {
    margin-left: 0;
}

.hero__community p {
    color: var(--text-muted);

    font-size: clamp(.65rem, 1vw, .8rem);
    line-height: 1.5;
}

.hero__community strong {
    color: white;
}


/* =========================================================
   FORMULARIO
========================================================= */

.hero-form {
    width: 100%;
    max-width: 27rem;

    justify-self: end;

    padding: clamp(1.4rem, 4vw, 2.4rem);

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(20, 72, 111, .72),
            rgba(7, 37, 65, .78)
        );

    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    backdrop-filter: blur(1.1rem);
}

.hero-form__header {
    margin-bottom: 1.5rem;
}

.hero-form__header h2 {
    margin-bottom: .55rem;

    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;

    letter-spacing: -.025em;
}

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

    font-size: .85rem;
    line-height: 1.6;
}

.hero-form__form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hero-form__form input,
.hero-form__form select {
    width: 100%;
    min-height: 3.15rem;

    padding-inline: 1rem;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius-sm);

    outline: none;

    background: rgba(0, 0, 0, .18);

    color: white;

    font-size: .85rem;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.hero-form__form input::placeholder {
    color: rgba(255, 255, 255, .42);
}

.hero-form__form select {
    color: rgba(255, 255, 255, .55);
}

.hero-form__form input:focus,
.hero-form__form select:focus {
    border-color: #3da8ff;

    background: rgba(0, 0, 0, .25);

    box-shadow: 0 0 0 .2rem rgba(61, 168, 255, .12);
}

.hero-form__form button {
    min-height: 3.4rem;

    margin-top: .4rem;

    border: 0;
    border-radius: var(--radius-sm);

    background: linear-gradient(135deg, #2998ff, #1767c5);

    color: white;

    font-size: .9rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 .65rem 1.6rem rgba(22, 112, 202, .25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.hero-form__form button:hover {
    transform: translateY(-.15rem);

    box-shadow: 0 .9rem 2rem rgba(22, 112, 202, .35);
}

.hero-form__form button:active {
    transform: translateY(0);
}

.hero-form__footer {
    margin-top: 1rem;

    color: rgba(255, 255, 255, .38);

    font-size: .65rem;
    line-height: 1.5;

    text-align: center;
}


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

@media (max-width: 55rem) {

    .hero {
        min-height: auto;
        padding-block: clamp(4rem, 9vw, 6rem);
    }

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

    .hero__content {
        max-width: 44rem;
    }

    .hero-form {
        justify-self: start;
        max-width: 34rem;
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 38rem) {

    .hero {
        background:
            linear-gradient(
                rgba(3, 18, 35, .91),
                rgba(3, 18, 35, .97)
            ),
            url("../assets/images/hero-bg.png");

        background-position: center;
    }

    .hero__container {
        width: 90%;
    }

    .hero__benefits {
        gap: .5rem;
    }

    .hero__community {
        align-items: flex-start;
    }

    .hero-form {
        border-radius: var(--radius-md);
    }
}
