/* =========================================================
   APROBADOS — CSS Corporativo (NET 8 / Blazor)
   Limpio, escalable y sin conflictos
   ========================================================= */

/* ---------- Variables (Paleta Azul Oficial) ---------- */
:root {
    --ap-bg: #f6f9ff;
    --ap-surface: #ffffff;
    --ap-text: #0f172a;
    --ap-muted: #64748b;
    --ap-primary: #0b63d1;
    --ap-primary-2: #1f86ff;
    --ap-border: rgba(15, 23, 42, .10);
    --ap-radius: 16px;
    --ap-radius-lg: 22px;
    --ap-shadow: 0 10px 30px rgba(2, 20, 55, .08);
    --ap-shadow-2: 0 14px 40px rgba(2, 20, 55, .12);
    --ap-container: 1180px;
    /* Header */
    --ap-header-h: 76px;
    --ap-header-mobile-h: 64px;
    /* Menú móvil */
    --ap-menu-radius: 22px;
}

/* ---------- Reset ---------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ap-text);
    background: var(--ap-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ---------- Helpers ---------- */
.ap-container {
    width: min(var(--ap-container), calc(100% - 32px));
    margin-inline: auto;
}

.ap-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow);
}

/* =========================================================
   BOTONES
   ========================================================= */
.ap-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ap-text);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    user-select: none;
}

    .ap-btn:active {
        transform: translateY(1px);
    }

.ap-btn--primary {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 99, 209, .22);
}

    .ap-btn--primary:hover {
        box-shadow: 0 14px 30px rgba(11, 99, 209, .28);
        transform: translateY(-1px);
    }

.ap-btn--outline {
    border-color: rgba(11, 99, 209, .45);
    color: var(--ap-primary);
    background: #fff;
}

    .ap-btn--outline:hover {
        border-color: rgba(11, 99, 209, .75);
        box-shadow: 0 10px 20px rgba(2, 20, 55, .10);
        transform: translateY(-1px);
    }

/* =========================================================
   NAVBAR (HEADER)
   - Desktop normal
   - Móvil con panel fijo solo en móvil (NO pisa desktop)
   ========================================================= */
.ap-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding-top: env(safe-area-inset-top, 0px);
}

.ap-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    min-height: var(--ap-header-h);
    position: relative;
    z-index: 2200; /* arriba del overlay móvil */
}

.ap-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

    .ap-nav__brand img {
        height: 40px;
        width: auto;
    }

/* Links desktop */
.ap-nav__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .ap-nav__links a {
        font-weight: 700;
        color: #334155;
        padding: 10px 10px;
        border-radius: 999px;
        transition: background .18s ease, color .18s ease;
    }

        .ap-nav__links a:hover {
            background: rgba(11, 99, 209, .08);
            color: var(--ap-primary);
        }

/* CTA desktop */
.ap-nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Botón hamburguesa */
.ap-nav__toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    box-shadow: 0 10px 20px rgba(2, 20, 55, .08);
    display: none; /* se muestra en móvil */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .ap-nav__toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(2, 20, 55, .12);
        border-color: rgba(11, 99, 209, .35);
    }

/* Icono hamburguesa */
.ap-nav__icon {
    width: 18px;
    height: 12px;
    position: relative;
}

    .ap-nav__icon span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--ap-primary);
        border-radius: 999px;
        transition: transform .22s ease, top .22s ease, opacity .18s ease;
    }

        .ap-nav__icon span:nth-child(1) {
            top: 0;
        }

        .ap-nav__icon span:nth-child(2) {
            top: 5px;
        }

        .ap-nav__icon span:nth-child(3) {
            top: 10px;
        }

/* Panel/overlay por defecto (desktop: NO usados) */
.ap-nav__panel {
    display: none;
}

.ap-nav__overlay {
    display: none;
}

/* Estado abierto: muestra panel/overlay (en móvil se verá, en desktop igual no aparece porque no existe/oculto) */
.ap-nav.ap-nav--open .ap-nav__panel,
.ap-nav.is-open .ap-nav__panel,
.ap-nav.open .ap-nav__panel,
.ap-nav.nav-open .ap-nav__panel {
    display: block;
}

.ap-nav.ap-nav--open .ap-nav__overlay,
.ap-nav.is-open .ap-nav__overlay,
.ap-nav.open .ap-nav__overlay,
.ap-nav.nav-open .ap-nav__overlay {
    display: block;
}

/* Icono X cuando está abierto */
.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(1),
.ap-nav.is-open .ap-nav__icon span:nth-child(1),
.ap-nav.open .ap-nav__icon span:nth-child(1),
.ap-nav.nav-open .ap-nav__icon span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(2),
.ap-nav.is-open .ap-nav__icon span:nth-child(2),
.ap-nav.open .ap-nav__icon span:nth-child(2),
.ap-nav.nav-open .ap-nav__icon span:nth-child(2) {
    opacity: 0;
}

.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(3),
.ap-nav.is-open .ap-nav__icon span:nth-child(3),
.ap-nav.open .ap-nav__icon span:nth-child(3),
.ap-nav.nav-open .ap-nav__icon span:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

/* =========================================================
   HERO BASE (si tu Home usa .ap-hero normal)
   ========================================================= */
.ap-hero {
    padding: 38px 0 42px;
}

.ap-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: stretch;
}

.ap-hero__copy {
    padding: 26px 26px;
    position: relative;
    overflow: hidden;
}

.ap-hero__kicker {
    font-weight: 800;
    color: #0f172a;
    opacity: .85;
}

.ap-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 3.2vw, 54px);
    line-height: 1.06;
    color: #0b3f8f;
    letter-spacing: -0.02em;
}

.ap-hero p {
    margin: 0 0 18px;
    color: #475569;
    font-weight: 600;
    line-height: 1.5;
}

.ap-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.ap-pillGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ap-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(11, 99, 209, .06);
    border: 1px solid rgba(11, 99, 209, .10);
    color: #0f172a;
    font-weight: 700;
}

    .ap-pill::before {
        content: "✓";
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(11, 99, 209, .12);
        color: var(--ap-primary);
        font-weight: 900;
    }

.ap-hero__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--ap-radius-lg);
    border: 1px solid rgba(15, 23, 42, .08);
    background: radial-gradient(circle at 30% 20%, rgba(31,134,255,.35), rgba(11,99,209,.10) 40%, #fff 75%);
    box-shadow: var(--ap-shadow);
    min-height: 420px;
}

    .ap-hero__media img {
        position: absolute;
        right: -20px;
        bottom: -30px;
        width: min(520px, 92%);
        filter: drop-shadow(0 18px 30px rgba(2, 20, 55, .18));
    }

/* =========================================================
   CONTENIDO GENERAL / ANCLAS
   ========================================================= */
.main-content {
    padding-top: 10px;
    min-height: calc(100vh - 80px);
}

:target {
    scroll-margin-top: 90px;
}

/* =========================================================
   FOOTER (LEA BANK)
   ========================================================= */
.ap-lea-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: 60px;
    border-top: 3px solid #0b63d1;
}

.ap-footer__main {
    padding: 50px 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.ap-footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ap-footer__logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.ap-footer__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0b63d1;
    padding-bottom: 8px;
    display: inline-block;
}

.ap-footer__description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.ap-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.ap-contact-icon {
    font-size: 14px;
    width: 20px;
}

.ap-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .ap-footer__links a {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.2s ease;
        padding: 2px 0;
    }

        .ap-footer__links a:hover {
            color: #1f86ff;
        }

.ap-footer__example {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

    .ap-footer__example h4 {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 15px 0;
    }

    .ap-footer__example p {
        color: #94a3b8;
        font-size: 12px;
        line-height: 1.6;
        margin: 0 0 10px 0;
        font-weight: 400;
    }

.ap-footer__rates {
    color: #e2e8f0;
    font-weight: 500;
}

.ap-footer__disclaimer {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}

.ap-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-footer__copyright p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

.ap-footer__badges {
    display: flex;
    gap: 15px;
}

.ap-badge {
    background: rgba(11, 99, 209, 0.15);
    border: 1px solid rgba(11, 99, 209, 0.3);
    color: #1f86ff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

    .ap-badge:hover {
        background: rgba(11, 99, 209, 0.25);
        transform: translateY(-1px);
    }

/* =========================================================
   HERO ENHANCED - SIMULADOR
   (No pisa el hero base, solo aporta extras)
   ========================================================= */
.ap-highlight {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    z-index: 1;
    color: #0b63d1;
}

/* Simulador Mini */
.ap-simulator-mini {
    background: rgba(11, 99, 209, 0.05);
    border: 1px solid rgba(11, 99, 209, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

    .ap-simulator-mini h4 {
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--ap-text);
    }

.ap-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ap-sim-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ap-sim-field label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }

.ap-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

    .ap-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--ap-primary);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(11, 99, 209, 0.3);
    }

.ap-range-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ap-primary);
}

/* ✅ Un solo .ap-select */
.ap-select {
    padding: 10px 12px;
    border: 1px solid var(--ap-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--ap-text);
    font-weight: 500;
}

.ap-sim-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    border-radius: 12px;
    color: #fff;
}

.ap-sim-label {
    font-size: 13px;
    font-weight: 500;
}

.ap-sim-amount {
    font-size: 18px;
    font-weight: 700;
}

.ap-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ap-border);
}

.ap-stat-item {
    text-align: center;
    flex: 1;
}

.ap-stat-number {
    font-size: 20px;
    font-weight: 900;
    color: var(--ap-primary);
    display: block;
}

.ap-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjeta tipo “simulador” (si la usas en el hero) */
.ap-hero-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--ap-shadow-2);
    position: relative;
    z-index: 2;
    animation: apFloat 3s ease-in-out infinite;
}

@keyframes apFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ap-card-header {
    margin-bottom: 20px;
}

.ap-status-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ap-card-header h3 {
    margin: 10px 0 0 0;
    font-size: 18px;
    color: var(--ap-text);
    line-height: 1.3;
}

.ap-amount-display {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.ap-amount-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.ap-amount-value {
    font-size: 28px;
    font-weight: 900;
}

.ap-card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ap-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

    .ap-detail-row span {
        color: #64748b;
        font-weight: 500;
    }

    .ap-detail-row b {
        color: #1e293b;
        font-weight: 700;
    }

.ap-btn-full {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: var(--ap-bg);
    color: var(--ap-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ap-btn-full:hover {
        background: rgba(15, 23, 42, .08);
    }

/* Iconos flotantes */
.ap-float-icon {
    position: absolute;
    font-size: 24px;
    animation: apFloatIcon 4s ease-in-out infinite;
    z-index: 1;
    opacity: 0.8;
}

.ap-float-1 {
    top: 20px;
    right: 10px;
    animation-delay: 0s;
}

.ap-float-2 {
    top: 50%;
    right: -15px;
    animation-delay: 1s;
}

.ap-float-3 {
    bottom: 30px;
    right: 20px;
    animation-delay: 2s;
}

@keyframes apFloatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* =========================================================
   SECCIONES (Beneficios / Cómo funciona / Testimonios / CTA)
   ========================================================= */
.ap-section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .ap-section-header h2 {
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 900;
        color: #0b3f8f;
        margin: 0 0 15px 0;
        line-height: 1.2;
    }

    .ap-section-header p {
        font-size: 16px;
        color: #64748b;
        margin: 0;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

/* Beneficios */
.ap-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f9ff 0%, #fff 100%);
}

.ap-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ap-benefit-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .ap-benefit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .ap-benefit-card:hover::before {
        transform: scaleX(1);
    }

    .ap-benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--ap-shadow-2);
    }

.ap-benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.ap-benefit-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 10px 0;
}

.ap-benefit-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.ap-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
}

.ap-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.ap-cta-text h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.ap-cta-text p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.ap-cta-highlight {
    color: #bfe0ff;
}

.ap-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 30px;
    white-space: nowrap;
}

/* Cómo funciona */
.ap-how-work {
    padding: 80px 0;
    background: #f8fafc;
}

.ap-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

    .ap-steps-grid::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 33.33%;
        right: 33.33%;
        height: 2px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        z-index: 0;
    }

.ap-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ap-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 0 auto 15px auto;
    font-size: 18px;
}

.ap-step-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.ap-step h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 10px 0;
}

.ap-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Testimonios */
.ap-testimonials {
    padding: 80px 0;
    background: #fff;
}

.ap-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ap-testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--ap-border);
    border-radius: 16px;
    padding: 25px;
    position: relative;
}

    .ap-testimonial-card::before {
        content: '"';
        position: absolute;
        top: 10px;
        left: 20px;
        font-size: 60px;
        color: rgba(11, 99, 209, 0.1);
        font-weight: 900;
    }

.ap-stars {
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.ap-testimonial-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.ap-testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

    .ap-testimonial-author b {
        color: var(--ap-text);
    }

    .ap-testimonial-author span {
        color: #94a3b8;
    }

/* =========================================================
   SOCIAL MEDIA FLOTANTE (✅ UNA SOLA DEFINICIÓN)
   - Dejamos la versión centrada (como en tu captura)
   ========================================================= */
.ap-social-float {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: all .3s ease;
}

    .ap-social-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 14px 30px rgba(0,0,0,.35);
    }

.ap-facebook {
    background: #1877f2;
}

.ap-instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.ap-youtube {
    background: #ff0000;
}

.ap-whatsapp {
    background: #25d366;
}

/* =========================================================
   BACK TO TOP (mantiene ambos nombres)
   - Si tu HTML usa .ap-back-to-top funciona
   - Si alguna parte usa .ap-backtop también funciona
   ========================================================= */
.ap-backtop,
.ap-back-to-top {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(11, 99, 209, 0.45), 0 8px 18px rgba(11, 99, 209, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.92);
    transition: all .3s ease;
}

    .ap-backtop.is-visible,
    .ap-back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .ap-backtop:hover,
    .ap-back-to-top:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 22px 50px rgba(11, 99, 209, 0.55), 0 12px 26px rgba(11, 99, 209, 0.45);
    }

    .ap-backtop:active,
    .ap-back-to-top:active {
        transform: scale(0.96);
    }

/* =========================================================
   HERO MAMBU (solo afecta markup con clases --mambu)
   ========================================================= */
.ap-hero--mambu {
    padding: 48px 0 36px;
}

.ap-hero__grid--mambu {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}

.ap-hero__left {
    max-width: 640px;
}

.ap-hero__kicker--mambu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11,99,209,.08);
    border: 1px solid rgba(11,99,209,.14);
    color: var(--ap-primary);
    font-weight: 800;
}

.ap-dot-pill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ap-primary);
    position: relative;
}

    .ap-dot-pill::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 999px;
        border: 2px solid rgba(11,99,209,.25);
        animation: apPing 1.8s ease-out infinite;
    }

.ap-hero__title {
    margin: 14px 0 12px;
    font-size: clamp(2.1rem, 3.4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ap-text);
    font-weight: 900;
}

.ap-hero__title-strong {
    color: var(--ap-primary);
}

.ap-hero__desc {
    margin: 0 0 18px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ap-hero__actions--mambu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ap-btn--mambu,
.ap-btn--mambu-outline {
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
}

.ap-btn--mambu {
    box-shadow: 0 14px 30px rgba(11,99,209,.20);
}

.ap-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 14px;
}

.ap-meta-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 10px 28px rgba(2,6,23,.06);
    backdrop-filter: blur(8px);
}

    .ap-meta-item b {
        display: block;
        color: var(--ap-text);
        font-weight: 900;
    }

    .ap-meta-item span {
        display: block;
        color: #475569;
        font-weight: 700;
        margin-top: 2px;
        font-size: .92rem;
    }

/* Mock flotante */
.ap-mock {
    position: relative;
    min-height: 520px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: grid;
    place-items: center;
    padding: 0;
}

.ap-mock__bg {
    display: none;
}

.ap-mock__screen {
    position: relative;
    z-index: 3;
    width: min(560px, 100%);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(2,6,23,.08);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(2, 6, 23, .20), 0 18px 32px rgba(2, 6, 23, .14), 0 6px 14px rgba(2, 6, 23, .08);
    transform: translateY(4px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transform-origin: center;
    animation: apFloatMain 6s ease-in-out infinite;
}

    .ap-mock__screen::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -38px;
        transform: translateX(-50%);
        width: 82%;
        height: 26px;
        background: radial-gradient(ellipse at center, rgba(2,6,23,.35) 0%, rgba(2,6,23,.15) 40%, rgba(2,6,23,0) 70%);
        filter: blur(14px);
        z-index: -1;
    }

.ap-mock__topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(2,6,23,.06);
}

.ap-mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(2,6,23,.18);
}

.ap-mock__tabs {
    margin-left: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ap-tab {
    font-weight: 900;
    font-size: .86rem;
    color: rgba(2,6,23,.55);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2,6,23,.04);
}

.ap-tab--active {
    color: var(--ap-primary);
    background: rgba(11,99,209,.10);
    border: 1px solid rgba(11,99,209,.12);
}

.ap-mock__content {
    padding: 16px;
}

.ap-mock__card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 12px 30px rgba(2,6,23,.06);
    padding: 14px;
}

.ap-mock__card--big {
    background: linear-gradient(180deg, rgba(11,99,209,.10), rgba(31,134,255,.06));
}

.ap-mock__label {
    color: rgba(2,6,23,.55);
    font-weight: 800;
    font-size: .85rem;
}

.ap-mock__value {
    margin-top: 6px;
    font-weight: 1000;
    font-size: 1.55rem;
    color: var(--ap-primary);
}

.ap-mock__bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(2,6,23,.06);
    margin-top: 12px;
    overflow: hidden;
}

    .ap-mock__bar span {
        display: block;
        width: 68%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        animation: apProgress 2.8s ease-in-out infinite;
    }

.ap-mock__small {
    margin-top: 10px;
    color: rgba(2,6,23,.55);
    font-weight: 800;
    font-size: .85rem;
}

.ap-mock__grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ap-mock__chip {
    margin-top: 8px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11,99,209,.10);
    color: var(--ap-primary);
    font-weight: 900;
    font-size: .85rem;
    border: 1px solid rgba(11,99,209,.12);
}

.ap-mock__value2 {
    margin-top: 8px;
    font-weight: 1000;
    color: var(--ap-text);
    font-size: 1.05rem;
}

/* Phone */
.ap-mock__phone {
    position: absolute;
    right: 8px;
    bottom: 12px;
    z-index: 4;
    width: 245px;
    border-radius: 26px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(2,6,23,.08);
    padding: 14px 14px 16px 14px;
    box-shadow: 0 45px 90px rgba(2, 6, 23, .26), 0 20px 40px rgba(2, 6, 23, .18), 0 8px 18px rgba(2, 6, 23, .12);
    transform: perspective(1400px) rotateY(6deg) rotateX(2deg);
    transform-origin: center;
    animation: apFloatPhone 5.4s ease-in-out infinite;
}

    .ap-mock__phone::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -32px;
        transform: translateX(-50%);
        width: 75%;
        height: 22px;
        background: radial-gradient(ellipse at center, rgba(2,6,23,.40) 0%, rgba(2,6,23,.18) 45%, rgba(2,6,23,0) 75%);
        filter: blur(14px);
        z-index: -1;
    }

.ap-phone__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ap-phone__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 1000;
    color: var(--ap-text);
}

    .ap-phone__brand img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

.ap-phone__badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11,99,209,.10);
    color: var(--ap-primary);
    font-weight: 900;
    font-size: .78rem;
    border: 1px solid rgba(11,99,209,.12);
}

.ap-phone__amount {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(11,99,209,.10), rgba(31,134,255,.06));
    border: 1px solid rgba(11,99,209,.12);
}

    .ap-phone__amount span {
        display: block;
        color: rgba(2,6,23,.55);
        font-weight: 800;
        font-size: .85rem;
    }

    .ap-phone__amount b {
        display: block;
        margin-top: 4px;
        font-size: 1.25rem;
        font-weight: 1000;
        color: var(--ap-primary);
    }

.ap-phone__rows {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.ap-phone__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(2,6,23,.03);
    border: 1px solid rgba(2,6,23,.06);
    font-weight: 800;
    color: var(--ap-text);
}

    .ap-phone__row span {
        color: rgba(2,6,23,.55);
        font-weight: 800;
    }

.ap-phone__btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    font-weight: 1000;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: 0 16px 34px rgba(11,99,209,.22);
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 46px;
}

.ap-phone__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(11,99,209,.28);
}

/* Animaciones */
    @keyframes apFloatMain {
        0%,100% {
        transform: translateY(4px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    }

    50% {
        transform: translateY(-8px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    }
}

@keyframes apFloatPhone {
    0%,100% {
        transform: perspective(1400px) rotateY(6deg) rotateX(2deg) translateY(0);
    }

    50% {
        transform: perspective(1400px) rotateY(6deg) rotateX(2deg) translateY(-10px);
    }
}

@keyframes apPing {
    0% {
        transform: scale(.6);
        opacity: .9;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes apProgress {
    0%,100% {
        width: 62%;
    }

    50% {
        width: 78%;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .ap-hero__grid {
        grid-template-columns: 1fr;
    }

    .ap-hero__media {
        min-height: 360px;
    }

    .ap-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 40px 0 25px;
    }

    .ap-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ap-footer__badges {
        flex-wrap: wrap;
    }

    .ap-benefits-grid,
    .ap-steps-grid,
    .ap-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

        .ap-steps-grid::before {
            left: 25%;
            right: 25%;
        }

    .ap-cta-content {
        flex-direction: column;
        text-align: center;
    }

    /* Mambu responsive */
    .ap-hero__grid--mambu {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ap-hero__meta {
        grid-template-columns: 1fr;
    }

    .ap-mock {
        min-height: 440px;
    }

    .ap-mock__screen {
        transform: translateY(0) perspective(1400px) rotateY(0) rotateX(0);
    }

    .ap-mock__phone {
        width: 230px;
        right: 10px;
        bottom: 10px;
        transform: perspective(1400px) rotateY(0) rotateX(0);
    }

    .ap-mock__screen::after {
        bottom: -28px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    /* Header compacto */
    .ap-nav__inner {
        padding: 10px 12px;
        min-height: var(--ap-header-mobile-h);
    }

    .ap-nav__brand img {
        height: 34px;
    }

    /* Oculta desktop */
    .ap-nav__links {
        display: none;
    }

    .ap-nav__cta {
        display: none;
    }

    /* Muestra hamburguesa */
    .ap-nav__toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    /* Panel y overlay SOLO en móvil (aquí se vuelven fijos) */
    .ap-nav__overlay {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: calc(env(safe-area-inset-top, 0px) + var(--ap-header-mobile-h));
        background: rgba(15, 23, 42, 0.25);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 1500;
    }

    .ap-nav.ap-nav--open .ap-nav__overlay,
    .ap-nav.is-open .ap-nav__overlay,
    .ap-nav.open .ap-nav__overlay,
    .ap-nav.nav-open .ap-nav__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .ap-nav__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: calc(env(safe-area-inset-top, 0px) + var(--ap-header-mobile-h) + 8px);
        background: #fff;
        border-radius: var(--ap-menu-radius);
        border: 1px solid rgba(15, 23, 42, .08);
        box-shadow: 0 22px 60px rgba(2, 20, 55, .18);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
        z-index: 1600;
    }

    .ap-nav.ap-nav--open .ap-nav__panel,
    .ap-nav.is-open .ap-nav__panel,
    .ap-nav.open .ap-nav__panel,
    .ap-nav.nav-open .ap-nav__panel {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Hero base */
    .ap-hero {
        padding: 18px 0 26px;
    }

    .ap-hero__copy {
        padding: 18px;
    }

    .ap-pillGrid {
        grid-template-columns: 1fr;
    }

    .ap-hero__media img {
        right: -10px;
        bottom: -26px;
    }

    /* Footer */
    .ap-lea-footer {
        margin-top: 40px;
    }

    .ap-footer__main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 0 20px;
    }

    .ap-footer__col {
        text-align: center;
        align-items: center;
    }

    .ap-footer__title {
        text-align: center;
    }

    .ap-footer__example {
        margin: 20px 0;
        padding: 20px;
    }

    .ap-footer__bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .ap-footer__badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ap-sim-grid {
        grid-template-columns: 1fr;
    }

    .ap-stats {
        flex-direction: column;
        gap: 10px;
    }

    .ap-benefits,
    .ap-how-work,
    .ap-testimonials {
        padding: 60px 0;
    }

    .ap-cta-section {
        padding: 40px 0;
    }

    .ap-benefits-grid,
    .ap-steps-grid,
    .ap-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .ap-steps-grid::before {
            display: none;
        }

    .ap-hero-card {
        margin-top: 30px;
    }

    .ap-float-icon {
        display: none;
    }

    /* Redes flotantes */
    .ap-social-float {
        right: 14px;
        top: 52%;
        transform: translateY(-52%);
        gap: 10px;
    }

    .ap-social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Back to top */
    .ap-backtop,
    .ap-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 520px) {
    .ap-mock__phone {
        width: 210px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   APROBADOS — CSS Corporativo (NET 8 / Blazor)
   Limpio, escalable y sin conflictos
   ========================================================= */

/* ---------- Variables (Paleta Azul Oficial) ---------- */
:root {
    --ap-bg: #f6f9ff;
    --ap-surface: #ffffff;
    --ap-text: #0f172a;
    --ap-muted: #64748b;
    --ap-primary: #0b63d1;
    --ap-primary-2: #1f86ff;
    --ap-border: rgba(15, 23, 42, .10);
    --ap-radius: 16px;
    --ap-radius-lg: 22px;
    --ap-shadow: 0 10px 30px rgba(2, 20, 55, .08);
    --ap-shadow-2: 0 14px 40px rgba(2, 20, 55, .12);
    --ap-container: 1180px;
    /* Header */
    --ap-header-h: 76px;
    --ap-header-mobile-h: 64px;
    /* Menú móvil */
    --ap-menu-radius: 22px;
}

/* ---------- Reset ---------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ap-text);
    background: var(--ap-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ---------- Helpers ---------- */
.ap-container {
    width: min(var(--ap-container), calc(100% - 32px));
    margin-inline: auto;
}

.ap-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow);
}

/* =========================================================
   BOTONES
   ========================================================= */
.ap-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ap-text);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    user-select: none;
}

    .ap-btn:active {
        transform: translateY(1px);
    }

.ap-btn--primary {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 99, 209, .22);
}

    .ap-btn--primary:hover {
        box-shadow: 0 14px 30px rgba(11, 99, 209, .28);
        transform: translateY(-1px);
    }

.ap-btn--outline {
    border-color: rgba(11, 99, 209, .45);
    color: var(--ap-primary);
    background: #fff;
}

    .ap-btn--outline:hover {
        border-color: rgba(11, 99, 209, .75);
        box-shadow: 0 10px 20px rgba(2, 20, 55, .10);
        transform: translateY(-1px);
    }

/* =========================================================
   NAVBAR (HEADER)
   - Desktop normal
   - Móvil con panel fijo solo en móvil (NO pisa desktop)
   ========================================================= */
.ap-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding-top: env(safe-area-inset-top, 0px);
}

.ap-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    min-height: var(--ap-header-h);
    position: relative;
    z-index: 2200; /* arriba del overlay móvil */
}

.ap-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

    .ap-nav__brand img {
        height: 40px;
        width: auto;
    }

/* Links desktop */
.ap-nav__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .ap-nav__links a {
        font-weight: 700;
        color: #334155;
        padding: 10px 10px;
        border-radius: 999px;
        transition: background .18s ease, color .18s ease;
    }

        .ap-nav__links a:hover {
            background: rgba(11, 99, 209, .08);
            color: var(--ap-primary);
        }

/* CTA desktop */
.ap-nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Botón hamburguesa */
.ap-nav__toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    box-shadow: 0 10px 20px rgba(2, 20, 55, .08);
    display: none; /* se muestra en móvil */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .ap-nav__toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(2, 20, 55, .12);
        border-color: rgba(11, 99, 209, .35);
    }

/* Icono hamburguesa */
.ap-nav__icon {
    width: 18px;
    height: 12px;
    position: relative;
}

    .ap-nav__icon span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--ap-primary);
        border-radius: 999px;
        transition: transform .22s ease, top .22s ease, opacity .18s ease;
    }

        .ap-nav__icon span:nth-child(1) {
            top: 0;
        }

        .ap-nav__icon span:nth-child(2) {
            top: 5px;
        }

        .ap-nav__icon span:nth-child(3) {
            top: 10px;
        }

/* Panel/overlay por defecto (desktop: NO usados) */
.ap-nav__panel {
    display: none;
}

.ap-nav__overlay {
    display: none;
}

/* Estado abierto: muestra panel/overlay (en móvil se verá, en desktop igual no aparece porque no existe/oculto) */
.ap-nav.ap-nav--open .ap-nav__panel,
.ap-nav.is-open .ap-nav__panel,
.ap-nav.open .ap-nav__panel,
.ap-nav.nav-open .ap-nav__panel {
    display: block;
}

.ap-nav.ap-nav--open .ap-nav__overlay,
.ap-nav.is-open .ap-nav__overlay,
.ap-nav.open .ap-nav__overlay,
.ap-nav.nav-open .ap-nav__overlay {
    display: block;
}

/* Icono X cuando está abierto */
.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(1),
.ap-nav.is-open .ap-nav__icon span:nth-child(1),
.ap-nav.open .ap-nav__icon span:nth-child(1),
.ap-nav.nav-open .ap-nav__icon span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(2),
.ap-nav.is-open .ap-nav__icon span:nth-child(2),
.ap-nav.open .ap-nav__icon span:nth-child(2),
.ap-nav.nav-open .ap-nav__icon span:nth-child(2) {
    opacity: 0;
}

.ap-nav.ap-nav--open .ap-nav__icon span:nth-child(3),
.ap-nav.is-open .ap-nav__icon span:nth-child(3),
.ap-nav.open .ap-nav__icon span:nth-child(3),
.ap-nav.nav-open .ap-nav__icon span:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

/* =========================================================
   HERO BASE (si tu Home usa .ap-hero normal)
   ========================================================= */
.ap-hero {
    padding: 38px 0 42px;
}

.ap-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: stretch;
}

.ap-hero__copy {
    padding: 26px 26px;
    position: relative;
    overflow: hidden;
}

.ap-hero__kicker {
    font-weight: 800;
    color: #0f172a;
    opacity: .85;
}

.ap-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 3.2vw, 54px);
    line-height: 1.06;
    color: #0b3f8f;
    letter-spacing: -0.02em;
}

.ap-hero p {
    margin: 0 0 18px;
    color: #475569;
    font-weight: 600;
    line-height: 1.5;
}

.ap-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.ap-pillGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ap-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(11, 99, 209, .06);
    border: 1px solid rgba(11, 99, 209, .10);
    color: #0f172a;
    font-weight: 700;
}

    .ap-pill::before {
        content: "✓";
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(11, 99, 209, .12);
        color: var(--ap-primary);
        font-weight: 900;
    }

.ap-hero__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--ap-radius-lg);
    border: 1px solid rgba(15, 23, 42, .08);
    background: radial-gradient(circle at 30% 20%, rgba(31,134,255,.35), rgba(11,99,209,.10) 40%, #fff 75%);
    box-shadow: var(--ap-shadow);
    min-height: 420px;
}

    .ap-hero__media img {
        position: absolute;
        right: -20px;
        bottom: -30px;
        width: min(520px, 92%);
        filter: drop-shadow(0 18px 30px rgba(2, 20, 55, .18));
    }

/* =========================================================
   CONTENIDO GENERAL / ANCLAS
   ========================================================= */
.main-content {
    padding-top: 10px;
    min-height: calc(100vh - 80px);
}

:target {
    scroll-margin-top: 90px;
}

/* =========================================================
   FOOTER (LEA BANK)
   ========================================================= */
.ap-lea-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: 60px;
    border-top: 3px solid #0b63d1;
}

.ap-footer__main {
    padding: 50px 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.ap-footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ap-footer__logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.ap-footer__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0b63d1;
    padding-bottom: 8px;
    display: inline-block;
}

.ap-footer__description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.ap-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.ap-contact-icon {
    font-size: 14px;
    width: 20px;
}

.ap-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .ap-footer__links a {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.2s ease;
        padding: 2px 0;
    }

        .ap-footer__links a:hover {
            color: #1f86ff;
        }

.ap-footer__example {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

    .ap-footer__example h4 {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 15px 0;
    }

    .ap-footer__example p {
        color: #94a3b8;
        font-size: 12px;
        line-height: 1.6;
        margin: 0 0 10px 0;
        font-weight: 400;
    }

.ap-footer__rates {
    color: #e2e8f0;
    font-weight: 500;
}

.ap-footer__disclaimer {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}

.ap-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-footer__copyright p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

.ap-footer__badges {
    display: flex;
    gap: 15px;
}

.ap-badge {
    background: rgba(11, 99, 209, 0.15);
    border: 1px solid rgba(11, 99, 209, 0.3);
    color: #1f86ff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

    .ap-badge:hover {
        background: rgba(11, 99, 209, 0.25);
        transform: translateY(-1px);
    }

/* =========================================================
   HERO ENHANCED - SIMULADOR
   (No pisa el hero base, solo aporta extras)
   ========================================================= */
.ap-highlight {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    z-index: 1;
    color: #0b63d1;
}

/* Simulador Mini */
.ap-simulator-mini {
    background: rgba(11, 99, 209, 0.05);
    border: 1px solid rgba(11, 99, 209, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

    .ap-simulator-mini h4 {
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--ap-text);
    }

.ap-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ap-sim-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ap-sim-field label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }

.ap-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

    .ap-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--ap-primary);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(11, 99, 209, 0.3);
    }

.ap-range-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ap-primary);
}

/* ✅ Un solo .ap-select */
.ap-select {
    padding: 10px 12px;
    border: 1px solid var(--ap-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--ap-text);
    font-weight: 500;
}

.ap-sim-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    border-radius: 12px;
    color: #fff;
}

.ap-sim-label {
    font-size: 13px;
    font-weight: 500;
}

.ap-sim-amount {
    font-size: 18px;
    font-weight: 700;
}

.ap-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ap-border);
}

.ap-stat-item {
    text-align: center;
    flex: 1;
}

.ap-stat-number {
    font-size: 20px;
    font-weight: 900;
    color: var(--ap-primary);
    display: block;
}

.ap-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjeta tipo “simulador” (si la usas en el hero) */
.ap-hero-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--ap-shadow-2);
    position: relative;
    z-index: 2;
    animation: apFloat 3s ease-in-out infinite;
}

@keyframes apFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ap-card-header {
    margin-bottom: 20px;
}

.ap-status-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ap-card-header h3 {
    margin: 10px 0 0 0;
    font-size: 18px;
    color: var(--ap-text);
    line-height: 1.3;
}

.ap-amount-display {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.ap-amount-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.ap-amount-value {
    font-size: 28px;
    font-weight: 900;
}

.ap-card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ap-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

    .ap-detail-row span {
        color: #64748b;
        font-weight: 500;
    }

    .ap-detail-row b {
        color: #1e293b;
        font-weight: 700;
    }

.ap-btn-full {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: var(--ap-bg);
    color: var(--ap-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ap-btn-full:hover {
        background: rgba(15, 23, 42, .08);
    }

/* Iconos flotantes */
.ap-float-icon {
    position: absolute;
    font-size: 24px;
    animation: apFloatIcon 4s ease-in-out infinite;
    z-index: 1;
    opacity: 0.8;
}

.ap-float-1 {
    top: 20px;
    right: 10px;
    animation-delay: 0s;
}

.ap-float-2 {
    top: 50%;
    right: -15px;
    animation-delay: 1s;
}

.ap-float-3 {
    bottom: 30px;
    right: 20px;
    animation-delay: 2s;
}

@keyframes apFloatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* =========================================================
   SECCIONES (Beneficios / Cómo funciona / Testimonios / CTA)
   ========================================================= */
.ap-section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .ap-section-header h2 {
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 900;
        color: #0b3f8f;
        margin: 0 0 15px 0;
        line-height: 1.2;
    }

    .ap-section-header p {
        font-size: 16px;
        color: #64748b;
        margin: 0;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

/* Beneficios */
.ap-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f9ff 0%, #fff 100%);
}

.ap-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ap-benefit-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .ap-benefit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .ap-benefit-card:hover::before {
        transform: scaleX(1);
    }

    .ap-benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--ap-shadow-2);
    }

.ap-benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.ap-benefit-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 10px 0;
}

.ap-benefit-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.ap-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
}

.ap-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.ap-cta-text h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.ap-cta-text p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.ap-cta-highlight {
    color: #bfe0ff;
}

.ap-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 30px;
    white-space: nowrap;
}

/* Cómo funciona */
.ap-how-work {
    padding: 80px 0;
    background: #f8fafc;
}

.ap-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

    .ap-steps-grid::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 33.33%;
        right: 33.33%;
        height: 2px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        z-index: 0;
    }

.ap-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ap-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 0 auto 15px auto;
    font-size: 18px;
}

.ap-step-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.ap-step h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 10px 0;
}

.ap-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Testimonios */
.ap-testimonials {
    padding: 80px 0;
    background: #fff;
}

.ap-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ap-testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--ap-border);
    border-radius: 16px;
    padding: 25px;
    position: relative;
}

    .ap-testimonial-card::before {
        content: '"';
        position: absolute;
        top: 10px;
        left: 20px;
        font-size: 60px;
        color: rgba(11, 99, 209, 0.1);
        font-weight: 900;
    }

.ap-stars {
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.ap-testimonial-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.ap-testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

    .ap-testimonial-author b {
        color: var(--ap-text);
    }

    .ap-testimonial-author span {
        color: #94a3b8;
    }

/* =========================================================
   SOCIAL MEDIA FLOTANTE (✅ UNA SOLA DEFINICIÓN)
   - Dejamos la versión centrada (como en tu captura)
   ========================================================= */
.ap-social-float {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: all .3s ease;
}

    .ap-social-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 14px 30px rgba(0,0,0,.35);
    }

.ap-facebook {
    background: #1877f2;
}

.ap-instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.ap-youtube {
    background: #ff0000;
}

.ap-whatsapp {
    background: #25d366;
}

/* =========================================================
   BACK TO TOP (mantiene ambos nombres)
   - Si tu HTML usa .ap-back-to-top funciona
   - Si alguna parte usa .ap-backtop también funciona
   ========================================================= */
.ap-backtop,
.ap-back-to-top {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(11, 99, 209, 0.45), 0 8px 18px rgba(11, 99, 209, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.92);
    transition: all .3s ease;
}

    .ap-backtop.is-visible,
    .ap-back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .ap-backtop:hover,
    .ap-back-to-top:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 22px 50px rgba(11, 99, 209, 0.55), 0 12px 26px rgba(11, 99, 209, 0.45);
    }

    .ap-backtop:active,
    .ap-back-to-top:active {
        transform: scale(0.96);
    }

/* =========================================================
   HERO MAMBU (solo afecta markup con clases --mambu)
   ========================================================= */
.ap-hero--mambu {
    padding: 48px 0 36px;
}

.ap-hero__grid--mambu {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}

.ap-hero__left {
    max-width: 640px;
}

.ap-hero__kicker--mambu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11,99,209,.08);
    border: 1px solid rgba(11,99,209,.14);
    color: var(--ap-primary);
    font-weight: 800;
}

.ap-dot-pill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ap-primary);
    position: relative;
}

    .ap-dot-pill::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 999px;
        border: 2px solid rgba(11,99,209,.25);
        animation: apPing 1.8s ease-out infinite;
    }

.ap-hero__title {
    margin: 14px 0 12px;
    font-size: clamp(2.1rem, 3.4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ap-text);
    font-weight: 900;
}

.ap-hero__title-strong {
    color: var(--ap-primary);
}

.ap-hero__desc {
    margin: 0 0 18px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ap-hero__actions--mambu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ap-btn--mambu,
.ap-btn--mambu-outline {
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
}

.ap-btn--mambu {
    box-shadow: 0 14px 30px rgba(11,99,209,.20);
}

.ap-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 14px;
}

.ap-meta-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 10px 28px rgba(2,6,23,.06);
    backdrop-filter: blur(8px);
}

    .ap-meta-item b {
        display: block;
        color: var(--ap-text);
        font-weight: 900;
    }

    .ap-meta-item span {
        display: block;
        color: #475569;
        font-weight: 700;
        margin-top: 2px;
        font-size: .92rem;
    }

/* Mock flotante */
.ap-mock {
    position: relative;
    min-height: 520px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: grid;
    place-items: center;
    padding: 0;
}

.ap-mock__bg {
    display: none;
}

.ap-mock__screen {
    position: relative;
    z-index: 3;
    width: min(560px, 100%);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(2,6,23,.08);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(2, 6, 23, .20), 0 18px 32px rgba(2, 6, 23, .14), 0 6px 14px rgba(2, 6, 23, .08);
    transform: translateY(4px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transform-origin: center;
    animation: apFloatMain 6s ease-in-out infinite;
}

    .ap-mock__screen::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -38px;
        transform: translateX(-50%);
        width: 82%;
        height: 26px;
        background: radial-gradient(ellipse at center, rgba(2,6,23,.35) 0%, rgba(2,6,23,.15) 40%, rgba(2,6,23,0) 70%);
        filter: blur(14px);
        z-index: -1;
    }

.ap-mock__topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(2,6,23,.06);
}

.ap-mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(2,6,23,.18);
}

.ap-mock__tabs {
    margin-left: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ap-tab {
    font-weight: 900;
    font-size: .86rem;
    color: rgba(2,6,23,.55);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2,6,23,.04);
}

.ap-tab--active {
    color: var(--ap-primary);
    background: rgba(11,99,209,.10);
    border: 1px solid rgba(11,99,209,.12);
}

.ap-mock__content {
    padding: 16px;
}

.ap-mock__card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 12px 30px rgba(2,6,23,.06);
    padding: 14px;
}

.ap-mock__card--big {
    background: linear-gradient(180deg, rgba(11,99,209,.10), rgba(31,134,255,.06));
}

.ap-mock__label {
    color: rgba(2,6,23,.55);
    font-weight: 800;
    font-size: .85rem;
}

.ap-mock__value {
    margin-top: 6px;
    font-weight: 1000;
    font-size: 1.55rem;
    color: var(--ap-primary);
}

.ap-mock__bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(2,6,23,.06);
    margin-top: 12px;
    overflow: hidden;
}

    .ap-mock__bar span {
        display: block;
        width: 68%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
        animation: apProgress 2.8s ease-in-out infinite;
    }

.ap-mock__small {
    margin-top: 10px;
    color: rgba(2,6,23,.55);
    font-weight: 800;
    font-size: .85rem;
}

.ap-mock__grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ap-mock__chip {
    margin-top: 8px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11,99,209,.10);
    color: var(--ap-primary);
    font-weight: 900;
    font-size: .85rem;
    border: 1px solid rgba(11,99,209,.12);
}

.ap-mock__value2 {
    margin-top: 8px;
    font-weight: 1000;
    color: var(--ap-text);
    font-size: 1.05rem;
}

/* Phone */
.ap-mock__phone {
    position: absolute;
    right: 8px;
    bottom: 12px;
    z-index: 4;
    width: 245px;
    border-radius: 26px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(2,6,23,.08);
    padding: 14px 14px 16px 14px;
    box-shadow: 0 45px 90px rgba(2, 6, 23, .26), 0 20px 40px rgba(2, 6, 23, .18), 0 8px 18px rgba(2, 6, 23, .12);
    transform: perspective(1400px) rotateY(6deg) rotateX(2deg);
    transform-origin: center;
    animation: apFloatPhone 5.4s ease-in-out infinite;
}

    .ap-mock__phone::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -32px;
        transform: translateX(-50%);
        width: 75%;
        height: 22px;
        background: radial-gradient(ellipse at center, rgba(2,6,23,.40) 0%, rgba(2,6,23,.18) 45%, rgba(2,6,23,0) 75%);
        filter: blur(14px);
        z-index: -1;
    }

.ap-phone__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ap-phone__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 1000;
    color: var(--ap-text);
}

    .ap-phone__brand img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

.ap-phone__badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11,99,209,.10);
    color: var(--ap-primary);
    font-weight: 900;
    font-size: .78rem;
    border: 1px solid rgba(11,99,209,.12);
}

.ap-phone__amount {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(11,99,209,.10), rgba(31,134,255,.06));
    border: 1px solid rgba(11,99,209,.12);
}

    .ap-phone__amount span {
        display: block;
        color: rgba(2,6,23,.55);
        font-weight: 800;
        font-size: .85rem;
    }

    .ap-phone__amount b {
        display: block;
        margin-top: 4px;
        font-size: 1.25rem;
        font-weight: 1000;
        color: var(--ap-primary);
    }

.ap-phone__rows {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.ap-phone__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(2,6,23,.03);
    border: 1px solid rgba(2,6,23,.06);
    font-weight: 800;
    color: var(--ap-text);
}

    .ap-phone__row span {
        color: rgba(2,6,23,.55);
        font-weight: 800;
    }

.ap-phone__btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-2));
    color: #fff;
    font-weight: 1000;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: 0 16px 34px rgba(11,99,209,.22);
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 46px;
}

.ap-phone__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(11,99,209,.28);
}

/* Animaciones */
@keyframes apFloatMain {
    0%,100% {
        transform: translateY(4px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    }

    50% {
        transform: translateY(-8px) perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    }
}

@keyframes apFloatPhone {
    0%,100% {
        transform: perspective(1400px) rotateY(6deg) rotateX(2deg) translateY(0);
    }

    50% {
        transform: perspective(1400px) rotateY(6deg) rotateX(2deg) translateY(-10px);
    }
}

@keyframes apPing {
    0% {
        transform: scale(.6);
        opacity: .9;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes apProgress {
    0%,100% {
        width: 62%;
    }

    50% {
        width: 78%;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .ap-hero__grid {
        grid-template-columns: 1fr;
    }

    .ap-hero__media {
        min-height: 360px;
    }

    .ap-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 40px 0 25px;
    }

    .ap-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ap-footer__badges {
        flex-wrap: wrap;
    }

    .ap-benefits-grid,
    .ap-steps-grid,
    .ap-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

        .ap-steps-grid::before {
            left: 25%;
            right: 25%;
        }

    .ap-cta-content {
        flex-direction: column;
        text-align: center;
    }

    /* Mambu responsive */
    .ap-hero__grid--mambu {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ap-hero__meta {
        grid-template-columns: 1fr;
    }

    .ap-mock {
        min-height: 440px;
    }

    .ap-mock__screen {
        transform: translateY(0) perspective(1400px) rotateY(0) rotateX(0);
    }

    .ap-mock__phone {
        width: 230px;
        right: 10px;
        bottom: 10px;
        transform: perspective(1400px) rotateY(0) rotateX(0);
    }

    .ap-mock__screen::after {
        bottom: -28px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    /* Header compacto */
    .ap-nav__inner {
        padding: 10px 12px;
        min-height: var(--ap-header-mobile-h);
    }

    .ap-nav__brand img {
        height: 34px;
    }

    /* Oculta desktop */
    .ap-nav__links {
        display: none;
    }

    .ap-nav__cta {
        display: none;
    }

    /* Muestra hamburguesa */
    .ap-nav__toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    /* Panel y overlay SOLO en móvil (aquí se vuelven fijos) */
    .ap-nav__overlay {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: calc(env(safe-area-inset-top, 0px) + var(--ap-header-mobile-h));
        background: rgba(15, 23, 42, 0.25);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 1500;
    }

    .ap-nav.ap-nav--open .ap-nav__overlay,
    .ap-nav.is-open .ap-nav__overlay,
    .ap-nav.open .ap-nav__overlay,
    .ap-nav.nav-open .ap-nav__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .ap-nav__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: calc(env(safe-area-inset-top, 0px) + var(--ap-header-mobile-h) + 8px);
        background: #fff;
        border-radius: var(--ap-menu-radius);
        border: 1px solid rgba(15, 23, 42, .08);
        box-shadow: 0 22px 60px rgba(2, 20, 55, .18);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
        z-index: 1600;
    }

    .ap-nav.ap-nav--open .ap-nav__panel,
    .ap-nav.is-open .ap-nav__panel,
    .ap-nav.open .ap-nav__panel,
    .ap-nav.nav-open .ap-nav__panel {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Hero base */
    .ap-hero {
        padding: 18px 0 26px;
    }

    .ap-hero__copy {
        padding: 18px;
    }

    .ap-pillGrid {
        grid-template-columns: 1fr;
    }

    .ap-hero__media img {
        right: -10px;
        bottom: -26px;
    }

    /* Footer */
    .ap-lea-footer {
        margin-top: 40px;
    }

    .ap-footer__main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 0 20px;
    }

    .ap-footer__col {
        text-align: center;
        align-items: center;
    }

    .ap-footer__title {
        text-align: center;
    }

    .ap-footer__example {
        margin: 20px 0;
        padding: 20px;
    }

    .ap-footer__bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .ap-footer__badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ap-sim-grid {
        grid-template-columns: 1fr;
    }

    .ap-stats {
        flex-direction: column;
        gap: 10px;
    }

    .ap-benefits,
    .ap-how-work,
    .ap-testimonials {
        padding: 60px 0;
    }

    .ap-cta-section {
        padding: 40px 0;
    }

    .ap-benefits-grid,
    .ap-steps-grid,
    .ap-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .ap-steps-grid::before {
            display: none;
        }

    .ap-hero-card {
        margin-top: 30px;
    }

    .ap-float-icon {
        display: none;
    }

    /* Redes flotantes */
    .ap-social-float {
        right: 14px;
        top: 52%;
        transform: translateY(-52%);
        gap: 10px;
    }

    .ap-social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Back to top */
    .ap-backtop,
    .ap-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 520px) {
    .ap-mock__phone {
        width: 210px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}





/* Home country picker */
.ap-country-picker {
    margin: 12px 0 16px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 10px 24px rgba(2,6,23,.06);
    backdrop-filter: blur(6px);
    max-width: 420px;
}

.ap-country-picker__label {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(2,6,23,.62);
    margin-bottom: 8px;
}

.ap-country-picker__select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2,6,23,.14);
    background: #fff;
    color: var(--ap-text);
    font-weight: 800;
    outline: none;
}

.ap-country-picker__select:focus {
    border-color: rgba(11,99,209,.55);
    box-shadow: 0 0 0 4px rgba(11,99,209,.12);
}

@media (max-width: 768px) {
    .ap-country-picker {
        max-width: 100%;
        margin: 10px 0 14px;
    }
}

/* =========================================================
   SELECTOR DE PAS - HOME
   ========================================================= */
.ap-country-picker {
    margin: 18px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 280px;
}

.ap-country-picker__label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ap-text);
}

.ap-country-picker__select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(11, 99, 209, .22);
    background: #fff;
    color: var(--ap-text);
    font-size: 15px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 10px 24px rgba(2, 20, 55, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ap-country-picker__select:hover {
    border-color: rgba(11, 99, 209, .38);
}

.ap-country-picker__select:focus {
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 4px rgba(11, 99, 209, .10), 0 10px 24px rgba(2, 20, 55, .08);
}

@media (max-width: 768px) {
    .ap-country-picker {
        max-width: 100%;
    }
}

.ap-country-picker {
    margin: 18px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 280px;
}

.ap-country-picker__label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ap-text);
}

.ap-country-picker__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 42px 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(11, 99, 209, .22);
    background-color: #fff;
    color: var(--ap-text);
    font-size: 15px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 10px 24px rgba(2, 20, 55, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--ap-primary) 50%), linear-gradient(135deg, var(--ap-primary) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.ap-country-picker__select:hover {
    border-color: rgba(11, 99, 209, .38);
}

.ap-country-picker__select:focus {
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 4px rgba(11, 99, 209, .10), 0 10px 24px rgba(2, 20, 55, .08);
}

@media (max-width: 768px) {
    .ap-country-picker {
        max-width: 100%;
    }
}

/* =========================================================
   COUNTRY SWITCHER - HOME (VISUAL)
   ========================================================= */
.ap-country-switcher {
    margin: 18px 0 16px;
    max-width: 420px;
}

.ap-country-switcher__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ap-country-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(11, 99, 209, .18);
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 20, 55, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ap-country-card:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 99, 209, .35);
    box-shadow: 0 14px 28px rgba(2, 20, 55, .10);
}

.ap-country-card--active {
    border-color: var(--ap-primary);
    background: linear-gradient(180deg, rgba(11, 99, 209, .09), rgba(255,255,255,.98));
    box-shadow: 0 0 0 2px rgba(11, 99, 209, .14), 0 14px 28px rgba(2, 20, 55, .10);
}

.ap-country-flag {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(11, 99, 209, .22);
    box-shadow: 0 4px 10px rgba(2, 20, 55, .08);
    flex: 0 0 auto;
}

.ap-country-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-country-name {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ap-text);
}

/* =========================================================
   COUNTRY BADGE - NAVBAR
   ========================================================= */
.ap-current-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(11, 99, 209, .16);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 20px rgba(2, 20, 55, .07);
    margin-right: 4px;
    white-space: nowrap;
}

.ap-current-country__flag {
    font-size: .95rem;
    line-height: 1;
}

.ap-current-country__flag--img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(11, 99, 209, .20);
    object-fit: cover;
    display: block;
}

.ap-country-menu {
    position: relative;
    display: inline-flex;
}

.ap-country-menu__trigger {
    cursor: pointer;
}

.ap-country-menu__caret {
    font-size: .7rem;
    color: #64748b;
    margin-left: 2px;
}

.ap-country-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
    display: grid;
    gap: 4px;
    z-index: 30;
}

.ap-country-menu__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #1e293b;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    text-align: left;
}

.ap-country-menu__item:hover,
.ap-country-menu__item:focus-visible {
    background: rgba(219, 234, 254, .65);
    color: #0f172a;
}

.ap-country-menu__item--current {
    background: rgba(239, 246, 255, .9);
}

.ap-country-menu__item--disabled {
    opacity: .55;
    cursor: not-allowed;
}
.ap-current-country__name {
    font-size: .78rem;
    font-weight: 800;
    color: #334155;
}

@media (max-width: 980px) {
    .ap-current-country {
        margin-left: auto;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .ap-country-switcher {
        max-width: 100%;
    }

    .ap-country-switcher__grid {
        grid-template-columns: 1fr;
    }

    .ap-current-country {
        padding: 5px 8px;
    }

    .ap-country-menu {
    position: relative;
    display: inline-flex;
}

.ap-country-menu__trigger {
    cursor: pointer;
}

.ap-country-menu__caret {
    font-size: .7rem;
    color: #64748b;
    margin-left: 2px;
}

.ap-country-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
    display: grid;
    gap: 4px;
    z-index: 30;
}

.ap-country-menu__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #1e293b;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    text-align: left;
}

.ap-country-menu__item:hover,
.ap-country-menu__item:focus-visible {
    background: rgba(219, 234, 254, .65);
    color: #0f172a;
}

.ap-country-menu__item--current {
    background: rgba(239, 246, 255, .9);
}

.ap-country-menu__item--disabled {
    opacity: .55;
    cursor: not-allowed;
}
.ap-current-country__name {
        font-size: .72rem;
    }
}




/* =========================================================
   NAVBAR MOVIL
   ========================================================= */
@media (max-width: 768px) {
    .ap-nav__panel {
        padding: 0;
        overflow: hidden;
    }

    .ap-nav__panelInner {
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .ap-current-country--mobile {
        width: fit-content;
        max-width: 100%;
        margin: 0;
        padding: 8px 12px;
        border-color: rgba(11, 99, 209, .18);
        box-shadow: 0 10px 24px rgba(2, 20, 55, .08);
    }

    .ap-nav__panelLinks {
        display: grid;
        gap: 6px;
    }

    .ap-nav__panelLinks a {
        display: block;
        padding: 10px 12px;
        border-radius: 14px;
        color: #1e293b;
        font-size: 1rem;
        font-weight: 800;
        text-decoration: none;
        background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(241, 245, 249, .96));
        border: 1px solid rgba(148, 163, 184, .18);
        transition: background .18s ease, border-color .18s ease, transform .18s ease;
    }

    .ap-nav__panelLinks a:hover,
    .ap-nav__panelLinks a:focus-visible {
        background: linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(219, 234, 254, .98));
        border-color: rgba(11, 99, 209, .24);
        transform: translateY(-1px);
    }

    .ap-nav__panelCtas {
        display: grid;
        gap: 10px;
        padding-top: 4px;
        border-top: 1px solid rgba(226, 232, 240, .9);
    }

    .ap-nav__panelCtas .ap-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        border-radius: 16px;
    }
}
@media (max-width: 768px) {
    .ap-current-country--mobile,
    .ap-nav__panelLinks {
        display: none;
    }

    .ap-nav__panelInner {
        padding: 16px;
        gap: 0;
    }

    .ap-nav__panelCtas {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 0;
        border-top: 0;
    }

    .ap-nav__panelCtas .ap-btn {
        width: 100%;
        min-width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 50px;
    }
}



/* Country dropdown override */
.ap-nav,
.ap-nav__inner {
    overflow: visible !important;
}

.ap-country-menu {
    position: relative !important;
    display: inline-block !important;
    margin-right: 4px;
}

.ap-country-menu summary::-webkit-details-marker {
    display: none;
}

.ap-country-menu__trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none;
}

.ap-country-menu__trigger::marker,
.ap-country-menu__trigger::-webkit-details-marker {
    display: none;
}

.ap-country-menu__caret {
    width: 8px !important;
    height: 8px !important;
    margin-left: 2px !important;
    border-right: 1.8px solid #64748b !important;
    border-bottom: 1.8px solid #64748b !important;
    transform: rotate(45deg) translateY(-1px) !important;
    flex: 0 0 auto;
}

.ap-country-menu__dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    min-width: 190px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    background: rgba(255, 255, 255, .99) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16) !important;
    gap: 4px !important;
    z-index: 5000 !important;
}

.ap-country-menu[open] .ap-country-menu__dropdown {
    display: grid !important;
}

.ap-country-menu__item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.ap-country-menu__item:hover,
.ap-country-menu__item:focus-visible {
    background: rgba(219, 234, 254, .65) !important;
    color: #0f172a !important;
}

.ap-country-menu__item--current {
    background: rgba(239, 246, 255, .9) !important;
}

.ap-country-menu__item--disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
}

/* Country dropdown button-style override */
.ap-country-menu__dropdown {
    min-width: 210px !important;
    padding: 10px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    box-shadow: 0 24px 44px rgba(15, 23, 42, .16) !important;
}

.ap-country-menu__item {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(203, 213, 225, .8) !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06) !important;
}

.ap-country-menu__item + .ap-country-menu__item {
    margin-top: 8px !important;
}

.ap-country-menu__item--current {
    border-color: rgba(59, 130, 246, .22) !important;
    background: linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(219, 234, 254, .92)) !important;
}

.ap-country-menu__item span:last-child {
    font-weight: 800 !important;
    color: #1e293b !important;
}
