@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 0.5s;
}

:root {
  color-scheme: light;
  --color-fondo: #fbfaf5;
  --color-carta: #000000;
  --color-azul-oscuro: #020d26;
  --color-azul-claro: #00b2e3;
  --color-verde: #76bc21;
  --radius-grande: 36px;
  /*root para el background*/
  --primary-blue: #00b2e3;
  --dark-blue: #020d26;
  --green-accent: #76bc21;
  --white: #ffffff;
  --primary-blue-rgb: 0, 178, 227;
  --dark-blue-rgb: 2, 13, 38;
  --green-accent-rgb: 118, 188, 33;
  --btn-secundary-hover: #3b4044;
}

* {
  box-sizing: border-box;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(2, 13, 38, 0.25);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: var(--color-azul-claro);
  border-color: var(--color-azul-claro);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-carta);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-fondo);
  background-position: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 6vw, 3rem);
  transition: background-color 0.3s ease;
}

.login-container {
  width: min(90vw, 960px);
  margin: 0 auto;
}

.login-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  color: var(--color-azul-oscuro);
  border-radius: var(--radius-grande);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(2, 13, 38, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
}

@media (min-width: 1290px) {
  .login-card {
    flex-direction: row;
  }
}

.login-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 70px rgba(2, 13, 38, 0.45);
}

.login-card__content {
  width: 100%;
  padding: clamp(2rem, 3.8vw, 2.4rem) clamp(1.4rem, 3.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 1280px) {
  .login-card__content {
    width: 50%;
  }
}

.login-card__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2rem);
  width: 100%;
  max-width: clamp(20rem, 42vw, 23rem);
  margin: 0 auto;
}

.login-logo-wrapper {
  display: flex;
  justify-content: center;
}

.login-logo {
  height: clamp(9rem, 18vw, 12rem);
  width: auto;
  filter: drop-shadow(0 10px 26px rgba(2, 13, 38, 0.28)) drop-shadow(0 4px 12px rgba(0, 178, 227, 0.18));
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.login-header h1 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 0;
  color: var(--color-azul-oscuro);
  text-shadow: 0 6px 18px rgba(2, 13, 38, 0.15);
}

.login-header p {
  margin: 0;
  color: rgba(2, 13, 38, 0.65);
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(2, 13, 38, 0.75);
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  width: 100%;
}

.login-input {
  height: 2.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #f2f2f2;
  color: var(--color-azul-oscuro);
  padding: 0 1.25rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.login-input--toggle {
  padding-right: clamp(3rem, 16vw, 9.5rem);
}

.login-input-wrapper--icon,
.login-input-wrapper--toggle {
  gap: 0.65rem;
}

.login-input-wrapper--icon {
  padding-left: 0.35rem;
}

.login-input-wrapper--phone {
  align-items: center;
  gap: 0.5rem;
}

.register-phone-prefix {
  font-weight: 400;
  color: var(--color-azul-oscuro);
  padding: 0.5rem 0.85rem;
  background-color: #f2f2f2;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.register-phone-input {
  padding-left: 1rem;
}

.register-field-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(2, 13, 38, 0.7);
}

.login-input-wrapper--icon .login-input,
.login-input-wrapper--toggle .login-input {
  flex: 1;
}

.login-input--select {
  appearance: none;
  -webkit-appearance: none;
  background: #f2f2f2 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23020D26" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"/%3E%3C/svg%3E') no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

.register-options {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  color: rgba(2, 13, 38, 0.7);
}

.register-options--expanded {
  padding-bottom: 0;
}

.register-toggle-params {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-azul-oscuro);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.register-toggle-params--active {
  color: var(--color-azul-claro);
}

.register-password-rules {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  width: min(100%, 320px);
  min-width: 240px;
  list-style: disc;
  padding: 1rem 1.25rem 1rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.75);
  background-color: #ffffff;
  border: 1px solid rgba(2, 13, 38, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2, 13, 38, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.28s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 5;
}

.register-password-rules--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.register-terms input {
  margin-top: 0.2rem;
  transform: scale(1.1);
}

.swal2-popup {
  border-radius: 16px !important;
}

.register-terms a {
  color: var(--color-verde);
  font-weight: 600;
}

.login-input::placeholder {
  color: rgba(2, 13, 38, 0.55);
}

.login-input:focus {
  outline: none;
  border-color: #00b2e3;
  box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.25);
}

.login-input:focus+.login-toggle,
.login-input-wrapper:focus-within .login-toggle {
  color: #00b2e3;
}

/* Quitar el ojo de la contraseña 👁 */
.login-input[type="password"]::-ms-reveal,
.login-input[type="password"]::-ms-clear {
  display: none;
}

.form-input[type="password"]::-ms-reveal,
.form-input[type="password"]::-ms-clear {
  display: none;
}

.login-input-wrapper:focus-within {
  transform: translateY(-1px);
}

.login-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #00b2e3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  transition: transform 0.2s ease;
}

.login-toggle:hover {
  transform: translateY(-50%) scale(1.05);
}

.login-toggle--active {
  color: #00b2e3;
}

.login-toggle__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.login-toggle__icon-open,
.login-toggle__icon-closed {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-toggle__icon-closed {
  opacity: 0;
  transform: scale(0.9);
}

.login-toggle--active .login-toggle__icon-open {
  opacity: 0;
  transform: scale(0.9);
}

.login-toggle--active .login-toggle__icon-closed {
  opacity: 1;
  transform: scale(1);
}

.login-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(2, 13, 38, 0.65);
}

.login-form__actions--right {
  justify-content: flex-end;
}

.login-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  accent-color: var(--color-verde);
}

.login-link {
  color: #000000;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--color-azul-claro);
}

.login-button {
  height: clamp(2.35rem, 5.5vw, 2.6rem);
  border-radius: 24px;
  border: none;
  background-color: #00b2e3;
  color: #ffffff;
  font-size: clamp(0.92rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover {
  background-color: #00b2e3;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.login-button--secondary {
  background-color: rgba(0, 178, 227, 0.22);
  color: var(--color-azul-oscuro);
  margin-top: 0.4rem;
}

.login-button--secondary:hover {
  background-color: rgba(0, 178, 227, 0.32);
  color: var(--color-azul-oscuro);
}

.login-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  color: rgba(2, 13, 38, 0.5);
  font-weight: 600;
  margin: 0.75rem 0 0.7rem;
}

.login-divider span:first-child,
.login-divider span:last-child {
  height: 1px;
  background: rgba(2, 13, 38, 0.2);
  display: block;
}

.login-divider span:nth-child(2) {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.login-button--google {
  background: rgba(0, 178, 227, 0.08);
  color: #000000;
  border: 1px solid rgba(0, 178, 227, 0.18);
  gap: 0.45rem;
}

.login-button--google:hover {
  background: rgba(0, 178, 227, 0.16);
  border-color: rgba(0, 178, 227, 0.32);
  color: #000000;
}

.login-button__icon {
  width: clamp(1rem, 3vw, 1.2rem);
  height: clamp(1rem, 3vw, 1.2rem);
  display: block;
}

.login-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(2, 13, 38, 0.6);
}

.login-card__media {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 32vw, 340px);
}

@media (min-width: 1290px) {
  .login-card__media {
    width: 50%;
  }
}

.login-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Dashboard styles */

.dashboard-body {
  background: linear-gradient(135deg,
      rgba(2, 13, 38, 0.08),
      rgba(0, 178, 227, 0.12));
  color: var(--color-azul-oscuro);
  min-height: 100vh;
  margin: 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.48s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 6px;
  gap: 6px;
}

.dashboard-shell--sidebar-collapsed {
  grid-template-columns: 92px 1fr;
}

.navbar-dashboard {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Optional shadow for depth */
}

.navbar-dashboard .dropdown-toggle {
  gap: 0.5rem;
  /* Ensure space between elements */
}

.navbar-dashboard .dropdown-toggle::after {
  margin-left: 0.8rem;
  /* Push arrow away from image */
  vertical-align: middle;
  position: static;
  /* Reset positioning if needed */
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.25rem 2rem;
  background: linear-gradient(160deg,
      rgba(2, 13, 38, 0.98),
      rgba(2, 13, 38, 0.92));
  color: #ffffff;
  box-shadow: 12px 0 40px rgba(2, 13, 38, 0.25);
  position: sticky;
  top: 6px;
  height: calc(100vh - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  transition: padding 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.48s ease;
  backdrop-filter: blur(20px);
  border-radius: 16px;
}

.dashboard-sidebar>* {
  transition: opacity 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.48s cubic-bezier(0.19, 1, 0.22, 1);
}

.dashboard-sidebar__brand span,
.dashboard-sidebar__balance,
.dashboard-nav__section,
.dashboard-nav__label {
  transition: opacity 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    max-height 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    max-width 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    margin 0.48s cubic-bezier(0.19, 1, 0.22, 1),
    padding 0.48s cubic-bezier(0.19, 1, 0.22, 1);
}

.dashboard-sidebar__brand span,
.dashboard-nav__section {
  display: block;
}

.dashboard-sidebar__balance {
  max-height: 160px;
}

.dashboard-nav__label {
  display: inline-flex;
  align-items: center;
  overflow: visible;
  white-space: nowrap;
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dashboard-nav__link {
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, gap 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    padding 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.dashboard-nav__link--submenu {
  padding-right: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
}

.dashboard-nav__link--submenu.active .dashboard-nav__caret {
  transform: rotate(90deg);
}

.dashboard-nav__caret {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.dashboard-nav__link--submenu:hover .dashboard-nav__caret {
  opacity: 1;
  transform: translateX(2px);
}

.dashboard-nav__link--submenu.active:hover .dashboard-nav__caret {
  transform: rotate(90deg) translateX(2px);
}

.dashboard-nav__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.15rem;
  padding-left: 0.25rem;
}

.dashboard-nav__submenu.active {
  max-height: 500px;
}

.dashboard-nav__sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem 0.6rem 3rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 11px;
  margin: 0.1rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dashboard-nav__sublink:hover {
  background-color: rgba(0, 178, 227, 0.12);
  color: #ffffff;
  transform: translateX(2px);
  text-decoration: none;
}

.dashboard-nav__sublink .dashboard-nav__icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 0.95rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-nav__sublink .dashboard-nav__icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-nav__sublink:hover .dashboard-nav__icon {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* Aqui se debe editar */
.dashboard-nav__sublink.dashboard-nav__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 50%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 2px 2px 0;
}

.dashboard-nav__sublink.dashboard-nav__link--active {
  font-weight: 500;
}

.dashboard-nav__sublink.dashboard-nav__link--active .dashboard-nav__icon {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  margin: 8px 0;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      rgba(0, 178, 227, 0.4),
      rgba(118, 188, 33, 0.3));
  border-radius: 999px;
  transition: background 0.3s ease;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      rgba(0, 178, 227, 0.6),
      rgba(118, 188, 33, 0.5));
}

.dashboard-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 178, 227, 0.4) rgba(255, 255, 255, 0.03);
}

/* Dashboard Topbar Widgets Container */
.dashboard-topbar-widgets {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Wallet Widget - Flat Design Inline */
.global-wallet {
  position: relative;
  display: flex;
  align-items: center;
}

.global-wallet__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-azul-oscuro);
  border: none;
  border-radius: 50%;
  padding: 1rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 600;
  width: 48px;
  height: 48px;
}

.global-wallet__toggle:hover {
  background: #03112e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 13, 38, 0.25);
}

.global-wallet__toggle:active {
  transform: translateY(0);
}

.global-wallet__toggle .global-wallet__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ffffff;
}

.global-wallet__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #ffffff;
}

.global-wallet__icon svg {
  width: 100%;
  height: 100%;
}

.global-wallet__amount-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-wallet__amount-display span {
  font-size: 0.85rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.global-wallet__amount-display strong {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Expanded state for large amounts */
/* Removed max-width as button is now circular with fixed dimensions */

.global-wallet__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 280px;
  background: var(--color-azul-oscuro);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(2, 13, 38, 0.3);
}

.global-wallet__panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.global-wallet__panel-header .global-wallet__icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem;
}

.global-wallet__panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #ffffff;
}

.global-wallet__panel-title strong {
  font-size: 1rem;
  font-weight: 600;
}

.global-wallet__panel-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.global-wallet__panel-amount {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #ffffff;
}

.global-wallet__panel-amount span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.global-wallet__panel-amount strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-azul-claro);
}

.global-wallet__panel-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.global-wallet__panel-actions button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wallet-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
  }
}

.global-wallet__panel-actions button:first-child {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.global-wallet__panel-actions button:first-child:hover {
  background: rgba(255, 255, 255, 0.18);
}

.global-wallet__panel-actions button:last-child {
  background: var(--color-azul-claro);
  color: #ffffff;
}

.global-wallet__panel-actions button:last-child:hover {
  background: #00c5f7;
  transform: translateY(-1px);
}

.global-wallet__panel-actions button:active {
  transform: translateY(0);
}

.global-wallet--expanded .global-wallet__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-wallet--expanded .global-wallet__toggle {
  background: #03112e;
  box-shadow: 0 4px 12px rgba(2, 13, 38, 0.25);
}

@media (max-width: 767px) {
  .global-wallet__toggle {
    width: 44px;
    height: 44px;
    padding: 0.85rem;
  }

  .global-wallet__panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: -1rem;
    left: auto;
    transform: translateX(0) translateY(-10px);
    min-width: 280px;
    width: auto;
    max-width: calc(100vw - 3rem);
    padding: 1.1rem 1.2rem;
  }

  .global-wallet--expanded .global-wallet__panel {
    transform: translateX(0) translateY(0);
  }

  .global-wallet__panel-actions {
    flex-direction: column;
  }
}

#dashboard-sidebar[data-collapsed="true"] {
  padding: 3.5rem 1.1rem 3.25rem;
  align-items: center;
  gap: 1.2rem;
}

#dashboard-sidebar[data-collapsed="true"]>* {
  width: 100%;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-sidebar__brand,
#dashboard-sidebar[data-collapsed="true"] .dashboard-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-sidebar__brand span {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-sidebar__balance {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  max-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__section {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__label {
  opacity: 0;
  transform: translateX(-12px);
  max-width: 0;
  margin: 0;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__caret {
  opacity: 0;
  transform: translateX(-12px);
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-sidebar__brand {
  gap: 0.25rem;
  margin-top: 0;
  padding: 1rem 0.5rem;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-sidebar__brand img {
  width: 200%;
  max-width: 85px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 178, 227, 0.35));
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav {
  align-items: center;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__link {
  justify-content: center;
  gap: 0;
  padding: 0.5rem;
  width: 56px;
  height: 56px;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__icon {
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
}

#dashboard-sidebar[data-collapsed="true"] .dashboard-nav__icon svg {
  width: 22px;
  height: 22px;
}

.dashboard-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 1rem 0;
}

.dashboard-sidebar__brand img {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 178, 227, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dashboard-sidebar__brand img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 16px 36px rgba(0, 178, 227, 0.6));
}

.dashboard-sidebar__brand span {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
}

.dashboard-sidebar__balance {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.18),
      rgba(118, 188, 33, 0.12));
  border-radius: 18px;
  padding: 1rem 1.2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dashboard-sidebar__balance:hover {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.25),
      rgba(118, 188, 33, 0.18));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 178, 227, 0.2);
}

.dashboard-sidebar__balance strong {
  font-size: 1.25rem;
  color: var(--white);
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
}

.dashboard-nav__section {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin: 0.75rem 0 0.35rem;
  display: none;
}

.dashboard-nav__link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 0.875rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dashboard-nav__link:hover {
  background-color: rgba(0, 178, 227, 0.12);
  color: #ffffff;
  transform: translateX(2px);
  text-decoration: none;
}

.dashboard-nav__link--active {
  background: linear-gradient(135deg, #00b2e3, #76bc21);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 178, 227, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  font-weight: 500;
  transform: translateX(0);
}

.dashboard-nav__link--active .dashboard-nav__icon {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-nav__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 3px 3px 0;
}

.dashboard-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-nav__icon svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.dashboard-nav__link:hover .dashboard-nav__icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.dashboard-nav__link:active {
  transform: scale(0.98);
}

.dashboard-main {
  padding: 2.25rem clamp(2rem, 6vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #f8f9fa;
  min-height: 100vh;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-sidebar-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease,
    color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.mobile-menu-handle {
  display: none;
}

.dashboard-sidebar-toggle:hover,
.dashboard-sidebar-toggle:focus-visible {
  background: rgba(0, 178, 227, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.dashboard-sidebar-toggle:active {
  transform: translateY(0);
}

.dashboard-sidebar-toggle__icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  transition: transform 0.3s ease;
}

.dashboard-shell--sidebar-collapsed .dashboard-sidebar-toggle__icon {
  transform: rotate(-45deg);
}

.dashboard-topbar__title h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2rem);
  color: var(--color-azul-oscuro);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.dashboard-topbar__icon svg {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  stroke: currentColor;
  fill: none;
}

.dashboard-topbar__title p {
  margin: 0.35rem 0 0;
  color: rgba(2, 13, 38, 0.6);
  font-size: 0.95rem;
}

.dashboard-topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 13, 38, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  box-shadow: 0 6px 16px rgba(2, 13, 38, 0.15);
  transform: translateY(-2px);
}

.mobile-menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.mobile-menu-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-azul-oscuro);
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

/* Hide toggle button when menu is active - simple fade */
.mobile-menu-toggle.active {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dashboard-user {
  position: relative;
}

.dashboard-user__trigger {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 12px 28px rgba(2, 13, 38, 0.08);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-user__trigger:hover {
  box-shadow: 0 16px 32px rgba(2, 13, 38, 0.12);
  transform: translateY(-2px);
}

.dashboard-user__trigger[aria-expanded="true"] {
  box-shadow: 0 16px 32px rgba(0, 178, 227, 0.15);
}

.dashboard-user__trigger[aria-expanded="true"] .dashboard-user__caret {
  transform: rotate(180deg);
}

.dashboard-user__avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(0, 178, 227, 0.12);
  color: var(--color-azul-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dashboard-user__info {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.7);
  text-align: left;
}

.dashboard-user__info strong {
  color: var(--color-azul-oscuro);
  font-size: 0.95rem;
}

.dashboard-user__caret {
  color: var(--color-azul-oscuro);
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
}

.dashboard-user__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(2, 13, 38, 0.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
  overflow: hidden;
}

.dashboard-user__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dashboard-user__dropdown-header {
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-azul-oscuro);
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
}

.dashboard-user__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--color-azul-oscuro);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.dashboard-user__dropdown-item:hover {
  background: rgba(0, 178, 227, 0.06);
}

.dashboard-user__dropdown-item svg {
  color: var(--color-azul-claro);
  flex-shrink: 0;
}

.dashboard-user__dropdown-item--logout {
  border-top: 1px solid #f3f4f6;
}

.dashboard-user__dropdown-item--logout svg {
  color: #ef4444;
}

.dashboard-user__dropdown-item--logout:hover {
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
}

.dashboard-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px 28px 0 0;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card--wallet:hover,
.dashboard-card--vehicles:hover,
.dashboard-card--packages:hover,
.dashboard-card--movements:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card--wallet::before {
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
}

.dashboard-card--vehicles::before {
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
}

.dashboard-card--packages::before {
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
}

.dashboard-card--movements::before {
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
}

.dashboard-card--wallet .dashboard-card__icon {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(118, 188, 33, 0.15));
  color: #00b2e3;
}

.dashboard-card--vehicles .dashboard-card__icon {
  background: linear-gradient(135deg,
      rgba(2, 13, 38, 0.12),
      rgba(0, 178, 227, 0.12));
  color: #020d26;
}

.dashboard-card--packages .dashboard-card__icon {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(2, 13, 38, 0.15));
  color: #00b2e3;
}

.dashboard-card--movements .dashboard-card__icon {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(118, 188, 33, 0.15));
  color: #76bc21;
}

.dashboard-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(2, 13, 38, 0.6);
}

.dashboard-card__header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-azul-oscuro);
  margin: 0;
}

.dashboard-card__header-title span {
  font-weight: 600;
}

.dashboard-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(0, 178, 227, 0.1);
  color: var(--color-azul-oscuro);
  font-size: 1.1rem;
}

.dashboard-card header button {
  border: none;
  background: rgba(0, 178, 227, 0.12);
  color: var(--color-azul-oscuro);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-card header button:hover {
  background: rgba(0, 178, 227, 0.2);
}

.dashboard-card__pill {
  background: rgba(0, 178, 227, 0.12);
  color: var(--color-azul-oscuro);
  border-radius: 16px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-card__value {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-azul-oscuro);
  margin: 0.5rem 0;
}

.dashboard-card>p {
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.55);
  margin: 0;
  line-height: 1.4;
}

.dashboard-card--wallet {
  grid-column: span 4;
  background: #ffffff;
}

.dashboard-card--packages {
  grid-column: span 4;
  background: #ffffff;
}

.dashboard-card--vehicles {
  grid-column: span 4;
  background: #ffffff;
}

.dashboard-card--movements {
  grid-column: span 12;
}

.dashboard-card__chart {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-bar__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 178, 227, 0.12);
}

.dashboard-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.8),
      rgba(118, 188, 33, 0.8));
}

.dashboard-bar__value {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.dashboard-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-table__header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.6);
  gap: 0.5rem;
}

.dashboard-table__empty {
  border: 1px dashed rgba(2, 13, 38, 0.12);
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  color: rgba(2, 13, 38, 0.5);
  font-size: 0.9rem;
}

.dashboard-summary {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(2, 13, 38, 0.7);
}

.dashboard-summary li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 178, 227, 0.1);
  border-radius: 16px;
}

.dashboard-summary strong {
  font-size: 1.15rem;
  color: var(--color-azul-oscuro);
}

.dashboard-card__legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(2, 13, 38, 0.6);
}

.dashboard-forecast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.dashboard-forecast__line {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.6);
}

.dashboard-forecast__bar {
  width: 18px;
  border-radius: 999px;
  background: rgba(0, 178, 227, 0.15);
}

.dashboard-forecast__bar--primary {
  background: linear-gradient(180deg,
      rgba(0, 178, 227, 0.85),
      rgba(2, 13, 38, 0.85));
}

.dashboard-forecast__bar--secondary {
  background: linear-gradient(180deg,
      rgba(118, 188, 33, 0.75),
      rgba(0, 178, 227, 0.6));
}

.dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.dot--blue {
  background: #00b2e3;
}

.dot--green {
  background: #76bc21;
}

@media (max-width: 1199px) {
  .dashboard-shell {
    grid-template-columns: 240px 1fr;
  }

  .dashboard-card--wallet,
  .dashboard-card--vehicles,
  .dashboard-card--packages {
    grid-column: span 4;
  }

  .dashboard-card--movements {
    grid-column: span 12;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .dashboard-shell {
    grid-template-columns: 220px 1fr;
  }

  .dashboard-sidebar {
    padding: 1.5rem 1rem;
  }

  .dashboard-sidebar__brand {
    padding: 0 0.5rem;
  }

  .dashboard-sidebar__brand span {
    font-size: 0.875rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dashboard-card--wallet,
  .dashboard-card--vehicles,
  .dashboard-card--packages {
    grid-column: span 3;
  }

  .dashboard-card--movements {
    grid-column: span 6;
  }
}

@media (max-width: 850px) and (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card--wallet,
  .dashboard-card--vehicles,
  .dashboard-card--packages {
    grid-column: span 1;
  }

  .dashboard-card--movements {
    grid-column: span 2;
  }

  .dashboard-card {
    padding: 1.4rem;
  }

  .dashboard-card__icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar-toggle {
    display: none;
  }

  .dashboard-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    /* Override desktop sticky top: 0 */
    width: 100%;
    height: 50vh;
    max-height: 500px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 2rem 1.5rem 1.5rem;
    overflow-y: auto;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -8px 32px rgba(2, 13, 38, 0.3);
    backdrop-filter: blur(10px);
    background: linear-gradient(160deg,
        rgba(2, 13, 38, 0.98),
        rgba(2, 13, 38, 0.95));
  }

  .dashboard-sidebar.mobile-active {
    transform: translateY(0);
  }

  /* Mobile menu drag handle button */
  .mobile-menu-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-handle::after {
    content: "";
    width: 48px;
    height: 5px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3));
    border-radius: 999px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }

  .mobile-menu-handle:hover::after {
    opacity: 0.9;
  }

  .dashboard-sidebar__brand {
    margin-bottom: 1.5rem;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card {
    grid-column: span 2 !important;
    padding: 1.2rem;
  }

  .dashboard-card__value {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .dashboard-card header {
    font-size: 0.85rem;
  }

  .dashboard-card__icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .dashboard-table__header {
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .dashboard-table__empty {
    padding: 1rem;
    font-size: 0.85rem;
  }

  /* Overlay para cerrar el menú */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 13, 38, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 479px) {
  .dashboard-main {
    padding: 1.5rem;
  }

  .dashboard-user {
    width: 100%;
    justify-content: center;
  }
}

.login-card__overlay {
  display: none;
}

.login-card__stats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem;
  pointer-events: none;
}

.login-badge {
  backdrop-filter: blur(18px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 1rem;
  max-width: 16rem;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease;
}

.login-badge span {
  display: block;
}

.login-badge__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.login-badge__value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.login-badge__subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}

.login-badge--inverted {
  margin-left: auto;
  text-align: left;
}

.login-card__media:hover img {
  transform: scale(1.05);
}

.login-card__media:hover .login-badge {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 1280px) {
  .login-container {
    width: min(72vw, 920px);
  }

  .login-card {
    border-radius: 32px;
  }

  .login-card__content {
    padding: clamp(1.9rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 1.9rem);
  }

  .login-card__media {
    min-height: clamp(240px, 28vw, 320px);
  }
}

@media (max-width: 1023px) {
  .login-card {
    border-radius: 32px;
  }

  .login-card__content {
    padding: clamp(1.8rem, 5vw, 2.3rem) clamp(1.3rem, 5vw, 1.9rem);
  }
}

@media (max-width: 767px) {
  .login-card__content {
    padding: clamp(1.75rem, 6vw, 2.1rem) clamp(1.15rem, 6vw, 1.75rem);
  }

  .login-card__stats {
    padding: 1.5rem;
  }
}

@media (max-width: 639px) {
  .login-body {
    padding: clamp(1.2rem, 6vw, 2rem) clamp(0.75rem, 6vw, 1.5rem);
  }

  .login-card {
    border-radius: 26px;
    box-shadow: 0 20px 40px rgba(2, 13, 38, 0.28);
  }

  .login-card__content-wrapper {
    max-width: 100%;
    gap: clamp(1.4rem, 6vw, 1.8rem);
  }

  .login-header h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .login-card__media {
    order: -1;
    min-height: clamp(180px, 60vw, 260px);
  }

  .login-card__media img {
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 479px) {
  .login-card {
    border-radius: 22px;
  }

  .login-card__content {
    padding: clamp(1.4rem, 8vw, 1.8rem) clamp(0.9rem, 8vw, 1.35rem);
  }

  .login-card__content-wrapper {
    gap: clamp(1.25rem, 7vw, 1.6rem);
  }

  .login-form {
    gap: clamp(0.65rem, 6vw, 0.85rem);
  }

  .login-button {
    border-radius: 22px;
    font-size: clamp(0.9rem, 4vw, 0.96rem);
  }

  .login-button--secondary,
  .login-button--google {
    min-height: clamp(2.3rem, 7vw, 2.55rem);
  }

  .register-toggle-params {
    font-size: 0.88rem;
  }

  .register-password-rules {
    font-size: 0.8rem;
  }
}

/* ========================================
   MIS DATOS - PROFILE & USER DATA MODULE
   ======================================== */

.profile-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0rem;
}

@media (min-width: 1290px) {
  .profile-section {
    grid-template-columns: 320px 1fr;
    gap: 2rem;
  }
}

/* Profile Card */
.profile-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(2, 13, 38, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
  border-radius: 28px 28px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(2, 13, 38, 0.16);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-card__avatar-wrapper {
  position: relative;
}

.profile-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--color-azul-oscuro) 0%,
      var(--color-azul-claro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 178, 227, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover .profile-card__avatar {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 178, 227, 0.4);
}

.profile-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  margin: 0;
  text-align: center;
}

.profile-card__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card__info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.profile-card__info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-card__info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.profile-card__info-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-azul-oscuro);
  text-align: right;
}

.profile-card__info-value--active {
  color: var(--color-verde);
  font-weight: 600;
}

/* User Data Card */
.user-data-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(2, 13, 38, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.user-data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
  border-radius: 28px 28px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.user-data-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(2, 13, 38, 0.16);
}

.user-data-card:hover::before {
  opacity: 1;
}

.user-data-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.user-data-card__header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  margin: 0;
}

.user-data-card__icon {
  font-size: 1.5rem;
}

/* Form Styles */
.user-data-form {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-row--four-cols {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row--four-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .form-row--four-cols {
    grid-template-columns: 1.5fr 1.5fr 0.8fr 1.2fr;
  }
}

.form-row--two-cols {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row--two-cols {
    grid-template-columns: 1fr 2fr;
  }
}

.form-row--with-button {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row--with-button {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1631px) {
  .form-row--with-button {
    grid-template-columns: minmax(200px, 1fr) minmax(250px, 1.5fr) auto;
    align-items: end;
  }

  .password-section .form-row--with-button {
    grid-template-columns: 1fr 1fr auto;
  }
}

/* Ajuste responsive para user-data-card en pantallas medianas */
@media (min-width: 1278px) and (max-width: 1630px) {
  .user-data-card {
    padding: 1.5rem;
  }

  .form-row--with-button {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group--button {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 1630px) {
  .form-group--button {
    grid-column: 1 / -1;
  }

  .form-group--button .btn {
    width: 100%;
  }
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-azul-oscuro);
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper--flex {
  flex: 1;
  min-width: 10.5rem;
}

.form-input-icon {
  position: absolute;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.form-input-icon svg {
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

.form-input-icon {
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  /* rem 3 */
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--color-azul-oscuro);
  background: #f9fafb;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-azul-claro);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.1);
}

.form-input:read-only {
  background: #f3f4f6;
  cursor: not-allowed;
}

.form-input-wrapper:has(.form-input-icon) .form-input {
  padding-left: 3rem;
}

.form-input-wrapper:not(:has(.form-input-icon)) .form-input {
  padding-left: 3rem;
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--color-azul-oscuro);
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-azul-claro);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.1);
}

.form-select:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.form-select--small {
  width: 85px;
  padding: 0.875rem 0.5rem;
  flex-shrink: 0;
}

.form-input-group {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.form-input-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.form-input-toggle:hover {
  color: var(--color-azul-claro);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Password Section */
.password-section {
  padding-top: 2rem;
  border-top: 2px solid #f3f4f6;
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--color-azul-claro);
  color: #ffffff;
}

.btn--primary:hover {
  background: #0099c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
}

.btn--secondary {
  background: var(--color-verde);
  color: #ffffff;
}

.btn--secondary:hover {
  background: #68a61d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(118, 188, 33, 0.3);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon--edit {
  background: var(--color-verde);
  color: #ffffff;
}

.btn-icon--edit:hover {
  background: #68a61d;
  transform: scale(1.05);
}

.btn-icon--delete {
  background: #ef4444;
  color: #ffffff;
}

.btn-icon--delete:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Vehicles Section */
.vehicles-section {
  margin-top: 2rem;
}

.vehicles-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(2, 13, 38, 0.08);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.vehicles-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
  border-radius: 28px 28px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vehicles-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(0, 178, 227, 0.2);
}

.vehicles-card:hover::before {
  opacity: 1;
}

.vehicles-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.vehicles-card__header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  margin: 0;
}

.vehicles-card__icon {
  font-size: 1.5rem;
}

/* Vehicles Table */
.vehicles-table-wrapper {
  margin-bottom: 1.5rem;
}

.vehicles-table {
  width: 100%;
  border-collapse: collapse;
}

.vehicles-table thead {
  background: #f9fafb;
}

.vehicles-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  border-bottom: 2px solid #e5e7eb;
}

.vehicles-table tbody tr {
  transition: background-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.vehicles-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  color: var(--color-azul-oscuro);
  border-bottom: 1px solid #e5e7eb;
  transition: padding 0.25s ease;
}

.vehicles-table tbody tr:hover {
  background: rgba(0, 178, 227, 0.04);
  box-shadow: -4px 0 0 0 rgba(0, 178, 227, 0.3);
}

.access-methods {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.access-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.access-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.access-badge--placa {
  background: #dbeafe;
  color: #1e40af;
}

.access-badge--placa:hover {
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.access-badge--qr {
  background: #fef3c7;
  color: #92400e;
}

.access-badge--qr:hover {
  box-shadow: 0 4px 12px rgba(146, 64, 14, 0.3);
}

.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.status-badge:hover {
  transform: scale(1.05);
}

.status-badge--active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge--active:hover {
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.status-badge--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge--inactive:hover {
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* Pagination */
.vehicles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-azul-oscuro);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-azul-claro);
  color: #ffffff;
  border-color: var(--color-azul-claro);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-azul-oscuro);
}

.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: var(--color-azul-claro);
  color: #ffffff;
}

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-azul-oscuro);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 99999999999;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-azul-oscuro);
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Tooltip movido al body */
.tooltip--body {
  position: fixed;
  bottom: auto;
  left: 0;
  top: 0;
  transform: translate(0, 0);
  z-index: 999999999;
}

.tooltip--body.tooltip--visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   MODAL - RESPONSIVE CON SCROLL INTERNO
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 13, 38, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2, 13, 38, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(2, 13, 38, 0.08);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #020d26;
  margin: 0;
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

#crearComercioForm {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1rem 2rem 1.75rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  background: #ffffff;
  border-radius: 16px;
}

.btn--cancel {
  background: #6b7280;
  color: #ffffff;
}

.btn--cancel:hover {
  background: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn--danger {
  background: #ef4444;
  color: #ffffff;
}

.btn--danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modal Delete Confirmation */
.modal--delete {
  max-width: 500px;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.modal-icon--danger {
  background: #fee2e2;
  color: #ef4444;
}

.delete-confirmation {
  text-align: center;
  padding: 1rem 0;
}

.delete-confirmation__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.delete-confirmation__icon svg {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.delete-confirmation__text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-azul-oscuro);
  margin: 0 0 0.75rem 0;
}

/* Estilos para páginas de estacionamiento */
.dashboard-card--full {
  grid-column: span 12;
  position: relative;
  overflow: hidden;
}

.dashboard-card--full::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
      rgba(0, 178, 227, 0.65),
      rgba(118, 188, 33, 0.65));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px 28px 0 0;
}

.dashboard-card--full:hover::before {
  opacity: 1;
}

/* Permitir que el contenido interno sobresalga si es necesario para dropdowns */
.dashboard-card--full .form-section,
.dashboard-card--full .form-group {
  position: relative;
  z-index: 10;
}

/* Aumentar z-index para form-groups que contienen custom-select */
.form-group:has(.custom-select-wrapper) {
  z-index: auto !important;
}

.dashboard-card--full .search-user-wrapper {
  position: relative;
  z-index: 100;
}

/* Permitir que los dropdowns de búsqueda sobresalgan */
.dashboard-card--full .search-user-dropdown {
  position: absolute;
  overflow: visible;
}

/* Asegurar que los inputs de búsqueda y sus resultados aparezcan por encima de las cartas */
input[type="search"].form-input,
input[type="search"] {
  position: relative;
  z-index: 50;
}

/* Contenedor de resultados de búsqueda */
.search-results,
.search-dropdown,
[class*="search"][class*="dropdown"],
[class*="autocomplete"],
.search-user-dropdown {
  position: absolute;
  z-index: 9999 !important;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.search-user-dropdown {
  position: sticky !important;
  margin-top: 0.4rem !important;
}

/* Wrapper de búsqueda debe tener posición relativa y z-index alto */
.search-wrapper,
[class*="search-wrapper"],
.search-user-wrapper {
  position: relative;
  z-index: 1000;
}

/* Header de las cartas debe permitir overflow visible para dropdowns */
.dashboard-card--full>header {
  position: relative;
  z-index: 100;
  overflow: visible !important;
}

/* Asegurar que el contenedor del input de búsqueda tenga overflow visible */
.dashboard-card--full header>div {
  position: relative;
  overflow: visible !important;
  padding-bottom: 0.5rem;
}

/* Asegurar que todos los contenedores de búsqueda permitan overflow */
.dashboard-card--full .form-section,
.dashboard-card--full .form-group {
  overflow: visible !important;
}

/* Forzar overflow visible en form-group que contienen búsquedas */
.form-group:has(.search-user-wrapper) {
  overflow: visible !important;
  z-index: 1000;
}

/* Forzar overflow visible solo en form-groups con búsquedas, no en modal-body */
.modal-body .form-group:has(.search-user-wrapper) {
  position: relative;
  z-index: 100;
}

/* Forzar overflow visible en form-section de dashboard */
.dashboard-card--full .form-section:has(.search-user-wrapper) {
  overflow: visible !important;
}

.dashboard-card__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(2, 13, 38, 0.15);
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
}

.search-input:focus {
  border-color: #00b2e3;
  box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.1);
}

.data-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: rgba(2, 13, 38, 0.04);
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  border-bottom: 2px solid rgba(2, 13, 38, 0.1);
}

.data-table td {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-azul-oscuro);
  border-bottom: 1px solid rgba(2, 13, 38, 0.08);
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(0, 178, 227, 0.04);
}

.table-cell-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.table-icon--new {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(118, 188, 33, 0.15));
  color: #00b2e3;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.25rem 0.5rem;
  background: rgba(2, 13, 38, 0.08);
  color: rgba(2, 13, 38, 0.7);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.count-badge--dark {
  background: rgba(2, 13, 38, 0.85);
  color: #ffffff;
}

.count-badge--clickable {
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.count-badge--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
  background: rgba(0, 178, 227, 0.15);
  color: #00b2e3;
}

.count-badge--dark.count-badge--clickable:hover {
  background: rgba(0, 178, 227, 0.9);
  color: #ffffff;
}

.expandable-row {
  transition: background-color 0.2s ease;
}

.expandable-row:hover {
  background-color: rgba(0, 178, 227, 0.03);
}

.toggle-row-btn {
  border: none;
  background: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-row-btn:hover {
  transform: scale(1.1);
}

.expanded-content {
  background: rgba(0, 178, 227, 0.02);
}

.expanded-content-wrapper {
  padding: 1.5rem;
  border-left: 3px solid #00b2e3;
  margin: 0.5rem 1rem;
}

.subsection {
  margin-bottom: 1.5rem;
}

.subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 178, 227, 0.2);
}

.subsection-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
}

.btn-add-floating {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b2e3, #76bc21);
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
  transition: all 0.3s ease;
}

.btn-add-floating:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 178, 227, 0.4);
}

.data-table--nested {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.data-table--nested th {
  background: rgba(0, 178, 227, 0.05);
  font-size: 0.85rem;
  padding: 0.75rem;
}

.data-table--nested td {
  padding: 0.75rem;
}

/* Modal form rows - grid layout */
.modal-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .modal-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-form-row--single {
  grid-template-columns: 1fr !important;
}

.btn {
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.btn--primary {
  background: #00b2e3;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 178, 227, 0.25);
}

.btn--primary:hover {
  background: #0099cc;
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.35);
}

.btn--cancel {
  background: var(--color-carta);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.btn--cancel:hover {
  background: var(--btn-secundary-hover);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.35);
}

.status-badge--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(2, 13, 38, 0.08);
}

.pagination__btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(2, 13, 38, 0.15);
  background: #ffffff;
  color: var(--color-azul-oscuro);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination__btn:hover:not(:disabled) {
  background: rgba(0, 178, 227, 0.1);
  border-color: #00b2e3;
  transform: translateY(-2px);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.paquetes-pagination__page {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(2, 13, 38, 0);
  background: #00b2e3;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.paquetes-pagination__page--active {
  background: var(--color-azul-claro);
  color: #ffffff;
}

.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #00b2e3;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
}

/* Estilos para búsqueda de usuarios */
.search-user-wrapper {
  position: relative;
  z-index: 100;
}

.search-user-input {
  width: 100%;
}

.search-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(2, 13, 38, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 10000 !important;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    display 0.5s allow-discrete;
}

.search-user-dropdown.mostrar {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .search-user-dropdown.mostrar {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.search-user-results {
  padding: 0.5rem;
}

.search-user-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-user-item:hover {
  background: rgba(0, 178, 227, 0.08);
}

.search-user-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(118, 188, 33, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.search-user-item__info {
  flex: 1;
}

.search-user-item__name {
  font-weight: 600;
  color: var(--color-azul-oscuro);
  margin: 0 0 0.25rem 0;
}

.search-user-item__email {
  font-size: 0.85rem;
  color: rgba(2, 13, 38, 0.6);
  margin: 0;
}

.search-user-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(2, 13, 38, 0.5);
}

/* Estilos para formularios de asignar etiqueta */
.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  background: rgba(2, 13, 38, 0.05);
  color: rgba(2, 13, 38, 0.6);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: rgba(2, 13, 38, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg,
      rgba(0, 178, 227, 0.15),
      rgba(118, 188, 33, 0.15));
  color: var(--color-azul-oscuro);
  box-shadow: 0 4px 12px rgba(0, 178, 227, 0.2);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  margin-bottom: 1.25rem;
}

.form-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 178, 227, 0.1);
  color: #00b2e3;
}

.form-section__icon svg {
  width: 16px;
  height: 16px;
}

/* Estilos para mapa */
.map-container {
  width: 100%;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.collapsible-card {
  margin-bottom: 1rem;
}

.collapsible-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(2, 13, 38, 0.04);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collapsible-card__header:hover {
  background: rgba(0, 178, 227, 0.08);
}

.collapsible-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
}

.collapsible-card__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 178, 227, 0.1);
  border-radius: 8px;
  color: #00b2e3;
  transition: transform 0.3s ease;
}

.collapsible-card.collapsed .collapsible-card__toggle {
  transform: rotate(180deg);
}

.collapsible-card__content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.collapsible-card.collapsed .collapsible-card__content {
  max-height: 0;
  opacity: 0;
}

@media (max-width: 767px) {
  .search-input {
    min-width: 100%;
  }

  .data-table-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 600px;
  }

  .map-container {
    height: 350px;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .dashboard-card__header-title {
    font-size: 0.95rem;
  }

  .dashboard-card__actions {
    width: 100%;
    margin-top: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination__btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 479px) {

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .count-badge {
    min-width: 28px;
    font-size: 0.75rem;
  }

  .collapsible-card__title {
    font-size: 1rem;
  }

  .form-section__title {
    font-size: 1rem;
  }
}

.delete-confirmation__details {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

.delete-confirmation__details strong {
  color: var(--color-azul-oscuro);
  font-weight: 600;
}

/* Modal responsive - mobile */
@media (max-width: 639px) {
  .modal {
    max-width: 100%;
    width: 95%;
    border-radius: 12px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.25rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 1.25rem 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-form-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* Estilos para botones de exportación */
.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-export::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s ease;
}

.btn-export:hover::before {
  left: 100%;
}

.btn-export:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-export:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-export svg {
  flex-shrink: 0;
}

.btn-export--pdf {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.btn-export--pdf:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-export--pdf:active {
  background: linear-gradient(135deg, #a93226 0%, #922b21 100%);
}

.btn-export--excel {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
}

.btn-export--excel:hover {
  background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-export--excel:active {
  background: linear-gradient(135deg, #1e8449 0%, #196f3d 100%);
}

/* Estilos para inputs de fecha (calendario) */
.date-input {
  position: relative;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-azul-oscuro);
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.date-input:hover {
  border-color: var(--color-azul-claro);
  background: #f0f1f3;
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.date-input:focus {
  border-color: var(--color-azul-claro);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
  outline: none;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  filter: invert(0.3) sepia(1) saturate(5) hue-rotate(175deg);
}

.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(0.4) sepia(1) saturate(5) hue-rotate(175deg);
}

.date-input:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Estilos para el calendario desplegable (navegadores webkit) */
.date-input::-webkit-datetime-edit {
  padding: 0;
}

.date-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.date-input::-webkit-datetime-edit-text {
  color: rgba(2, 13, 38, 0.4);
  padding: 0 0.25rem;
  font-weight: 500;
}

.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field {
  color: var(--color-azul-oscuro);
  padding: 0.25rem 0.35rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.date-input::-webkit-datetime-edit-month-field:hover,
.date-input::-webkit-datetime-edit-day-field:hover,
.date-input::-webkit-datetime-edit-year-field:hover {
  background: rgba(0, 168, 232, 0.08);
}

.date-input::-webkit-datetime-edit-month-field:focus,
.date-input::-webkit-datetime-edit-day-field:focus,
.date-input::-webkit-datetime-edit-year-field:focus {
  background: rgba(0, 168, 232, 0.15);
  color: var(--color-azul-claro);
  outline: none;
}

/* Responsive para Reportes de Fallas y Conciliación */
@media (max-width: 1290px) {

  /* Tabs responsive */
  .tab-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  /* Conciliación responsive */
  .dashboard-card--full>div>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Botones de exportación responsive */
  .btn-export {
    width: 100%;
    padding: 0.65rem 1.5rem;
  }

  .form-actions {
    flex-direction: column !important;
  }

  /* Reportes de fallas responsive */
  .dashboard-card--full header>div[style*="flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .dashboard-card--full header>div>div {
    width: 100%;
  }

  .dashboard-card--full header input[type="search"] {
    width: 100% !important;
  }

  .dashboard-card--full header .btn {
    width: 100%;
  }
}

@media (max-width: 639px) {

  /* Ajustes adicionales para móviles pequeños */
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 800px;
  }

  .tab-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .btn-export {
    font-size: 0.875rem;
  }
}

/* Botones de iconos para acciones en tablas */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon:active {
  transform: translateY(0);
}

.btn-icon--edit {
  color: #00a8e8;
  border-color: #00a8e8;
}

.btn-icon--edit:hover {
  background: #00a8e8;
  color: white;
}

.btn-icon--users {
  color: #76bc21;
  border-color: #76bc21;
}

.btn-icon--users:hover {
  background: #76bc21;
  color: white;
}

.btn-icon--delete {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-icon--delete:hover {
  background: #dc3545;
  color: white;
}

/* Responsive para página de Grupos */
@media (max-width: 768px) {
  .dashboard-card--full header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .dashboard-card--full header .btn {
    width: 100%;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }
}

/* Badges para estados y etiquetas */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.badge--primary {
  background: rgba(0, 168, 232, 0.1);
  color: #00a8e8;
}

.badge--success {
  background: rgba(118, 188, 33, 0.1);
  color: #76bc21;
}

.badge--warning {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.badge--danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}


.btn-icon--horarios {
  color: #00a8e8;
  border-color: #00a8e8;
}

.btn-icon--horarios:hover {
  background: #00a8e8;
  color: white;
}

.btn-icon--tarifas {
  color: #28a745;
  border-color: #28a745;
}

.btn-icon--tarifas:hover {
  background: #28a745;
  color: white
}

.btn-icon--comision {
  color: #28a745;
  border-color: #28a745;
}

.btn-icon--comision:hover {
  background: #28a745;
  color: white
}

.btn-icon--add {
  color: #00a8e8;
  border-color: #00a8e8;
}

.btn-icon--add:hover {
  background: #00a8e8;
  color: white;
}

/* Vertical separators for tables */
.vehicles-table th,
.vehicles-table td,
.data-table th,
.data-table td,
.data-table--nested th,
.data-table--nested td,
.tarifas-table th,
.tarifas-table td,
.messages-table th,
.messages-table td,
.residences-table th,
.residences-table td,
.residents-table th,
.residents-table td,
.buildings-table th,
.buildings-table td,
.visitors-table th,
.visitors-table td,
.packages-table th,
.packages-table td {
  border-right: 1px solid rgba(2, 13, 38, 0.08);
}

.vehicles-table th:last-child,
.vehicles-table td:last-child,
.data-table th:last-child,
.data-table td:last-child,
.data-table--nested th:last-child,
.data-table--nested td:last-child,
.tarifas-table th:last-child,
.tarifas-table td:last-child,
.messages-table th:last-child,
.messages-table td:last-child,
.residences-table th:last-child,
.residences-table td:last-child,
.residents-table th:last-child,
.residents-table td:last-child,
.buildings-table th:last-child,
.buildings-table td:last-child,
.visitors-table th:last-child,
.visitors-table td:last-child,
.packages-table th:last-child,
.packages-table td:last-child {
  border-right: none;
}

textarea {
  resize: none;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #00b2e3 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-color: #00b2e3 !important;
}

/* ========================================
   DASHBOARD LAYOUT IMPROVEMENTS
   ======================================== */

/* Main wrapper with padding and gap */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding: 6px;
  gap: 6px;
  background: #f8f9fa;
}

/* Sidebar with rounded corners */
#sidebar {
  background: linear-gradient(160deg, rgba(2, 13, 38, 0.98), rgba(2, 13, 38, 0.92));
  border-radius: 16px;
  min-width: 250px;
  max-width: 250px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  height: calc(100vh - 12px);
}

/* Content area */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
}

/* Navbar with rounded corners */
.navbar-dashboard {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 1rem 1.5rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 0 !important;
}

/* Fix dropdown arrow positioning */
.navbar-dashboard .dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.navbar-dashboard .dropdown-toggle::after {
  margin-left: 0.5rem !important;
  vertical-align: middle !important;
}

/* Ensure proper spacing in navbar */
.navbar-dashboard .navbar-icons {
  gap: 1rem !important;
}

/* Content container with rounded corners */
.navbar-dashboard+.container-fluid {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  flex: 1;
}