:root {
  --api-header-height: 64px;
}

html,
body {
  margin: 0;
  height: 100%;
  background-color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
}

/* ===============================
   HEADER HTML PROPIO
================================ */
.api-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--api-header-height);
  background: #020617;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid #020617;
}

.redoc-wrap {
  margin-top: var(--api-header-height);
}

/* Panel principal */
.redoc-wrap .api-content {
  padding-top: 24px;
}

/* ===============================
   boton registrate y titulo 
================================ */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-btn {
  background: #38bdf8;
  color: #ffffff;
  border: none;
  border-radius: 60px;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.header-btn:hover {
  opacity: 0.6;
}

/* ===============================
   MODAL
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #020617;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  color: #e5e7eb;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.modal label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  margin-bottom: 14px;
  gap: 6px;
}

.modal input {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px;
  color: #e5e7eb;
}

.modal input:focus {
  outline: none;
  border-color: #38bdf8;
}

/* ===============================
   BOTONES MODAL
================================ */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.btn-primary {
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}
/* ===============================
   MENSAJES FORMULARIO
================================ */
.form-message {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@media (max-width: 1023px) {
  .api-header {
    padding: 0 24px;
  }

  .header-left img {
    height: 32px;
  }

  .header-btn {
    padding: 12px 28px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  :root {
    --api-header-height: 56px;
  }

  .api-header {
    padding: 0 16px;
  }

  .header-left img {
    height: 28px;
    max-width: 120px;
  }

  .header-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
}

/* ===============================
   TOAST NOTIFICATIONS
================================ */
#toastContainer {
  position: fixed;
  top: calc(var(--api-header-height) + 16px);
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #020617;
  background: #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  animation: toastIn 0.3s ease forwards;
}

.toast.success {
  background: #22c55e;
  color: #052e16;
}

.toast.error {
  background: #ef4444;
  color: #450a0a;
}

.toast.info {
  background: #38bdf8;
  color: #020617;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 767px) {
  #toastContainer {
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }
}




/* /////////////////////////////////////// */
/* MENU */

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu {
  position: relative;
}

.menu-btn {
  background: #1e293b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  z-index: 999;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  color: #e5e7eb;
  text-decoration: none;
}

.dropdown a:hover {
  background: #1e293b;
  color: #e5e7eb;
}

.menu.active .dropdown {
  display: block;
}

/* MENU <-------------*/

/* seleccion  */


.ps ul ul label{
 background-color:#f7f7f7;
}

.ps ul .active{
 transform:translatex(0px) translatey(0px);
 background-color:#0193c0;
 color : white
 
}
.ps .active span{
 color:#ffffff;
}

.ps > ul > li > label{
 transform:translatex(0px) translatey(0px);
 color:#ffffff;
 font-size:100%;
 line-height:1.3em;
 font-weight:500;
}

/* seleccion <------ */

/* color cuando se despliega el listado */
.undefined ul ul span{
 color:#333333; 
}


/* boton de cargando en el proceso */
.loading-box{
  position:fixed;
  top:72px;
  right:30px;
  background:#020617;
  color:white;
  padding:10px 14px;
  border-radius:8px;
  display:none;
  align-items:center;
  gap:10px;
  box-shadow:0 8px 25px rgba(0,0,0,0.35);
  z-index:9999;
  font-size:13px;
}

.loading-spinner{
  width:22px;
  height:22px;
  border:3px solid rgba(255,255,255,0.2);
  border-top:3px solid #38bdf8;
  border-radius:50%;
  animation:spin 0.9s linear infinite;
}

.loading-time{
  font-size:12px;
  opacity:0.7;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}