/*
==========================================================
MERLO IA
HOME V1
==========================================================
*/

:root {

    --blue: #0755c9;
    --blue-dark: #0346ad;
    --blue-light: #2787e8;

    --dark: #171a25;
    --gray: #7c8593;
    --light-gray: #f4f6f8;
    --white: #ffffff;

    --radius-card: 28px;
    --radius-small: 16px;

}

/*
==========================================================
RESET
==========================================================
*/

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;

}

body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--dark);

    background: #eef6ff;

}

button,
textarea {

    font: inherit;

}

button {

    -webkit-tap-highlight-color: transparent;

}

/*
==========================================================
TOP BAR
==========================================================
*/

.topbar {

    height: 40px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 0 28px;

    background: #011222;

    color: #ffffff;

    font-size: 14px;

}

/*
==========================================================
HERO
==========================================================
*/

.hero {

    position: relative;

    min-height: calc(100vh - 40px);

    background-image:
        url('/merloia/public/assets/images/hero.jpg');

    background-size: cover;

    background-position:
        center top;

    background-repeat: no-repeat;

}

.hero-overlay {

    min-height: calc(100vh - 40px);

    background:
        linear-gradient(
            180deg,
            rgba(0, 58, 130, 0.03) 0%,
            rgba(0, 78, 170, 0.10) 30%,
            rgba(14, 106, 202, 0.25) 48%,
            rgba(210, 233, 252, 0.80) 72%,
            rgba(255, 255, 255, 0.98) 100%
        );

}

.hero-content {

    width: min(92%, 900px);

    margin: 0 auto;

    padding:
        115px
        0
        45px;

    text-align: center;

}

/*
==========================================================
MARCA
==========================================================
*/

.brand-area {

    margin-bottom: 42px;

}

.logo {

    display: block;

    width: 180px;
    height: 180px;

    margin:
        0
        auto
        20px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 12px rgba(0, 0, 0, 0.22)
        );

}

.brand {

    margin: 0;

    color: #ffffff;

    font-size: 78px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -2px;

    text-shadow:
        0 4px 13px rgba(0, 0, 0, 0.45);

}

.tagline {

    margin-top: 22px;

    color: #ffffff;

    font-size: 26px;

    font-weight: 600;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.45);

}

/*
==========================================================
TARJETA DEL BUSCADOR
==========================================================
*/

.search-card {

    width: 100%;

    max-width: 750px;

    margin:
        0
        auto;

    padding:
        42px
        50px
        46px;

    border-radius:
        var(--radius-card);

    background:
        rgba(255, 255, 255, 0.97);

    box-shadow:
        0 18px 55px rgba(0, 49, 105, 0.20);

}

.welcome h2 {

    color: var(--blue);

    font-size: 42px;

    line-height: 1.1;

}

.welcome-name {

    margin-top: 24px;

    color: #262833;

    font-size: 24px;

    font-weight: 700;

}

.welcome-text {

    margin-top: 5px;

    color: #30323d;

    font-size: 21px;

    line-height: 1.45;

}

/*
==========================================================
CAMPO
==========================================================
*/

.search-field {

    position: relative;

    margin-top: 34px;

}

.search-icon {

    position: absolute;

    top: 50%;
    left: 26px;

    z-index: 2;

    color: #828a98;

    font-size: 42px;

    line-height: 1;

    transform:
        translateY(-53%)
        rotate(-18deg);

    pointer-events: none;

}

.search-input {

    display: block;

    width: 100%;
    height: 92px;

    padding:
        27px
        24px
        24px
        82px;

    overflow: hidden;

    resize: none;

    border:
        2px
        solid
        #0870e6;

    border-radius: 20px;

    outline: none;

    background: #ffffff;

    color: #333641;

    font-size: 21px;

    line-height: 1.4;

    box-shadow:
        0 6px 15px rgba(0, 93, 210, 0.16);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.search-input::placeholder {

    color: #989faa;

    opacity: 1;

}

.search-input:focus {

    border-color: #0755c9;

    box-shadow:
        0 7px 20px rgba(0, 88, 210, 0.25);

}

/*
==========================================================
BOTÓN
==========================================================
*/

.search-button {

    width: 100%;

    min-height: 82px;

    margin-top: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: 0;

    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            #0957c7,
            #075fd5
        );

    color: #ffffff;

    font-size: 25px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(0, 67, 166, 0.18);

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}

.search-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 13px 26px rgba(0, 67, 166, 0.27);

}

.button-arrow {

    position: absolute;

    right: 30px;

    font-size: 38px;

    font-weight: 300;

}

/*
==========================================================
EJEMPLOS
==========================================================
*/

.examples {

    width: 100%;

    max-width: 760px;

    margin:
        47px
        auto
        0;

}

.examples-title {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    color: #0755c9;

}

.examples-title strong {

    font-size: 20px;

}

.examples-title > span {

    width: 75px;
    height: 2px;

    background: #75afe7;

}

.chips {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 24px;

}

.chip {

    min-height: 67px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
        13px
        22px;

    border: 0;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.96);

    color: #0755c9;

    font-size: 17px;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 6px 17px rgba(0, 50, 110, 0.13);

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}

.chip:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 22px rgba(0, 50, 110, 0.18);

}

.chip-icon {

    min-width: 30px;

    color: #1983e7;

    font-size: 27px;

    font-weight: 700;

    text-align: center;

}

.chip-last {

    grid-column:
        1 / -1;

    width: 48%;

    justify-self: center;

}

/*
==========================================================
FLECHA INFERIOR
==========================================================
*/

.scroll-hint {

    display: inline-block;

    margin-top: 35px;

    color: #0755c9;

    font-size: 48px;

    line-height: 1;

    text-decoration: none;

}

/*
==========================================================
TABLET
==========================================================
*/

@media (max-width: 800px) {

    .hero-content {

        width: min(92%, 720px);

        padding-top: 90px;

    }

    .logo {

        width: 145px;
        height: 145px;

    }

    .brand {

        font-size: 64px;

    }

    .tagline {

        font-size: 22px;

    }

}

/*
==========================================================
MÓVIL
==========================================================
*/

@media (max-width: 600px) {

    .topbar {

        height: 32px;

        padding:
            0
            14px;

        font-size: 12px;

    }

    .hero {

        min-height:
            calc(100vh - 32px);

        background-position:
            center top;

    }

    .hero-overlay {

        min-height:
            calc(100vh - 32px);

    }

    .hero-content {

        width: 92%;

        padding:
            54px
            0
            32px;

    }

    .brand-area {

        margin-bottom: 28px;

    }

    .logo {

        width: 94px;
        height: 94px;

        margin-bottom: 11px;

    }

    .brand {

        font-size: 46px;

        letter-spacing: -1px;

    }

    .tagline {

        margin-top: 11px;

        font-size: 17px;

    }

    /*
    TARJETA
    */

    .search-card {

        padding:
            27px
            20px
            25px;

        border-radius: 22px;

    }

    .welcome h2 {

        font-size: 30px;

    }

    .welcome-name {

        margin-top: 17px;

        font-size: 19px;

    }

    .welcome-text {

        font-size: 16px;

    }

    .desktop-only {

        display: none;

    }

    /*
    CAMPO
    */

    .search-field {

        margin-top: 24px;

    }

    .search-icon {

        left: 18px;

        font-size: 33px;

    }

    .search-input {

        height: 75px;

        padding:
            22px
            16px
            18px
            60px;

        border-radius: 16px;

        font-size: 17px;

    }

    /*
    BOTÓN
    */

    .search-button {

        min-height: 65px;

        margin-top: 19px;

        border-radius: 15px;

        font-size: 18px;

    }

    .button-arrow {

        right: 20px;

        font-size: 29px;

    }

    /*
    EJEMPLOS
    */

    .examples {

        margin-top: 34px;

    }

    .examples-title {

        gap: 10px;

    }

    .examples-title strong {

        white-space: nowrap;

        font-size: 16px;

    }

    .examples-title > span {

        width: 34px;

    }

    .chips {

        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 19px;

    }

    .chip {

        min-height: 57px;

        padding:
            11px
            15px;

        border-radius: 14px;

        font-size: 15px;

    }

    .chip-icon {

        min-width: 27px;

        font-size: 22px;

    }

    .chip-last {

        grid-column: auto;

        width: 100%;

    }

    .scroll-hint {

        margin-top: 24px;

        font-size: 38px;

    }

}

/*
==========================================================
MÓVILES PEQUEÑOS
==========================================================
*/

@media (max-width: 380px) {

    .hero-content {

        width: 94%;

    }

    .logo {

        width: 82px;
        height: 82px;

    }

    .brand {

        font-size: 40px;

    }

    .tagline {

        font-size: 15px;

    }

    .search-card {

        padding:
            23px
            16px;

    }

    .search-button {

        font-size: 16px;

    }

}

