/* Custom styles for Quantix Solutions */
/* global full-screen background */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  /* image path is relative to static/css/custom.css -> ../images/Fondo.jpg */
  background-color: #22252A;
  font-family: "IBM Plex Sans", sans-serif !important;
  border-color: transparent;
  font-weight: 700;
  }
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  border-color: transparent;
  background-color: transparent;
}

.card {
  background-color: rgb(253, 251, 248);
  border-color: transparent;
  height: 550px;
}
.card, .card-body {
  background-color: rgb(253, 251, 248);
  border-color: transparent;
  height: 100%;
  overflow-y: auto;
}

.border-light {
  border-color: #EEECEA !important;
}



.shadow {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7) !important;
}

/* Responsive font sizes */
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}

@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  h4 {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  h4 {
    font-size: 0.95rem;
  }
}
@media (max-width: 576px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1rem;
  }
}

img,
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-blue {
  color: #22252A;
  background-color: transparent;
}

.text-dark-blue {
  color: rgb(253,251,248);
  background-color: transparent;
}

.text-darker-blue {
  color: rgb(30, 77, 92);
  background-color: transparent;
}

/* ===== Navbar responsiva ===== */
.custom-navbar {
  position: fixed;
  top: 50%;
  left: clamp(0.5rem, 2vw, 1.5rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 15px;
  background-color: rgb(30, 77, 92) !important;
  border-color: rgb(30, 77, 92) !important;
  border-width: 2px !important;
  border-style: solid;
  width: clamp(160px, 18vw, 220px);
  min-width: 160px;
  height: fit-content;
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(0.4rem, 1vw, 0.5rem);
  z-index: 1000;
  transition: width 0.3s ease, padding 0.3s ease, left 0.3s ease;
}

/* Forzamos que el collapse siempre esté visible,
   ya que no hay botón toggler en el HTML */
.custom-navbar .navbar-collapse {
  display: flex !important;
  flex-basis: auto;
  width: 100%;
}

.custom-navbar .navbar-nav {
  flex-direction: column;
  width: 100%;
  gap: clamp(0.3rem, 1vw, 0.5rem);
}

.custom-navbar .nav-item {
  width: 100%;
  text-align: left;
}

.custom-navbar .nav-link,
.custom-navbar .btn {
  font-size: clamp(0.8rem, 1vw, 1rem);
  padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.5rem, 1vw, 0.75rem);
  white-space: nowrap;
}

/* ===== Layout general ===== */
.page-layout {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.page-content {
  margin-left: clamp(180px, 22vw, 260px);
  min-width: 0;
  transition: margin-left 0.3s ease;
}

/* ===== Tablet: navbar un poco más compacta ===== */
@media (max-width: 991px) {
  .custom-navbar {
    width: 170px;
    left: 1rem;
  }
  .page-content {
    margin-left: 200px;
  }
}

/* ===== Móvil: pasa de sidebar vertical a barra horizontal arriba ===== */
@media (max-width: 767px) {
  .custom-navbar {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    border-radius: 10px;
    margin: 0 0 1rem 0;
    padding: 0.6rem;
  }

  .custom-navbar .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .custom-navbar .nav-item {
    width: auto;
    text-align: center;
  }

  .page-layout {
    flex-direction: column;
    padding: 0 0.75rem;
  }

  .page-content {
    margin-left: 0;
  }
}

/* ===== Móvil muy pequeño: aún más compacto ===== */
@media (max-width: 400px) {
  .custom-navbar .nav-link,
  .custom-navbar .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

.hover-card {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  cursor: pointer;
}

.card {
  overflow: hidden;
}

.card-clickeable {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
}

.border-radius-25 {
  border-radius: 10px;
}

.form-control {
  color: rgba(34, 37, 42 ) !important;
  background-color: rgb(238, 236, 234) !important;
  border: rgba(34, 37, 42 ) solid 1px;
  border-radius: 10px;
  box-shadow: none;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.form-select {
  color: rgba(34, 37, 42 ) !important;
  background-color: rgb(238, 236, 234) !important;
  border: rgba(34, 37, 42 ) solid 1px;
  border-radius: 10px;
}

.form-select option {
  background-color: rgb(238, 236, 234, 0.5) !important;
  color: rgba(34, 37, 42 ) !important;
}

.form-control::placeholder {
  /* normal browsers */
  color: rgba(34, 37, 42 ); /* ← your custom colour */
  opacity: 1; /* Bootstrap sets opacity:0.7; override if needed */
}

@media (max-width: 768px) {
  .form-control {
    border-radius: 10px;
  }
}

.form-select-sm {
  color: rgba(34, 37, 42 ) !important;
  background-color: rgb(238, 236, 234, 0.5) !important;
  border: rgba(34, 37, 42 ) solid 1px;
  border-radius: 10px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

@media (max-width: 768px) {
  .user-text {
    display: none;
  }
}

.btn-blue {
  background-color: rgb(34, 37, 42);
  color: rgb(253, 251, 248);
  border: 2px solid rgb(253, 251, 248);
  border-radius: 10px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.btn-blue-op50 {
  background-color: rgb(253,251,248);
  color: rgb(34, 37, 42);
  border: none;
  border-radius: 10px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


.btn-outline-blue {
  background-color: rgb(253,251,248);
  color: rgb(34, 37, 42);
  border-color: rgb(34, 37, 42);
  border-radius: 10px;
  border-width: 2px;
  transition:
  box-shadow 0.25s ease,
  transform 0.25s ease;
}

.btn-dark-blue {
  background-color: rgb(30, 77, 92);
  color: rgb(238, 236, 234);
  border: none;
  border-radius: 10px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.btn-outline-dark-blue {
  color: rgb(30, 77, 92);
  background-color: rgb(238, 236, 234);
  border-color: rgb(30, 77, 92);
  border-radius: 10px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.btn-success {
  background-color:darkolivegreen;
  border: darkolivegreen;
}

.btn-warning {
  background-color: goldenrod;
}

.btn-danger {
  background-color: darkred;
  border: darkred;
}


.text-transparent {
  color:transparent;
  background-color: transparent;
}
.accordion-boder-color {
  border-color: rgb(238, 236, 234);
}

.accordion {
  background-color: transparent !important;
  border-color: rgb(238, 236, 234);
}

.accordion-item {
  background-color: transparent !important;
  border-color: transparent;
}

.accordion-header {
  background-color: rgb(238, 236, 234);
  border-color: rgb(238, 236, 234);
}

.accordion-body {
  background-color: rgb(253,251,248) !important;
  border-color: transparent;
  color: rgb(51, 42, 33);
}

.accordion-button {
  background-color: rgb(197, 226, 239);
  color: rgb(191, 131, 66);
  border-color: rgb(191, 131, 66);
}

.accordion-collapse {
  background-color: rgb(253,251,248) !important;
  border-color: rgb(191, 131, 66);
}

.accordion-button:not(.collapsed) {
  background-color: rgb(197, 226, 239);
  color: rgb(191, 131, 66);
  border-color: rgb(191, 131, 66);
}

/* ======== AUDIT POPOVER ======== */

.popover{
    background-color:#332F2B;
    border:2px solid #BF8342;
    border-radius:12px;
    max-width:350px;
    box-shadow:0 10px 25px rgba(0,0,0,.45);
}

.popover-header{
    background:#594E43;
    color:#BF8342;
    border-bottom:1px solid #8C6E4D;
    font-weight:700;
    font-size:1rem;
}

.popover-body{
    background:#332F2B;
    color:#F5F5F5;
    line-height:1.6;
    font-size:.92rem;
}

.popover-body b{
    color:#BF8342;
}

/* Flecha */

.bs-popover-bottom .popover-arrow::after{
    border-bottom-color:#332F2B;
}

.bs-popover-top .popover-arrow::after{
    border-top-color:#332F2B;
}

.bs-popover-start .popover-arrow::after{
    border-left-color:#332F2B;
}

.bs-popover-end .popover-arrow::after{
    border-right-color:#332F2B;
}

.text-medium {
  font-weight: 500;
  font-size: 1.25rem;
}

.text-big {
  font-weight: 500;
  font-size: 2rem;
}

.card-alert {
  background-color:  rgb(238, 236, 234) !important;
  border-radius: 10px;
  border-color: transparent;
  overflow: hidden;
}


.btn-alert {
  background-color: rgb(140, 110, 77, 0.5) !important;
  border-radius: 10px;
  border-color: transparent;
}

.register-card {
  background: rgb(253, 251, 248) !important;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  border: 1px solid rgb(140, 110, 77) !important;
}

.register-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: rgb(30, 77, 92);
}

.register-card .subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: rgb(30, 77, 92)
}

.field {
  position: relative;
  margin-bottom: 20px;
}

.field input {
  width: 100%;
  padding: 14px 14px 14px 40px;
  font-size: 14px;
  border: 1px solid rgb(34, 37, 42) !important;
  border-radius: 8px;
  background: rgb(253, 251, 248) !important;
  color: rgb(34, 37, 42);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: rgb(34, 37, 42, 0.7);
}

.field input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: #F04438;
}


.field:focus-within .icon {
  color: #2563EB;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background-color: rgb(253, 251, 248);
  color: rgb(30, 77, 92);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgb(30, 77, 92);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.submit-btn:hover {
  background: rgb(30, 77, 92);
}

.submit-btn:active {
  transform: scale(0.99);
}

.footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #667085;
}

.footer-link a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}

.footer-link a:hover {
  text-decoration: underline;
}

.bg-dark {
  background-color: rgb(238, 236, 234) !important;
}

.container {
  border-radius: 15px;
}

.bg-lightblue {
  background-color: rgb(30, 77, 92) !important;
}
  .qs-header .qs-subtitle {
    color: #5b6b82;
    font-size: .95rem;
    max-width: 560px;
    margin: 0 auto;
  }

  .qs-alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .15);
  }

  .qs-wizard {
    --qs-navy: #14315D;
    --qs-navy-dark: #0E2547;
    --qs-navy-soft: #E9F0FB;
    --qs-gold: rgb(30, 77, 92);
    --qs-gold-soft: #c5e2ef;
    --qs-ink: #1F2937;
    --qs-muted: #6B7280;
    --qs-border: #E3E8F0;
    --qs-radius: 16px;
    --qs-shadow: 0 20px 40px -24px rgba(20, 49, 93, .35);
    max-width: 980px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  /* Stepper */
  .qs-stepper {
    position: relative;
  }
  .qs-stepper.carousel-indicators {
    position: static;
    display: flex;
    justify-content: space-between;
    margin: 0 0 2.5rem;
    padding: 0;
  }
  .qs-stepper.carousel-indicators::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--qs-border);
    z-index: 0;
  }
  .qs-stepper.carousel-indicators [data-bs-target] {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex: 1;
    text-indent: 0;
    opacity: 1;
  }
  .qs-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--qs-border);
    color: var(--qs-muted);
    font-weight: 700;
    font-size: .95rem;
    position: relative;
    z-index: 1;
    transition: all .25s ease;
  }
  .qs-step-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--qs-muted);
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
    max-width: 90px;
  }
  .qs-stepper .active .qs-step-circle {
    background: var(--qs-navy);
    border-color: var(--qs-navy);
    color: #fff;
    box-shadow: 0 0 0 5px var(--qs-navy-soft);
  }
  .qs-stepper .active .qs-step-label { color: var(--qs-navy); }

  @media (max-width: 576px) {
    .qs-step-label { font-size: .6rem; max-width: 60px; }
    .qs-step-circle { width: 30px; height: 30px; font-size: .8rem; }
    .qs-stepper.carousel-indicators::before { top: 15px; }
  }

  /* Cards */
  .qs-card {
    background: #fff;
    border: 1px solid var(--qs-border);
    border-radius: var(--qs-radius);
    box-shadow: var(--qs-shadow);
    padding: 2rem 2rem 1.25rem;
  }
  @media (max-width: 576px) {
    .qs-card { padding: 1.25rem 1.25rem .75rem; }
  }
  .qs-card .qs-section-title {
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 800;
    padding-left: .8rem;
    border-left: 4px solid var(--qs-gold);
    margin: 2rem 0 1.25rem;
  }
  .qs-card .qs-section-title:first-child { margin-top: 0; }

  /* Fields */
  .qs-field { margin-bottom: 1.4rem; }
  .qs-field .form-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--qs-ink);
    margin-bottom: .4rem;
  }
  .qs-field .form-control,
  .qs-field .form-select {
    border-radius: 10px;
    border-color: var(--qs-border);
    padding: .6rem .9rem;
    font-size: .93rem;
  }
  .qs-field .form-control:focus,
  .qs-field .form-select:focus {
    border-color: var(--qs-navy);
    box-shadow: 0 0 0 3px var(--qs-navy-soft);
  }
  .qs-input-group .input-group-text {
    background: var(--qs-gold-soft);
    border-color: var(--qs-border);
    color: var(--qs-navy-dark);
    font-weight: 700;
    font-size: .85rem;
  }
  .qs-field .input-group .form-control {
    border-radius: 0;
  }
  .qs-field .input-group .input-group-text:first-child,
  .qs-field .input-group .form-control:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  .qs-field .input-group .input-group-text:last-child,
  .qs-field .input-group .form-control:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  /* Bottom nav */
  .qs-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
  }
  .qs-nav-progress {
    flex: 1;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--qs-muted);
    order: 2;
  }
  .qs-btn-prev {
    background: #fff;
    border: 1px solid var(--qs-border);
    color: var(--qs-ink);
    font-weight: 600;
    padding: .6rem 1.3rem;
    border-radius: 10px;
    order: 1;
  }
  .qs-btn-prev:hover { border-color: var(--qs-navy); color: var(--qs-navy); }
  .qs-btn-next {
    background: var(--qs-navy);
    border: 1px solid var(--qs-navy);
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: 10px;
    order: 3;
  }
  .qs-btn-next:hover { background: var(--qs-navy-dark); color: #fff; }
  .qs-btn-submit {
    display: none;
    padding: .65rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    order: 3;
  }

  .qs-wizard-body.is-first-step .qs-btn-prev { visibility: hidden; }
  .qs-wizard-body.is-last-step .qs-btn-next { display: none; }
  .qs-wizard-body.is-last-step .qs-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 576px) {
    .qs-nav { justify-content: center; }
    .qs-nav-progress { order: -1; width: 100%; margin-bottom: .5rem; }
  }

.plan-card {
  background: rgb(253, 251, 248);
  width: 100%;
  position: relative;
  padding: 1.75rem 1.6rem 1.5rem;
  clip-path: polygon(0 40px, 26px 0, calc(100% - 26px) 0, 100% 50px, 100% 100%, 0 100%);
  box-shadow: -8px 0 18px rgba(0,0,0,.22);
}

.plan-card + .plan-card{ margin-left: -16px; }
.plan-card.plan-basico{ z-index: 1; padding-top: 1.75rem; }
.plan-card.plan-pro{
  z-index: 2;
  padding-top: 2.5rem;
  outline: 2px solid var(--teal-light);
  outline-offset: -2px;
}
.plan-card.plan-premium{ z-index: 3; padding-top: 3.25rem; }

.no-hover:hover {
  background: rgb(253, 251, 248);
  color: rgb(34, 37, 42);
  border-color:rgb(34, 37, 42)
} 

.bg-light {
  background: transparent !important;
}

.text-blue-op60 {
  color: rgb(34, 37, 42, 0.60);
}


.hover-card-plan {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hover-card-plan:hover {
  transform: translateY(-4px);
  cursor: pointer;
  border:solid 3px rgb(30, 77, 92);
}
