@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.skp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.skp-overlay.skp-visible {
  opacity: 1;
}

html.skp-abierto,
html.skp-abierto body {
  overflow: hidden;
}

.skp-popup {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 440px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  line-height: 145%;
  text-align: left;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.15s ease;
}

.skp-overlay.skp-visible .skp-popup {
  transform: none;
}

.skp-popup *,
.skp-popup *::before,
.skp-popup *::after {
  box-sizing: border-box;
}

.skp-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
}

.skp-icono {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 145%;
}

.skp-aviso .skp-icono { background: #fff3cc; color: #9e6300; }
.skp-error .skp-icono { background: #fde8e8; color: #b42318; }
.skp-info  .skp-icono { background: #e8ecfa; color: #394a8f; }

.skp-cerrar {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #6d6d6d;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 145%;
  cursor: pointer;
}

.skp-cerrar:hover { color: #191919; }

.skp-titulo {
  margin: 0;
  color: #191919;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 145%;
}

.skp-texto {
  margin: 0;
  color: #6d6d6d;
  font-size: 14px;
  font-weight: 400;
  line-height: 145%;
  white-space: pre-line;
}

.skp-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6d6d6d;
  font-size: 14px;
  font-weight: 400;
  line-height: 145%;
}

.skp-texto + .skp-lista {
  margin-top: -16px;
}

.skp-lista li::before {
  content: "•\00a0\00a0";
}

.skp-ayuda {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8ecfa;
  color: #394a8f;
  font-size: 13px;
  font-weight: 400;
  line-height: 145%;
  white-space: pre-line;
}

.skp-ayuda a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.skp-ayuda a:hover {
  text-decoration: underline;
}

.skp-acciones {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}

.skp-boton {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: none;
  margin: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 145%;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.skp-boton-primario {
  border: 0;
  background: #394a8f;
  color: #ffffff;
}

.skp-boton-primario:hover { background: #2e3c75; }

.skp-boton-secundario {
  border: 1px solid #394a8f;
  background: #ffffff;
  color: #394a8f;
}

.skp-boton-secundario:hover { background: #e8ecfa; }

.skp-cerrar:focus-visible,
.skp-boton:focus-visible,
.skp-ayuda a:focus-visible {
  outline: 2px solid #394a8f;
  outline-offset: 2px;
}

.skp-campo-faltante {
  border-color: #d32f2f !important;
}

@media (max-width: 480px) {
  .skp-popup { padding: 24px 20px; }
  .skp-acciones { flex-direction: column-reverse; align-items: stretch; }
  .skp-boton { justify-content: center; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .skp-overlay,
  .skp-popup { transition: none; }
}
