/* =============================================================
   MICONTENIDOVIP — Estilos de registro, acceso y verificación
   Se carga después de styles.css y solo añade; no pisa nada.
   ============================================================= */

/* Los formularios necesitan poder seleccionar texto.
   styles.css lo bloquea globalmente para proteger el contenido. */
input, textarea, label, .seleccionable {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* --- Campos ------------------------------------------------- */
.campo {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .6);
  border: 1px solid #374151;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.campo::placeholder { color: #6b7280; }
.campo:focus {
  border-color: #c71585;
  box-shadow: 0 0 0 3px rgba(199, 21, 133, .18);
}
.campo:disabled { opacity: .55; cursor: not-allowed; }

.etiqueta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 6px;
}
.ayuda { font-size: 12px; color: #6b7280; margin-top: 5px; line-height: 1.5; }

.campo-clave { position: relative; }
.campo-clave .ojo {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #6b7280; cursor: pointer;
  padding: 6px; font-size: 15px;
}
.campo-clave .ojo:hover { color: #f472b6; }

/* --- Medidor de contraseña ---------------------------------- */
.medidor-pista { height: 4px; background: #1f2937; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.medidor-barra { height: 100%; width: 0; border-radius: 99px; transition: width .3s ease, background .3s ease; }

/* --- Selector de rol ---------------------------------------- */
.opcion-rol { cursor: pointer; }
.opcion-rol input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-rol .caja {
  border: 1.5px solid #2d3748;
  background: rgba(0, 0, 0, .45);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: all .2s ease;
  height: 100%;
}
.opcion-rol:hover .caja { border-color: #6b2350; }
.opcion-rol input:checked + .caja {
  border-color: #c71585;
  background: rgba(199, 21, 133, .1);
  box-shadow: 0 0 22px rgba(199, 21, 133, .22);
}
.opcion-rol input:focus-visible + .caja { outline: 2px solid #f472b6; outline-offset: 2px; }
.opcion-rol .caja i { font-size: 22px; color: #6b7280; transition: color .2s; }
.opcion-rol input:checked + .caja i { color: #f472b6; }

/* --- Casillas del código de 6 dígitos ------------------------ */
.casillas { display: flex; gap: 8px; justify-content: center; }
.casillas input {
  width: 46px; height: 58px;
  text-align: center;
  font-size: 26px; font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  border: 1.5px solid #374151;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font-family: ui-monospace, Consolas, monospace;
}
.casillas input:focus {
  border-color: #c71585;
  box-shadow: 0 0 0 3px rgba(199, 21, 133, .2);
  transform: translateY(-2px);
}
@media (max-width: 380px) {
  .casillas { gap: 5px; }
  .casillas input { width: 40px; height: 52px; font-size: 22px; }
}

/* --- Pasos --------------------------------------------------- */
.pasos { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 26px; }
.paso-punto {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: #1a1a1a; color: #6b7280; border: 1.5px solid #2d3748;
  flex-shrink: 0;
}
.paso-punto.activo { background: linear-gradient(135deg, #c71585, #f472b6); color: #fff; border-color: transparent; }
.paso-punto.hecho  { background: #14532d; color: #86efac; border-color: #166534; }
.paso-linea { width: 34px; height: 2px; background: #2d3748; }
.paso-linea.hecho { background: #166534; }

/* --- Zona de subida de documentos ---------------------------- */
.zona-subida {
  border: 2px dashed #374151;
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  background: rgba(0, 0, 0, .35);
  position: relative;
  min-height: 156px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.zona-subida:hover, .zona-subida.arrastrando { border-color: #c71585; background: rgba(199, 21, 133, .07); }
.zona-subida.lista { border-color: #22c55e; border-style: solid; background: rgba(34, 197, 94, .06); padding: 0; overflow: hidden; }
.zona-subida input[type=file] { display: none; }
.zona-subida .vista { width: 100%; height: 156px; object-fit: cover; border-radius: 14px; }
.zona-subida .quitar {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .8); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.zona-subida .quitar:hover { background: #dc2626; }

/* --- Tarjeta contenedora ------------------------------------- */
.tarjeta-auth {
  background: #121212;
  border: 1px solid rgba(199, 21, 133, .28);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 0 45px rgba(199, 21, 133, .13);
}
@media (max-width: 420px) { .tarjeta-auth { padding: 24px 18px; } }

/* --- Aviso / nota -------------------------------------------- */
.nota {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(199, 21, 133, .07);
  border: 1px solid rgba(199, 21, 133, .22);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13px; color: #d1d5db; line-height: 1.6;
}
.nota i { color: #f472b6; margin-top: 2px; flex-shrink: 0; }
.nota.seguro { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.22); }
.nota.seguro i { color: #4ade80; }

/* --- Botón principal ----------------------------------------- */
.btn-pri {
  width: 100%;
  padding: 14px;
  border: 0; border-radius: 13px;
  background: linear-gradient(135deg, #c71585, #f472b6);
  color: #fff; font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  min-height: 48px;
}
.btn-pri:hover:not(:disabled) { opacity: .92; }
.btn-pri:active:not(:disabled) { transform: scale(.985); }
.btn-pri:disabled { opacity: .6; cursor: wait; }

.btn-sec {
  width: 100%; padding: 12px;
  border: 1px solid #c71585; border-radius: 13px;
  background: transparent; color: #f472b6; font-weight: 600;
  cursor: pointer; transition: background .2s; min-height: 46px;
}
.btn-sec:hover { background: rgba(199, 21, 133, .1); }

/* --- Accesibilidad -------------------------------------------- */
:focus-visible { outline: 2px solid #f472b6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
