:root {
    --brand-blue: #002776;
    --brand-blue-hover: #001d5c;
    --brand-red: #d71920;
    --black: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-600: #64748b;
    --white: #ffffff;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

.landing a,
.landing a:hover,
.landing a:focus {
    text-decoration: none;
}

.landing a:not(.btn-ghost):not(.btn-whatsapp):not(.landing-cta-link):not(.landing-float-wa) {
    color: inherit;
}

.landing img {
    max-width: 100%;
    height: auto;
}

.landing-container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow);
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.landing-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(226, 232, 240, 1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.landing-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.landing-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav a {
    position: relative;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s var(--ease-out);
}

.landing-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--brand-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.landing-nav a:hover {
    color: var(--brand-blue);
}

.landing-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    background: #25d366;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
    white-space: nowrap;
}

.landing .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    color: var(--white);
}

.landing .btn-whatsapp--brand {
    background: var(--brand-blue);
    color: var(--white);
}

.landing .btn-whatsapp--brand:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 8px 20px rgba(0, 39, 118, 0.3);
    color: var(--white);
}

.landing .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: rgba(0, 39, 118, 0.08);
    color: var(--brand-blue);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.landing .btn-ghost:hover {
    background: var(--brand-blue);
    color: var(--white);
}

.landing-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    background:
        linear-gradient(135deg, rgba(0, 39, 118, 0.92), rgba(0, 29, 92, 0.85)),
        url('/images/fondo.webp') center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.landing-hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-hero__glow::before,
.landing-hero__glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: landingGlowDrift 14s ease-in-out infinite;
}

.landing-hero__glow::before {
    top: -10%;
    right: -5%;
    width: 45%;
    height: 55%;
    background: rgba(255, 82, 89, 0.18);
}

.landing-hero__glow::after {
    bottom: -15%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation-delay: -7s;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
    animation: landingLineShine 4s ease-in-out infinite;
}

.landing-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.landing-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    max-width: 800px;
    color: var(--white);
}

.landing-hero h1 span {
    color: #ff5259;
}

.landing-hero__lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.landing-hero__diff {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.landing-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    max-width: 100%;
}

.landing-stat {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    flex: 1;
    min-width: 140px;
    transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.landing-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.landing-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.landing-stat span {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.landing-section {
    padding: 6rem 0;
}

.landing-section--gray {
    background: var(--gray-50);
}

.landing-section--dark {
    background: var(--black);
    color: var(--white);
}

.landing-section--dark .landing-section__header h2 {
    color: var(--white);
}

.landing-section--dark .landing-section__header p {
    color: rgba(255, 255, 255, 0.7);
}

.landing-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.landing-section__header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--black);
}

.landing-section__header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.landing-grid {
    display: grid;
    gap: 1.25rem;
}

.landing-grid--3 {
    grid-template-columns: 1fr;
}

.landing-card {
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    height: 100%;
}

.landing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(0, 39, 118, 0.2);
}

.landing-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 39, 118, 0.06);
    color: var(--brand-blue);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.landing-card:hover .landing-card__icon {
    background: var(--brand-blue);
    color: var(--white);
    transform: scale(1.08) rotate(-3deg);
}

.landing-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--black);
}

.landing-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.landing-diff-list {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.landing-diff-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-diff-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.landing-diff-item i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: #ff5259;
    font-size: 1.1rem;
    margin-top: 0;
    flex-shrink: 0;
}

.landing-diff-item strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--white);
}

.landing-diff-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.landing-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.landing-client-tag {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.landing-client-tag:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 39, 118, 0.25);
    color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.landing-cta-grid {
    display: grid;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.landing-cta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--black);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.landing-cta-link:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--brand-blue);
}

.landing-cta-link i:last-child {
    color: var(--brand-blue);
    font-size: 1.25rem;
    background: rgba(0, 39, 118, 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.landing-cta-link:hover i:last-child {
    background: var(--brand-blue);
    color: var(--white);
}

.landing-contact {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.landing-contact__item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.landing-contact__item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 39, 118, 0.06);
    color: var(--brand-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.landing-contact__item strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--black);
}

.landing-contact__item p,
.landing-contact__item a {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.landing-contact__item a {
    font-weight: 500;
    transition: color 0.15s;
}

.landing-contact__item a:hover {
    color: var(--brand-blue);
}

.landing-footer {
    padding: 2rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.85rem;
    text-align: center;
}

.landing-footer a {
    color: var(--brand-blue);
}

.landing-float-wa {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    animation: landingFloatWa 3s ease-in-out infinite;
}

.landing-float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    color: var(--white);
    animation: none;
}

.landing-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: transparent;
    color: var(--black);
    cursor: pointer;
}

.landing-mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.landing-mobile-nav.is-open {
    display: block;
    animation: landingFadeDown 0.35s var(--ease-out);
}

.landing-mobile-nav a {
    display: block;
    padding: 0.6rem 0;
    color: var(--black);
    font-weight: 500;
}

@media (min-width: 768px) {
    .landing-nav {
        display: flex;
    }

    .landing-menu-toggle {
        display: none;
    }

    .landing-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .landing-diff-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-contact {
        grid-template-columns: 1fr 1fr;
    }

    .landing-cta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .landing-grid--services {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Animations ── */

@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingGlowDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3%, 4%) scale(1.08);
    }
}

@keyframes landingLineShine {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes landingFloatWa {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.landing-animate {
    opacity: 0;
    animation: landingFadeUp 0.85s var(--ease-out) forwards;
}

.landing-animate--d1 { animation-delay: 0.1s; }
.landing-animate--d2 { animation-delay: 0.22s; }
.landing-animate--d3 { animation-delay: 0.34s; }
.landing-animate--d4 { animation-delay: 0.46s; }
.landing-animate--d5 { animation-delay: 0.58s; }
.landing-animate--d6 { animation-delay: 0.7s; }

.landing-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
    will-change: opacity, transform;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-diff-item.landing-reveal.is-visible {
    transform: translateY(0);
}

.landing-diff-item.landing-reveal.is-visible:hover {
    transform: translateY(-2px);
}

.landing-contact__item {
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.landing-contact__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 39, 118, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .landing-animate,
    .landing-reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .landing-hero__glow::before,
    .landing-hero__glow::after,
    .landing-hero::after,
    .landing-float-wa {
        animation: none !important;
    }

    .landing-card:hover,
    .landing-stat:hover,
    .landing-client-tag:hover,
    .landing-cta-link:hover,
    .landing-contact__item:hover,
    .landing .btn-whatsapp:hover {
        transform: none;
    }
}
