:root {

    /* ===== BASE ===== */
    --bg: #F5FAFD;
    --bg-soft: #EDF5FB;
    --white: #FFFFFF;

    /* ===== PRIMARY ===== */
    --primary: #78A9D4;
    --primary-dark: #4F7EA8;
    --primary-deep: #456D91;
    --primary-soft: #DCEBF7;

    /* ===== TEXT ===== */
    --text: #2E3B45;
    --text-soft: #6E7C87;

    /* ===== DETAILS ===== */
    --border: #E4EEF5;
    --accent: #A9C7DF;

    /* ===== SHADOW ===== */
    --shadow: 0 12px 40px rgba(90, 130, 170, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* subtle grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    background: var(--primary-dark);
    display: inline-block;
}

/* ---------- NAV ---------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 40px;

    transition: .35s ease;

    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px);
}

nav.scrolled {
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 1px 0 var(--border);
    padding: 12px 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;

    color: var(--text);
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-top: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-soft);
    transition: .2s;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-cta {

    background: linear-gradient(135deg,
            #5F8FB7,
            #4F7EA8);

    color: white !important;

    padding: 11px 22px;

    border-radius: 999px;

    font-weight: 600;

    box-shadow:
        0 10px 24px rgba(79, 126, 168, .22);

    transition: .25s;
}

.nav-cta:hover {

    background: linear-gradient(135deg,
            #537FA5,
            #456D91);

    transform: translateY(-2px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---------- HERO ---------- */

header.hero {
    position: relative;
    padding: 170px 0 110px;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-blob.a {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #CFE4F5, transparent 70%);
    top: -120px;
    right: -120px;
}

.hero-blob.b {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #DDEFFC, transparent 70%);
    bottom: -160px;
    left: -120px;
    opacity: .5;
}

.hero-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.15fr .85fr;

    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    margin: 22px 0 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary-dark);
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-soft);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 14px 26px;
    border-radius: 999px;

    font-weight: 600;
    font-size: 15px;

    transition: .25s;

    cursor: pointer;
    border: none;
}

.btn-primary {

    background: linear-gradient(135deg,
            #5F8FB7,
            #4F7EA8);

    color: white;

    box-shadow:
        0 10px 24px rgba(79, 126, 168, .25);

    border: none;
}

.btn-primary:hover {

    background: linear-gradient(135deg,
            #537FA5,
            #456D91);

    transform: translateY(-3px);

    box-shadow:
        0 16px 34px rgba(79, 126, 168, .32);
}

.btn-ghost {

    background: rgba(255, 255, 255, .7);

    backdrop-filter: blur(10px);

    color: #4F7EA8;

    border: 1.5px solid rgba(79, 126, 168, .22);
}

.btn-ghost:hover {

    background: #4F7EA8;

    color: white;

    border-color: #4F7EA8;
}

.hero-card {
    position: relative;

    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);

    border-radius: 26px;
    padding: 38px 34px;

    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-card h3 {
    font-size: 23px;
    margin-bottom: 6px;
}

.hero-card .quote {
    font-size: 20px;
    color: var(--primary-dark);
    line-height: 1.45;
    margin: 18px 0;
}

.hero-card .badge {
    display: inline-block;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--primary-dark);

    background: var(--primary-soft);

    padding: 6px 14px;
    border-radius: 30px;
}

.leaf {
    position: absolute;
    width: 80px;
    opacity: .4;
    top: -30px;
    right: -18px;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;

    margin-top: 54px;

    align-items: center;
    position: relative;
    z-index: 2;
}

.trust span {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 14.5px;
    color: var(--text-soft);
    font-weight: 500;
}

/* ---------- SECTION ---------- */

section {
    padding: 120px 0;
    position: relative;
}

.sec-head {
    max-width: 680px;
    margin-bottom: 54px;
}

.sec-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    margin: 16px 0;
}

.sec-head p {
    font-size: 18px;
    color: var(--text-soft);
}

/* ---------- NOSOTROS ---------- */

#nosotros {

    background: linear-gradient(180deg,
            #6E9FC7 0%,
            #5B89B0 100%);

    color: white;

    border-radius: 42px;
    margin: 0 14px;
}

#nosotros h2,
#nosotros h3,
#nosotros h4 {
    color: white;
}

#nosotros .eyebrow {
    color: #DDEFFC;
}

#nosotros .eyebrow::before {
    background: #DDEFFC;
}

#nosotros p {
    color: rgba(255, 255, 255, .88);
}

.nos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: start;
}

.nos-grid p {
    font-size: 17.5px;
    margin-bottom: 18px;
}

.nos-grid p strong {
    color: white;
}

.pillars {
    display: grid;
    gap: 18px;
}

.pillar {

    display: flex;
    gap: 18px;

    align-items: flex-start;

    padding: 22px;

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, .18);

    border-radius: 18px;
}

/* ---------- EQUIPO ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.member {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 26px;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(90, 130, 170, .06);
}

.member:hover {
    transform: translateY(-5px);
}

.member .avatar {
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    border-radius: 50%;

    overflow: hidden;

    margin-bottom: 18px;

    border: 4px solid rgba(255, 255, 255, .9);

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.member .avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.member h3 {
    font-size: 21px;
    margin-bottom: 2px;
}

.member .role {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.member p {
    font-size: 15px;
    color: var(--text-soft);
}


/* =======================================================
   SERVICIOS
======================================================= */

#servicios {

    position: relative;
    background-color: var(--primary-dark);
    overflow: hidden;

}


/* ===== TEXTO ENCABEZADO SERVICIOS ===== */

#servicios .eyebrow {

    color: #fff;
}

#servicios .sec-head h2 {

    color: #fff;
}

#servicios .sec-head p {

    color: rgba(255, 255, 255, .78);
}

#servicios .eyebrow::before {

    background: #fff;
}

/* ===== WRAPPER ===== */

.services-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    gap: 24px;
}


/* =======================================================
   CAROUSEL
======================================================= */

.serv-carousel {

    overflow: hidden;

    width: 100%;
}


/* ===== GRID ===== */

.serv-grid {

    display: flex;

    width: 100%;

    transition: transform .7s ease;
}


/* =======================================================
   CARD
======================================================= */

.serv {

    min-width: 100%;

    width: 100%;

    flex-shrink: 0;

    box-sizing: border-box;

    position: relative;

    display: flex;

    align-items: center;

    padding: 20px 0;

    min-height: 560px;
}


/* =======================================================
   IMAGE
======================================================= */

.serv-img {

    width: 58%;

    height: 430px;

    border-radius: 32px;

    overflow: hidden;

    position: relative;

    z-index: 1;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .12);
}


.serv-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =======================================================
   CONTENT CARD
======================================================= */

.serv-content {

    width: 48%;

    background: #fff;

    padding: 34px;

    border-radius: 32px;

    position: absolute;

    right: 0;

    z-index: 2;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .08);
}


/* ===== NUMBER ===== */

.serv-content .num {

    display: inline-block;

    color: var(--clay);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    margin-bottom: 12px;
}


/* ===== TITLE ===== */

.serv-content h3 {

    font-size: clamp(28px, 3vw, 38px);

    line-height: 1.15;

    margin-bottom: 16px;

    color: var(--ink);
}


/* ===== TEXT ===== */

.serv-content p {

    font-size: 16px;

    line-height: 1.55;

    color: var(--ink-soft);

    margin-bottom: 18px;
}


/* ===== LIST ===== */

.serv-content ul {

    display: grid;

    gap: 8px;

    margin-bottom: 22px;

    padding-left: 18px;
}


.serv-content li {

    color: var(--ink-soft);

    line-height: 1.45;

    font-size: 15px;
}


/* =======================================================
   TAGS
======================================================= */

.tag-row {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.tag {

    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(94, 110, 83, .10);

    color: var(--sage);

    font-size: 13px;

    font-weight: 600;
}


/* =======================================================
   BUTTONS
======================================================= */

.serv-btn {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    background: #fff;

    color: var(--ink);

    font-size: 22px;

    flex-shrink: 0;

    transition: .25s;

    z-index: 10;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, .10);
}


.serv-btn:hover {

    transform: translateY(-2px);

    background: var(--sage);

    color: #fff;
}




/* =======================================================
   DOTS
======================================================= */

.carousel-dots {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;
}


.dot {

    width: 11px;

    height: 11px;

    border-radius: 50%;

    background: rgba(94, 110, 83, .50);

    transition: .25s;
}


.dot.active {

    background: var(--white);

    transform: scale(1.15);
}


/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 1100px) {

    .serv {

        display: block;

        min-height: auto;

        padding-bottom: 60px;
    }

    .serv-img {

        width: 100%;

        height: 320px;
    }

    .serv-content {

        position: relative;

        width: calc(100% - 40px);

        margin: -70px auto 0;

        right: auto;

        padding: 28px;
    }

}


@media (max-width: 768px) {

    .services-wrapper {
        gap: 5px;
    }

    .serv-content {

        width: calc(100% - 20px);

        padding: 15px;
    }

    .serv-content h3 {

        font-size: 28px;
    }

    .serv-content p,
    .serv-content li {

        font-size: 14px;
    }

    .serv-btn {

        width: 25px;

        height: 25px;

        font-size: 18px;
    }

    .serv-img {

        height: 240px;
    }

   

}


/* ---------- CONTACTO ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info .item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.contact-info .ico {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info h4 {
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.contact-info p {
    font-size: 16.5px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    color: var(--primary-dark);
}

.socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.form-card {
    background: white;
    border-radius: 26px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.form-card p.sub {
    color: var(--text-soft);
    margin-bottom: 24px;
    font-size: 15.5px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    font-family: inherit;
    font-size: 15px;
    background: #F8FBFE;
    color: var(--text);
    transition: .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.form-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ---------- FOOTER ---------- */
footer {
    background: #5D87AC;
    color: rgba(255, 255, 255, .8);
    padding: 60px 0 34px;
    margin-top: 40px;
}

.foot-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.foot-brand {
    max-width: 330px;
}

.foot-brand p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .7);
}

.foot-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.foot-col h5 {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 14px;
}

.foot-col a {
    display: block;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 9px;
    transition: .2s;
}

.foot-col a:hover {
    color: white;
}

.foot-bottom {
    padding-top: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px) {

    .hero-inner,
    .nos-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .serv {
        flex: 0 0 100%;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 62px;
        right: 18px;
        left: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: white;
        padding: 24px;
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    #nosotros {
        margin: 0 6px;
        border-radius: 30px;
    }
}

@media(max-width:560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 0 10px;
    }

    section {
        padding: 80px 0;
    }

    .foot-cols {
        gap: 36px;
    }
}


/*Whatsapp icono*/

.whatsapp-icono {
    position: fixed;
    right: 1.5%;
    bottom: 3%;
    z-index: 10;
}

.icono-whatsapp {
    width: 60px;
}

/* ===== MENSAJE ERROR FORMULARIO ===== */

#form-error {

    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 12px;

    background: #FFE8E8;

    border: 1px solid #F5B5B5;

    color: #C13D3D;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;

    display: none;
}