:root {
    --primary: #086b9d;
    --primary-dark: #064766;
    --primary-light: #dff2fa;

    --whatsapp: #25d366;

    --background: #f5f8fa;
    --white: #ffffff;

    --text: #16232d;
    --text-light: #667783;

    --border: #d9e4e9;

    --shadow:
        0 20px 50px rgba(13, 59, 82, 0.12);
}

@font-face {
    font-family: "Unbounded";
    src: url("fonts/Unbounded-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 900;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.05rem;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 28px;

    list-style: none;
}

.nav-links a {
    position: relative;

    font-size: 0.95rem;
    font-weight: 700;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-phone {
    padding: 10px 18px;

    color: var(--white);
    background: var(--primary);

    border-radius: 30px;

    font-weight: 700;
}

.menu-button {
    display: none;

    border: 0;
    background: transparent;

    color: var(--text);

    font-size: 1.8rem;

    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 760px;

    padding: 150px 0 90px;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(88, 187, 229, 0.35),
            transparent 30%
        ),
        linear-gradient(
            125deg,
            #052f47 0%,
            #086b9d 55%,
            #1296c7 100%
        );
}

.hero-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.7fr);

    align-items: center;

    gap: 75px;
}

.hero-label,
.section-label {
    margin-bottom: 14px;

    color: #9fddf4;

    font-family: "Unbounded", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero h1 {
    max-width: 800px;

    font-size: clamp(
        3rem,
        7vw,
        5.4rem
    );
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;

    color: #9fddf4;
}

.hero-description {
    max-width: 680px;

    margin-top: 26px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.button {
    min-height: 52px;
    padding: 13px 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 12px;

    font-family: "Unbounded", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--primary);

    box-shadow:
        0 12px 28px
        rgba(8, 107, 157, 0.25);
}

.hero .button-primary {
    color: var(--primary-dark);
    background: var(--white);
}

.button-whatsapp {
    color: var(--white);
    background: var(--whatsapp);
}

.button-light {
    color: var(--primary-dark);
    background: var(--white);
}

.hero-features {
    margin-top: 32px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px 22px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.88rem;
}

.hero-features span::before {
    content: "✓";

    margin-right: 7px;

    color: #9fddf4;

    font-weight: 800;
}

.hero-card {
    padding: 34px;

    border: 1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.1);

    box-shadow: var(--shadow);

    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 150px;
    height: 150px;

    object-fit: cover;
    object-position: top;

    margin-bottom: 25px;

    border-radius: 16px;

    display: block;
}

.hero-card p {
    color: #9fddf4;

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-card h2 {
    margin-top: 8px;

    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
}

.hero-card span {
    margin-top: 16px;

    display: block;

    color: rgba(255, 255, 255, 0.75);
}

.hero-card a {
    margin-top: 24px;

    display: inline-block;

    color: var(--white);

    font-weight: 800;
}

/* SECCIONES */

.section {
    padding: 100px 0;
}

.section-label {
    color: var(--primary);
}

.section h2,
.cta h2 {
    font-size: clamp(
        2.2rem,
        4vw,
        3.5rem
    );
    font-weight: 700;
    line-height: 1.08;

    letter-spacing: -0.04em;
}

/* SOBRE MI */

.about-grid {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    align-items: center;

    gap: 80px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 430px;

    object-fit: contain;

    display: block;
}
.about-text > p:not(.section-label) {
    margin-top: 20px;

    color: var(--text-light);
}

.values {
    margin-top: 35px;

    display: grid;

    gap: 16px;
}

.value-card {
    padding: 18px 20px;

    border-left: 4px solid var(--primary);

    background: var(--background);

    border-radius: 0 12px 12px 0;
}

.value-card h3 {
    color: var(--primary-dark);
}

.value-card p {
    margin-top: 4px;

    color: var(--text-light);

    font-size: 0.92rem;
}

/* SERVICIOS */

.services-section {
    background: var(--background);
}

.section-header {
    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    align-items: end;

    gap: 60px;
}

.section-header > p {
    color: var(--text-light);
}

.services-grid {
    margin-top: 52px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.service-card {
    min-height: 285px;

    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.service-number {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    color: var(--primary);

    background: var(--primary-light);

    border-radius: 12px;

    font-size: 0.8rem;
    font-weight: 800;
}

.service-card h3 {
    margin-top: 28px;

    font-size: 1.2rem;
}

.service-card p {
    margin-top: 12px;

    color: var(--text-light);

    font-size: 0.94rem;
}

/* CTA */

.cta-section {
    padding-bottom: 100px;

    background: var(--background);
}

.cta {
    padding: 48px 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color: var(--white);

    background:
        linear-gradient(
            115deg,
            var(--primary-dark),
            var(--primary)
        );

    border-radius: 24px;
}

.cta p {
    margin-bottom: 5px;

    color: #9fddf4;

    font-weight: 700;
}

.cta h2 {
    font-size: clamp(
        1.8rem,
        4vw,
        3rem
    );
}

/* CONTACTO */

.contact-grid {
    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 70px;
}

.contact-info > p:not(.section-label) {
    margin-top: 20px;

    color: var(--text-light);
}

.contact-list {
    margin-top: 34px;

    display: grid;

    gap: 14px;
}

.contact-list > a,
.contact-location {
    padding: 14px;

    display: flex;
    align-items: center;

    gap: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;
}

.contact-list > a:hover {
    border-color: var(--primary);
}

.contact-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: var(--white);
    background: var(--primary);

    border-radius: 11px;

    font-weight: 800;
}

.contact-list small,
.contact-list strong {
    display: block;
}

.contact-list small {
    color: var(--text-light);

    font-size: 0.75rem;
}

.contact-list strong {
    font-size: 0.94rem;
}

/* FORMULARIO */

.contact-form {
    padding: 38px;

    background: var(--background);

    border: 1px solid var(--border);
    border-radius: 22px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    margin-bottom: 7px;

    display: block;

    font-size: 0.88rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;

    padding: 13px 14px;

    color: var(--text);
    background: var(--white);

    border: 1px solid #cad7dd;
    border-radius: 10px;

    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(8, 107, 157, 0.1);
}

.form-field textarea {
    resize: vertical;
}

.contact-form .button {
    width: 100%;
}

.form-note {
    margin-top: 12px;

    color: var(--text-light);

    font-size: 0.78rem;

    text-align: center;
}

/* FOOTER */

.footer {
    padding: 35px 0;

    color: rgba(255, 255, 255, 0.78);
    background: #06354e;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    font-size: 0.86rem;
}

.footer-logo {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--white);

    font-weight: 800;
}

.footer-logo img {
    width: 50px;
    height: 50px;

    padding: 5px;

    object-fit: contain;

    background: var(--white);

    border-radius: 12px;
}

/* WHATSAPP FIJO */

.floating-whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 900;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    color: var(--white);
    background: var(--whatsapp);

    border-radius: 50%;

    box-shadow:
        0 14px 35px
        rgba(37, 211, 102, 0.4);

    font-weight: 800;
}

/* TABLET */

@media (max-width: 950px) {

    .header-phone {
        display: none;
    }

    .hero-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 45px;
    }

    .hero-card {
        max-width: 520px;
    }

    .about-image {
        max-width: 600px;

        width: 100%;

        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .section-header {
        grid-template-columns: 1fr;

        gap: 20px;
    }

}

/* MOVIL */

@media (max-width: 720px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    .menu-button {
        display: block;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .nav-links {
        position: fixed;

        top: 80px;
        left: 0;
        right: 0;

        padding: 30px 20px;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        background: var(--white);

        border-bottom: 1px solid var(--border);

        box-shadow:
            0 18px 38px
            rgba(13, 59, 82, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: auto;

        padding: 130px 0 75px;
    }

    .hero h1 {
        font-size: clamp(
            2.7rem,
            13vw,
            4rem
        );
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;

        gap: 8px;
    }

    .section {
        padding: 75px 0;
    }

    .about-grid {
        gap: 45px;
    }

    .about-image {
        min-height: 360px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .cta-section {
        padding-bottom: 75px;
    }

    .cta {
        padding: 35px 25px;

        flex-direction: column;
        align-items: flex-start;
    }

    .cta .button {
        width: 100%;
    }

    .contact-grid {
        gap: 45px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }
    
    .language-selector {
        display: flex;
        align-items: center;
        gap: 8px;

        font-weight: 700;
        font-size: 0.95rem;
        font-family: "Unbounded", sans-serif;

    }

    .language-selector span {
        color: #b5b5b5;
    }

    .language-selector a {
        color: #666;
        transition: .2s;
    }

    .language-selector a:hover {
        color: var(--primary);
    }

    .language-selector a.active {
        color: var(--primary);
    }

    .hidden-field {
        display: none;
    }
}