/* ===============================
   VARIABLES GLOBALES
================================ */
:root {
  --api-header-height: 64px;
}

/* ===============================
   BASE
================================ */
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;
}

/* ===============================
   AJUSTE GLOBAL REDOC
================================ */
.redoc-wrap {
  margin-top: var(--api-header-height);
}

/* Sidebar (posición correcta bajo el header) */
.redoc-wrap .menu-content {
  top: var(--api-header-height) !important;
  height: calc(100vh - var(--api-header-height)) !important;
  padding-top: 20px;
}

/* Panel principal */
.redoc-wrap .api-content {
  padding-top: 24px;
}



/* ===============================
   CÓDIGO / JSON (Slate-like) #00B8F1
   #020617
================================ */
code,
pre {
  background-color: #020617 !important;
  color: #ebebeb !important;
  border-radius: 6px;
}

.redoc-json {
  background-color: #020617 !important;
}

/* ===============================
   LINKS Y TÍTULOS
================================ */
a {
  color: #38bdf8 !important;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

/* ===============================
   QUITAR BRANDING REDOCLY
================================ */
.redoc-logo {
  display: none;
}


/* ===============================
   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%;
  }
}

#redoc .menu-content{
 background-color:#00B8F1;
}

.api-content div h1{
 font-weight:700;
 text-align:center;
}

/* descraga menu  */


  /* body {
    font-family: Arial, sans-serif;
  }

  .menu {
    position: relative;
    display: inline-block;
  }

  .menu-btn {
    background: #1f3c88;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
  }

  .dropdown {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 5px;
  }

  .dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
  }

  .dropdown a:hover {
    background: #f2f2f2;
  }

  .menu.active .dropdown {
    display: block;
  } */

  .api-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* MENU */
.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;
}

/* ===== FIX REAL REDOC CON HEADER FIXED ===== */

/* #redoc-container {
  margin-top: var(--api-header-height);
  height: calc(100vh - var(--api-header-height));
}

#redoc-container .redoc-wrap {
  height: 100%;
}

#redoc-container .menu-content {
  background-color: #00B8F1 !important;
  height: calc(100vh - var(--api-header-height)) !important;
} */

.ps ul ul label{
 background-color:#ffffff;
}

.ps > ul > li > label{
 transform:translatex(0px) translatey(0px);
 color:#ffffff;
 font-size:100%;
 line-height:1.3em;
 font-weight:500;
}

.undefined ul ul span{
 color:#333333;
}