@charset "utf-8";
/* REELS (videos IA verticales): estante solo en mobile + visor a pantalla completa con swipe */

.solo_mobile {display:none;}

/* ESTANTE */
.grupo.grupo_reels {max-width:none;}
.reels_estante {display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:0 1% 8px 1%; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.reels_estante::-webkit-scrollbar {display:none;}
.reel_card {flex:0 0 auto; width:40vw; max-width:180px; aspect-ratio:9/16; position:relative; display:block; border-radius:10px; overflow:hidden; scroll-snap-align:start; background:#ddd;}
.reel_card_thumb {width:100%; height:100%; object-fit:cover; display:block;}
.reel_card::after {content:''; position:absolute; left:0; right:0; bottom:0; height:45%; background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.78));}
.reel_card_title {position:absolute; left:8px; right:8px; bottom:8px; z-index:1; color:#fff; font-size:13px; font-weight:500; line-height:1.15; text-shadow:0 1px 2px rgba(0,0,0,.5);}
.reel_card_icono {position:absolute; top:7px; right:7px; z-index:1; width:22px; height:22px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));}

/* VISOR: debajo de la cabecera (z-index 99), por debajo del menú (9999) */
html.reels_abierto, html.reels_abierto body {overflow:hidden; overscroll-behavior:none;}
.reels {position:fixed; left:0; right:0; bottom:0; top:70px; z-index:98; background:#000; color:#fff; outline:none;}
.reels[hidden] {display:none;}
.reels_scroll {height:100%; overflow-y:auto; scroll-snap-type:y mandatory; overscroll-behavior:contain; scrollbar-width:none;}
.reels_scroll::-webkit-scrollbar {display:none;}

.reel {height:100%; display:flex; flex-direction:column; scroll-snap-align:start; scroll-snap-stop:always;}
.reel_video {flex:1 1 auto; min-height:0; position:relative; background:#000 center / contain no-repeat;}
.reel_video iframe {position:absolute; top:0; left:0; width:100%; height:100%; border:0; background:#000; opacity:0; transition:opacity .3s ease;}
.reel.cargado .reel_video iframe {opacity:1;}
.reel.activo:not(.cargado) .reel_video::after {content:''; position:absolute; top:50%; left:50%; width:38px; height:38px; margin:-19px 0 0 -19px; border-radius:50%; border:3px solid rgba(255,255,255,.25); border-top-color:#fff; animation:reels_gira .8s linear infinite;}

.reel_info {flex:0 0 64px; display:flex; align-items:center; padding:8px 104px 8px 14px; background:#000; border-top:1px solid #1d1d1d;}
.reel_textos {min-width:0;}
.reel_title {font-size:15px; font-weight:700; line-height:1.2; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.reel_serie {font-size:12px; color:#a9a9a9; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.reels button {-webkit-appearance:none; appearance:none; cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent;}
.reels_cerrar {position:absolute; top:10px; right:10px; z-index:2; width:38px; height:38px; border-radius:50%; border:0; background:rgba(0,0,0,.55);}
.reels_cerrar svg {width:22px; height:22px; fill:#fff;}
.reels_nav {position:absolute; right:10px; bottom:12px; z-index:2; display:flex; gap:8px;}
.reels_nav button {width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.08);}
.reels_nav button svg {width:24px; height:24px; fill:#fff;}
.reels_nav button:disabled {opacity:.3; cursor:default;}

.reels_hint {position:absolute; left:50%; bottom:84px; z-index:2; transform:translateX(-50%); display:flex; align-items:center; gap:6px; white-space:nowrap; padding:8px 14px; border-radius:20px; background:rgba(0,0,0,.7); font-size:13px; pointer-events:none; opacity:0; transition:opacity .4s ease;}
.reels_hint.visible {opacity:1;}
.reels_hint svg {width:18px; height:18px; fill:#fff; animation:reels_sube 1s ease-in-out infinite;}

@keyframes reels_gira {to {transform:rotate(360deg);}}
@keyframes reels_sube {0%,100% {transform:translateY(3px);} 50% {transform:translateY(-3px);}}

@media (max-width:768px) {
	.solo_mobile {display:block;}
}
