:root {
    --primary: #0B3C5D;
    --primary-dark: #082F49;
    --secondary: #008272;
    --dark: #081F33;
    --light: #F3F6F9;
    --white: #FFFFFF;
    --text: #333333;
    --muted: #56616A;
    --border: #E3E9EE;
    --shadow: 0 8px 25px rgba(0, 0, 0, .07);
    --shadow-hover: 0 18px 35px rgba(0, 0, 0, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    overflow: hidden;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #ECECEC;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo img {
    display: block;
    width: auto;
    height: 80px;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    color: var(--primary);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    padding: 6px;
    background: transparent;
    border: 0;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease;
}

.menu-toggle:hover {
    transform: scale(1.08);
}

.desktop-cta {
    display: inline-block;
    margin-left: 30px;
}

.main-nav .mobile-cta {
    display: none;
}

/* ===================================== */
/* BOTONES */
/* ===================================== */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, background-color .25s ease, color .25s ease,
        border-color .25s ease, box-shadow .25s ease;
}

/* Botón primario general para fondos claros */
.btn-primary {
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 130, 114, .18);
}

/* Botón secundario general para fondos claros */
.btn-secondary {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 130, 114, .35);
    outline-offset: 3px;
}

/* Botones sobre fondos oscuros o degradados */
.hero .btn-primary,
.cta .btn-primary {
    border-color: var(--white);
    background: var(--white);
    color: var(--primary);
}

.hero .btn-primary:hover,
.cta .btn-primary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .9);
    color: var(--secondary);
}

.hero .btn-secondary,
.cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-secondary:hover,
.cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.navbar .btn-primary {
    min-height: 46px;
    padding: 12px 22px;
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    font-size: .9rem;
}

.navbar .btn-primary:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}

/* ===================================== */
/* HERO */
/* ===================================== */

.hero {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .15);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .6px;
}

.hero h1 {
    max-width: 950px;
    margin: 20px auto 0;
    font-size: clamp(2.35rem, 5vw, 3.3rem);
    line-height: 1.15;
}

.hero p {
    max-width: 750px;
    margin: 20px auto;
}

.hero-secondary {
    opacity: .9;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* ===================================== */
/* SECCIONES */
/* ===================================== */

section {
    padding: 80px 0;
}

h2 {
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1.25;
    text-align: center;
}

.intro {
    background: var(--white);
    text-align: center;
}

.intro-text {
    max-width: 850px;
    margin: 20px auto;
    color: #555;
    font-size: 1.1rem;
}

.problems,
.why,
.process {
    background: var(--light);
}

.pillars,
.services,
.success {
    background: var(--white);
}

/* ===================================== */
/* TARJETAS */
/* ===================================== */

.cards,
.pillar-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card,
.pillar,
.service,
.case {
    padding: 30px;
    border: 1px solid rgba(11, 60, 93, .06);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover,
.pillar:hover,
.service:hover,
.case:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card h3,
.pillar h3,
.service h3,
.case h3 {
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1.35;
}

.card p,
.pillar p,
.service p,
.case p {
    color: var(--muted);
}

/* Las tarjetas de servicio mantienen sus botones alineados abajo */
.service {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service ul {
    margin: 18px 0 24px 1.15rem;
    color: var(--muted);
}

.service li+li {
    margin-top: 7px;
}

.service p+p {
    margin-top: 12px;
}

.service p:last-of-type {
    margin-bottom: 28px;
}

.service .btn-primary,
.service .btn-secondary,
.service .story-pending {
    align-self: flex-start;
    margin-top: auto;
}

/* ===================================== */
/* ACCIONES ENTRE SECCIONES */
/* ===================================== */

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.section-actions .btn-primary,
.case .btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.section-actions .btn-primary:hover,
.case .btn-primary:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}

/* ===================================== */
/* CASOS */
/* ===================================== */

.case {
    max-width: 950px;
    margin: 0 auto;
    text-align: left;
}

.case p+p {
    margin-top: 14px;
}

.case .btn-primary,
.case .btn-secondary {
    margin-top: 24px;
}

.story-quote {
    margin-top: 30px;
    padding: 24px;
    border-left: 4px solid var(--secondary);
    background: var(--light);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.story-status {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 130, 114, .12);
    color: var(--secondary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.story-pending {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 46px;
    margin-top: auto;
    padding: 11px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.story-coming-soon {
    background: #F9FBFC;
}

/* ===================================== */
/* PROCESO */
/* ===================================== */

.process-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
}

.process-flow>div {
    display: flex;
    flex: 1 1 170px;
    flex-direction: column;
    justify-content: center;
    max-width: 220px;
    min-height: 92px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

.process-flow>div p {
    margin-top: 6px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 400;
}

.process-flow>span {
    align-self: center;
    color: var(--secondary);
    font-size: 2rem;
}

/* ===================================== */
/* CTA */
/* ===================================== */

.cta {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
}

.cta>.container>p:not(.service-note) {
    max-width: 700px;
    margin: 0 auto 28px;
}

.cta .btn-primary {
    margin-top: 4px;
}

.service-note {
    max-width: 760px;
    margin: 30px auto 0;
    color: rgba(255, 255, 255, .9);
    font-size: .92rem;
    line-height: 1.7;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

footer {
    padding: 50px 20px;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 90px;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
}

footer h3 {
    margin-bottom: 15px;
}

footer p {
    margin-top: 10px;
    opacity: .95;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 26px;
}

.footer-nav a,
.footer-nav a:visited {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    border-color: #66D6C8;
    background: rgba(102, 214, 200, .14);
    color: #8DE7DC;
    transform: translateY(-2px);
}

.footer-email,
.footer-email:visited {
    display: inline-block;
    margin-top: 24px;
    color: #8DE7DC;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-legal {
    margin-top: 26px;
    font-size: .88rem;
    opacity: .78;
}

/* ===================================== */
/* ANIMACIÓN */
/* ===================================== */

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ===================================== */
/* NAVEGACIÓN RESPONSIVE */
/* ===================================== */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .desktop-cta {
        display: none;
    }

    .main-nav {
        display: block;
        width: 100%;
        max-height: 0;
        margin-left: 0;
        overflow: hidden;
        opacity: 0;
        background: var(--white);
        visibility: hidden;
        transition: max-height .35s ease, opacity .3s ease, visibility .35s ease;
    }

    .main-nav.active {
        max-height: 680px;
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 5px;
        padding-top: 18px;
        text-align: center;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav ul a {
        display: block;
        width: 100%;
        padding: 9px 12px;
    }

    .main-nav .mobile-cta {
        display: flex;
        width: min(100%, 340px);
        margin: 15px auto 22px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 65px 0;
    }

    h2 {
        margin-bottom: 32px;
        font-size: 1.7rem;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: min(100%, 340px);
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-flow>div {
        width: min(100%, 420px);
        max-width: 420px;
        min-height: 0;
    }

    .process-flow>span {
        transform: rotate(90deg);
    }

    .section-actions .btn-primary,
    .section-actions .btn-secondary {
        width: min(100%, 340px);
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .logo img {
        height: 65px;
    }

    .card,
    .pillar,
    .service,
    .case {
        padding: 24px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .navbar .btn-primary {
        width: min(100%, 340px);
    }

    .story-quote {
        padding: 20px;
        font-size: 1.1rem;
    }

    .result-disclaimer {
        max-width: 850px;
        margin: 30px auto 0;
        padding: 18px 22px;
        border-left: 4px solid var(--secondary);
        border-radius: 0 10px 10px 0;
        background: var(--light);
        color: var(--muted);
        font-size: .9rem;
        line-height: 1.7;
    }

    .story-status {
        display: inline-block;
        align-self: flex-start;
        margin-bottom: 18px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(0, 130, 114, .12);
        color: var(--secondary);
        font-size: .75rem;
        font-weight: 800;
        letter-spacing: .5px;
    }

    .story-pending {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        min-height: 46px;
        margin-top: auto;
        padding: 11px 18px;
        border: 2px solid var(--border);
        border-radius: 10px;
        color: var(--muted);
        font-size: .9rem;
        font-weight: 700;
    }

    .story-coming-soon {
        background: #F9FBFC;
    }


    .footer-nav {
        gap: 10px;
    }

    .footer-nav a,
    .footer-nav a:visited {
        width: auto;
        min-height: 40px;
        padding: 9px 13px;
    }

    .footer-email {
        font-size: .95rem;
    }
}