:root {
    --primary-pink: #f10075;
    --primary-blue: #004fb0;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background: #0a1628;
}

/* Extiende el header fijo al safe area de iOS */
header {
    padding-top: max(15px, env(safe-area-inset-top, 15px));
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ===== ACENTO EDITORIAL ===== */
/* Las palabras destacadas en cursiva dentro de títulos usan una serif
   editorial (Fraunces) que contrasta con Poppins y da identidad propia */
h1 em,
h2 em,
h3 em,
h1 .italic,
h2 .italic,
h3 .italic,
.carousel-title em,
.carousel-title .italic {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
}

::selection {
    background: var(--primary-pink);
    color: #fff;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-pink);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 55px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 35px 0;
    }
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 0, 117, 0.2);
}

.btn-pink {
    background-color: var(--primary-pink);
    color: var(--white);
}

.btn-pink:hover {
    background-color: #d10065;
}

.btn-outline-pink {
    background-color: transparent;
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.btn-outline-pink:hover {
    background-color: var(--primary-pink);
    color: var(--white);
}

/* ===== HEADER & NAV ===== */
header {
    background: transparent;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid transparent;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    padding-top: max(12px, env(safe-area-inset-top, 12px));
}

header.scrolled::before {
    opacity: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg,
            var(--primary-blue) 0%,
            var(--primary-blue) 25%,
            var(--primary-pink) 50%,
            var(--primary-blue) 75%,
            var(--primary-blue) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {

    0%,
    100% {
        background-position: 100% center;
    }

    50% {
        background-position: 0% center;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

header.scrolled .nav-links li a {
    color: var(--primary-blue);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-pink);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

header.scrolled .hamburger span {
    background: var(--primary-blue);
}

/* ===== HERO CAROUSEL - PREMIUM ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
    background: #000;
}

/* ── Backgrounds con Ken Burns ── */
.carousel-bg-track {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-bg {
    position: absolute;
    inset: -2%;
    /* extra para que el zoom no muestre bordes */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    transform: scale(1.03);
    animation: none;
}

.carousel-bg.active {
    opacity: 1;
    animation: kenBurns 6s ease-out forwards;
}

@keyframes kenBurns {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.0);
    }
}

/* ── Overlay cinematográfico ── */
.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Oscurece solo la franja izquierda (donde va el texto); el resto de la foto se ve nítido */
    background:
        linear-gradient(to right, rgba(0, 10, 50, 0.6) 0%, rgba(0, 10, 50, 0.28) 38%, transparent 68%),
        linear-gradient(to top, rgba(0, 0, 0, 0.32) 0%, transparent 38%);
}

/* ── Slide content track ── */
.carousel-track {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Contenido del slide ── */
.carousel-content {
    padding: 0 8%;
    max-width: 680px;
    color: #fff;
}

/* Eyebrow label */
.carousel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s 0.2s ease, transform 0.7s 0.2s ease;
}

.carousel-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--primary-pink);
    display: block;
    flex-shrink: 0;
}

.carousel-slide.active .carousel-eyebrow {
    opacity: 1;
    transform: translateX(0);
}

/* Título con cursiva elegante */
.carousel-title {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 22px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s 0.35s ease, transform 0.7s 0.35s ease;
}

.carousel-title em {
    font-style: italic;
    color: var(--primary-pink);
    font-weight: 300;
}

.carousel-slide.active .carousel-title {
    opacity: 1;
    transform: translateY(0);
}

/* Descripción (oculta para un hero más limpio) */
.carousel-desc {
    display: none;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 34px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.5s ease, transform 0.7s 0.5s ease;
}

.carousel-slide.active .carousel-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Botones de acción */
.carousel-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s 0.65s ease, transform 0.6s 0.65s ease;
}

.carousel-slide.active .carousel-actions {
    opacity: 1;
    transform: translateY(0);
}

.carousel-link {
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.carousel-link:hover {
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

/* ── HUD inferior ── */
.carousel-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8% 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

/* Contador */
.carousel-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.counter-current {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-pink);
}

.counter-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    display: block;
}

.counter-total {
    opacity: 0.5;
}

/* Barras de progreso */
.carousel-progress-bars {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-bar {
    width: 48px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease, background 0.3s ease;
}

.carousel-bar:hover {
    background: rgba(255, 255, 255, 0.45);
}

.carousel-bar.active {
    width: 72px;
}

.bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-pink);
    border-radius: 2px;
}

.carousel-bar.active .bar-fill {
    animation: barProgress var(--carousel-delay, 5s) linear forwards;
}

@keyframes barProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Flechas Minimalistas */
.carousel-hud-arrows { display: flex; gap: 12px; z-index: 20; position: relative; }
.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.carousel-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}
.carousel-arrow--prev:hover svg {
    transform: translateX(-3px);
}
.carousel-arrow--next:hover svg {
    transform: translateX(3px);
}

/* ── Scroll hint ── */
.scroll-hint {
    position: absolute;
    right: 40px;
    bottom: 90px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    animation: scrollHintPulse 2.5s ease-in-out infinite;
}

.scroll-hint-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes scrollHintPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(6px);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-carousel {
        height: 85vh;
        min-height: 550px;
    }

    /* En móvil el texto va anclado abajo (zona tranquila de la foto),
       así no se encima con el letrero KJA de la pared. El velo se
       concentra abajo y deja respirar la parte superior */
    .carousel-overlay {
        background:
            linear-gradient(to top,
                rgba(0, 10, 40, 0.78) 0%,
                rgba(0, 10, 40, 0.45) 38%,
                rgba(0, 10, 40, 0.08) 78%,
                rgba(0, 10, 40, 0) 100%);
    }

    .carousel-slide {
        align-items: flex-end;
    }

    /* Eyebrow oculto en móvil: el titular respira solo */
    .carousel-eyebrow {
        display: none;
    }

    .carousel-title {
        font-size: 38px;
    }

    .carousel-content {
        padding: 0 6% 110px;
    }

    .carousel-hud {
        padding: 14px 6% 18px;
    }

    .carousel-bar {
        width: 32px;
    }

    .carousel-bar.active {
        width: 52px;
    }

    .counter-current {
        font-size: 22px;
    }

    .scroll-hint {
        display: none;
    }

    .carousel-link {
        display: none;
    }

    /* Botón rosa del hero oculto en móvil (el CTA vive en el widget de WhatsApp) */
    .carousel-actions .hero-cta {
        display: none;
    }
}

/* ===== HERO (legacy — kept for other pages) ===== */


.hero {
    position: relative;
    color: var(--white);
    padding: 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=1400&q=80') center/cover;
    filter: blur(6px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 100, 0.60);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 100px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 70px;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
}

.hero-cta {
    display: inline-block;
    background: var(--primary-pink);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(241, 0, 117, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 35px rgba(241, 0, 117, 0.55);
}

/* ===== PROMO STRIP ===== */
.promo-strip {
    background: var(--primary-blue);
    padding: 10px 20px;
}

.promo-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.promo-strip-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.promo-strip-text strong {
    color: #fff;
    font-weight: 700;
}

.promo-strip-cta {
    display: inline-block;
    background: var(--primary-pink);
    color: #fff;
    padding: 7px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.promo-strip-cta:hover {
    background: #d10065;
    transform: scale(1.04);
}

/* Countdown */
.promo-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 4px 8px;
    min-width: 38px;
}

.countdown-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.countdown-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 800;
    font-size: 1rem;
    padding-bottom: 10px;
}

/* ===== SERVICES GRID (index) ===== */
.services-header {
    margin-bottom: 44px;
}

.services-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.services-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-blue);
}

.services-title em {
    color: var(--primary-pink);
    font-style: italic;
    font-weight: 300;
}

/* ===== HORIZONTAL ACCORDION DESKTOP & MOBILE ===== */
.services-accordion-wrapper {
    width: 100%;
}

.services-accordion {
    display: flex;
    gap: 8px;
    height: 500px;
    width: 100%;
}

.accordion-card {
    position: relative;
    flex: 1;
    /* Initially collapsed */
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accordion-card:hover {
    flex: 5;
    /* Expands heavily */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.accordion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(40%);
}

.accordion-card:hover .accordion-bg {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.accordion-card:hover .accordion-overlay {
    opacity: 1;
}

/* Collapsed Title */
.accordion-collapsed {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.4s ease;
    width: 100%;
    text-align: center;
}

.accordion-collapsed h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.accordion-card:hover .accordion-collapsed {
    opacity: 0;
    pointer-events: none;
}

/* Expanded Content */
.accordion-expanded {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.accordion-card:hover .accordion-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.1s;
    /* wait for flex to expand a bit */
}

.accordion-expanded .service-badge {
    background: var(--primary-pink);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.accordion-expanded .service-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.accordion-expanded p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 400px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.accordion-expanded .service-btn {
    display: inline-block;
    background: var(--primary-pink);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.accordion-expanded .service-btn:hover {
    background: #d40066;
    transform: scale(1.05);
}

/* ====== MOBILE VERSION (SCROLL SNAP CAROUSEL) ====== */
@media (max-width: 767px) {
    .services-accordion-wrapper {
        position: relative;
        margin: 0 -20px;
        overflow: hidden;
    }

    .services-accordion-wrapper::before {
        content: 'Desliza para ver más →';
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: var(--primary-pink);
        opacity: 0.75;
        margin-bottom: 10px;
    }

    .services-accordion {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 20px 20px 20px;
        height: 450px;
    }

    .services-accordion::-webkit-scrollbar {
        display: none;
    }

    .accordion-card {
        flex: 0 0 calc(100% - 40px) !important;
        width: calc(100% - 40px) !important;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    .accordion-card .accordion-bg {
        filter: grayscale(0%);
    }

    .accordion-card .accordion-overlay {
        opacity: 1;
    }

    .accordion-collapsed {
        display: none !important;
        /* Hide vertical text on mobile */
    }

    .accordion-expanded {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 30px 20px;
    }

    .accordion-expanded .service-title {
        font-size: 24px;
        white-space: normal;
    }

    /* Dots */
    .services-scroll-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 8px;
        padding-bottom: 4px;
    }

    .services-scroll-dots span {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d1d5db;
        transition: background 0.3s, width 0.3s, border-radius 0.3s;
        cursor: pointer;
        flex-shrink: 0;
    }

    .services-scroll-dots span.active {
        background: var(--primary-pink);
        width: 22px;
        border-radius: 4px;
    }
}

/* En desktop: el wrapper no muestra helpers de mobile */
@media (min-width: 768px) {
    .services-accordion-wrapper::before {
        display: none;
    }

    .services-scroll-dots {
        display: none;
    }
}


.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    background-color: var(--primary-pink);
    color: var(--white);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-image {
    flex: 1;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== CATALOG ===== */
.catalog-section {
    background-color: #f4f8fc;
    background-image: radial-gradient(#d4e3f3 1.8px, transparent 1.8px), radial-gradient(#d4e3f3 1.8px, #f4f8fc 1.8px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.catalog-header {
    background-color: var(--primary-pink);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
}

.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 79, 176, 0.15);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 13.5px;
    letter-spacing: 1px;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 79, 176, 0.04);
}

.tab:hover {
    background-color: rgba(0, 79, 176, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 79, 176, 0.08);
}

.tab.active {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
    box-shadow: 0 8px 25px rgba(241, 0, 117, 0.35);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Tab panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: grid;
}

.catalog-card {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 79, 176, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 79, 176, 0.12), 0 0 15px rgba(241, 0, 117, 0.05);
    border-color: rgba(241, 0, 117, 0.2);
}

.card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 20px;
    background: #eef2ff;
}

.catalog-card .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.catalog-card:hover .img-placeholder {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 79, 176, 0.08);
}

.catalog-card:hover .card-badge {
    background: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
    box-shadow: 0 4px 12px rgba(241, 0, 117, 0.3);
}

.catalog-card h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.catalog-card:hover h4 {
    color: var(--primary-pink);
}

.catalog-card p {
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.catalog-card .btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-pink);
    font-weight: 700;
    text-decoration: none;
    font-size: 12.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px 22px;
    border-radius: 30px;
    border: 2px solid var(--primary-pink);
    margin-top: auto;
    align-self: flex-start;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(241, 0, 117, 0.08);
}

.catalog-card .btn-details .arrow-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Button animation when hovering the parent card */
.catalog-card:hover .btn-details {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
    box-shadow: 0 6px 18px rgba(241, 0, 117, 0.25);
}

.catalog-card:hover .btn-details .arrow-icon {
    transform: translateX(5px);
}

/* Direct hover on the button itself */
.catalog-card .btn-details:hover {
    background-color: #d10065;
    border-color: #d10065;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(241, 0, 117, 0.35);
}

/* ===== CAPACITACIÓN ===== */
.capacitacion-banner {
    background: #F4F7FF;
    color: var(--text-dark);
    border-radius: 0;
    padding: 55px 20px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 767px) {
    .capacitacion-banner {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
        padding: 40px 16px;
        margin-bottom: 30px;
    }
}

.capacitacion-banner--with-bg {
    background: linear-gradient(135deg, rgba(0, 79, 176, 0.85), rgba(0, 45, 107, 0.9)), url('https://images.unsplash.com/photo-1543269865-cbf427effbad?w=1400&q=80') center/cover fixed;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.2);
}

.capacitacion-banner h2 {
    color: var(--primary-pink);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.capacitacion-banner>p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.capacitacion-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cap-tag {
    background-color: var(--primary-pink);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #ff4d9e;
    box-shadow: 0 4px 10px rgba(241, 0, 117, 0.3);
    transition: transform 0.3s;
    cursor: default;
}

.cap-tag:hover {
    transform: scale(1.05);
}

/* ===== WHY KJA ===== */
.why-kja {
    background-color: var(--primary-pink);
    color: var(--white);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.why-kja-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.why-kja-content ul {
    list-style: none;
    font-size: 18px;
}

.why-kja-content ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.why-kja-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 22px;
    line-height: 1.1;
}

.why-kja-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 50%;
    flex-shrink: 0;
}

.why-kja-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ===== FAQ ===== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--text-dark);
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-pink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--primary-pink);
    flex-shrink: 0;
    transition: transform 0.3s;
    font-style: normal;
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 16px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer.open {
    display: block;
}

/* ===== ABOUT / NOSOTROS ===== */
.about-section {
    padding: 55px 0;
}

@media (max-width: 767px) {
    .about-section {
        padding: 35px 0;
    }
}

.about-main-title {
    color: var(--primary-pink);
    font-size: 36px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 800;
}

.about-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-panel.active {
    display: block;
}

.about-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.about-image-modern {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 79, 176, 0.08);
    height: 380px;
    border: 1px solid rgba(0, 79, 176, 0.05);
}

@media (min-width: 768px) {
    .about-image-modern {
        height: 440px;
    }
}

.about-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text-modern {
    background: linear-gradient(135deg, #004fb0 0%, #002359 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 45px 40px;
    border-radius: 24px;
    font-size: 15.5px;
    line-height: 1.8;
    box-shadow: 0 20px 40px rgba(0, 79, 176, 0.15);
    position: relative;
    overflow: hidden;
}

.about-text-modern p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.about-text-modern p:last-child {
    margin-bottom: 0;
}

.about-subtitle {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* ===== HERO TABS FOR NOSOTROS ===== */
.about-hero {
    position: relative;
    padding: 130px 24px;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 79, 176, 0.8) 0%, rgba(0, 26, 61, 0.92) 100%);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1400&q=80') center/cover;
    filter: blur(8px) brightness(0.65);
    z-index: -2;
}

.about-hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.about-hero-title span {
    color: var(--primary-pink);
    font-style: italic;
    font-weight: 300;
}

.about-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-tab {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-tab:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-tab.active {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(241, 0, 117, 0.35);
}

/* Modern Card Styling */
.about-panel-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-pink);
    background: rgba(241, 0, 117, 0.1);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.about-panel-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.about-quote-box {
    margin-top: 24px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-pink);
    position: relative;
}

.quote-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
}

/* Directors Layout */
.directors-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .directors-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.director-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.05);
    border: 1px solid rgba(0, 79, 176, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 79, 176, 0.12);
    border-color: rgba(241, 0, 117, 0.15);
}

.director-img-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.director-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.director-card:hover .director-img-wrap img {
    transform: scale(1.04);
}

.director-info {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.director-role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-pink);
    margin-bottom: 8px;
}

.director-info h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0 0 12px 0;
}

.director-bio {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.director-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.director-specialties span {
    font-size: 11px;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.3s;
}

.director-card:hover .director-specialties span {
    background-color: rgba(0, 79, 176, 0.08);
    color: var(--primary-blue);
}

/* Stacked alternating rows for Mission & Vision */
.mv-stacked-rows {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.mv-row-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 1024px) {
    .mv-row-block {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 60px;
    }

    .mv-row-block--reverse {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .mv-row-block--reverse .mv-row-text {
        order: 2;
    }

    .mv-row-block--reverse .mv-row-image {
        order: 1;
    }
}

.mv-row-text {
    background: #ffffff;
    border-radius: 28px;
    padding: 45px 40px;
    border: 1px solid rgba(0, 79, 176, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.03);
}

.mv-row-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004fb0, #f10075);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mv-row-block:hover .mv-row-text::before {
    opacity: 1;
}

/* Specific glows and shadows for text card */
.mv-row-block:nth-child(1):hover .mv-row-text {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 79, 176, 0.12);
    border-color: rgba(0, 79, 176, 0.15);
}

.mv-row-block:nth-child(2):hover .mv-row-text {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(241, 0, 117, 0.12);
    border-color: rgba(241, 0, 117, 0.15);
}

/* Row Image Styling */
.mv-row-image {
    width: 100%;
    height: 280px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.04);
    border: 1px solid rgba(0, 79, 176, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 768px) {
    .mv-row-image {
        height: 340px;
    }
}

.mv-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Specific glows and zoom for images */
.mv-row-block:nth-child(1):hover .mv-row-image {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 79, 176, 0.1);
}

.mv-row-block:nth-child(2):hover .mv-row-image {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(241, 0, 117, 0.1);
}

.mv-row-block:hover .mv-row-image img {
    transform: scale(1.04);
}

/* Icon box styling in row text */
.mv-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(0, 79, 176, 0.06);
    color: #004fb0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background-color 0.3s;
}

.mv-icon-box img.mv-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mv-icon-box--pink {
    background: rgba(241, 0, 117, 0.06);
    color: #f10075;
}

/* Float animations for icon box on hover */
.mv-row-block:hover .mv-icon-box {
    animation: hfLevitate 3s ease-in-out infinite alternate;
}

.mv-row-block:hover .mv-icon-box--pink {
    animation: hfLevitatePink 3s ease-in-out infinite alternate;
}

/* Scale and rotate 3D icon image on hover */
.mv-row-block:hover .mv-icon-img {
    transform: scale(1.18) rotate(5deg);
}

@keyframes hfLevitate {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

@keyframes hfLevitatePink {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

.mv-row-text h3 {
    font-size: 26px;
    font-weight: 800;
    color: #002359;
    margin: 0 0 16px 0;
}

.mv-row-text p {
    font-size: 15px;
    color: #556080;
    line-height: 1.8;
    margin: 0;
}

/* Values Grid Redesign - Split Layout */
.valores-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .valores-split-container {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 45px;
        align-items: stretch;
    }
}

.valores-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .valores-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Split Image Card */
.valores-split-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 79, 176, 0.02);
    border: 1px solid rgba(0, 79, 176, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.3s;
}

@media (min-width: 1024px) {
    .valores-split-image {
        height: 100%;
        min-height: 100%;
    }
}

.valores-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.valores-split-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 35, 89, 0.88) 0%, rgba(0, 79, 176, 0.35) 65%, rgba(0, 0, 0, 0) 100%);
    padding: 30px;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.valores-split-overlay span {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-pink);
    background: rgba(241, 0, 117, 0.15);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(241, 0, 117, 0.25);
}

.valores-split-overlay p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
}

.valores-split-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 79, 176, 0.12);
    border-color: rgba(0, 79, 176, 0.15);
}

.valores-split-image:hover img {
    transform: scale(1.05);
}

.valor-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 30px;
    border: 1px solid rgba(0, 79, 176, 0.04);
    box-shadow: 0 8px 25px rgba(0, 79, 176, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.3s;
}

/* Barra de progreso inferior en hover */
.valor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.valor-card:hover::after {
    width: 100%;
}

/* Personalización por cada tarjeta en hover */
/* 1. Empatía */
.valor-card:nth-child(1) {
    color: #004fb0;
}

.valor-card:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 79, 176, 0.1);
    border-color: rgba(0, 79, 176, 0.2);
}

.valor-card:nth-child(1):hover .valor-icon-wrap {
    animation: pulseHeart 1.2s infinite;
}

/* 2. Ética */
.valor-card:nth-child(2) {
    color: #f10075;
}

.valor-card:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(241, 0, 117, 0.1);
    border-color: rgba(241, 0, 117, 0.2);
}

.valor-card:nth-child(2):hover .valor-icon-wrap {
    animation: shieldRotate 0.6s ease-in-out;
}

/* 3. Compromiso */
.valor-card:nth-child(3) {
    color: #10b981;
}

.valor-card:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.valor-card:nth-child(3):hover .valor-icon-wrap {
    animation: checkBounce 0.5s ease-in-out;
}

/* 4. Innovación */
.valor-card:nth-child(4) {
    color: #7c3aed;
}

.valor-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.valor-card:nth-child(4):hover .valor-icon-wrap {
    animation: bulbGlow 1.5s infinite alternate;
}

.valor-card h4 {
    color: #002359;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    transition: color 0.3s;
}

.valor-card:hover h4 {
    color: currentColor;
}

.valor-card p {
    color: #556080;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.valor-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.valor-icon-wrap img.valor-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

@keyframes shieldRotate {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes checkBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) translateY(-4px);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bulbGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px currentColor);
    }

    100% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Features List on Services Panel */
.about-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-features-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
}

.about-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-pink);
    font-weight: 900;
    font-size: 18px;
}

.ubicanos-section {
    position: relative;
    color: var(--white);
    padding: 45px 0;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 767px) {
    .ubicanos-section {
        padding: 30px 0;
    }
}

.ubicanos-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1400&q=80') center/cover;
    filter: blur(8px);
    z-index: -2;
}

.ubicanos-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 79, 176, 0.85) 0%, rgba(0, 30, 80, 0.95) 100%);
    z-index: -1;
}

.ubicanos-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.ubicanos-text h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
}

.ubicanos-item {
    font-size: 17px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.ubicanos-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 12px 0;
}

.ubicanos-map {
    position: relative;
    width: 420px;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.ubicanos-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== WHY-KJA STRIP ===== */
.why-kja-strip {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    padding: 55px 0;
    border-top: 4px solid var(--primary-pink);
}

@media (max-width: 767px) {
    .why-kja-strip {
        padding: 35px 0;
    }
}

.why-strip-header {
    text-align: center;
    margin-bottom: 55px;
}

.why-strip-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.why-strip-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.why-strip-title em {
    color: var(--primary-pink);
    font-style: italic;
    font-weight: 300;
}

.why-strip-sub {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.why-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.why-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 79, 176, 0.07);
    box-shadow: 0 8px 30px rgba(0, 79, 176, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 79, 176, 0.14);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 0, 117, 0.06);
    border-radius: 14px;
    color: var(--primary-pink);
    transition: background 0.3s, color 0.3s, transform 0.35s ease;
}

.why-card-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
}

.why-card:hover .why-card-icon {
    background: var(--primary-pink);
    color: #fff;
    transform: scale(1.08);
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
}

.why-strip-cta {
    text-align: center;
}

/* ===== WHY KJA — BENTO GRID ===== */
.why-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(210px, auto);
    gap: 16px;
    margin-bottom: 50px;
}

.why-bento-card {
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    border: 1px solid rgba(0, 79, 176, 0.07);
    box-shadow: 0 4px 20px rgba(0, 79, 176, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 79, 176, 0.12);
}

.why-bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.why-bento-card:hover::after {
    transform: scaleX(1);
}

/* ── Featured card (2×2, azul oscuro) ── */
.why-bento-featured {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #004fb0 0%, #002d78 100%);
    border: none;
}

.why-bento-featured::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), var(--primary-pink));
}

.why-bento-featured.why-bento-card h3 {
    color: #fff;
    font-size: 1.3rem;
}

.why-bento-featured.why-bento-card p {
    color: rgba(255, 255, 255, 0.72);
}

.wbc-ghost-num {
    position: absolute;
    top: 10px;
    left: 22px;
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -4px;
    pointer-events: none;
    user-select: none;
}

.wbc-ghost-num span {
    color: rgba(241, 0, 117, 0.22);
}

.wbc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.wbc-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s;
}

.why-bento-featured:hover .wbc-tag {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.wbc-cta {
    margin-top: auto;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.wbc-cta:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.wbc-figure {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40%;
    max-width: 230px;
    opacity: 0.92;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

.why-bento-featured .wbc-ghost-num,
.why-bento-featured .wbc-icon,
.why-bento-featured h3,
.why-bento-featured p,
.why-bento-featured .wbc-tags,
.why-bento-featured .wbc-cta {
    position: relative;
    z-index: 1;
}

.why-bento-featured h3,
.why-bento-featured p,
.why-bento-featured .wbc-tags,
.why-bento-featured .wbc-cta {
    max-width: 100%;
    margin-left: 44%;
}

/* ── Accent card (rosa) ── */
.why-bento-accent {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #c4176f 100%);
    border: none;
}

.why-bento-accent::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
}

.why-bento-accent.why-bento-card h3 {
    color: #fff;
}

.why-bento-accent.why-bento-card p {
    color: rgba(255, 255, 255, 0.82);
}

.why-bento-accent .wbc-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── Stat card ── */
.wbc-stat-display {
    font-size: 54px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -2px;
}

.wbc-stat-display span {
    color: var(--primary-pink);
}

/* ── Shared icon ── */
.wbc-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 79, 176, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.35s ease;
}

.wbc-icon svg {
    width: 52px;
    height: 52px;
}

.why-bento-featured .wbc-icon {
    background: rgba(255, 255, 255, 0.1);
}

.why-bento-card:not(.why-bento-featured):not(.why-bento-accent):hover .wbc-icon {
    background: rgba(241, 0, 117, 0.08);
    transform: scale(1.1) rotate(-4deg);
}

.why-bento-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
}

.why-bento-card p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ===== FAQ PREMIUM REDESIGNED ===== */
.faq-premium-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    position: relative;
    overflow: hidden;
}

/* Background blob decorations for a gorgeous dynamic look */
.faq-premium-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(241, 0, 117, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.faq-premium-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 79, 176, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.faq-premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 2-Column Grid Layout */
.faq-premium-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .faq-premium-layout {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 50px;
    }
}

/* Left Sidebar Card */
.faq-premium-sidebar {
    background: linear-gradient(135deg, #004fb0 0%, #002d78 100%);
    border-radius: 28px;
    padding: 40px 32px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 79, 176, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

/* Decorative dot-grid, top-right corner of the sidebar card */
.faq-decor-dots {
    position: absolute;
    top: 36px;
    right: 32px;
    width: 72px;
    height: 60px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    z-index: -1;
    pointer-events: none;
}

/* Decorative bleeding ring, bottom-right of the sidebar card */
.faq-decor-ring {
    position: absolute;
    bottom: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, 0.06);
    z-index: -1;
    pointer-events: none;
}

.faq-premium-sidebar .faq-eyebrow {
    color: #f10075;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    display: block;
}

.faq-premium-sidebar h2 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.faq-premium-sidebar h2 em {
    color: #f10075;
    font-style: italic;
    font-weight: 300;
}

.faq-premium-sidebar .faq-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* Support Agent Widget inside Sidebar */
.support-agent-widget {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.agent-avatar-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.agent-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.agent-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid #002d78;
    animation: liveBlink 1.5s ease-in-out infinite;
}

.agent-info h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.agent-info p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.faq-sidebar-cta {
    background-color: #fff;
    color: #004fb0 !important;
    text-align: center;
    padding: 16px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-sidebar-cta:hover {
    background-color: #f10075;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(241, 0, 117, 0.25);
}

.faq-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-sidebar-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.faq-cta-arrow {
    fill: none !important;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.faq-sidebar-cta:hover .faq-cta-arrow {
    transform: translateX(3px);
}

/* Feature highlights row */
.faq-features-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.faq-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.faq-feature-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

/* Accordion Section */
.faq-premium-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* New elegant style for items */
.faq-premium-item {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 79, 176, 0.06);
    box-shadow: 0 4px 15px rgba(0, 79, 176, 0.02);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-premium-item:hover {
    transform: translateY(-2px);
    border-color: rgba(241, 0, 117, 0.2);
    box-shadow: 0 10px 30px rgba(241, 0, 117, 0.06);
}

.faq-premium-item.open {
    border-color: rgba(241, 0, 117, 0.4);
    box-shadow: 0 12px 36px rgba(241, 0, 117, 0.08);
}

/* Button style */
.faq-premium-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
    outline: none;
}

.faq-premium-btn:hover {
    background-color: #fafbfe;
}

/* Number with premium circle badge */
.faq-premium-num {
    font-size: 13px;
    font-weight: 800;
    color: #004fb0;
    background: #fff;
    border: 1.5px solid rgba(0, 79, 176, 0.35);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.faq-premium-item.open .faq-premium-num {
    background: #f10075;
    border-color: #f10075;
    color: #fff;
    transform: scale(1.08);
}

.faq-premium-q {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    transition: color 0.3s;
}

.faq-premium-item.open .faq-premium-q {
    color: #004fb0;
}

/* Rotating arrow styling */
.faq-premium-arrow {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-premium-btn:hover .faq-premium-arrow {
    background-color: #e2e8f0;
    color: #475569;
}

.faq-premium-item.open .faq-premium-arrow {
    transform: rotate(180deg);
    background-color: rgba(241, 0, 117, 0.1);
    color: #f10075;
}

/* Elastic opening transition using CSS grid rows */
.faq-premium-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: linear-gradient(90deg, #fff 0%, rgba(0, 79, 176, 0.01) 100%);
    border-left: 0 solid #f10075;
}

.faq-premium-item.open .faq-premium-answer {
    grid-template-rows: 1fr;
    border-left: 4px solid #f10075;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-left-width 0.2s ease-out;
}

.faq-premium-answer-inner {
    min-height: 0;
    padding: 0 28px 0 78px;
    transition: padding 0.3s ease;
}

.faq-premium-item.open .faq-premium-answer-inner {
    padding: 4px 28px 24px 78px;
}

.faq-premium-answer p {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ===== UBICANOS PREMIUM ===== */
.ubicanos-premium-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    margin-top: 60px;
    margin-bottom: 60px;
}

.ubicanos-info-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 0 0 20px;
    padding: 50px 44px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ubicanos-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.75;
    margin: 0;
}

.ubicanos-info-card h2 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.ubicanos-info-card h2 em {
    font-style: italic;
    color: #ffd6ea;
    font-weight: 300;
}

.ubicanos-contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ubicanos-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff;
    transition: background 0.3s, transform 0.3s;
}

.ubicanos-contact-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.ubicanos-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubicanos-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.ubicanos-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.ubicanos-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.ubicanos-schedule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.schedule-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.ubicanos-schedule strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.ubicanos-schedule p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.ubicanos-wa-btn {
    margin-top: auto;
    align-self: flex-start;
}

.ubicanos-map-modern {
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
}

.ubicanos-map-modern iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== FOOTER ===== */

footer {
    background: #004FB0;
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    background-color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo h2 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary-pink);
    font-size: 9px;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-info p {
    opacity: 0.85;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}

.social-icons a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-4px) scale(1.08);
}

.social-icons a:hover svg {
    transform: scale(1.15) rotate(8deg);
}

.social-icons a.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.social-icons a.ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.45);
}

.social-icons a.tt:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(1px 1px 0px #25F4EE) drop-shadow(-1px -1px 0px #FE0979);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 15px;
    }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

/* ===== PAGE HERO (terapia / cursos / nosotros) ===== */
.page-hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 135px 20px 65px;
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 767px) {
    .page-hero {
        padding: 110px 20px 45px;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=1400&q=80') center/cover;
    /* Fallback for other pages */
    filter: blur(8px);
    z-index: -2;
}

.page-hero.hero-terapia::before {
    background: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1400&q=80&auto=format') center/cover;
    filter: blur(3px);
    /* Menos blur para esta página */
}

.page-hero.hero-cursos::before {
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1400&q=80&auto=format') center/cover;
    filter: blur(3px);
}

.page-hero.hero-nosotros::before {
    background: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1400&q=80&auto=format') center/cover;
    filter: blur(3px);
}

.page-hero.hero-terapia::after,
.page-hero.hero-cursos::after,
.page-hero.hero-nosotros::after {
    background: rgba(0, 30, 100, 0.40);
    /* 40% de opacidad oscura */
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 100, 0.60);
    z-index: -1;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.page-hero h1 span {
    color: var(--primary-pink);
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ===== CURSOS PAGE ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 79, 176, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 79, 176, 0.05);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 79, 176, 0.15);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.course-card-body {
    padding: 22px;
}

.course-badge {
    display: inline-block;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.course-badge.blue {
    background: var(--primary-blue);
}

.course-card-body h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.course-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-pink), #c4176f);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--primary-pink);
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .why-kja {
        flex-direction: column;
        text-align: center;
    }

    .why-kja-images {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-bento-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1100;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--primary-pink);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--primary-pink);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 45, 120, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 24px;
        gap: 0;
        box-shadow: 0 20px 40px rgba(0, 79, 176, 0.18);
        border-bottom: 3px solid var(--primary-pink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 0;
    }

    .nav-links li:first-child {
        padding-top: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-links li a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-transform: uppercase;
        width: 100%;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: none !important;
    }

    .nav-links li a::after {
        content: '→';
        font-size: 16px;
        color: var(--primary-pink);
        opacity: 0;
        transform: translateX(-8px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--primary-pink) !important;
        padding-left: 8px;
        background: transparent !important;
    }

    .nav-links li a:hover::after,
    .nav-links li a.active::after {
        opacity: 1;
        transform: translateX(0);
    }

    .hero h2 {
        font-size: 40px;
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
    }

    .service-image {
        height: 220px;
        width: 100%;
    }

    .promo-strip-inner {
        gap: 10px;
    }

    .promo-strip-text {
        font-size: 0.8rem;
    }

    .promo-countdown {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-title {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .ubicanos-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .ubicanos-map {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .catalog-grid,
    .tab-panel.active {
        grid-template-columns: 1fr;
    }

    .why-kja {
        padding: 30px 20px;
    }

    .faq-section {
        padding: 25px 20px;
    }

    .about-grid-modern {
        grid-template-columns: 1fr;
    }

    .about-hero-title {
        font-size: 2.2rem !important;
    }

    .about-image-modern {
        height: 250px;
    }

    /* Why-KJA bento responsive */
    .why-bento {
        grid-template-columns: 1fr;
    }

    .why-bento-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .wbc-ghost-num {
        font-size: 64px;
    }

    .wbc-figure {
        display: none;
    }

    .why-bento-featured h3,
    .why-bento-featured p,
    .why-bento-featured .wbc-tags,
    .why-bento-featured .wbc-cta {
        max-width: 100%;
        margin-left: 0;
    }

    .why-strip-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-strip-title {
        font-size: 30px;
    }

    /* FAQ premium redesigned responsive */
    .faq-premium-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-premium-sidebar {
        padding: 30px 20px;
        border-radius: 20px;
        position: relative;
        top: 0;
    }

    .faq-premium-sidebar h2 {
        font-size: 28px;
    }

    .faq-premium-item {
        border-radius: 16px;
    }

    .faq-premium-btn {
        padding: 20px;
        gap: 12px;
    }

    .faq-premium-q {
        font-size: 15px;
    }

    .faq-premium-answer-inner {
        padding: 0 20px 0 54px;
    }

    .faq-premium-item.open .faq-premium-answer-inner {
        padding: 4px 20px 20px 54px;
    }

    /* Ubicanos premium responsive */
    .ubicanos-premium-inner {
        grid-template-columns: 1fr;
        margin: 30px 0;
        border-radius: 16px;
    }

    .ubicanos-info-card {
        padding: 32px 24px;
    }

    .ubicanos-map-modern {
        height: 280px;
    }

    .ubicanos-info-card h2 {
        font-size: 28px;
    }
}

/* ===== THERAPY MODAL ===== */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.therapy-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.therapy-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 28px;
    width: max-content;
    max-width: min(90vw, 500px);
    max-height: 90vh;
    box-shadow: 0 30px 70px rgba(0, 10, 50, 0.3);
    z-index: 3002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.therapy-modal.open .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3010;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: var(--primary-pink);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.modal-body img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72vh;
    background: transparent;
}

.modal-btn-wa {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3005;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    white-space: nowrap;
}

.modal-btn-wa svg {
    width: 18px;
    height: 18px;
}

.modal-btn-wa:hover {
    background-color: #20ba5a;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

@media (max-width: 640px) {
    .modal-content-wrapper {
        border-radius: 20px;
        max-width: 95%;
    }

    .modal-btn-wa {
        padding: 8px 20px;
        font-size: 13px;
        bottom: 16px;
    }
}

/* ===== THERAPY BADGES & METADATA ===== */
.therapy-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.therapy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.therapy-badge--individual {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.therapy-badge--grupal {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.therapy-badge--familiar {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.therapy-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 79, 176, 0.06);
    padding-bottom: 10px;
}

.therapy-meta-item {
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== LIBRO DE RECLAMACIONES (dentro del footer) ===== */
.footer-libro-reclamaciones {
    display: flex;
    align-items: center;
}

.libro-reclamaciones-link {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none;
}

.libro-reclamaciones-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.libro-reclamaciones-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.libro-reclamaciones-link:hover svg {
    transform: scale(1.1);
}

.libro-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.libro-reclamaciones-link .libro-text-top {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1.2;
}

.libro-reclamaciones-link .libro-text-bottom {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .footer-libro-reclamaciones {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .libro-reclamaciones-link {
        padding: 8px 14px;
    }
}

/* ===== ENLACES DE AYUDA Y LIBRO DE RECLAMACIONES (FOOTER) ===== */
.footer-help-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-help-links li {
    margin: 0;
}

.footer-help-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

.footer-help-links a:hover {
    color: var(--primary-pink);
    transform: translateX(4px);
}

.footer-libro-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 2px 0;
}

.footer-libro-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-libro-link:hover {
    color: var(--primary-pink);
    transform: translateX(4px);
}

.footer-libro-link:hover svg {
    transform: scale(1.15) rotate(-6deg);
}

@media (max-width: 768px) {
    .footer-help-links {
        align-items: center;
    }

    .footer-libro-link {
        justify-content: center;
    }
}

/* ===== CTR OPTIMIZATION UTILITIES ===== */

/* ===== COURSE MODAL ===== */
.course-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.course-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.course-modal-wrapper {
    position: relative;
    background-color: #f4f8fc;
    /* Subtle dot pattern mimicking the image background */
    background-image: radial-gradient(#d4e3f3 1.8px, transparent 1.8px), radial-gradient(#d4e3f3 1.8px, #f4f8fc 1.8px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;

    border-radius: 28px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 30px 70px rgba(0, 10, 50, 0.25);
    z-index: 3102;
    overflow: visible;
    /* to allow the green WhatsApp button to overflow at the bottom */
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.course-modal.open .course-modal-wrapper {
    transform: scale(1) translateY(0);
}

.course-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3110;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.course-modal-close:hover {
    background: var(--primary-pink);
    transform: scale(1.1) rotate(90deg);
}

.course-modal-body {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
}

.course-modal-left {
    flex: 1.25;
    padding: 35px 30px 45px 35px;
    overflow-y: auto;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.course-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-pink);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
}

/* Info Box Outline Design matching the image */
.info-box {
    margin-bottom: 25px;
    position: relative;
}

.info-box-header {
    background: #004FB0;
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: -13px;
    position: relative;
    z-index: 2;
    margin-left: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 79, 176, 0.2);
}

.info-box-body {
    border: 3px solid #004FB0;
    border-radius: 20px;
    padding: 24px 20px 16px 20px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 79, 176, 0.04);
}

.info-box-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
}

.info-box-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #004FB0;
    border-radius: 50%;
}

.info-box-body li:last-child {
    margin-bottom: 0;
}

/* Right Column: Pink Side Column */
.course-modal-right {
    flex: 0.75;
    background: var(--primary-pink);
    padding: 35px 25px 45px 25px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    max-height: 75vh;
}

.course-modal-circle-img-container {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 6px solid var(--primary-pink);
    outline: 2px solid white;
    /* Adds highlights to outline the circle */
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: white;
    flex-shrink: 0;
}

.course-modal-circle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-modal-right-text {
    width: 100%;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.6;
}

.course-meta-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
}

.course-modal-right-text p {
    margin-bottom: 20px;
}

/* Related Courses Box at the bottom of the pink column */
.related-box {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    width: 100%;
}

.related-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.related-box p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Floating WhatsApp button at the very bottom center of the modal */
.course-modal-footer {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3105;
}

.modal-btn-wa-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1cc85a;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(28, 200, 90, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.modal-btn-wa-course svg {
    width: 20px;
    height: 20px;
}

.modal-btn-wa-course:hover {
    background-color: #15ad4c;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(28, 200, 90, 0.55);
}

/* Responsive modal behavior */
@media (max-width: 768px) {
    .course-modal-wrapper {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .course-modal-body {
        flex-direction: column-reverse;
        overflow-y: visible;
    }

    .course-modal-left {
        flex: none;
        padding: 30px 20px 50px 20px;
        max-height: none;
        overflow-y: visible;
    }

    .course-modal-right {
        flex: none;
        padding: 35px 20px 25px 20px;
        max-height: none;
        overflow-y: visible;
    }

    .course-modal-circle-img-container {
        width: 130px;
        height: 130px;
        margin-top: 0;
        margin-bottom: 15px;
    }

    .course-modal-footer {
        bottom: -20px;
    }
}

/* Micro-animación de atención para CTAs principales */
.cta-pulse {
    animation: ctaPulseGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
}

.cta-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: inherit;
    opacity: 0;
    z-index: -1;
    animation: ctaPulseRing 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ctaPulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(241, 0, 117, 0.25);
    }

    50% {
        box-shadow: 0 6px 24px rgba(241, 0, 117, 0.45), 0 0 0 2px rgba(241, 0, 117, 0.08);
    }
}

@keyframes ctaPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.06);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Card expresiva — hover con mayor contraste y elevación para captar leads */
.card-expresivo {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-expresivo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 79, 176, 0.18), 0 0 0 1px rgba(0, 79, 176, 0.06);
}

.card-expresivo:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.card-expresivo img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Overlay gradiente base — para que Diseño aplique gradientes custom sobre imágenes */
.overlay-gradiente-custom {
    position: relative;
    overflow: hidden;
}

.overlay-gradiente-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 15, 50, 0.65) 0%, rgba(0, 15, 50, 0.2) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay-gradiente-custom:hover::after {
    opacity: 0.75;
}

/* ── STATS + BRINDAMOS — Premium Clean ── */
.sb-section-wrap {
    position: relative;
}

.sb-section-wrap::before,
.sb-section-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 10;
    pointer-events: none;
}

.sb-section-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sb-section-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sb-section {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    background: #fdfcfb;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Ambient glow spots sutiles sobre el fondo */
.sb-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 0, 117, 0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sb-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 79, 176, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sb-divider {
    background: linear-gradient(to bottom, transparent 5%, #f10075 30%, #7c3aed 60%, #004fb0 85%, transparent 100%);
    align-self: stretch;
    position: relative;
    z-index: 1;
}

/* LEFT — BRINDAMOS */
.sb-brindamos-col {
    padding: 5rem 1.5rem 5rem 5vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

.sb-brindamos-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    min-width: 0;
}

.sb-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #9ca3af;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, #f10075, #7c3aed);
    border-radius: 2px;
    flex-shrink: 0;
}

.sb-brindamos-heading {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.sb-brindamos-heading span {
    background: linear-gradient(135deg, #f10075, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sb-brindamos-sub {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.65;
    max-width: 320px;
}

/* Arc carousel */
.sb-arc-stage {
    flex-shrink: 0;
    position: relative;
    width: 200px;
    height: 260px;
    align-self: center;
}

.sb-arc-card {
    position: absolute;
    background: #f10075;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.78rem;
    border-radius: 9999px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(241, 0, 117, 0.28);
    will-change: transform, opacity;
}

.sb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.72rem 1.6rem;
    background: #f10075;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 6px 20px rgba(241, 0, 117, 0.28);
}

.sb-cta-btn:hover {
    background: #d40068;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(241, 0, 117, 0.35);
}

/* RIGHT — STATS */
.sb-stats-col {
    padding: 5rem 5vw 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.sb-stats-header {}

.sb-heading {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: #6b7280;
    letter-spacing: -0.01em;
    margin-top: 0.3rem;
}

.sb-heading strong {
    font-weight: 600;
    color: #111827;
}

.sb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sb-stat-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 1.5rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.sb-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}

.sb-stat-item:nth-child(1):hover {
    border-color: rgba(241, 0, 117, 0.25);
}

.sb-stat-item:nth-child(2):hover {
    border-color: rgba(0, 79, 176, 0.25);
}

.sb-stat-item:nth-child(3):hover {
    border-color: rgba(241, 0, 117, 0.25);
}

.sb-stat-item:nth-child(4):hover {
    border-color: rgba(0, 79, 176, 0.25);
}

/* Accent top bar */
.sb-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    border-radius: 0 0 6px 6px;
}

.sb-stat-item:nth-child(1)::before,
.sb-stat-item:nth-child(3)::before {
    background: #f10075;
}

.sb-stat-item:nth-child(2)::before,
.sb-stat-item:nth-child(4)::before {
    background: #004fb0;
}

/* Número grande decorativo de fondo */
.sb-stat-item::after {
    content: attr(data-bg);
    position: absolute;
    right: 0.25rem;
    bottom: -0.35rem;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    opacity: 0.035;
    pointer-events: none;
}

.sb-stat-item:nth-child(1)::after,
.sb-stat-item:nth-child(3)::after {
    color: #f10075;
}

.sb-stat-item:nth-child(2)::after,
.sb-stat-item:nth-child(4)::after {
    color: #004fb0;
}

.sb-stat-number {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
}

.sb-stat-item:nth-child(1) .sb-stat-number,
.sb-stat-item:nth-child(3) .sb-stat-number {
    color: #f10075;
}

.sb-stat-item:nth-child(2) .sb-stat-number,
.sb-stat-item:nth-child(4) .sb-stat-number {
    color: #004fb0;
}

.sb-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.01em;
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
}

.sb-stat-desc {
    font-size: 0.67rem;
    color: #9ca3af;
    line-height: 1.4;
    margin-top: 0.1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .sb-section {
        grid-template-columns: 1fr;
    }

    .sb-divider {
        height: 1px;
        width: 100%;
        background: linear-gradient(to right, transparent, #f10075, #7c3aed, transparent);
    }

    .sb-brindamos-col,
    .sb-stats-col {
        padding: 3.5rem 1.5rem;
    }

    .sb-section::before {
        display: none;
    }

    .sb-arc-stage {
        width: 130px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .sb-brindamos-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .sb-arc-stage {
        display: none;
    }
}

@media (max-width: 480px) {
    .sb-stats-grid {
        gap: 0.75rem;
    }

    .sb-brindamos-heading {
        font-size: 2.5rem;
    }

    .sb-stat-item {
        padding: 1.1rem 1rem;
    }
}

/* ── STATS / IMPACT — HYPERFRAME EDITION ── */
.stats-impact-section {
    background: #040c1e;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.stats-impact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.stats-glow-1,
.stats-glow-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.stats-glow-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(241, 0, 117, 0.07) 0%, transparent 70%);
    top: -140px;
    left: -140px;
}

.stats-glow-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(0, 79, 176, 0.09) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 5rem;
    align-items: center;
}

.stats-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #f10075;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-eyebrow::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #f10075;
    border-radius: 2px;
    flex-shrink: 0;
}

.stats-heading {
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.stats-heading strong {
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f10075 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subheading {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
}

/* 2×2 hyperframe grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ─── HYPERFRAME CARD ─── */
.stat-frame {
    position: relative;
    border-radius: 20px;
    padding: 1.5px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.stat-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Rotating conic-gradient border */
.stat-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280%;
    height: 280%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            #f10075 72deg,
            #7c3aed 144deg,
            #004fb0 216deg,
            transparent 288deg);
    animation: hyperFrameSpin 4s linear infinite;
    animation-delay: var(--frame-delay, 0s);
}

@keyframes hyperFrameSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stat-card-inner {
    position: relative;
    z-index: 1;
    background: #07111f;
    border-radius: 18.5px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: background 0.35s ease;
}

.stat-frame:hover .stat-card-inner {
    background: #0b1830;
}

/* Icon badge */
.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

/* Animated number */
.stat-number {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 20%, #f10075 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.stat-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stats-eyebrow {
        justify-content: center;
    }

    .stats-heading,
    .stats-subheading {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-impact-section {
        padding: 3.5rem 1rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card-inner {
        padding: 1.25rem 1rem;
    }
}

/* ===== INSTITUTIONS TICKER ===== */
.institutions-ticker {
    position: relative;
    width: 100%;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 15px 0;
}

/* Gradient masks for smooth fade in/out at edges */
.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 100%);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 10%, rgba(255, 255, 255, 0) 100%);
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollTicker 14s linear infinite;
    /* Much faster */
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-logo {
    height: 65px;
    /* Larger and more prominent */
    width: auto;
    object-fit: contain;
    padding: 0 60px;
    /* More spacing */
    filter: grayscale(100%);
    opacity: 0.45;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    cursor: pointer;
    /* Soft floating animation */
    animation: floatLogo 4s ease-in-out infinite;
}

/* Stagger floating to make it look organic */
.ticker-logo:nth-child(odd) {
    animation-delay: 0s;
}

.ticker-logo:nth-child(even) {
    animation-delay: -2s;
}

.ticker-logo:nth-child(3n) {
    animation-delay: -1s;
}

.ticker-logo:hover {
    filter: grayscale(0%) drop-shadow(0 15px 20px rgba(0, 79, 176, 0.25));
    opacity: 1;
    /* Margin manipulation to avoid overriding float's transform */
    margin-top: -10px;
    margin-bottom: 10px;
    transform: scale(1.15);
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .ticker-logo {
        height: 45px;
        padding: 0 35px;
    }

    .ticker-container::before,
    .ticker-container::after {
        width: 100px;
    }
}

/* ===== YOUTUBE SHORTS SECTION ===== */
.shorts-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.shorts-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 79, 176, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.shorts-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(241, 0, 117, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.shorts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.shorts-header {
    text-align: center;
    margin-bottom: 50px;
}

.shorts-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f10075;
    margin-bottom: 8px;
    display: block;
}

.shorts-title {
    font-size: 36px;
    font-weight: 900;
    color: #004fb0;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.shorts-title em {
    color: #f10075;
    font-style: italic;
    font-weight: 300;
}

.shorts-sub {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll track for mobile */
.shorts-scroll-wrapper {
    position: relative;
    width: 100%;
}

.shorts-scroll-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Smartphone Mockup */
.phone-mockup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 497px;
    /* 9:16 aspect ratio: 280w * 16/9 = 497.7h */
    background: #000a1f;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 45px rgba(0, 79, 176, 0.12), 0 0 0 2px rgba(0, 79, 176, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Camera Island Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 14px;
    background: #000a1f;
    border-radius: 999px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
}

.phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Video Info and badge */
.video-info-card {
    margin-top: 20px;
    text-align: center;
    width: 280px;
}

.video-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(241, 0, 117, 0.08);
    color: #f10075;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.video-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.video-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Hover effects */
.phone-mockup-card:hover .phone-mockup {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(241, 0, 117, 0.2), 0 0 15px rgba(241, 0, 117, 0.1), 0 0 0 2px rgba(241, 0, 117, 0.2);
}

/* Mobile responsive styles */
@media (max-width: 991px) {
    .shorts-scroll-track {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .shorts-section {
        padding: 55px 0;
    }

    .shorts-scroll-wrapper {
        margin: 0 -24px;
        width: auto;
        overflow: hidden;
        padding-bottom: 10px;
    }

    .shorts-scroll-wrapper::before {
        content: 'Desliza para ver más →';
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: #f10075;
        opacity: 0.75;
        margin-bottom: 15px;
    }

    .shorts-scroll-track {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 1.5rem 20px 1.5rem;
    }

    .shorts-scroll-track::-webkit-scrollbar {
        display: none;
    }

    .shorts-scroll-track .phone-mockup-card {
        flex: 0 0 auto;
        scroll-snap-align: center;
        width: 280px;
    }
}

/* ===== LOGO CENTRADO EN NAVBAR (DESKTOP) ===== */
.nav-desktop-only {
    display: none;
}

@media (min-width: 969px) {
    .nav-desktop-only {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 50px !important;
    }

    .nav-mobile-only {
        display: none !important;
    }

    .nav-links-left,
    .nav-links-right {
        list-style: none;
        display: flex;
        gap: 25px;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .nav-links-left li a,
    .nav-links-right li a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        transition: color 0.3s ease, transform 0.2s ease;
        display: inline-block;
    }

    header.scrolled .nav-links-left li a,
    header.scrolled .nav-links-right li a {
        color: var(--primary-blue);
    }

    .nav-links-left li a:hover,
    .nav-links-left li a.active,
    .nav-links-right li a:hover,
    .nav-links-right li a.active {
        color: var(--primary-pink);
        transform: translateY(-2px);
    }
}

/* ===== NEW NAVBAR LAYOUT ===== */
/* Nota: sin display aquí — en móvil manda el display:none base
   y en desktop el display:flex !important de la media query ≥969px */
.nav-desktop-only {
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}
.nav-right {
    justify-content: flex-end;
}
.nav-center {
    display: flex;
    justify-content: center;
    flex: 2;
}
.nav-links-center {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}
.nav-links-center li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
header.scrolled .nav-links-center li a {
    color: var(--primary-blue);
}
header.scrolled .nav-links-center li a:hover,
header.scrolled .nav-links-center li a.active {
    color: var(--primary-pink);
}
.nav-links-center li a:hover {
    color: var(--primary-pink);
    transform: translateY(-2px);
}
.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary-pink), #d90069);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(241, 0, 117, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(241, 0, 117, 0.6);
    color: white;
}

/* ===== FLOATING TRUST BADGE ===== */
.floating-trust-widget {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    right: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    animation: floatWidget 6s ease-in-out infinite;
    max-width: 260px;
}

@media (max-width: 768px) {
    /* En móvil pasa a ser un chip compacto abajo a la derecha,
       lejos del titular: solo iconos + estrellas + nota */
    .floating-trust-widget {
        top: auto;
        bottom: 88px;
        right: 16px;
        margin: 0;
        max-width: none;
        animation: floatWidget 6s ease-in-out infinite;
    }

    .trust-badge-card {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .trust-badge-header {
        margin-bottom: 0;
    }

    .trust-badge-desc {
        display: none;
    }
}

@keyframes floatWidget {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.trust-badge-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.trust-badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.trust-badge-icons {
    display: flex;
    position: relative;
    width: 48px;
    height: 28px;
}

.trust-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    top: 0;
}

.trust-icon-circle.google {
    left: 0;
    z-index: 2;
}

.trust-icon-circle.facebook {
    left: 18px;
    background: #1877F2;
    z-index: 1;
}

.trust-badge-rating {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.trust-stars {
    display: flex;
    gap: 2px;
}

.trust-rating-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1;
}

.trust-rating-text strong {
    color: white;
    font-weight: 800;
}

.trust-rating-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

.trust-badge-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
}

.trust-badge-btn {
    background: #d4a353;
    color: white;
    text-decoration: none;
    padding: 8px 10px 8px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(212, 163, 83, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.trust-badge-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #c39242;
    color: white;
}

.trust-btn-icon {
    width: 26px;
    height: 26px;
    background: white;
    color: #d4a353;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CUSTOM WAVY DIVIDER ===== */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

@media (min-width: 768px) {
    .custom-shape-divider-bottom svg {
        height: 180px;
    }
}

/* ===== ÁREAS DE ATENCIÓN (NUEVO LAYOUT FIX) ===== */
.areas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .areas-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}
.areas-owl {
    width: 8rem;
    height: 8rem;
}
@media (min-width: 768px) {
    .areas-owl {
        width: 10rem;
        height: 10rem;
    }
}
@media (min-width: 1024px) {
    .areas-owl {
        margin-top: 5rem;
    }
}
.areas-grid-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) {
    .areas-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .areas-grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ── Móvil: pastillas compactas en 2 columnas para que la
   sección no se haga eterna verticalmente ── */
@media (max-width: 639px) {
    .areas-wrapper {
        gap: 1.25rem;
    }

    .areas-owl {
        width: 6rem;
        height: 6rem;
    }

    .areas-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    /* La fila inferior mantiene su flex-wrap centrado (Tailwind),
       solo se compactan sus chips quitando el ancho mínimo */
    .areas-bottom-row button {
        min-width: 0;
    }

    /* Pastillas compactas: menos padding, sin flecha decorativa */
    .areas-grid-container button,
    .areas-bottom-row button {
        padding: 10px 12px;
        border-radius: 1.25rem;
    }

    .areas-grid-container button > svg,
    .areas-bottom-row button > svg {
        display: none;
    }

    .areas-grid-container button .w-10,
    .areas-bottom-row button .w-10 {
        width: 2rem;
        height: 2rem;
    }

    .areas-grid-container button span,
    .areas-bottom-row button span {
        font-size: 12px;
        padding-right: 0;
    }
}

/* ============================================================
   SPLASH / PANTALLA DE CARGA (transición entre páginas)
   ============================================================ */
.kja-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cristal esmerilado translúcido: suave para la vista, no un blanco sólido */
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
    backdrop-filter: blur(26px) saturate(135%);
    opacity: 1;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    animation: kjaSplashIn 0.4s ease;
}

/* Fallback: si el navegador no soporta desenfoque, un velo claro translúcido */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .kja-splash {
        background: rgba(244, 247, 252, 0.92);
    }
}

@keyframes kjaSplashIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kja-splash--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Bloquea el scroll mientras el splash está visible */
html:has(.kja-splash:not(.kja-splash--hidden)) {
    overflow: hidden;
}

.kja-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.kja-splash-badge {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anillo giratorio con los colores de marca */
.kja-splash-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(0, 79, 176, 0.12);
    border-top-color: #f10075;
    border-right-color: #004fb0;
    animation: kjaSplashSpin 1s linear infinite;
}

.kja-splash-logo {
    width: 76px;
    height: auto;
    animation: kjaSplashBeat 1.4s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(241, 0, 117, 0.28));
}

.kja-splash-text {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #004fb0;
}

.kja-splash-dots i {
    font-style: normal;
    opacity: 0;
    animation: kjaSplashDots 1.4s infinite;
}

.kja-splash-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.kja-splash-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes kjaSplashSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Latido, acorde al ícono en forma de corazón */
@keyframes kjaSplashBeat {
    0%, 100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.13);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
    60% {
        transform: scale(1);
    }
}

@keyframes kjaSplashDots {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kja-splash-badge::before,
    .kja-splash-logo,
    .kja-splash-dots i {
        animation: none;
    }
    .kja-splash-dots i {
        opacity: 1;
    }
}

/* ============================================================
   NAVBAR PÍLDORA (móvil/tablet) + CAPA DE MODALES
   ============================================================ */

/* Los modales de temas deben cubrir el navbar (header z-index: 1000) */
#topicModal {
    z-index: 2000;
}

@media (max-width: 968px) {
    /* Header flotante en forma de píldora — efecto "liquid glass" iOS:
       muy translúcido, blur profundo con saturación alta, borde que
       simula refracción y brillos especulares internos */
    header {
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        width: auto;
        padding: 8px 0;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.52);
        /* Sin backdrop-filter aquí: iría al ::before. Si estuviera en el
           header, el menú desplegable (hijo) no podría difuminar la página */
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow:
            /* sombra exterior suave */
            0 8px 32px rgba(0, 47, 112, 0.16),
            /* rim especular superior (luz) */
            inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
            /* rim inferior tenue */
            inset 0 -1px 1px rgba(255, 255, 255, 0.3),
            /* sombreado interno inferior-derecha (volumen de lente) */
            inset -3px -4px 10px -6px rgba(0, 47, 112, 0.25);
    }

    /* Destello diagonal + vidrio líquido (el blur vive aquí y no en el
       header para que el menú desplegable pueda difuminar por su cuenta).
       El filter url() refracta el fondo en tiempo real (Chromium);
       en Safari/Firefox cae con gracia al blur de siempre */
    header::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        width: auto;
        height: auto;
        border-radius: inherit;
        background: linear-gradient(115deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.12) 28%,
            rgba(255, 255, 255, 0) 46%,
            rgba(255, 255, 255, 0) 72%,
            rgba(255, 255, 255, 0.28) 100%);
        mask-image: none;
        -webkit-mask-image: none;
        -webkit-backdrop-filter: blur(9px) saturate(190%);
        backdrop-filter: blur(9px) saturate(190%);
        filter: url(#kjaGlassDistortion);
        /* Recorta el sangrado del filtro fuera de la cápsula
           (evita el halo claro alrededor de la píldora) */
        clip-path: inset(0 round 20px);
        pointer-events: none;
    }

    header.scrolled {
        padding: 8px 0;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.58);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow:
            0 10px 34px rgba(0, 47, 112, 0.18),
            inset 0 1.5px 1px rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px rgba(255, 255, 255, 0.3),
            inset -3px -4px 10px -6px rgba(0, 47, 112, 0.22);
    }

    header.scrolled::before {
        opacity: 1;
    }

    /* Sobre la píldora blanca, el hamburger y los enlaces van en azul */
    .hamburger span {
        background: var(--primary-blue);
    }

    .nav-mobile-only .nav-links li a {
        color: var(--primary-blue);
    }
}

@media (max-width: 768px) {
    /* El menú desplegable acompaña la forma y el vidrio de la píldora */
    .nav-links {
        margin-top: 10px;
        border-radius: 22px;
        overflow: hidden;
        background: rgba(0, 38, 100, 0.83);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow:
            0 20px 40px rgba(0, 47, 112, 0.25),
            inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }
}
