/* Routsetter: vídeo en la pantalla de acceso (solo actúa cuando el script añade body.rsintro) */
body.rsintro #wrapper { position: relative; margin: 0; padding-top: 0; padding-bottom: 0; background: #000; overflow: hidden; }
body.rsintro #wrapper .breadcrumb { display: none; }
body.rsintro .rsintro-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
body.rsintro #wrapper > .container { position: relative; z-index: 1; }
body.rsintro #wrapper .wrapper-columns { margin-left: 0; margin-right: 0; }
body.rsintro #content-wrapper { padding: 0; }
body.rsintro #main { background: #fff; border-top: 4px solid #BF001D; border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 22px 22px 8px; }
body.rsintro #main .page-header { margin: 0 0 12px; text-align: center; }
body.rsintro #main .page-header h1 { font-size: 24px; margin: 0; }
body.rsintro #main #content { border: 0; box-shadow: none; margin: 0; padding: 0; background: transparent; }

/* Formulario en una sola columna dentro de la tarjeta */
body.rsintro .rs-pro-login .form-group.row { display: block; margin-left: 0; margin-right: 0; margin-bottom: 12px; }
body.rsintro .rs-pro-login .form-group.row > label,
body.rsintro .rs-pro-login .form-group.row > div { display: block; width: 100%; max-width: 100%; padding: 0; margin-left: 0; margin-right: 0; text-align: left; }
body.rsintro .rs-pro-login .form-group.row > label { margin-bottom: 4px; padding-top: 0; }
body.rsintro .rs-pro-login input.form-control { width: 100%; }
body.rsintro .rs-pro-login .input-group { display: flex; width: 100%; }
body.rsintro .rs-pro-login .input-group > input { flex: 1 1 auto; min-width: 0; }
body.rsintro .rs-pro-login .form-footer { padding-bottom: 0; }
body.rsintro .rs-pro-login .form-footer .btn { width: 100%; }
/* La línea separadora sobra cuando no hay nada debajo */
body.rsintro .rs-pro-hr:last-child { display: none; }

/* Formulario en el centro y el vídeo reproduciéndose detrás, atenuado */
body.rsintro #wrapper { display: flex; flex-direction: column; justify-content: center; min-height: 600px; min-height: max(520px, calc(100vh - var(--rsintro-top, 140px))); }
body.rsintro .rsintro-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; background: #000; }
/* Intensidad del vídeo: cuanto más alto el último número, más oscuro queda */
body.rsintro .rsintro-stage::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .45); }
body.rsintro #wrapper > .container.clearfix { width: 100%; max-width: none; padding: 32px 15px; }
body.rsintro #content-wrapper { flex: 0 0 100%; max-width: 440px; margin: 0 auto; }

/* Entrada a pantalla completa */
.rsintro-full { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; background: #000; transition: opacity .6s ease; }
.rsintro-full video { display: block; width: 100%; height: 100%; object-fit: cover; }
.rsintro-full.is-out { opacity: 0; pointer-events: none; }
.rsintro-skip, .rsintro-sound { position: absolute; bottom: 28px; padding: 10px 20px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 2px; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.rsintro-skip { right: 18px; }
.rsintro-sound { left: 18px; }
@media (max-width: 480px) { .rsintro-skip, .rsintro-sound { padding: 9px 11px; font-size: 12px; } .rsintro-skip { right: 12px; } .rsintro-sound { left: 12px; } }
/* En vertical se ve el plano completo sobre negro */
@media (orientation: portrait) { .rsintro-full video { object-fit: contain; } }

/* 30-11-2026: en la entrada el vídeo ocupa toda la pantalla, también detrás de la cabecera (sin faldón) */
body.rsintro { background: #000; }
body.rsintro #wrapper { position: static; overflow: visible; background: transparent; }
body.rsintro .rsintro-stage { position: fixed; z-index: 0; }
body.rsintro #header { background-image: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.15)) !important; background-color: transparent !important; }
body.rsintro #header:not(.fixed-top) { position: relative !important; z-index: 1030 !important; }
body.rsintro #footer { position: relative; z-index: 1; }
@media (max-width: 991px) { body.rsintro #header { background-image: none !important; background-color: #000 !important; } }
