/* ============================================================
   KJA · Página de videos cortos (videos.html)
   Hero claro + cuadrícula de reels + carrusel interactivo.
   ============================================================ */

/* Navbar sobre hero claro: enlaces en azul, activo en rosa (igual que cursos). */
.nav-desktop-only .nav-links-center li a {
    color: var(--primary-blue);
}

.nav-desktop-only .nav-links-center li a:hover,
.nav-desktop-only .nav-links-center li a.active {
    color: var(--primary-pink);
}

.kv-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ───────────── Hero ───────────── */
.kv-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 24px 120px;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(720px 420px at 85% 30%, rgba(241, 0, 117, 0.08) 0%, transparent 65%),
        radial-gradient(640px 380px at 8% 85%, rgba(0, 79, 176, 0.08) 0%, transparent 65%),
        linear-gradient(180deg, #fdf3f8 0%, #f1f5fc 100%);
}

.kv-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.kv-orb--pink {
    width: 120px;
    height: 120px;
    top: 120px;
    left: -40px;
    background: radial-gradient(circle at 32% 30%, #ff8ec4 0%, #f10075 55%, #a3004f 100%);
    box-shadow: 0 24px 48px rgba(241, 0, 117, 0.3), inset -12px -14px 28px rgba(0, 0, 0, 0.18);
    animation: kvFloat 9s ease-in-out infinite;
}

.kv-orb--blue {
    width: 150px;
    height: 150px;
    right: -50px;
    bottom: 40px;
    background: radial-gradient(circle at 32% 30%, #6ba6ff 0%, #004fb0 60%, #002a63 100%);
    box-shadow: 0 26px 52px rgba(0, 79, 176, 0.3), inset -14px -16px 30px rgba(0, 0, 0, 0.2);
    animation: kvFloat 11s ease-in-out infinite reverse;
}

.kv-orb--glass {
    width: 80px;
    height: 80px;
    left: 46%;
    bottom: 110px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(214, 230, 255, 0.55) 45%, rgba(160, 195, 245, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 36px rgba(0, 47, 112, 0.12);
    animation: kvFloat 8s ease-in-out infinite;
}

@keyframes kvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Olas que se desplazan despacio al pie de la portada; la de adelante tiene el color del catálogo. */
.kv-hero-olas {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 1;
    width: 100%;
    height: 90px;
    pointer-events: none;
}

.kv-hero-olas use { animation: kvOla 26s cubic-bezier(.55, .5, .45, .5) infinite; }
.kv-hero-olas use:nth-of-type(1) { fill: #f100751a; animation-delay: -2s; animation-duration: 12s; }
.kv-hero-olas use:nth-of-type(2) { fill: #8e6bbf26; animation-delay: -3s; animation-duration: 16s; }
.kv-hero-olas use:nth-of-type(3) { fill: #004fb01a; animation-delay: -4s; animation-duration: 20s; }
.kv-hero-olas use:nth-of-type(4) { fill: #f1f5fc; animation-delay: -5s; }

@keyframes kvOla {
    from { transform: translate3d(-90px, 0, 0); }
    to { transform: translate3d(85px, 0, 0); }
}

.kv-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.kv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f10075;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.kv-eyebrow::before {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f10075, #7b3fe4);
}

.kv-title {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0a1f44;
    margin: 0 0 18px;
}

.kv-title em {
    display: block;
    color: #f10075;
    font-weight: 400;
}

.kv-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5b6472;
    max-width: 470px;
    margin: 0 0 22px;
}

.kv-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    color: #2a3b58;
    font-size: 0.88rem;
    font-weight: 600;
}

.kv-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kv-hero-facts svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #f10075;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.kv-btn-primary,
.kv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kv-btn-primary {
    background: #f10075;
    color: #fff;
    box-shadow: 0 10px 24px rgba(241, 0, 117, 0.3);
}

.kv-btn-primary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-btn-primary:hover {
    color: #fff;
    background: #d10065;
    box-shadow: 0 14px 30px rgba(241, 0, 117, 0.4);
}

.kv-btn-outline {
    border: 1.5px solid rgba(0, 79, 176, 0.3);
    color: #004fb0;
    background: rgba(255, 255, 255, 0.65);
}

.kv-btn-outline:hover {
    background: #004fb0;
    border-color: #004fb0;
    color: #fff;
}

/* Destacado: los tres videos más recientes apilados como un mini carrusel. */
.kv-featured {
    --fw: 228px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.kv-feature-stack {
    position: relative;
    width: 100%;
    height: calc(var(--fw) * 16 / 9 + 20px);
}

.kv-feature-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--fw);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: none;
    cursor: pointer;
    font: inherit;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.kv-feature-card .kv-cover {
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(10, 31, 68, 0.28);
}

.kv-feature-card--1 {
    z-index: 3;
    margin-left: calc(var(--fw) / -2);
}

.kv-feature-card--2 {
    z-index: 2;
    top: 20px;
    margin-left: calc(var(--fw) * -1.06);
    transform: rotate(-8deg) scale(0.86);
    filter: brightness(0.92) saturate(0.9);
}

.kv-feature-card--3 {
    z-index: 1;
    top: 20px;
    margin-left: calc(var(--fw) * 0.06);
    transform: rotate(8deg) scale(0.86);
    filter: brightness(0.92) saturate(0.9);
}

.kv-feature-card--1:hover .kv-play,
.kv-feature-card--1:focus-visible .kv-play {
    background: #f10075;
    color: #fff;
}

.kv-feature-card:focus-visible {
    outline: 3px solid #004fb0;
    outline-offset: 4px;
}

.kv-feature-label {
    width: min(320px, 92%);
    margin: 0;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(13, 38, 76, 0.14);
    color: #0a1f44;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}

.kv-feature-label b {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(241, 0, 117, 0.1);
    color: #f10075;
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.kv-feature-label b {
    margin-right: 6px;
}

/* ───────────── Portadas (compartidas por tarjetas, destacado y carrusel) ───────────── */
.kv-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: #0a1f44;
    isolation: isolate;
}

.kv-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kv-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18% 9% 26%;
    text-align: left;
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(241, 0, 117, 0.28) 0%, transparent 55%),
        linear-gradient(160deg, #123a73 0%, #09244c 100%);
    color: #fff;
    overflow: hidden;
}

.kv-art-logo {
    position: absolute;
    top: 7%;
    left: 8%;
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff;
}

.kv-art-logo img {
    width: 42px;
    height: auto;
    display: block;
}

.kv-art-eyebrow {
    margin-bottom: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    opacity: 0.9;
}

.kv-art-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.18;
}

.kv-art-ring {
    position: absolute;
    top: 30%;
    right: -18%;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.07);
}

.kv-platform,
.kv-duration,
.kv-sample {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.kv-platform {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #0a1f44;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.kv-platform svg {
    width: 16px;
    height: 16px;
}

.kv-duration {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: rgba(10, 22, 40, 0.72);
    color: #fff;
}

.kv-sample {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: #ffd84d;
    color: #4a3700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.kv-play {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 54px;
    height: 54px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #f10075;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.kv-play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    fill: currentColor;
}

/* ───────────── Catálogo ───────────── */
.kv-catalog {
    padding: 70px 0 80px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #f1f5fc 0%, #ffffff 100%);
}

.kv-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.kv-catalog-head h2 {
    position: relative;
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 800;
    color: #101828;
}

.kv-catalog-head h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f10075, #004fb0);
}

.kv-catalog-head p {
    margin: 0;
    color: #5b6472;
}

.kv-demo-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: #fff6d6;
    border: 1px solid #f3d36b;
    color: #6b4f00;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kv-demo-note::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a800;
}

.kv-demo-note[hidden] {
    display: none;
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kv-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.kv-card .kv-cover {
    box-shadow: 0 14px 30px rgba(13, 38, 76, 0.14);
    transition: box-shadow 0.3s ease, translate 0.3s ease;
}

.kv-card:hover .kv-cover {
    translate: 0 -4px;
    box-shadow: 0 22px 40px rgba(13, 38, 76, 0.2);
}

.kv-card:hover .kv-play,
.kv-card:focus-visible .kv-play {
    background: #f10075;
    color: #fff;
}

.kv-card:focus-visible {
    outline: none;
}

.kv-card:focus-visible .kv-cover {
    outline: 3px solid #004fb0;
    outline-offset: 3px;
}

.kv-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 2px;
}

.kv-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #101828;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.kv-card-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #6b7686;
    font-size: 0.78rem;
    font-weight: 600;
}

.kv-card-meta i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f10075;
}

.kv-empty {
    padding: 60px 20px;
    text-align: center;
    color: #5b6472;
}

.kv-empty[hidden] {
    display: none;
}

.kv-empty svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #f10075;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-empty h3 {
    margin: 12px 0 6px;
    color: #101828;
}

.kv-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 760px;
    margin: 46px auto 0;
    padding: 16px 20px;
    border: 1px solid #e3e9f5;
    border-radius: 16px;
    background: #f6f8fd;
    color: #5b6472;
    font-size: 0.85rem;
    line-height: 1.6;
}

.kv-disclaimer svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    fill: none;
    stroke: #004fb0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-cta-banner h2 em {
    display: block;
    margin-top: 4px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #ffd1e6;
}

/* ───────────── Carrusel interactivo ───────────── */
.kv-viewer {
    /* Alto del video central: lo que dejan libre la barra superior y el panel inferior. */
    --kv-vh: 100vh;
    --kv-h: min(620px, calc(var(--kv-vh) - 250px));
    --kv-w: calc(var(--kv-h) * 9 / 16);
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

@supports (height: 100dvh) {
    .kv-viewer {
        --kv-vh: 100dvh;
    }
}

.kv-viewer[hidden] {
    display: none;
}

.kv-viewer-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #050b18;
    animation: kvFade 0.25s ease both;
}

/* Fondo ambiental: la portada del video actual muy desenfocada; cambia con un fundido. */
.kv-ambient {
    position: absolute;
    inset: -12%;
    background: center / cover no-repeat;
    filter: blur(56px) saturate(1.4);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.kv-ambient.is-on {
    opacity: 0.9;
}

.kv-viewer-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 50% 42%, rgba(5, 11, 24, 0) 0%, rgba(5, 11, 24, 0.6) 100%),
        linear-gradient(180deg, rgba(5, 11, 24, 0.45) 0%, rgba(5, 11, 24, 0.1) 45%, rgba(5, 11, 24, 0.8) 100%);
}

.kv-viewer-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px 0;
}

.kv-counter {
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.kv-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kv-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.kv-external[hidden] {
    display: none;
}

.kv-external:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.kv-external svg,
.kv-close svg,
.kv-nav svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-external svg {
    width: 16px;
    height: 16px;
}

.kv-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.kv-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.kv-close svg {
    width: 20px;
    height: 20px;
}

.kv-close:focus-visible,
.kv-external:focus-visible,
.kv-nav:focus-visible,
.kv-dot:focus-visible {
    outline: 3px solid #ff7ab8;
    outline-offset: 3px;
}

.kv-stage-wrap {
    position: relative;
    z-index: 1;
    min-height: 0;
}

.kv-stage {
    position: absolute;
    inset: 0;
    perspective: 1400px;
    overflow: hidden;
    touch-action: pan-y;
}

/* Cada tarjeta se ubica según su distancia al centro (--offset la fija el JS). */
.kv-slide {
    --step: calc(var(--kv-w) * 0.82);
    --scale: calc(1 - var(--distance) * 0.15);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--kv-w);
    height: var(--kv-h);
    margin: auto 0 auto calc(var(--kv-w) / -2);
    transform: translateX(calc(var(--offset) * var(--step))) rotateY(calc(var(--offset) * -18deg)) scale(var(--scale));
    transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.45s ease, filter 0.45s ease;
    cursor: pointer;
}

.kv-slide.is-near {
    opacity: calc(1 - var(--distance) * 0.25);
    filter: brightness(0.62) saturate(0.85);
}

.kv-slide.is-far {
    opacity: 0;
    pointer-events: none;
}

.kv-slide.is-active {
    cursor: default;
}

.kv-slide-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
    background: #000;
}

.kv-slide-media > .kv-cover {
    height: 100%;
    border-radius: 0;
}

.kv-slide-media .kv-art-title {
    font-size: clamp(1.2rem, calc(var(--kv-w) * 0.075), 1.7rem);
}

.kv-slide-media .kv-art-logo img {
    width: 52px;
}

.kv-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 16px 16px;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 10, 24, 0.85) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kv-slide.is-near .kv-slide-caption {
    opacity: 1;
}

.kv-slide-caption b {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.3;
}

.kv-slide-caption small {
    display: block;
    margin-top: 4px;
    opacity: 0.8;
    font-size: 0.74rem;
}

/* En las vecinas el pie ya muestra el título; en la central manda el reproductor. */
.kv-slide.is-near .kv-play,
.kv-slide.is-near .kv-sample,
.kv-slide.is-near .kv-duration,
.kv-slide.is-near .kv-art-title,
.kv-slide.is-near .kv-art-eyebrow,
.kv-slide.is-active .kv-play {
    opacity: 0;
}

.kv-player {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #000;
}

.kv-player iframe,
.kv-player video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.kv-player video {
    object-fit: cover;
    cursor: pointer;
}

.kv-player--placeholder {
    display: grid;
    place-items: end center;
    padding: 18px;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 10, 24, 0.82) 100%);
}

.kv-placeholder {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.kv-placeholder b {
    display: block;
    margin-bottom: 4px;
    color: #ffd84d;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Controles del video central: alineados con la tarjeta activa, no se mueven con el carrusel ── */
.kv-hud {
    position: absolute;
    z-index: 15;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--kv-w);
    height: var(--kv-h);
    margin: auto 0 auto calc(var(--kv-w) / -2);
    border-radius: 26px;
    box-shadow: 0 0 70px -10px rgba(241, 0, 117, 0.45), 0 0 110px -30px rgba(47, 139, 255, 0.55);
    pointer-events: none;
}

/* Marco con los colores de KJA alrededor del video activo. */
.kv-hud::before {
    content: '';
    position: absolute;
    inset: -3px;
    padding: 2px;
    border-radius: 29px;
    background: linear-gradient(140deg, #ff3d96, #7b3fe4 50%, #2f8bff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* Sombra inferior para que la barra de avance y los botones se lean sobre cualquier video. */
.kv-viewer[data-player="native"] .kv-hud::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 10, 24, 0.6) 100%);
}

.kv-rail,
.kv-progress,
.kv-hint,
.kv-hud-icon,
.kv-spinner {
    position: absolute;
    z-index: 1;
}

/* En pantallas anchas va al costado del video, en una cápsula, para no tapar sus subtítulos (en celular, adentro). */
.kv-rail {
    right: -70px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    background: rgba(5, 11, 24, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.kv-rail-btn {
    width: 46px;
    height: 46px;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kv-rail-btn:hover {
    background: #f10075;
    border-color: #f10075;
}

.kv-rail-btn[hidden] {
    display: none;
}

.kv-rail-btn svg,
.kv-hint svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-rail-btn .kv-i-play {
    fill: currentColor;
}

/* Cada botón muestra el ícono del estado real del video (el JS marca el visor). */
.kv-i-off,
.kv-i-play,
.kv-viewer.is-muted .kv-i-on,
.kv-viewer.is-paused .kv-i-pause {
    display: none;
}

.kv-viewer.is-muted .kv-i-off,
.kv-viewer.is-paused .kv-i-play {
    display: block;
}

.kv-hud-icon {
    inset: 0;
    width: 76px;
    height: 76px;
    margin: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(10, 18, 36, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kv-hud-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    fill: #fff;
}

/* En pausa (con un pequeño retraso para no parpadear al cambiar de video). */
.kv-viewer[data-player="native"].is-paused:not(.is-buffering) .kv-hud-icon {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.kv-spinner {
    inset: 0;
    width: 46px;
    height: 46px;
    margin: auto;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ff3d96;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kv-viewer[data-player="native"].is-buffering .kv-spinner {
    opacity: 1;
    transition-delay: 0.25s;
    animation: kvSpin 0.8s linear infinite;
}

.kv-hint {
    top: 16px;
    left: 50%;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    color: #0a1f44;
    font: 600 0.8rem 'Poppins', sans-serif;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    pointer-events: auto;
    cursor: pointer;
    animation: kvPop 0.3s ease both;
}

.kv-hint[hidden] {
    display: none;
}

.kv-hint svg {
    width: 18px;
    height: 18px;
    stroke: #f10075;
}

.kv-progress {
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 4px;
    overflow: hidden;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
}

.kv-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff3d96, #ffffff);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s linear;
}

.kv-viewer[data-player="embed"] .kv-progress {
    display: none;
}

.kv-rail-btn:focus-visible,
.kv-hint:focus-visible,
.kv-cta:focus-visible {
    outline: 3px solid #ff7ab8;
    outline-offset: 3px;
}

/* Flechas: centradas sin transform para que el efecto al pulsar no las desplace. */
.kv-nav {
    position: absolute;
    z-index: 20;
    top: 0;
    bottom: 0;
    width: 52px;
    height: 52px;
    margin: auto 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0a1f44;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.kv-nav:hover {
    background: #f10075;
    color: #fff;
}

.kv-nav[hidden] {
    display: none;
}

.kv-nav svg {
    width: 22px;
    height: 22px;
}

.kv-nav--prev {
    left: max(16px, calc(50% - var(--kv-w) / 2 - 76px));
}

.kv-nav--next {
    right: max(16px, calc(50% - var(--kv-w) / 2 - 76px));
}

.kv-viewer-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto 22px;
    padding: 14px 14px 14px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.kv-viewer-info h2 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kv-viewer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.kv-viewer-meta b {
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 61, 150, 0.2);
    color: #ff9acb;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.kv-viewer-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Miniaturas de todos los videos; la actual muestra su avance. */
.kv-dots {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(46vw, 420px);
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.kv-dots::-webkit-scrollbar {
    display: none;
}

.kv-dot {
    position: relative;
    flex: none;
    width: 38px;
    height: 66px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(160deg, #123a73 0%, #09244c 100%);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kv-dot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.kv-dot:hover {
    opacity: 0.85;
}

.kv-dot[aria-current="true"] {
    opacity: 1;
    border-color: #ff3d96;
    transform: translateY(-2px);
}

.kv-dot::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #ff3d96;
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    transition: transform 0.25s linear;
}

.kv-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 9999px;
    background: #f10075;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(241, 0, 117, 0.4);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kv-cta:hover {
    color: #fff;
    background: #d10065;
    box-shadow: 0 16px 34px rgba(241, 0, 117, 0.5);
}

.kv-cta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv-toast {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: 140px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 9999px;
    background: #fff;
    color: #0a1f44;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    animation: kvPop 0.25s ease both;
}

.kv-toast[hidden] {
    display: none;
}

@keyframes kvSpin {
    to { transform: rotate(360deg); }
}

@keyframes kvPop {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to { opacity: 1; transform: translateX(-50%); }
}

@keyframes kvFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1024px) {
    .kv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .kv-hero {
        padding: 120px 20px 100px;
    }

    /* El orbe rosa quedaría detrás del título en rosa: se pasa al lado derecho. */
    .kv-orb--pink {
        top: 84px;
        left: auto;
        right: -46px;
        width: 96px;
        height: 96px;
    }

    .kv-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .kv-featured {
        --fw: 210px;
    }
}

@media (max-width: 767px) {
    .kv-hero {
        padding: 104px 18px 80px;
    }

    .kv-hero-olas {
        height: 56px;
    }

    .kv-orb--glass {
        bottom: 70px;
    }

    .kv-featured {
        --fw: min(180px, 44vw);
    }

    .kv-catalog {
        padding: 50px 0 60px;
    }

    .kv-catalog-head h2 {
        font-size: 1.6rem;
    }

    .kv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .kv-card-title {
        font-size: 0.86rem;
    }

    .kv-play {
        width: 44px;
        height: 44px;
    }

    .kv-viewer {
        --kv-h: min(calc(var(--kv-vh) - 260px), calc((100vw - 72px) * 16 / 9));
    }

    .kv-viewer-top {
        padding: 12px 14px 0;
    }

    .kv-external span {
        display: none;
    }

    .kv-external {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .kv-slide {
        --step: calc(var(--kv-w) * 0.9);
    }

    .kv-nav {
        width: 40px;
        height: 40px;
        min-height: 0;
    }

    .kv-nav--prev { left: 6px; }
    .kv-nav--next { right: 6px; }

    .kv-viewer-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        width: calc(100% - 24px);
        margin-bottom: 12px;
        padding: 12px 12px 12px 16px;
        border-radius: 20px;
    }

    .kv-viewer-info {
        grid-column: 1 / -1;
    }

    .kv-viewer-info h2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        font-size: 0.95rem;
    }

    .kv-viewer-desc {
        display: none;
    }

    .kv-dots {
        max-width: none;
        gap: 6px;
    }

    .kv-dot {
        width: 30px;
        height: 52px;
        border-radius: 8px;
    }

    .kv-cta {
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.82rem;
    }

    .kv-rail {
        right: 8px;
        bottom: 50px;
        gap: 8px;
        padding: 0;
        border: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .kv-rail-btn {
        width: 40px;
        height: 40px;
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(10, 18, 36, 0.45);
    }

    .kv-rail-btn svg {
        width: 19px;
        height: 19px;
    }

    .kv-hud-icon {
        width: 64px;
        height: 64px;
    }

    .kv-toast {
        bottom: 180px;
    }
}

/* Tabletas en vertical: el panel inferior pasa a dos filas. */
@media (min-width: 768px) and (max-width: 900px) {
    .kv-viewer {
        --kv-h: min(620px, calc(var(--kv-vh) - 300px));
    }

    .kv-viewer-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 12px;
    }

    .kv-viewer-info {
        grid-column: 1 / -1;
    }

    .kv-dots {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kv-orb,
    .kv-hero-olas use,
    .kv-viewer-backdrop,
    .kv-hint,
    .kv-toast {
        animation: none;
    }

    .kv-slide,
    .kv-card .kv-cover,
    .kv-dot,
    .kv-dot::after,
    .kv-slide-caption,
    .kv-ambient,
    .kv-progress i,
    .kv-hud-icon {
        transition: none;
    }
}
