/* ==========================================================
   VARIABLES DE COLOR
   ========================================================== */
:root {
  --violeta: #8e37d7;
  --celeste: #2cd8d5;
  --bg-light: #f4f7fb;
  --card-bg: #ffffff;
  --text-dark: #111;
  --text-muted: #6b7280;
  --radius: 18px;
  --radius-soft: 10px;
  --shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   RESETEO + TIPOGRAFÍA
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ==========================================================
   CABECERA + LOGO
   ========================================================== */
.st-header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.st-logo-img {
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
}

.st-title {
  font-size: 1.6rem;
  margin: 0;
  color: var(--violeta);
  font-weight: 600;
}

/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */
.st-container {
  padding: 0.5rem 1rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================
   CARDS / PASOS
   ========================================================== */
.st-step {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  position: relative;
}

/* Reflejo violeta + celeste */
.st-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(142, 55, 215, 0.35),
    rgba(44, 216, 213, 0.35)
  );
  z-index: -1;
  filter: blur(9px);
}

.st-step h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--violeta);
}

/* ==========================================================
   TOGGLE BUTTONS TV
   ========================================================== */
.st-toggle-group {
  display: flex;
  gap: 0.6rem;
}

.st-toggle-btn {
  flex: 1;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-soft);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  transition: 0.2s;
  font-weight: 500;
}

.st-toggle-btn--active {
  background: linear-gradient(135deg, #7a2fc0, #22c4c1);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: 0.2s ease;
}

.st-toggle-btn--active:hover {
  opacity: 0.92;
}

/* ==========================================================
   LABELS + SELECTS
   ========================================================== */
.st-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.st-select,
.st-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-soft);
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: 0.2s;
}

.st-select:focus,
.st-input:focus {
  border-color: var(--violeta);
  outline: none;
}

/* ==========================================================
   BOTONES
   ========================================================== */
.st-btn-primary,
.st-btn-secondary {
  border-radius: var(--radius-soft);
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}

.st-btn-primary {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--violeta), var(--celeste));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.st-btn-primary:hover {
  opacity: 0.95;
}

.st-btn-secondary {
  background: #fff;
  border: 2px solid #e5e7eb;
  color: var(--text-dark);
}

.st-btn-secondary:hover {
  border-color: var(--violeta);
  color: var(--violeta);
}

/* ==========================================================
   TOTAL
   ========================================================== */
.st-total {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
  color: var(--violeta);
}

/* ==========================================================
   BANNER DEPÓSITO
   ========================================================== */
.st-info-banner {
  background: #ffffff;
  color: var(--violeta);
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.80rem;
  border-radius: 10px;
  margin: 0.5rem auto 1rem;
  max-width: 480px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.st-info-link {
  margin-left: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-soft); /* 10px */
  border: none;
  background: linear-gradient(135deg, #7a2fc0, #22c4c1);
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.st-info-link:hover {
  opacity: 0.92;
}


/* ==========================================================
   MODAL DEPÓSITO
   ========================================================== */
.st-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.st-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.st-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow-y: auto;
}

.st-modal h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: var(--violeta);
}

.st-modal p,
.st-modal li {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.st-modal ul {
  padding-left: 1.2rem;
  margin: 0 0 0.75rem;
}

.st-modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Botón "Entendido" dentro del modal */
.st-modal-ok {
  margin-top: 0.5rem;
}

/* Campos dentro de modales */
.st-field {
  margin-bottom: 0.75rem;
}

/* Contenedor de botones en modales */
.st-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columnas iguales */
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Botones del modal: mismo tamaño y estilo limpio */
.st-modal-actions .st-btn-primary,
.st-modal-actions .st-btn-secondary {
  width: 100%;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
  margin-top: 0; /* que no hereden el margen del botón principal global */
}

/* Secundario: borde gris, fondo blanco */
.st-modal-actions .st-btn-secondary {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: var(--text-dark);
}

/* Primario: degradado Sistec */
.st-modal-actions .st-btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--violeta), var(--celeste));
  color: #ffffff;
}

/* ==========================================================
   CHECKBOX PERSONALIZADO EN MODAL
   ========================================================== */
.st-check-row {
  margin-top: 0.25rem;
}

.st-check-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Ocultamos el checkbox nativo */
.st-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Caja visual del check */
.st-check-custom {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease;
}

/* “Tick” interno */
.st-check-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--violeta), var(--celeste));
  opacity: 0;
  transition: 0.2s ease;
}

/* Estado marcado */
.st-check-input:checked + .st-check-custom {
  border-color: var(--violeta);
}

.st-check-input:checked + .st-check-custom::after {
  opacity: 1;
}
