/* Reset básico y selección deshabilitada */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #f4f6f8;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

/* -------------------------------------------
   ESTILOS DE LA PANTALLA DE ACCESO (GATEWAY)
------------------------------------------- */
#auth-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #121212;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-card {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.auth-card h3 {
  margin-bottom: 10px;
  color: #fff;
}

.auth-card p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.auth-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: center;
  outline: none;
}

.auth-input:focus {
  border-color: #007acc;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.auth-btn:hover {
  background-color: #1b5e20;
}

.error-msg {
  color: #ff5555;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

/* -------------------------------------------
   ESTILOS DEL VISOR RESPONSIVO
------------------------------------------- */
#main-content {
  display: none; /* Oculto hasta autenticarse */
  width: 100%;
  max-width: 900px;
  flex-direction: column;
  align-items: center;
}

h2 {
  margin: 10px 0;
  font-size: 1.2rem;
  text-align: center;
  color: #2e7d32;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #f4f6f8;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  background-color: #1b5e20;
}

.btn:disabled {
  background-color: #1b5e20;
  color: #777;
  cursor: not-allowed;
}

.document-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.document-container {
  position: relative;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
}

.document-page {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.protection-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  pointer-events: auto;
}

.watermark-text {
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(1rem, 4vw, 2.2rem);
  font-weight: bold;
  transform: rotate(-25deg);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.banner-img {
  max-width: 100%;    /* Impide que la imagen sea más ancha que su contenedor */
  width: 100%;        /* Ocupa el 100% en pantallas pequeñas */
  height: auto;       /* Mantiene las proporciones originales */
  display: block;     /* Elimina el espacio blanco extra debajo de la imagen */
  border-radius: 8px; /* Opcional: redondea los bordes para encajar mejor */
}

@media print {
  body { display: none !important; }
}