/* ============================================================
   [v7.69.0] Unificación tipográfica de scenes
   
   Default global: cualquier elemento dentro de una scene (cualquier clase
   que empiece con ws-) hereda --ws-fb (body font) salvo que explícitamente
   declare otra cosa. Esto asegura que NINGÚN elemento sin font-family
   quede con el font del theme/WP fallback.
   
   Los elementos heading (h1-h6, .ws-*-title, .ws-*-headline) deberían usar
   --ws-fh; los demás --ws-fb. Las scenes ya lo hacen para sus elementos
   principales · esta regla es defensiva para sub-elementos sin override.
   ============================================================ */

[class^="ws-"],
[class*=" ws-"],
.wapu-scene-classic,
.wapu-scene{
    font-family: var(--ws-fb, 'Manrope', system-ui, sans-serif);
}

/* [v2.07] Defensive · todos los descendientes de una scene tambien heredan
   --ws-fb explicitamente. Catchea casos edge donde un elemento dentro de la
   scene tenia font-family resetada por el theme o por una regla mas especifica
   del WP admin. La regla NO afecta a elementos que ya tengan font-family
   explicito (como los headings que usan --ws-fh). */
[class^="ws-"] *:not(svg):not(use):not(path),
[class*=" ws-"] *:not(svg):not(use):not(path),
.wapu-scene-classic *:not(svg):not(use):not(path),
.wapu-scene *:not(svg):not(use):not(path){
    font-family: inherit;
}
[class^="ws-"] h1, [class*=" ws-"] h1,
[class^="ws-"] h2, [class*=" ws-"] h2,
[class^="ws-"] h3, [class*=" ws-"] h3,
[class^="ws-"] h4, [class*=" ws-"] h4,
[class^="ws-"] h5, [class*=" ws-"] h5,
[class^="ws-"] h6, [class*=" ws-"] h6,
[class*="-title"][class*="ws-"],
[class*="-headline"][class*="ws-"],
[class*="-heading"][class*="ws-"]{
    font-family: var(--ws-fh, var(--ws-fb, 'Playfair Display', Georgia, serif));
}

/* Wapu Scenes — CSS del slider clásico */
.wapu-scene-classic {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    min-height: 280px;
    overflow: clip;
    background: #111;
    --wsc-c1: #7c3aed;
    --wsc-c2: #f5f3ff;
}

/* Fondo degradado sutil del kit */
.wapu-scene-classic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--wsc-c1) 18%, transparent), transparent 60%),
                radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--wsc-c2) 14%, transparent), transparent 60%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

/* Línea shimmer del kit en el borde inferior */
.wapu-scene-classic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wsc-c1), var(--wsc-c2), var(--wsc-c1));
    background-size: 200% 100%;
    animation: wsc-shimmer 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes wsc-shimmer {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}
.wsc-track { position: absolute; inset: 0; }
.wsc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
    display: flex;
}
.wsc-slide.is-active { opacity: 1; }
.wsc-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 48px;
}
.wsc-title {
    font-family: -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(24px, 4vw, 56px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
    max-width: 16ch;
}
.wsc-desc {
    font-size: clamp(13px, 1.4vw, 18px);
    color: rgba(255,255,255,.85);
    margin: 0 0 24px;
    max-width: 40ch;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.wsc-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    width: fit-content;
    transition: transform .2s;
}
.wsc-btn:hover { transform: translateY(-2px); }
/* Dots */
.wsc-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.wsc-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .2s;
}
.wsc-dot.is-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}
/* Arrows */
.wsc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.wsc-arrow:hover { background: rgba(255,255,255,.3); }
.wsc-prev { left: 16px; }
.wsc-next { right: 16px; }

@media (max-width: 600px) {
    .wsc-text { padding: 24px; }
}

/* Video en slides */
.wsc-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.wsc-iframe {
    object-fit: unset;
    pointer-events: none;
}
/* Overlay para que el texto se lea sobre video — teñido con el kit */
.wsc-slide:has(.wsc-video)::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,  rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%),
        linear-gradient(135deg,
            color-mix(in srgb, var(--wsc-c1) 22%, transparent) 0%,
            color-mix(in srgb, var(--wsc-c2) 12%, transparent) 100%
        );
    z-index: 1;
}
.wsc-text { z-index: 2; }
