/* =========================================================
   RESET + BASE
   ========================================================= */
html { box-sizing: border-box; overflow-y: scroll; }
*, *:before, *:after { box-sizing: inherit; }

body{
  margin: 0;
  background: #f3f5f8;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* =========================================================
   HEADER (barra superior Boreal) — naranja -> blanco
   + eliminar cualquier marco/borde del logo
   ========================================================= */
.sc-topbar{
  position: relative;
  overflow: hidden;
  padding: 10px 0;

  background: linear-gradient(
    90deg,
    #ff6a00 0%,
    #ff7a00 30%,     /* naranja sólido más amplio */
    #ffb066 45%,     /* empieza el difuminado */
    #ffffff 65%,     /* blanco ya dominante */
    #ffffff 100%
  );
}

/* Capa de puntos (se desvanece hacia la derecha) */
.sc-topbar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background: radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px);
  background-size: 12px 12px;

  mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 75%);

  opacity: .6;
}

.sc-topbar__inner{
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  min-height: 85px;
}

/* ✅ matar borde/sombra de cualquier CSS heredado */
.sc-topbar__logo,
.sc-topbar__logo *{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sc-topbar__logo{
  padding: 0 !important;
  margin-left: -100px;
}

/* Logo Boreal (más grande) */
.sc-topbar__logo img{
  display:block;
  height: 68px;
  width:auto;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Logo Service Control (más grande) */
.sc-title-img{
  display:block;
  height: 60px;
  width:auto;
}

@media (max-width: 900px){
  .sc-topbar__inner{ flex-direction:column; align-items:flex-start; }
  .sc-topbar__logo img{ height: 58px; }
  .sc-title-img{ height: 50px; }
}



/* =========================================================
   SWAGGER UI: ocultar topbar original + limpieza
   ========================================================= */
.swagger-ui .topbar,
.swagger-ui .topbar-wrapper,
.swagger-ui .topbar .wrapper,
.swagger-ui .download-url-wrapper,
.swagger-ui .download-url-wrapper *{
  display:none !important;
}

.swagger-ui .scheme-container{
  margin:0 !important;
  padding:0 !important;
  box-shadow:none !important;
}

/* Oculta SOLO los badges (gris/verde) del título */
.swagger-ui .info .title .version-stamp,
.swagger-ui .info .title .version,
.swagger-ui .info .title small,
.swagger-ui .information-container .title .version-stamp,
.swagger-ui .information-container .title .version,
.swagger-ui .information-container .title small{
  display:none !important;
}

/* Ocultar Schemas */
.swagger-ui section.models{ display:none !important; }

/* Quitar URL base en info */
.swagger-ui .information-container .info .url{ display:none !important; }

/* Fondo info limpio */
.swagger-ui .information-container{ background: transparent !important; }

.swagger-ui .info .title,
.swagger-ui .info .description,
.swagger-ui .info .markdown{
  border-left:none !important;
  padding-left:0 !important;
  position: relative;
}

.swagger-ui .info{
  margin: 8px 0 12px !important;
  padding: 6px 0 !important;
}

.swagger-ui .info hgroup.main h2{
  font-size: 34px !important;
  font-weight: 800 !important;
  color:#1b2430 !important;
}

.swagger-ui .info p,
.swagger-ui .info ul{
  font-size: 14.5px !important;
  line-height: 1.55em !important;
  color:#3a4654 !important;
}


/* =========================================================
   CONTENEDOR SWAGGER (panel blanco premium)
   ========================================================= */
.sc-swagger{
  max-width: 1400px;
  margin: 22px auto 36px auto;
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.10);
  padding: 22px 22px 10px 22px;
}

/* En layout portal (grid), el margen lo gestiona api-shell */
.api-shell .sc-swagger{
  margin: 0 !important;
}

/* Wrapper para posicionar el selector sin que Swagger lo borre */
.sc-swagger-wrap{
  position: relative;
}

@media (max-width: 900px){
  .sc-swagger{
    padding: 16px 14px 8px 14px;
  }
}


/* =========================================================
   ENDPOINTS como cards
   ========================================================= */
.swagger-ui .opblock{
  border-radius: 14px !important;
  margin: 14px 0 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06) !important;
  overflow:hidden !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.swagger-ui .opblock:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.10) !important;
  border-color: rgba(0,0,0,0.14) !important;
}

.swagger-ui .opblock .opblock-summary{
  padding: 14px 16px !important;
}

.swagger-ui .opblock .opblock-summary-method{
  border-radius: 10px !important;
  padding: 7px 12px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
}


/* =========================================================
   LAYOUT PORTAL (Sidebar + Main)
   ========================================================= */
.api-shell{
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  padding: 18px 18px 0 18px;
}

/* Sidebar */
.api-sidebar{
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.api-sidebar,
.api-sidebar *{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.api-sidebar__header{
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.api-sidebar__title{
  font-weight: 900;
  font-size: 16px;
  color: #1b2430;
  letter-spacing: -0.01em;
}

.api-sidebar__search{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.api-sidebar__search input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 12px;
  outline: none;
  font-weight: 700;
  color: #1b2430;
  background: #f7f9fc;
}

.api-sidebar__search input:focus{
  border-color: rgba(0,0,0,0.22);
  background: #ffffff;
}

/* Nav (importante: esto evita los links “azules”) */
.api-sidebar__nav{
  padding: 10px 10px 14px 10px;
  overflow: auto;
}

.api-nav-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1b2430;
  font-weight: 600;
  font-size: 13.5px;
  margin: 6px 6px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.api-nav-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: #f7f9fc;
}

.api-nav-count{
  font-size: 12px;
  font-weight: 900;
  color: #5a6677;
  background: rgba(0,0,0,0.05);
  padding: 4px 8px;
  border-radius: 999px;
}

/* Main */
.api-main{
  min-width: 0;
}

/* Responsive layout */
@media (max-width: 1100px){
  .api-shell{ grid-template-columns: 1fr; }
  .api-sidebar{
    position: relative;
    height: auto;
  }
}


/* =========================================================
   SELECTOR IDIOMA (overlay dentro del panel blanco)
   ========================================================= */
.sc-swagger-lang{
  position: absolute;
  top: 16px;
  right: 18px;
  display:flex;
  align-items:center;
  gap:8px;
  z-index: 30;
  font:700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:#1b2430;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.sc-swagger-lang span{ opacity:.35; }

.sc-swagger-lang a{
  text-decoration:none;
  color:#1b2430;
  opacity:.70;
  padding:4px 6px;
  border-radius:10px;
  transition: background .15s ease, opacity .15s ease;
}

.sc-swagger-lang a:hover{
  opacity:1;
  background:rgba(0,0,0,.06);
}

.sc-swagger-lang a.is-active{
  opacity:1;
  background:rgba(0,0,0,.09);
  text-decoration:underline;
}


/* =========================================================
   FOOTER (claro premium) — con logo controlado
   ========================================================= */
.boreal-footer{
  background: #ffffff;
  color: #1b2430;
  padding: 22px 28px;
  margin-top: 50px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.boreal-footer,
.boreal-footer *{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bf-wrap{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  gap:18px;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items:center;
}

.bf-col{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.bf-left{ align-items:flex-start; }
.bf-right{ align-items:flex-end; }

/* Tamaño del logo footer */
.bf-logo{
  height: 48px;
  width: auto;
  object-fit: contain;
  display:block;
}

.bf-title{
  margin:0 0 8px 0;
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#5a6677;
}

.bf-center p{
  margin:0;
  font-size:14px;
  color:#5a6677;
  line-height:1.5;
}

.bf-ico{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ff7a00;
  opacity:.9;
}

.bf-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
}

.bf-link{
  color:#1b2430;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}

.bf-link:hover{
  color:#ff7a00;
}

@media (max-width: 900px){
  .bf-wrap{ grid-template-columns: 1fr; }
  .bf-right{ align-items:flex-start; }
}


/* =========================================================
   BOTÓN VOLVER ARRIBA (naranja)
   ========================================================= */
.scroll-top-btn{
  position: fixed;
  right: 30px;
  bottom: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #ff7a00;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .15s ease;
  z-index: 9999;
}

.scroll-top-btn.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover{
  background: #e56e00;
  transform: translateY(0) scale(1.08);
}


.api-ico {
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
    color: #6c757d; /* gris bootstrap elegante */
}

.api-sidebar__brand{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.api-sidebar__brand-logo{
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.api-ico {
  font-size: 20px;
  margin-right: 10px;
  vertical-align: middle;
  color: #6c757d;
}

/* Ocultar el nombre técnico del tag (auth_tag, health_tag, etc.) */
.opblock-tag small {
    display: none !important;
}

.sc-swagger.is-loading {
  visibility: hidden;
}

.sc-swagger.is-ready {
  visibility: visible;
}