@import "variables.css";
@import "normalize.css";
@import "bulma.min.css";

/* ===== GLOBAL STYLES ===== */
/*Font*/
@font-face {
  font-family: 'HankenGrotesk';
  src: url('../webfonts/HankenGrotesk-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: var(--font-family-hankengrotesk-regular);
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/*Blur*/
.blur-white {
  background-color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px);
}

.blur {
  backdrop-filter: blur(10px);
}

/*Icons*/
.icons-dark-mode {
  color: var(--black);
}

.logo {
  width: 60px;
  height: 50px;
  object-fit: contain;
  background-color: var(--white);
  border-radius: 12px;
}

/*Schedule*/
.reason input[type="radio"]:checked+label {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/*===== LOADER =====*/
#loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.fade {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SIGN IN ===== */
.hero.has-background {
  background-image: url('../images/png/img-login.png');
  background-size: cover;
  background-position: center;
}

.section-login {
  height: 97%;
}

.small-text-login {
  font-size: 10px;
}

/* Social buttons */
.social-btn {
  width: 111px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 0 0.5rem;
  border: 1px solid #dbdbdb;
}

.social-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.custom-icon {
  font-size: 24px;
}



.progress-inner {
  display: flex;
  align-items: center;
}

.vprogress {
  position: relative;
  width: 16px;
  height: var(--bar-h);
  margin: 0 1rem;
  border-radius: 999px;
  background: var(--neutral-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.vprogress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: var(--fill);
  border-radius: 999px;
  background: var(--secondary);
  transition: height .35s ease, width .35s ease;
}

.vnode {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: var(--pos);
  bottom: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  z-index: 2;
}

.vnode.is-top {
  transform: translate(-50%, 0);
}

.vnode.is-bottom {
  transform: translate(-50%, -100%);
}

.vnode.is-current {
  background: #fff;
  border-color: var(--blue-agendar);
  box-shadow: 0 4px 10px rgba(47, 47, 162, .25);
}

.vnode.is-filled {
  background: var(--blue-hover);
  border-color: #fff;
}

.steps-legend {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--bar-h);
  padding-left: .25rem;
}

.legend-item.is-current {
  color: var(--neutral-blue);
  font-weight: 800;
}

.section--fill {
  min-height: 100vh;
}

/* Responsive: barra horizontal arriba */
@media (max-width:768px) {
  :root {
    --bar-h: 240px;
  }

  .progress-inner {
    display: block;
  }

  .vprogress {
    width: 100%;
    height: 16px;
    margin: 1rem 0;
  }

  .vprogress__fill {
    height: 100%;
    width: var(--fill);
  }

  .vnode {
    top: 50%;
    bottom: auto;
    left: var(--pos);
    transform: translate(-50%, -50%) !important;
  }

  .steps-legend {
    height: auto;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
    padding-left: 0;
  }
}

/* ===== FORM UTILITIES ===== */



.code-inputs {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.code-inputs input {
  width: 48px;
  height: 48px;
  text-align: center;
}

.info-box {
  background-color: #e8f1fc;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 1rem;
  font-size: .85rem;
  margin-bottom: 2rem;
}

.input.is-soft-rounded {
  border-radius: 12px !important;
  height: 3rem;
  padding: .75rem 1rem;
  font-size: 1rem;
}




/* ==== NAVBAR ==== */
.navbar-app {
  position: fixed;
  left: 65px;
  width: calc(100% - 65px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 1rem;
  user-select: none;
  z-index: 2;
  /*background-color: var(--neutral-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);*/
}


.navbar-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  z-index: 1;
}

/* Campana de notificación */
@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.shake {
  animation: shake 1s infinite ease-in-out;
}

.bell-btn:hover .shake {
  animation: shake 0.6s;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  height: 100%;
  width: 340px;
  background: var(--primary);
  z-index: 2;
  transition: all 0.5s ease;
}

.sidebar.close {
  width: 65px;
}

.sidebar.close .logo-details .logo_name {
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links {
  height: 100%;
  overflow: auto;
}

.sidebar.close .nav-links {
  overflow: visible;
}

.sidebar .nav-links li {
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}

.sidebar .nav-links li:hover {
  background: #1d1b31;
}

.sidebar .nav-links li .iocn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar.close .nav-links li .iocn-link {
  display: block;
}

.sidebar .nav-links li i {
  height: 50px;
  min-width: 70px;
  text-align: center;
  line-height: 50px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar .nav-links li.showMenu i.arrow,
.arrow.rotate {
  transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
  display: none;
}

.sidebar .nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar.close .nav-links li a .link_name {
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links li .sub-menu {
  padding: 6px 6px 14px 80px;
  margin-top: -10px;
  background: #1d1b31;
  display: none;
}

.sidebar .nav-links li.showMenu .sub-menu {
  display: block;
}

.sidebar .nav-links li .sub-menu a {
  font-size: 16px;
  padding: 5px 0;
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.3s ease;
  color: var(--blue-1);
}

.sidebar .nav-links li .sub-menu a:hover {
  opacity: 1;
  color: var(--baby-blue);
}

.sidebar.close .nav-links li .sub-menu {
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}

.sidebar.close .nav-links li:hover .sub-menu {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}

.sidebar .nav-links li .sub-menu .link_name {
  display: none;
}

.sidebar.close .nav-links li .sub-menu .link_name {
  font-size: 18px;
  opacity: 1;
  display: block;
}

/* ========== CONTENIDO PRINCIPAL ========== 
.home-section {
  padding: 60px 2rem 0px 2rem;
  left: 95px;
  position: relative;
  min-height: 100vh;
  width: calc(100% - 96px);
  z-index: 1;
}*/

/* Flecha para submenús */
.arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  user-select: none;
}

/* Icono menú */
.fa-bars {
  font-size: 35px;
  color: var(--secondary);
  cursor: pointer;
  transition: font-size 0.3s;
  padding-left: 20px;
  margin-top: 1rem;
}

/* ========== NOTIFICACIONES Y USUARIO ========== */
.notification-count {
  position: absolute;
  top: 5px;
  right: 9px;
  background: var(--secondary);
  padding: 1px 4px;
  border-radius: 30px;
  line-height: 1;
  min-width: 18px;
}

.notification-menu,
.user-menu {
  position: relative;
}

/* Dropdown general */
.notification-menu .dropdown-menu,
.user-menu .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 10px;
  border-radius: 16px;
  width: 180px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--dropdown-border);
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  overflow: hidden;
}

.notification-menu .dropdown-menu.show,
.user-menu .dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.notification-menu .dropdown-menu a,
.user-menu .dropdown-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.user-menu .dropdown-menu a:hover {
  background-color: var(--primary);
}

/* == HOME ==*/

/* Header pegajoso */
.mobile-step-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -.5rem -.5rem .75rem;
  padding: .75rem .85rem;
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mobile-step-header .chip {
  display: inline-block;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--ink);
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  list-style: none;
  margin: 0;
  position: relative;
}

.step-dots li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-dots .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--dot-size)*0.42);
  letter-spacing: .02em;
  background: var(--neutral-lightest);
  color: var(--neutral-dark);
  border: 1px solid var(--grid);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  user-select: none;
  position: relative;
  z-index: 1;
}

.step-dots .dot.is-complete {
  background: var(--secondary);
  color: var(--white);
  border-color: transparent;
}

.step-dots .dot.is-active {
  background: var(--primary);
  color: var(--white);
}

.dlabel {
  display: none;
  margin-top: .4rem;
  font-size: .9rem;
  line-height: 1.15;
  text-align: center;
  max-width: 160px;
}

/* Línea base + progreso */
.step-dots::before {
  content: "";
  position: absolute;
  left: var(--line-start, 0px);
  top: var(--line-y, 50%);
  height: 4px;
  width: calc(var(--line-end, 0px) - var(--line-start, 0px));
  transform: translateY(-50%);
  background: var(--neutral-lightest);
  border-radius: 999px;
}

.step-dots::after {
  content: "";
  position: absolute;
  left: var(--line-start, 0px);
  top: var(--line-y, 50%);
  height: 4px;
  transform: translateY(-50%);
  width: var(--line-progress, 0px);
  background: var(--secondary);
  border-radius: 999px;
  transition: width .28s ease;
}

.container.is-max-desktop {
  max-width: 900px;
}

/* Estilos de apoyo */
.filters {
  gap: .5rem;
  flex-wrap: wrap;
}

.filters .button .tag {
  margin-left: .5rem;
}

.results-list li+li {
  margin-top: .5rem;
}

.is-clickable {
  cursor: pointer;
}

.etiqueta {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  border: 1px solid var(--grid);
  transition: transform .25s ease;
}

.etiqueta:hover {
  transform: translateY(-2px);
}

.etq-head {
  background: var(--background);
  padding: .8rem 1rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.etq-head h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

/* Estados */
.badge-activo,
.badge-inactivo {
  font-weight: 800;
  padding: .25rem .7rem;
  border-radius: 999px;
  letter-spacing: .3px;
  font-size: .8rem;
}

.badge-activo {
  background: var(--white);
  color: var(--success);
}

.badge-inactivo {
  background: var(--white);
  color: var(--danger);
}


.placas {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin-top: .5rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  border: 1px dashed var(--primary);
  font-weight: 800;
  letter-spacing: .5px;
  background: var(--neutral-strong-blue);
  color: var(--surface);
}

@media (prefers-color-scheme: dark) {
  .placas {
    background: #142440;
    color: #d7e2ff;
    border-color: rgba(255, 255, 255, .28);
  }
}

.soft-divider {
  height: 2px;
  background: var(--divider);
  margin: .75rem 0;
}

@media (prefers-color-scheme: dark) {
  .soft-divider {
    background: var(--divider);
  }
}

.image.is-64x64 img {
  object-fit: contain;
}

/* ===== Stepper base ===== */
.steps {
  position: relative;
}

.step-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Línea de fondo */
.step-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 2px;
  background: var(--background);
}

/* Línea de progreso */
.step-list::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  height: 2px;
  width: var(--progress, 0%);
  background: var(--success);
  transition: width .3s ease;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.step-button:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 4px;
  border-radius: 8px;
}

.step-marker {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--neutral-lightest);
  color: var(--neutral-dark);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.step-marker::before {
  content: attr(data-step);
}

.step-label {
  font-size: .9rem;
  color: var(--neutral);
  white-space: nowrap;
}

/* Estados */
.is-active .step-marker {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.is-active .step-label {
  color: var(--white);
  font-weight: 600;
}

.is-complete .step-marker {
  background: var(--success);
  color: var(--white);
}

.is-complete .step-marker::before {
  content: "✓";
  font-weight: 900;
}

.is-complete .step-label {
  color: var(--neutral-dark);
}

/* Responsive: ocultar etiquetas en móviles muy estrechos */
@media (max-width: 420px) {
  .step-label {
    display: none;
  }
}

/* Carro que avanza sobre la pista */
.step-car {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 3;
  font-size: 28px;
  line-height: 1;
  transition: left .35s ease;
  pointer-events: none;
}

/* Helpers varios */
.cat-section+.cat-section {
  border-top: 1px solid rgba(10, 10, 10, .07);
  padding-top: 1rem;
  margin-top: 1rem;
}

.width-100 {
  width: 100%;
}

.is-fullheight {
  height: 100%;
}



.page-content {
  width: 100%;
  min-height: calc(100vh - 180px);
}




/* Campana de notificación */
@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.shake {
  animation: shake 1s infinite ease-in-out;
}

.bell-btn:hover .shake {
  animation: shake 0.6s;
}


/* ========== CONTENIDO PRINCIPAL ========== */
.home-section {
  padding: 90px 0.5rem 0px 0.5rem;
  left: 75px;
  position: relative;
  min-height: 100vh;
  width: calc(100% - 96px);
  z-index: 1;
}

/* Flecha para submenús */
.arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  user-select: none;
}

/* Icono menú */
.bx-menu {
  font-size: 40px;
  color: var(--secondary);
  cursor: pointer;
  transition: font-size 0.3s;
  padding-left: 15px;
  margin-top: 1rem;
}

/* ========== NOTIFICACIONES Y USUARIO ========== */
.notification-count {
  position: absolute;
  top: 5px;
  right: 9px;
  background: var(--secondary);
  padding: 1px 4px;
  border-radius: 30px;
  line-height: 1;
  min-width: 18px;
}

.notification-menu,
.user-menu {
  position: relative;
}

.user-button {
  display: flex;

  align-items: center;

  gap: 10px;
  user-select: none;
  cursor: pointer;
}

.user-button img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.user-name {
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown general */
.notification-menu .dropdown-menu,
.user-menu .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 10px;
  border-radius: 16px;
  width: 180px;
  max-height: 280px;
  overflow-y: auto;
  border: #aaa8ba4a 1px solid;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  overflow: hidden;
}

.notification-menu .dropdown-menu.show,
.user-menu .dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.notification-menu .dropdown-menu a,
.user-menu .dropdown-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.user-menu .dropdown-menu a:hover {
  background-color: var(--primary);
}



/* ========== MEDIA QUERIES ========== */

@media (max-width: 768px) {
  .navbar-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .user-name {
    display: none;
  }

  .navbar-app {
    margin-top: 0;
    padding: 0.5rem 1rem;

    width: 85%;
  }

  .navbar-left {
    margin-bottom: 10px;
  }

  .navbar-left .input.is-rounded {
    width: 100%;
  }
}

@media screen and (max-width: 468px) {
  .navbar-app {
    left: 60px;
  }

  .sidebar {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
  }

  .sidebar.close {
    width: 78px;
  }

  .home-section {
    left: 0;
    width: 100%;
    padding: 70px 1rem 0px 6rem;
  }

}

/*





 .flatpickr-calendar.inline {
      max-width: 100%;
    }