/*
==============================================================================
Archivo     : public_html/css/cortina_privacidad.css
Fecha       : 12 de noviembre de 2026 (Optimizado Anti-FOUC sin parpadeo)
Propósito   : Estilos visuales de la cortina de privacidad para modo revisión.
Descripción : Bloqueo modal de pantalla completa con diseño sobrio y accesible
              en armonía con Pedro Soler TV. Compatible con CSP estricto.
==============================================================================
*/

/* Bloqueo preventivo instantáneo desde <head> para suprimir cualquier parpadeo de contenido */
html.pstv-bloqueado-inmediato body {
  opacity: 0 !important;
  visibility: hidden !important;
  background-color: #071524 !important;
}

/* Ocultar y desenfocar contenido subyacente mientras no esté autenticado */
body.pstv-bloqueado > *:not(#pstv-cortina-overlay) {
  filter: blur(8px);
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.15;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Contenedor principal de la cortina */
#pstv-cortina-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f0f6fc;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  visibility: visible;
}

#pstv-cortina-overlay.pstv-oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Tarjeta central de acceso */
.pstv-tarjeta-acceso {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  box-sizing: border-box;
}

.pstv-distintivo {
  display: inline-block;
  background-color: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pstv-titulo {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.pstv-subtitulo {
  font-size: 13px;
  color: #8b949e;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.pstv-instruccion {
  font-size: 13px;
  color: #c9d1d9;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Campo de clave y botón de entrada */
.pstv-formulario {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pstv-input-clave {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #f0f6fc;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pstv-input-clave:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

.pstv-boton-entrar {
  background-color: #238636;
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.1);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.pstv-boton-entrar:hover {
  background-color: #2ea043;
}

/* Mensaje de error */
.pstv-mensaje-error {
  display: none;
  color: #f85149;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.4;
}

.pstv-pie {
  font-size: 11px;
  color: #6e7681;
  margin-top: 24px;
}

/* Adaptación responsiva para pantallas móviles estrechas */
@media (max-width: 480px) {
  .pstv-tarjeta-acceso {
    padding: 24px 18px;
  }
  .pstv-titulo {
    font-size: 20px;
  }
  .pstv-subtitulo {
    font-size: 12px;
  }
  .pstv-input-clave {
    font-size: 15px;
    padding: 10px 12px;
  }
  .pstv-boton-entrar {
    font-size: 13px;
    padding: 10px 14px;
  }
}

