/* =========================================
   VARIABLES
   ========================================= */

:root {
    --blue: #087ca3;
    --blue2: #075f7d;
    --gold: #eda517;
    --ink: #163240;
    --muted: #61747d;
    --ice: #edf8fb;
    --white: #ffffff;

    --shadow:
        0 18px 50px rgba(8, 74, 99, 0.12);
}


/* =========================================
   GENERAL
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;

    color: var(--ink);
    background: #fbfdfe;

    line-height: 1.6;

    overflow-x: hidden;
}


/* =========================================
   NAVEGACIÓN
   ========================================= */

.nav {
    height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1180px;

    margin: auto;
    padding: 0 24px;

    position: relative;
}

.brand img {
    width: 190px;
    display: block;
}

.nav nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;

    color: var(--ink);

    font-weight: 650;
}

.nav nav a:hover {
    color: var(--blue);
}

.menu {
    display: none;

    border: 0;
    background: var(--ice);

    font-size: 24px;

    border-radius: 10px;

    padding: 5px 11px;

    cursor: pointer;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 650px;

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 70px;

    align-items: center;

    max-width: 1180px;

    margin: auto;

    padding:
        70px
        24px
        100px;

    background:
        radial-gradient(
            circle at 88% 20%,
            #dff5fa 0,
            transparent 30%
        );
}

.tag,
.eyebrow {
    display: inline-block;

    color: var(--blue);

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    font-size: 0.78rem;
}

.hero h1 {
    font-size:
        clamp(
            3rem,
            6vw,
            5.6rem
        );

    line-height: 1.02;

    letter-spacing: -0.055em;

    margin:
        15px
        0
        24px;

    max-width: 820px;
}

.hero-copy > p {
    font-size: 1.18rem;

    color: var(--muted);

    max-width: 680px;
}


/* =========================================
   BOTONES
   ========================================= */

.actions {
    display: flex;

    gap: 14px;

    margin:
        34px
        0;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding:
        0
        24px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: 800;

    transition: 0.2s;
}

.primary {
    background: var(--blue);

    color: white;
}

.primary:hover {
    background: var(--blue2);

    transform: translateY(-2px);
}

.secondary {
    border:
        1px
        solid
        #badde7;

    color: var(--blue);

    background: white;
}


/* =========================================
   HERO - INFORMACIÓN
   ========================================= */

.trust {
    display: flex;

    gap: 22px;

    flex-wrap: wrap;

    color: #50656e;

    font-size: 0.92rem;
}

.hero-card {
    background: white;

    border:
        1px
        solid
        #dcedf1;

    border-radius: 28px;

    padding: 42px;

    box-shadow: var(--shadow);

    transform: rotate(1.5deg);
}

.hero-card img {
    width: 100%;

    mix-blend-mode: multiply;
}

.hero-card p {
    margin:
        20px
        0
        0;

    color: var(--muted);
}

.energy-line {
    height: 5px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--blue) 0 62%,
            var(--gold) 62%
        );

    margin-top: 22px;
}


/* =========================================
   SECCIONES
   ========================================= */

.section {
    padding:
        105px
        24px;

    max-width: 1180px;

    margin: auto;
}

.section-head {
    text-align: center;

    max-width: 740px;

    margin:
        0
        auto
        50px;
}

.section h2,
.split h2,
.contact h2 {
    font-size:
        clamp(
            2rem,
            4vw,
            3.4rem
        );

    line-height: 1.1;

    letter-spacing: -0.035em;

    margin:
        12px
        0
        18px;
}

.section-head p,
.split p {
    color: var(--muted);
}


/* =========================================
   SERVICIOS
   ========================================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.card {
    background: white;

    border:
        1px
        solid
        #dfedf1;

    border-radius: 22px;

    padding: 32px;

    box-shadow:
        0
        10px
        35px
        rgba(14, 78, 99, 0.06);
}

.card h3 {
    font-size: 1.3rem;

    margin:
        16px
        0
        8px;
}

.card p {
    color: var(--muted);

    margin: 0;
}


/* =========================================
   ICONOS SERVICIOS
   ========================================= */

.icon {
    width: 52px;
    height: 52px;

    border-radius: 16px;

    display: grid;

    place-items: center;

    font-size: 25px;
}

.electric {
    background: #dff4fa;

    color: var(--blue);
}

.cold {
    background: #eef9fc;

    color: #0a8bb3;
}

.sun {
    background: #fff4d8;

    color: #d99100;
}


/* =========================================
   CÓMO TRABAJAMOS
   ========================================= */

.split {
    max-width: 1180px;

    margin:
        30px
        auto
        110px;

    padding: 65px;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 70px;

    background: var(--ice);

    border-radius: 32px;
}

.split ol {
    list-style: none;

    margin: 0;

    padding: 0;
}

.split li {
    display: flex;

    gap: 18px;

    padding:
        18px
        0;

    border-bottom:
        1px
        solid
        #cde4ea;
}

.split li b {
    color: var(--gold);

    font-size: 1.35rem;
}

.split li span {
    display: grid;

    color: var(--muted);
}

.split li strong {
    color: var(--ink);
}


/* =========================================
   CONTACTO
   ========================================= */

.contact {
    width: calc(100% - 48px);

    max-width: 1180px;

    margin:
        0
        auto
        85px;

    padding: 60px;

    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap: 50px;

    align-items: center;

    border-radius: 32px;

    background:
        linear-gradient(
            130deg,
            var(--blue2),
            var(--blue)
        );

    color: white;

    overflow: hidden;
}

.contact-info {
    min-width: 0;
}

.contact-info p {
    color: #d7f0f7;

    max-width: 520px;

    margin-bottom: 0;
}

.contact .light {
    color: #9ce0f1;
}


/* =========================================
   CONTACTO - GRID
   ========================================= */

.contact-grid {
    width: 100%;

    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


/* =========================================
   CONTACTO - TARJETAS
   ========================================= */

.contact-box {
    min-width: 0;

    min-height: 92px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    border:
        1px
        solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 18px;

    color: white;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-box:hover {
    transform: translateY(-3px);

    background:
        rgba(
            255,
            255,
            255,
            0.17
        );

    box-shadow:
        0
        10px
        25px
        rgba(0, 0, 0, 0.10);
}

.contact-box > div:last-child {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.contact-box span {
    color: #bce7f2;

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.contact-box strong {
    display: block;

    max-width: 100%;

    color: white;

    font-size: 0.98rem;

    line-height: 1.3;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================
   CONTACTO - ICONOS
   ========================================= */

.contact-icon {
    width: 50px;
    height: 50px;

    flex:
        0
        0
        50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: white;

    color: var(--blue);

    font-size: 24px;
}


/* WhatsApp */

.contact-box.whatsapp .contact-icon {
    background: #25d366;

    color: white;
}

.whatsapp-icon img {
    display: block;

    width: 32px;
    height: 32px;

    object-fit: contain;
}


/* Instagram */

.contact-box.instagram .contact-icon {
    background: transparent;

    padding: 0;

    overflow: hidden;
}

.instagram-icon img {
    display: block;

    width: 50px;
    height: 50px;

    object-fit: contain;
}


/* =========================================
   ESTILOS ANTIGUOS DE BOTONES
   ========================================= */

.contact-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.white {
    background: white;

    color: var(--blue2);
}

.outline-white {
    border:
        1px
        solid
        #8dd3e4;

    color: white;
}

.disabled {
    opacity: 0.65;

    pointer-events: none;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    max-width: 1180px;

    margin: auto;

    padding:
        35px
        24px
        55px;

    border-top:
        1px
        solid
        #deedf1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-size: 0.9rem;
}

footer img {
    width: 145px;
}


/* =========================================
   TABLET / MÓVIL
   ========================================= */

@media (max-width: 850px) {

    /* Navegación */

    .menu {
        display: block;
    }

    .nav nav {
        display: none;

        position: absolute;

        top: 76px;
        left: 18px;
        right: 18px;

        padding: 20px;

        background: white;

        box-shadow: var(--shadow);

        border-radius: 16px;

        z-index: 5;

        flex-direction: column;
    }

    .nav nav.open {
        display: flex;
    }


    /* Hero */

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;

        padding-top: 35px;

        gap: 35px;
    }

    .hero-card {
        max-width: 520px;
    }


    /* Servicios */

    .grid {
        grid-template-columns: 1fr;
    }


    /* Cómo trabajamos */

    .split {
        grid-template-columns: 1fr;

        gap: 35px;

        padding:
            38px
            26px;

        margin:
            30px
            18px
            80px;
    }


    /* Contacto */

    .contact {
        display: block;

        width: auto;

        max-width: none;

        margin:
            0
            16px
            60px;

        padding:
            34px
            22px;

        border-radius: 24px;
    }

    .contact-info {
        width: 100%;

        margin-bottom: 28px;
    }

    .contact-info h2 {
        font-size: 2rem;

        line-height: 1.1;

        margin-bottom: 15px;
    }

    .contact-info p {
        width: 100%;

        max-width: none;

        margin-bottom: 0;
    }

    .contact-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .contact-box {
        width: 100%;

        min-width: 0;

        min-height: 76px;

        padding:
            13px
            15px;

        gap: 14px;

        border-radius: 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;

        flex:
            0
            0
            48px;

        border-radius: 13px;
    }

    .contact-box span {
        font-size: 0.70rem;
    }

    .contact-box strong {
        width: 100%;

        font-size: 0.95rem;

        line-height: 1.25;
    }

    .instagram-icon img {
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon img {
        width: 29px;
        height: 29px;
    }


    /* Footer */

    footer {
        flex-direction: column;

        gap: 18px;

        text-align: center;
    }
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 520px) {

    /* Navegación */

    .nav {
        height: 74px;

        padding:
            0
            16px;
    }

    .brand img {
        width: 150px;
    }


    /* Hero */

    .hero {
        padding:
            30px
            18px
            70px;
    }

    .hero h1 {
        font-size:
            clamp(
                2.65rem,
                13vw,
                3.3rem
            );
    }

    .hero-copy > p {
        font-size: 1.05rem;
    }

    .hero-card {
        padding: 25px;
    }

    .actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }

    .actions .btn {
        width: 100%;
    }

    .trust {
        display: grid;

        gap: 8px;
    }


    /* Secciones */

    .section {
        padding:
            75px
            18px;
    }


    /* Cómo trabajamos */

    .split {
        margin:
            20px
            10px
            70px;

        padding:
            30px
            20px;

        border-radius: 22px;
    }


    /* Contacto */

    .contact {
        width: auto;

        margin:
            0
            10px
            50px;

        padding:
            28px
            16px;

        border-radius: 20px;
    }

    .contact-info {
        margin-bottom: 24px;
    }

    .contact-info h2 {
        font-size: 1.75rem;

        line-height: 1.12;

        margin:
            10px
            0
            14px;
    }

    .contact-info p {
        font-size: 0.94rem;

        line-height: 1.55;
    }

    .contact-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .contact-box {
        width: 100%;

        min-height: 70px;

        padding:
            11px
            12px;

        gap: 12px;

        border-radius: 15px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;

        flex:
            0
            0
            44px;

        border-radius: 12px;
    }

    .contact-box span {
        font-size: 0.66rem;

        letter-spacing: 0.05em;
    }

    .contact-box strong {
        font-size: 0.88rem;

        line-height: 1.22;
    }

    .instagram-icon img {
        width: 44px;
        height: 44px;
    }

    .whatsapp-icon img {
        width: 27px;
        height: 27px;
    }


    /* Footer */

    footer {
        padding:
            30px
            18px
            45px;
    }
}


/* =========================================
   MÓVILES MUY PEQUEÑOS
   ========================================= */

@media (max-width: 360px) {

    .contact {
        margin:
            0
            6px
            45px;

        padding:
            24px
            12px;
    }

    .contact-box {
        padding:
            10px
            11px;

        gap: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;

        flex:
            0
            0
            40px;
    }

    .instagram-icon img {
        width: 40px;
        height: 40px;
    }

    .contact-box strong {
        font-size: 0.84rem;
    }
}