/* ===== Centro de ayuda · Tutoriales en video (/ayuda) =====
   Diseño claude.ai/design «RifaCDE - Tutoriales» (PC) y «- Movil-». Todo con prefijo
   ay- para no chocar con styles.css. Se carga sólo en esa página (block head). */

.ay-page, .ay-vw {
    --ay-blue: #1b45d7; --ay-blue-deep: #0f2bb0; --ay-navy: #0b1233;
    --ay-ink: #02030d; --ay-cell: #0a0b16;
    --ay-bd: rgba(255,255,255,.10); --ay-bd2: rgba(255,255,255,.18);
    --ay-dim: rgba(255,255,255,.74); --ay-faint: rgba(255,255,255,.48);
    --ay-gold: #ffd21e; --ay-gold2: #ffe06b; --ay-gold-ink: #1a1405;
    --ay-gold-soft: rgba(255,210,30,.13); --ay-gold-line: rgba(255,210,30,.42);
    --ay-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ay-page { background: var(--ay-ink); color: #fff; font-family: 'Poppins', system-ui, sans-serif; }
.ay-page *, .ay-vw * { box-sizing: border-box; }
.ay-page button, .ay-vw button { font: inherit; color: inherit; cursor: pointer; }
.ay-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.ay-hero {
    background: radial-gradient(900px 460px at 30% -120px, #2a56ea, transparent 62%),
                linear-gradient(180deg, var(--ay-blue), var(--ay-blue-deep) 55%, var(--ay-navy));
    border-bottom: 1px solid var(--ay-bd);
}
.ay-hero .ay-wrap { padding-top: 34px; padding-bottom: 30px; }
.ay-kick {
    display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px;
    background: rgba(2,3,13,.35); border: 1px solid var(--ay-bd2);
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ay-h1 {
    margin: 14px 0 6px; font-size: clamp(28px, 4.4vw, 44px); font-weight: 900;
    letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; color: #fff;
}
.ay-sub { margin: 0; max-width: 560px; font-size: 15.5px; color: var(--ay-dim); line-height: 1.5; text-wrap: pretty; }

.ay-main {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 20px; margin-top: 26px; align-items: start;
}

/* ── Escenario ── */
.ay-stage {
    border-radius: 20px; overflow: hidden; background: rgba(2,3,13,.85);
    border: 1px solid var(--ay-gold-line); box-shadow: 0 26px 60px rgba(0,0,0,.45);
}
.ay-player {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: radial-gradient(500px 260px at 50% 42%, #13204f, #04050f);
    display: grid; place-items: center;
}
.ay-player.v { aspect-ratio: auto; height: min(76vh, 720px); }
.ay-player.v::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 14px);
}
.ay-player > video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.ay-vbox {
    position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; min-width: 0;
    display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(300px 400px at 50% 42%, #1b2a66, #04050f);
    box-shadow: 0 0 0 1px var(--ay-bd), 0 20px 50px rgba(0,0,0,.5);
}
.ay-vbox > video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.ay-page img.ay-poster {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
/* Celular, vertical en el escenario: póster desenfocado de fondo y el 9:16 al centro. */
.ay-page img.ay-blur {
    position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none;
    object-fit: cover; filter: blur(18px) brightness(.45);
}
.ay-player.vm .ay-vbox { box-shadow: 0 0 0 1px var(--ay-bd), 0 10px 30px rgba(0,0,0,.5); }

.ay-ph {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px;
    border: 0; background: none; padding: 0;
}
.ay-play {
    width: 76px; height: 76px; border-radius: 99px; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--ay-gold2), var(--ay-gold) 45%, #ffb800);
    box-shadow: 0 0 0 10px rgba(255,210,30,.14); transition: transform .15s;
}
.ay-play svg { margin-left: 3px; }
.ay-ph:hover .ay-play { transform: scale(1.06); }
.ay-ph small {
    font-size: 11px; font-weight: 800; letter-spacing: .22em; color: #fff; text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.ay-ph-err small { letter-spacing: .04em; text-transform: none; font-size: 13px; color: var(--ay-dim); padding: 0 20px; text-align: center; }
.ay-dur {
    position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 4px 9px; border-radius: 7px;
    background: rgba(2,3,13,.75); font-family: var(--ay-mono); font-size: 12px; font-weight: 700;
}

.ay-info { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ay-n {
    flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--ay-gold-soft); border: 1px solid var(--ay-gold-line); color: var(--ay-gold);
    font-weight: 900; font-size: 17px;
}
.ay-info .ay-t { flex: 1; min-width: 0; }
.ay-info b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.ay-info .ay-t > span { font-size: 13px; color: var(--ay-faint); }
.ay-fmt {
    display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 7px; border-radius: 6px;
    background: rgba(255,255,255,.08); font-family: var(--ay-mono); font-size: 10.5px; font-weight: 700;
    color: var(--ay-dim); vertical-align: 2px;
}
.ay-navb { display: flex; gap: 8px; }
.ay-navb button {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ay-bd2);
    background: transparent; display: grid; place-items: center;
}
.ay-navb button:hover:not(:disabled) { border-color: var(--ay-gold-line); }
.ay-navb button:disabled { opacity: .3; cursor: default; }

/* ── Lista ── */
.ay-list {
    border-radius: 20px; background: rgba(2,3,13,.6); border: 1px solid var(--ay-bd);
    padding: 8px; display: grid; gap: 4px;
}
#ayList { display: grid; gap: 4px; }
.ay-lh {
    display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 8px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ay-faint);
}
.ay-lh b { font-family: var(--ay-mono); letter-spacing: 0; color: var(--ay-dim); }
.ay-lh-mob { display: none; }
.ay-it {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px;
    border: 1px solid transparent; background: transparent; text-align: left;
}
.ay-it:hover { background: rgba(255,255,255,.04); }
.ay-it.on { background: var(--ay-gold-soft); border-color: var(--ay-gold-line); }
.ay-th {
    position: relative; flex: 0 0 88px; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden;
    background: radial-gradient(120px 60px at 50% 45%, #1b2a66, #070a1c); display: grid; place-items: center;
}
.ay-page .ay-th img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Vertical: miniatura 16:9 con la franja 9:16 marcada al centro. */
.ay-th.v img { left: 50%; width: auto; aspect-ratio: 9/16; transform: translateX(-50%); }
.ay-th.v::after {
    content: ""; position: absolute; inset: 0; margin: auto; height: 100%; aspect-ratio: 9/16;
    border-left: 1px solid rgba(255,255,255,.14); border-right: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
}
.ay-th i {
    position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 99px;
    background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.ay-th i svg { margin-left: 1px; }
.ay-it.on .ay-th i { background: var(--ay-gold); color: var(--ay-gold-ink); }
.ay-tx { flex: 1; min-width: 0; }
.ay-tx b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ay-tx span { font-family: var(--ay-mono); font-size: 11.5px; color: var(--ay-faint); }
.ay-it.on .ay-tx b { color: var(--ay-gold); }

.ay-empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px;
    padding: 46px 20px; border-radius: 20px; border: 1px dashed var(--ay-bd2);
    color: var(--ay-dim); font-size: 14px; text-align: center; background: rgba(2,3,13,.35);
}

/* ── ¿Seguís con dudas? ── */
.ay-help {
    display: flex; align-items: center; gap: 16px; margin: 36px 0 44px; padding: 20px 22px;
    border-radius: 20px; background: var(--ay-cell); border: 1px solid var(--ay-bd);
}
.ay-help .ay-t { flex: 1; min-width: 0; }
.ay-help b { display: block; font-size: 17px; font-weight: 800; }
.ay-help .ay-t span { font-size: 13.5px; color: var(--ay-dim); }
.ay-btn {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 14px;
    border: 1px solid var(--ay-bd2); background: transparent; font-weight: 800; font-size: 14px;
    color: #fff; white-space: nowrap;
}
.ay-btn:hover { border-color: var(--ay-gold-line); color: #fff; }

@media (max-width: 900px) {
    .ay-main { grid-template-columns: minmax(0, 1fr); }
}

/* ── Celular (diseño «Tutoriales -Movil-») ── */
@media (max-width: 640px) {
    .ay-wrap { padding: 0 14px; }
    .ay-hero .ay-wrap { padding-top: 20px; padding-bottom: 22px; }
    .ay-kick { height: 24px; padding: 0 10px; font-size: 10.5px; }
    .ay-h1 { margin: 10px 0 4px; font-size: 28px; line-height: 1.1; }
    .ay-sub { font-size: 14px; line-height: 1.45; }
    .ay-main { margin-top: 16px; gap: 22px; }
    .ay-stage { border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
    .ay-player.v { height: auto; aspect-ratio: 9/16; max-height: 78vh; }
    .ay-player.v .ay-vbox { box-shadow: none; }
    .ay-play { width: 62px; height: 62px; box-shadow: 0 0 0 8px rgba(255,210,30,.14); }
    .ay-ph { gap: 10px; }
    .ay-ph small { font-size: 10px; letter-spacing: .2em; }
    .ay-dur { right: 10px; bottom: 10px; padding: 3px 8px; font-size: 11px; }
    .ay-info { gap: 12px; padding: 12px 14px; }
    .ay-n { flex-basis: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
    .ay-info b { font-size: 15.5px; }
    .ay-info .ay-t > span { font-size: 12.5px; }
    .ay-navb { display: none; }

    /* La lista pasa a tarjetas sueltas debajo del escenario. */
    .ay-list { background: none; border: 0; padding: 0; border-radius: 0; gap: 0; }
    #ayList { gap: 8px; }
    .ay-lh { padding: 0 0 12px; letter-spacing: 0; text-transform: none; align-items: baseline; }
    .ay-lh-pc { display: none; }
    .ay-lh-mob { display: inline; }
    .ay-lh > .ay-lh-mob { font-size: 17px; font-weight: 800; color: #fff; }
    .ay-lh b { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ay-faint); }
    .ay-it { min-height: 64px; border-color: var(--ay-bd); background: var(--ay-cell); }
    .ay-th { flex-basis: 76px; border-radius: 8px; }
    .ay-th i { width: 24px; height: 24px; }
    .ay-tx span { font-size: 11px; }

    .ay-help {
        flex-direction: column; align-items: stretch; text-align: center; gap: 0;
        margin: 26px 0 calc(28px + env(safe-area-inset-bottom)); padding: 18px 16px; border-radius: 18px;
    }
    .ay-help b { font-size: 16px; }
    .ay-help .ay-t span { display: block; margin: 2px 0 14px; font-size: 13px; }
    .ay-btn { justify-content: center; height: 48px; }
}

/* ── Visor vertical a pantalla completa (celular) ── */
html.ay-lock, html.ay-lock body { overflow: hidden; }
.ay-vw {
    position: fixed; inset: 0; z-index: 9000; background: #000; display: none; flex-direction: column;
    color: #fff; font-family: 'Poppins', system-ui, sans-serif;
}
.ay-vw.show { display: flex; }
.ay-ib {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.ay-vtop {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
}
.ay-dots { flex: 1; display: flex; gap: 4px; }
.ay-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.ay-dots i.on { background: var(--ay-gold); }
.ay-vstage { flex: 1; min-height: 0; display: grid; place-items: center; touch-action: pan-x; }
/* Ocupa toda la pantalla y el video se ajusta adentro (contain). Con aspect-ratio
   9:16 + height:100% el ancho salía de la ALTURA: en un teléfono (más angosto que
   9:16) la caja quedaba más ancha que la pantalla y el video se cortaba a la derecha
   —el min-width automático de un ítem de grid le gana al max-width—. */
.ay-vvbox {
    position: relative; width: 100%; height: 100%; min-width: 0;
    display: grid; place-items: center;
    background: radial-gradient(260px 420px at 50% 42%, #1b2a66, #04050f);
}
.ay-vvbox > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ay-vpausa {
    position: relative; z-index: 2; border: 0; background: none; padding: 0;
    opacity: 0; pointer-events: none; transition: opacity .15s;
}
.ay-vvbox.pausa .ay-vpausa { opacity: 1; pointer-events: auto; }
.ay-vpausa .ay-play { width: 68px; height: 68px; }
.ay-vbot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; gap: 12px;
    padding: 40px 14px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); pointer-events: none;
}
.ay-vbot .ay-t { flex: 1; min-width: 0; }
.ay-vbot b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ay-vbot .ay-t > span { font-size: 13px; color: var(--ay-dim); }
.ay-vprog {
    position: relative; height: 16px; margin-top: 8px; display: flex; align-items: center;
    cursor: pointer; pointer-events: auto;
}
.ay-vprog::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
    border-radius: 3px; background: rgba(255,255,255,.25);
}
.ay-vprog i {
    position: relative; z-index: 1; display: block; height: 3px; width: 0; border-radius: 3px; background: var(--ay-gold);
}
.ay-vnav { display: grid; gap: 8px; pointer-events: auto; }
.ay-vnav .ay-ib { width: 42px; height: 42px; }
.ay-vnav .ay-ib:disabled { opacity: .3; }
