/* Videoclip de Mi clase: estilos limitados a su ventana. */
.av { width: min(1180px,96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 0; border-radius: 18px; background: #eef7fa; color: #184c60; font-family: Arial,Helvetica,sans-serif; box-shadow: 0 20px 60px #0005; overflow: auto; }
.av::backdrop { background: rgba(14,40,46,.76); }
.av *, .av *::before, .av *::after { box-sizing: border-box; }
.av [hidden] { display: none !important; }
.av-caja { padding: 18px; }
.av-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.av-cab h2 { margin: 0 0 5px; color: #184c60; font-size: 22px; line-height: 1.2; }
.av-cab p { margin: 0; color: #526d78; font-size: 14px; }
.av-cerrar { flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #184c60; font-size: 28px; cursor: pointer; }
.av-cerrar:hover { background: #ffe7d8; }
.av video { display: block; width: 100%; aspect-ratio: 16/9; max-height: 69dvh; border-radius: 12px; background: #183441; object-fit: contain; }
/* Botón central: solo cubre su círculo y el rótulo, para no tapar los controles del vídeo. */
.av-marco { position: relative; }
.av-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.av-play-circulo { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border: 4px solid #fff; border-radius: 50%; background: #ff6b35; box-shadow: 0 6px 28px rgba(0,0,0,.4); transition: transform .15s, background .15s; }
.av-play svg { width: 54px; height: 54px; margin-left: 5px; fill: #fff; }
.av-play-texto { padding: 7px 16px; border-radius: 999px; background: #184c60; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,.3); }
.av-play:hover .av-play-circulo { background: #e85a28; transform: scale(1.08); }
@media(max-width:600px) { .av-play { gap: 6px; } .av-play-circulo { width: 64px; height: 64px; border-width: 3px; } .av-play svg { width: 36px; height: 36px; margin-left: 3px; } .av-play-texto { padding: 5px 11px; font-size: 12.5px; } }
@media(prefers-reduced-motion:reduce) { .av-play-circulo { transition: none; } }
.av-capitulos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.av-capitulos button, .av-guia { border: 1px solid #a8c9d5; border-radius: 999px; padding: 10px 14px; background: #fff; color: #184c60; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
.av-capitulos button:hover, .av-capitulos button[aria-current="step"] { background: #dceef5; border-color: #287d99; }
.av-guia { background: transparent; font-weight: 700; }
.av-error { padding: 12px; border: 1px solid #e2bfa9; border-radius: 10px; color: #813f1a; }
.av button:focus-visible { outline: 3px solid #ff7c35; outline-offset: 3px; }
@media(max-width:600px) { .av-caja { padding: 12px; } .av-cab h2 { font-size: 19px; } .av-capitulos { gap: 6px; } .av-capitulos button { padding: 10px 12px; font-size: 13px; } }
.av.av-inline { width: 100%; max-width: none; max-height: none; margin: 0 0 26px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.av-inline > .av-caja { padding: 0; }
.av.av-inline .av-cab h2 { margin: 0 0 4px; font-size: 19px; }
.av-inline .av-cab { flex-wrap: wrap; gap: 10px; }
.av-inline .av-capitulos { gap: 6px; }
.av-inline .av-capitulos button { padding: 9px 11px; font-size: 13px; }
.av-sonido { flex: none; border: 0; border-radius: 999px; padding: 11px 16px; background: #1f6672; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.av-sonido:hover { background: #164e58; }
