/* Dashboard Layout Styles */
* {
  font-family: 'Inter', sans-serif;
}

.dashboard-container {
  min-height: 100vh;
  background-color: #0D0907; /* Main content bg */
  color: #0D0907; /* Crow */
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 56px); /* Adjust for topbar */
}

/* Sidebar Styles */
.dashboard-sidebar {
  width: 260px;
  background-color: #F8F8FF; /* Sidebar bg */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Colapsado por defecto (desktop + mobile) */
.dashboard-sidebar.is-collapsed {
  transform: translateX(-100%);
}

.dashboard-sidebar.is-collapsed ~ .dashboard-main {
  margin-left: 0;
}

.dashboard-sidebar.is-collapsed + .mobile-menu-toggle {
  display: flex;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(13, 9, 7, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 80px;
}

.sidebar-brand {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #0D0907; /* Crow */
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin: 4px 12px;
  border-radius: 8px;
}

.nav-item i {
  width: 20px;
  margin-right: 12px;
  font-size: 18px;
}

.nav-item span {
  font-size: 16px;
  font-weight: 500;
}

.nav-item:hover {
  background-color: rgba(244, 95, 55, 0.1); /* Naranja con opacidad */
  color: #F45F37; /* Naranja */
}

.nav-item.active {
  background-color: #F45F37; /* Naranja */
  color: #ffffff;
  border-left-color: #F45F37; /* Naranja */
}

.nav-item.active:hover {
  background-color: #e0552d; /* Naranja más oscuro */
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(13, 9, 7, 0.1);
  margin-top: auto;
}

.btn-sidebar-search {
  width: 100%;
  padding: 12px 20px;
  background-color: #F45F37; /* Naranja */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn-sidebar-search i {
  margin-right: 8px;
}

.btn-sidebar-search:hover {
  background-color: #e0552d; /* Naranja más oscuro */
}

/* Logout Button Styles */
.btn-sidebar-logout {
  width: 100%;
  padding: 14px 20px;
  background-color: transparent;
  color: rgba(13, 9, 7, 0.7); /* Crow con opacidad */
  border: 2px solid rgba(13, 9, 7, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-sidebar-logout i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-sidebar-logout:hover {
  background-color: rgba(13, 9, 7, 0.05);
  color: #0D0907; /* Crow */
  border-color: rgba(13, 9, 7, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 9, 7, 0.1);
}

.btn-sidebar-logout:hover i {
  transform: translateX(-3px);
}

.btn-sidebar-logout:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(13, 9, 7, 0.1);
}

/* Centro de ayuda standalone (sin sidebar/topbar) - mismos estilos que ayuda2 */
.centro-ayuda-standalone .dashboard-main {
  margin-left: 0;
}

/* Main Content Styles */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  background-color: #0D0907; /* Main content bg */
}

/* Cuando contiene page-plan-detail, permitir que se ajuste al contenido */
.dashboard-main .page-plan-detail {
  min-height: 0;
}

.dashboard-header {
  background-color: #0D0907; /* Main content bg */
  padding: 20px 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 100;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  color: #0D0907; /* Crow */
  margin: 0;
}

.dashboard-greeting {
  color: #F8F8FF; /* White Dove - para contrastar con el fondo oscuro */
  font-weight: 400;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Logo centrado en la pantalla */
.dashboard-header > img.img-fluid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  max-width: 200px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8F8FF; /* White Dove */
  color: #0D0907; /* Crow */
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.header-icon:hover {
  background-color: #ffffff; /* Blanco en hover */
  color: #F45F37; /* Naranja en hover */
  transform: scale(1.05);
}

.badge-notification {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #F45F37; /* Naranja */
  color: #ffffff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  z-index: 1;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #F8F8FF; /* White Dove */
  background-color: #F8F8FF; /* White Dove */
  transition: all 0.3s ease;
}

.header-avatar:hover {
  border-color: #ffffff;
  transform: scale(1.05);
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background-color: #0D0907; /* Main content bg */
  color: #0D0907; /* Crow */
  display: flex;
  flex-direction: column;
  gap: 40px; /* separa bien stats vs quick-access */
}

/* Para page-plan-detail, reducir gap y eliminar min-height */
.dashboard-content.page-plan-detail {
  gap: 20px;
  min-height: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #0D0907; /* Crow */
  margin-bottom: 24px;
}

/* Quick Access Grid */
.quick-access-section {
  margin-bottom: 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background-color: #F8F8FF; /* Sidebar color */
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #0D0907; /* Crow */
  position: relative;
  border: 1px solid rgba(13, 9, 7, 0.1);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(244, 95, 55, 0.1); /* Naranja con opacidad */
  flex-shrink: 0;
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-icon.blue-bg {
  background-color: #529DF7; /* Naranja */
}

.card-icon.blue-bg img {
  filter: brightness(0) invert(1);
}

.card-icon.red-bg {
  background-color: #F45F37; /* Naranja */
}

.card-icon.red-bg img {
  filter: brightness(0) invert(1);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #0D0907; /* Crow */
  margin: 0 0 4px 0;
}

.card-subtitle {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
  margin: 0;
}

.card-menu {
  color: #676766;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.card-menu:hover {
  background-color: #f0f7fa;
}

/* Stats Section */
.stats-section {
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.stat-card {
  background-color: #F8F8FF; /* Sidebar color */
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(13, 9, 7, 0.1);
}

.stat-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
}

.progress {
  stroke-dashoffset: 88.216; /* 74% completion */
  stroke: #F45F37; /* Naranja */
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-value {
  font-size: 28px;
  font-weight: 700;
  color: #F45F37; /* Naranja */
}

.stat-title {
  font-size: 22px;
  font-weight: 700;
  color: #0D0907; /* Crow */
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-header .stat-title {
  text-align: left;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid rgba(244, 95, 55, 0.4);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 32px;
  color: #F45F37; /* Naranja */
}

.stat-info {
  flex: 1;
}

.stat-description {
  font-size: 14px;
  color: #676766;
  margin: 0 0 8px 0;
}

.stat-route {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.stat-link {
  font-size: 14px;
  color: #F45F37; /* Naranja */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stat-link:hover {
  color: #e0552d; /* Naranja más oscuro */
  text-decoration: underline;
}

/* Próximos Pagos Styles */
.proximos-pagos-container {
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0;
  padding-right: 8px;
  /* Scrollbar personalizado */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

.proximos-pagos-container:hover {
  scrollbar-color: #c0c0c0 #f0f0f0;
}

.proximos-pagos-container::-webkit-scrollbar {
  width: 6px;
}

.proximos-pagos-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.proximos-pagos-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.proximos-pagos-container:hover::-webkit-scrollbar-thumb {
  background: #c0c0c0;
}

.proximos-pagos-container::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.pago-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #ffffff; /* Fondo blanco para diferenciarse */
  border-radius: 8px;
  border-left: 4px solid #F45F37; /* Naranja */
  border: 1px solid rgba(13, 9, 7, 0.1);
  border-left-width: 4px;
  box-shadow: 0 1px 3px rgba(13, 9, 7, 0.08);
  transition: all 0.3s ease;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pago-item:hover {
  background-color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(13, 9, 7, 0.12);
  border-color: rgba(244, 95, 55, 0.3);
}

.pago-item.urgente {
  border-left-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.pago-item.proximo {
  border-left-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.05);
}

.pago-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F45F37; /* Naranja */
  color: #ffffff;
  border-radius: 8px;
  flex-shrink: 0;
}

.pago-item.urgente .pago-icon {
  background-color: #dc3545;
}

.pago-item.proximo .pago-icon {
  background-color: #ffc107;
  color: #212529;
}

.pago-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.pago-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pago-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pago-header-left .pago-fecha {
  line-height: 1.35;
}

.pago-header-left .pago-estado-badge {
  line-height: 1;
}

.pago-aclaracion {
  display: block;
  font-size: 12px;
  margin-top: -4px;
  margin-bottom: 8px;
  color: rgba(13, 9, 7, 0.55);
}

.pago-fecha {
  font-size: 16px;
  font-weight: 600;
  color: #0D0907; /* Crow */
}

.pago-monto {
  font-size: 16px;
  font-weight: bold;
  color: #F45F37; /* Naranja */
}

.pago-item.urgente .pago-monto {
  color: #dc3545;
}

.pago-detalle {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
  margin: 0 0 4px 0;
}

.pago-destino {
  font-size: 13px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
  margin: 0 0 8px 0;
}

.pago-destino i {
  margin-right: 4px;
  color: #F45F37; /* Naranja */
}

.pago-dias-badge {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 8px;
  background-color: rgba(244, 95, 55, 0.1); /* Naranja con opacidad */
  color: #F45F37; /* Naranja */
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.pago-dias-badge.vencido {
  background-color: #fee;
  color: #dc3545;
}

.pago-cupon {
  font-size: 13px;
  color: rgba(13, 9, 7, 0.7);
  margin: 0 0 8px 0;
}

.pago-item .pago-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.pago-item.urgente .pago-dias-badge {
  background-color: #fee;
  color: #dc3545;
}

.pago-item.proximo .pago-dias-badge {
  background-color: #fff8e1;
  color: #f57c00;
}

/* Estados del plan: solo la badge mantiene su color, el item no tiene bg según estado */

.pago-estado-badge {
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
  padding: 0 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 20px;
  box-sizing: border-box;
}

.pago-item.estado-activo .pago-estado-badge {
  background-color: rgba(40, 167, 69, 0.2);
  color: #1e7e34;
}

.pago-item.estado-suspendido .pago-estado-badge {
  background-color: rgba(255, 193, 7, 0.35);
  color: #856404;
}

.pago-item.estado-baja .pago-estado-badge {
  background-color: rgba(220, 53, 69, 0.2);
  color: #bd2130;
}

.pago-item.estado-alta .pago-estado-badge {
  background-color: rgba(0, 123, 255, 0.2);
  color: #007bff;
}

.pago-item.estado-otro .pago-estado-badge {
  background-color: rgba(108, 117, 125, 0.25);
  color: #495057;
}

.pago-plan-info {
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px solid rgba(13, 9, 7, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.pago-plan-linea {
  font-size: 13px;
  color: rgba(13, 9, 7, 0.7);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pago-plan-linea img {
  flex-shrink: 0;
}

.pago-plan-linea i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(13, 9, 7, 0.5);
}

.pago-more {
  text-align: center;
  padding: 12px;
  margin-top: 8px;
}

.pago-more a {
  color: #F45F37; /* Naranja */
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.pago-more a:hover {
  text-decoration: underline;
  color: #e0552d; /* Naranja más oscuro */
}

.pago-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
}

.pago-empty i {
  font-size: 48px;
  color: #c0c0c0;
  margin-bottom: 16px;
}

.pago-empty p {
  font-size: 16px;
  margin: 0;
}

/* Planes Activos Styles */
.planes-activos-container {
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0;
  padding-right: 8px;
  /* Scrollbar personalizado */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

.planes-activos-container:hover {
  scrollbar-color: #c0c0c0 #f0f0f0;
}

.planes-activos-container::-webkit-scrollbar {
  width: 6px;
}

.planes-activos-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.planes-activos-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.planes-activos-container:hover::-webkit-scrollbar-thumb {
  background: #c0c0c0;
}

.planes-activos-container::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.plan-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background-color: #ffffff; /* Fondo blanco para diferenciarse */
  border-radius: 8px;
  border-left: 4px solid #F45F37; /* Naranja */
  border: 1px solid rgba(13, 9, 7, 0.1);
  border-left-width: 4px;
  box-shadow: 0 1px 3px rgba(13, 9, 7, 0.08);
  transition: all 0.3s ease;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.plan-item:hover {
  background-color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(13, 9, 7, 0.12);
  border-color: rgba(244, 95, 55, 0.3);
}

.plan-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F45F37; /* Naranja */
  color: #ffffff;
  border-radius: 8px;
  flex-shrink: 0;
}

.plan-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Convierte el SVG a blanco */
}

.plan-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-contrato {
  font-size: 14px;
  font-weight: 600;
  color: #0D0907; /* Crow */
}

.plan-estado {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Activo */
.plan-estado.estado-activo {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

/* Alta */
.plan-estado.estado-alta {
  background-color: rgba(0, 123, 255, 0.15);
  color: #007bff;
}

/* Baja */
.plan-estado.estado-baja {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* No Viajó */
.plan-estado.estado-no-viajo {
  background-color: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

/* Para Borrar */
.plan-estado.estado-para-borrar {
  background-color: rgba(52, 58, 64, 0.15);
  color: #343a40;
}

/* Contado */
.plan-estado.estado-contado {
  background-color: rgba(23, 162, 184, 0.15);
  color: #17a2b8;
}

/* Liberado */
.plan-estado.estado-liberado {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* Terminado */
.plan-estado.estado-terminado {
  background-color: rgba(108, 117, 125, 0.2);
  color: #495057;
}

/* Con Deuda */
.plan-estado.estado-con-deuda {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ff9800;
}

/* Suspendido */
.plan-estado.estado-suspendido {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

/* Coordinador */
.plan-estado.estado-coordinador {
  background-color: rgba(102, 16, 242, 0.15);
  color: #6610f2;
}

/* Docente */
.plan-estado.estado-docente {
  background-color: rgba(102, 16, 242, 0.15);
  color: #6610f2;
}

/* Pendiente / Otros (sin clase específica) */
.plan-estado.estado-pendiente,
.plan-estado.estado-otro {
  background-color: rgba(108, 117, 125, 0.15);
  color: #495057;
}

.plan-datos-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.plan-line {
  font-size: 13px;
  color: rgba(13, 9, 7, 0.75);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-line img {
  flex-shrink: 0;
}

.plan-line i {
  width: 16px;
  min-width: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(13, 9, 7, 0.5);
}

.plan-pasajero,
.plan-destino,
.plan-fecha {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
}

.plan-pasajero i,
.plan-destino i,
.plan-fecha i {
  width: 16px;
  margin-right: 8px;
  color: #F45F37; /* Naranja */
}

.plan-actions, .pago-actions {
  margin-top: 12px;
}

.btn-plan-detalle {
  display: inline-block;
  padding: 6px 12px;
  background-color: #25180c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-plan-detalle:hover {
  background-color: #1a1008;
  color: #ffffff;
  text-decoration: none;
}

.plan-more {
  text-align: center;
  padding: 12px;
  margin-top: 8px;
}

.plan-more a {
  color: #F45F37; /* Naranja */
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.plan-more a:hover {
  text-decoration: underline;
  color: #e0552d; /* Naranja más oscuro */
}

.plan-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(13, 9, 7, 0.6); /* Crow con opacidad */
}

.plan-empty i {
  font-size: 48px;
  color: #c0c0c0;
  margin-bottom: 16px;
}

.plan-empty .plan-empty-icon {
  width: 48px;
  height: 48px;
  opacity: 0.55;
  margin-bottom: 16px;
}

.plan-empty p {
  font-size: 16px;
  margin: 0 0 16px 0;
}

.btn-plan-nuevo {
  display: inline-block;
  padding: 10px 20px;
  background-color: #25180c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-plan-nuevo:hover {
  background-color: #1a1008;
  color: #ffffff;
  text-decoration: none;
}

/* Notifications in Header */
#box-header {
  width: 300px;
  max-height: 0;
  opacity: 0;
  height: 0;
  position: absolute;
  z-index: -1;
  top: 50px;
  right: 0;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  overflow: hidden;
  transition: all 0.3s ease;
}

#box-header.active {
  height: auto;
  max-height: 400px;
  opacity: 1;
  z-index: 1000;
  overflow-y: auto;
}

#box-header h2 {
  font-size: 14px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  color: #999;
  margin: 0;
}

/* Notificaciones: vista previa y “Ver más” */
#box-header .notif-body-preview,
.notif-item-overlay .notif-body-preview {
  font-size: 13px;
  color: #555;
  line-height: 1.35;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#box-header .notif-titulo-preview,
.notif-item-overlay .notif-titulo-preview {
  font-size: 14px;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

#box-header .ver-mas-notif,
.notif-item-overlay .ver-mas-notif {
  font-size: 12px;
  color: #F45F37;
  text-decoration: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#box-header .ver-mas-notif:hover,
.notif-item-overlay .ver-mas-notif:hover {
  color: #e0552d;
  text-decoration: underline !important;
}

/* Modal notificación completa */
#modalNotificacionCompleta .modal-body {
  max-height: min(70vh, 400px);
  overflow-y: auto;
}

#modalNotificacionCompleta .modal-body p {
  margin-bottom: 0.75rem;
}

#modalNotificacionCompleta .modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  #modalNotificacionCompleta .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #modalNotificacionCompleta .modal-body {
    max-height: min(60vh, 320px);
  }
}

/* ========== Panel Modals (Permisos, Reincorporaciones, Cancelaciones) ========== */
.panel-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.panel-modal__content--iframe {
  border-radius: 16px 16px 0 0;
}

.panel-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  border-bottom: none;
}

.panel-modal__header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.panel-modal__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
  color: #fff;
}

.panel-modal__subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}

.panel-modal__header--permisos {
  background: linear-gradient(135deg, #0069a7 0%, #149cbf 100%);
}

.panel-modal__header--reincorporacion {
  background: linear-gradient(135deg, #0d7a4a 0%, #1a9d5c 100%);
}

.panel-modal__header--cancelacion {
  background: linear-gradient(135deg, #a73d2d 0%, #c95a47 100%);
}

/* Header de una sola línea (Reincorporación / Cancelación) */
.panel-modal__header--solo-titulo {
  align-items: center;
  padding: 1rem 1.25rem;
}

.panel-modal__header--solo-titulo .panel-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.panel-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-modal__open-full {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.panel-modal__open-full:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.panel-modal__close {
  opacity: 0.9;
}

.panel-modal__body {
  padding: 1.5rem;
  background: #fff;
  color: #0D0907;
}

.panel-modal__intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 1.25rem;
}

.panel-modal__doc-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0f7fc 0%, #e8f4f8 100%);
  border: 1px solid rgba(0, 105, 167, 0.2);
  border-radius: 12px;
  color: #0069a7;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.panel-modal__doc-link:hover {
  color: #004d80;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 105, 167, 0.15);
}

.panel-modal__doc-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.panel-modal__doc-text {
  flex: 1;
}

.panel-modal__doc-arrow {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Body con contenido directo (sin iframe) */
.panel-modal__body--content {
  padding: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.panel-modal__inner-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}

.panel-modal__inner-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.5rem 0;
}

.panel-modal__inner-content p {
  margin-bottom: 0.85rem;
}

.panel-modal__inner-content ul,
.panel-modal__inner-content ol {
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

.panel-modal__inner-content a {
  color: #0069a7;
  text-decoration: none;
}

.panel-modal__inner-content a:hover {
  text-decoration: underline;
}

.panel-modal__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #666;
}

.panel-modal__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 1.75rem;
  color: #999;
}

.panel-modal__empty-text {
  margin: 0;
  font-size: 0.95rem;
}

.panel-modal__body--iframe {
  padding: 0;
  min-height: 60vh;
}

.panel-modal__iframe {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: none;
  display: block;
}

@media (max-width: 576px) {
  .panel-modal__header {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
  }

  .panel-modal__header--solo-titulo {
    padding: 0.875rem 1rem;
  }

  .panel-modal__header--solo-titulo .panel-modal__title {
    font-size: 1.05rem;
  }

  .panel-modal__header-inner {
    flex: 1 1 100%;
  }

  .panel-modal__body {
    padding: 1.25rem;
  }

  .panel-modal__body--content {
    padding: 1.25rem;
    max-height: 60vh;
  }

  .panel-modal__iframe {
    height: 65vh;
    min-height: 320px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .quick-access-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .dashboard-content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    z-index: 1050;
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-header {
    padding: 16px 20px;
  }

  .dashboard-title {
    font-size: 20px;
  }

  .dashboard-content {
    padding: 20px;
  }

  /* Reducir padding-bottom del dashboard-content cuando está en page-plan-detail */
  .dashboard-content.page-plan-detail {
    gap: 16px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Asegurar que dashboard-main no fuerce altura cuando está en page-plan-detail */
  .dashboard-main .page-plan-detail {
    min-height: 0 !important;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 16px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .card-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
  }

  .dashboard-header > img.img-fluid {
    max-width: 120px;
  }

  .dashboard-content {
    padding: 16px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  /* QUICK ACCESS: carrusel horizontal en móviles chicos */
  .quick-access-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .quick-access-grid > .contenedor-pill {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
  }

  .dashboard-card {
    padding: 14px;
  }

  .card-menu {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

/* Override login mobile rule so dashboard can scroll on small devices */
@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
  }
}

/* Mobile Menu Toggle Buttons */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 60px;
  left: 12px;
  z-index: 1051;
  background-color: #0069a7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #F8F8FF; /* White Dove */
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(240, 239, 231, 0.1); /* White Dove con opacidad */
  color: #ffffff;
}

.desktop-sidebar-toggle {
  background-color: #F8F8FF; /* White Dove */
  border: none;
  color: #0D0907; /* Crow */
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-sidebar-toggle:hover {
  background-color: #ffffff;
  color: #F45F37; /* Naranja */
  transform: scale(1.05);
}

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

  .mobile-menu-btn {
    display: block;
  }
}

/* Ocultar botón azul en pantallas pequeñas (hasta 425px) */
@media (max-width: 425px) {
  /* Ocultar botón azul (mobile-menu-toggle) */
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
  }

  /* Asegurar que el botón negro del topbar se muestre */
  .mobile-menu-btn {
    display: block !important;
    visibility: visible !important;
    color: #ffffff !important; /* Texto blanco para contraste */
    background-color: #0D0907 !important; /* Fondo negro (Crow) */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Borde sutil para visibilidad */
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; /* Sombra para destacar */
  }

  .mobile-menu-btn:hover {
    color: #ffffff !important;
    background-color: #1a1008 !important; /* Negro más claro al hover */
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* Logo del topbar: en flujo flex entre izquierda y derecha para que no se pise con los iconos */
  .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .dashboard-header .header-left,
  .dashboard-header .header-right {
    flex-shrink: 0;
  }

  .dashboard-header > img.img-fluid {
    position: static;
    transform: none;
    max-width: 150px;
    min-width: 100px;
    width: auto;
    height: auto;
    flex-shrink: 0;
  }

  /* Corregir altura y overflow en pantallas pequeñas */
  html, body {
    height: 100%;
    max-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .dashboard-container {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
  }

  .dashboard-layout {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .dashboard-main {
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100vh;
  }

  /* Cuando contiene page-plan-detail, eliminar min-height */
  .dashboard-main {
    min-height: 0 !important;
  }

  .dashboard-main .page-plan-detail {
    min-height: 0 !important;
    height: auto !important;
  }

  .dashboard-content {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .dashboard-sidebar {
    height: 100vh;
    max-height: 100vh;
  }
}

/* Overlay for mobile menu */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.sidebar-overlay.active {
  display: block;
}

/* Keep existing pill styles for backward compatibility */
.contenedor-pill {
  display: block;
}

/* Ensure cards are clickable */
.card-link {
  cursor: pointer;
}

.card-link:hover .card-title {
  color: #0069a7;
}

/* Botones generales del dashboard */
.dashboard-content .btn-primary,
.dashboard-content .btn-secondary,
.dashboard-content button.btn,
.dashboard-content .btn {
  background-color: #25180c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dashboard-content .btn-primary:hover,
.dashboard-content .btn-secondary:hover,
.dashboard-content button.btn:hover,
.dashboard-content .btn:hover {
  background-color: #1a1008;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 24, 12, 0.3);
}

.dashboard-content .btn-primary:focus,
.dashboard-content .btn-secondary:focus,
.dashboard-content button.btn:focus,
.dashboard-content .btn:focus {
  background-color: #25180c;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 24, 12, 0.25);
}

.dashboard-content .btn-primary:active,
.dashboard-content .btn-secondary:active,
.dashboard-content button.btn:active,
.dashboard-content .btn:active {
  background-color: #1a1008;
  color: #ffffff;
  transform: translateY(0);
}

/* Table Styles for carga-pasajeros */
.dashboard-content .table {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 9, 7, 0.08);
}

.dashboard-content .table thead {
  background-color: #F8F8FF;
  color: #0D0907;
}

.dashboard-content .table thead th {
  border-bottom: 2px solid rgba(13, 9, 7, 0.1);
  font-weight: 600;
  padding: 16px;
  color: #0D0907;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.dashboard-content .table tbody tr {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(13, 9, 7, 0.08);
  transition: all 0.2s ease;
}

.dashboard-content .table tbody tr:hover {
  background-color: #F0EFE7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(13, 9, 7, 0.05);
}

.dashboard-content .table tbody td {
  padding: 16px;
  color: #0D0907;
  vertical-align: middle;
}

.dashboard-content .table tbody td em {
  color: #0D0907;
  font-style: normal;
  font-weight: 500;
}

/* Botón Agregar en tabla */
.seleccionar-viaje {
  background-color: #25180c !important;
  border: none !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seleccionar-viaje i {
  font-size: 12px;
  color: #ffffff !important;
}

.seleccionar-viaje:hover {
  background-color: #1a1008 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(37, 24, 12, 0.3);
  color: #ffffff !important;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.header-info {
  flex: 1;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

/* Buscador mejorado */
.buscador-viaje {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 9, 7, 0.08);
  padding: 4px;
}

.buscador-viaje .form-control {
  border: none;
  background: transparent;
  padding-left: 40px;
}

.buscador-viaje-label {
  color: rgba(13, 9, 7, 0.6) !important;
  padding-left: 40px;
}

.buscador-viaje-label i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #F45F37;
}

/* Badge resultados */
.dashboard-content .badge.bg-secondary {
  background-color: #F8F8FF !important;
  color: #0D0907 !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
}

/* Reemplazar bg-primary */
.bg-primary,
.card.bg-primary {
  background-color: #F8F8FF !important;
  color: #0D0907 !important;
  border: 1px solid rgba(13, 9, 7, 0.1);
}

.card.bg-primary .card-title {
  color: #0D0907;
  font-weight: 600;
}

.card.bg-primary em,
.card.bg-primary b {
  color: #0D0907;
}

/* Mis Planes Detalle Styles */
.card-header-custom {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(13, 9, 7, 0.1);
  background-color: transparent;
}

.card-title-custom {
  font-size: 20px;
  font-weight: 600;
  color: #0D0907;
  margin: 0;
  display: flex;
  align-items: center;
}

.card-body-custom {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(13, 9, 7, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: #0D0907;
}

.section-divider {
  height: 1px;
  background-color: rgba(13, 9, 7, 0.1);
  margin: 24px 0;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #0D0907;
  margin: 0 0 16px 0;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.resumen-item {
  padding: 16px;
  background-color: rgba(13, 9, 7, 0.03);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(13, 9, 7, 0.08);
}

.resumen-item.highlight {
  background-color: rgba(244, 95, 55, 0.1);
  border-color: rgba(244, 95, 55, 0.2);
}

.resumen-item.success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
}

.resumen-item.danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}

.resumen-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(13, 9, 7, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resumen-value {
  font-size: 20px;
  font-weight: 600;
  color: #0D0907;
}

.resumen-item.success .resumen-value {
  color: #28a745;
}

.resumen-item.danger .resumen-value {
  color: #dc3545;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background-color: rgba(244, 95, 55, 0.1);
  color: #F45F37;
  font-size: 13px;
  font-weight: 500;
}

.table-header-custom {
  background-color: #F8F8FF;
  color: #0D0907;
}

.table-header-custom th {
  font-weight: 600;
  padding: 12px;
  border-bottom: 2px solid rgba(13, 9, 7, 0.1);
}

#detalleCuotasTabla tbody tr {
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

#detalleCuotasTabla tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.15);
}

#detalleCuotasTabla tbody td {
  padding: 12px;
  color: #0D0907;
  border-bottom: none;
  vertical-align: middle;
}

/* Botones con iconos en tabla de cuotas */
#detalleCuotasTabla .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background-color: transparent;
  color: #0D0907;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  margin: 0 4px;
}

#detalleCuotasTabla .btn-icon:hover {
  background-color: rgba(244, 95, 55, 0.1);
  color: #F45F37;
  transform: scale(1.1);
}

#detalleCuotasTabla .btn-icon i,
#detalleCuotasTabla .btn-icon svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Tooltip para botones */
#detalleCuotasTabla .btn-icon[data-tooltip] {
  position: relative;
}

#detalleCuotasTabla .btn-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background-color: #0D0907;
  color: #F8F8FF;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  margin-bottom: 5px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

#detalleCuotasTabla .btn-icon[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0D0907;
  margin-bottom: -5px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Contenedor de botones en primera columna */
#detalleCuotasTabla tbody td:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 44px;
  box-sizing: border-box;
}

/* Cuando no hay botones de acciones, la celda vacía mantiene altura para no desalinear bordes de la fila */
#detalleCuotasTabla tbody td:first-child:empty::before {
  content: '\00a0';
  display: inline-block;
  min-height: 1.25em;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .resumen-compact {
    padding: 20px;
  }

  .resumen-main {
    gap: 12px;
    margin-bottom: 16px;
  }

  .resumen-details {
    gap: 12px;
    padding-top: 16px;
  }

  .two-column-layout {
    gap: 16px;
  }

  .resumen-pasajero-section {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resumen-grid {
    grid-template-columns: 1fr;
  }

  .card-body-custom {
    padding: 16px;
  }

  .card-header-custom {
    padding: 16px;
  }

  .resumen-compact {
    padding: 16px;
  }

  .resumen-main {
    gap: 12px;
    margin-bottom: 16px;
  }

  .resumen-card {
    padding: 16px;
  }

  .resumen-details {
    gap: 12px;
    padding-top: 16px;
  }

  .two-column-layout {
    gap: 16px;
  }

  .resumen-pasajero-section {
    margin-top: 16px;
  }
}

/* Minimalist Plan Detail Styles */
.plan-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(240, 239, 231, 0.2);
}

.btn-back-minimal {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: #F8F8FF;
  color: #0D0907;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-back-minimal:hover {
  background-color: rgba(244, 95, 55, 0.1);
  color: #F45F37;
}

.header-info {
  flex: 1;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.contract-number {
  font-size: 28px;
  font-weight: 600;
  color: #F8F8FF;
}

.contract-destination {
  font-size: 18px;
  font-weight: 500;
  color: rgba(240, 239, 231, 0.8);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(240, 239, 231, 0.6);
}

.meta-divider {
  color: rgba(240, 239, 231, 0.4);
}

/* Tabs */
.plan-tabs {
  display: flex;
  border-bottom: 1px solid #333;
  margin: 20px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: #F8F8FF;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #F8F8FF;
  opacity: 0.8;
}

.tab-btn.active {
  color: #F8F8FF;
  border-bottom: 3px solid #ff6b6b;
}

.tab-btn i {
  font-size: 16px;
}

.tab-btn .tab-icon-svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: inline-block;
  vertical-align: middle;
}

.tab-btn.tab-link {
  text-decoration: none;
}

/* Adicionales empty state */
.adicionales-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 40px 24px;
  text-align: center;
}

.adicionales-empty-logo {
  width: 80px;
  height: auto;
  opacity: 0.6;
  margin-bottom: 20px;
}

.adicionales-empty-text {
  color: rgba(248, 248, 255, 0.7);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Contenido de solicitud */
.solicitud-content {
  padding: 0;
}

.solicitud-content .info-section {
  background-color: #F8F8FF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(13, 9, 7, 0.08);
}

.solicitud-content .info-section:last-child {
  margin-bottom: 0;
}

.tab-content-wrapper {
  min-height: 0;
  max-width: 1200px;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tab-content {
  display: none;
  height: auto;
  min-height: 0;
  flex: 1;
}

.tab-content.active {
  display: block;
  height: auto;
  min-height: 0;
  flex: 1;
}

/* Asegurar que los tabs inactivos no ocupen espacio */
.tab-content:not(.active) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0;
}

/* Plan Detail Container */
.plan-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Resumen 2x2 Grid */
.resumen-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 24px;
}

.grid-cell {
  min-width: 0;
}

.grid-resumen-cards .resumen-main {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 15px;
  height: 100%;
}

.grid-resumen-cards .resumen-card.primary {
  grid-column: 1 / -1;
}

.grid-resumen-cards .resumen-card.success,
.grid-resumen-cards .resumen-card.danger {
  min-width: 0;
  max-width: none;
}

.grid-details .details {
  margin-bottom: 0;
  max-width: 100%;
  height: 100%;
}

.resumen-pasajero-section .info-section,
.grid-contacto .info-section {
  height: 100%;
}

.info-section-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.info-section-placeholder p {
  color: rgba(240, 239, 231, 0.5);
  font-size: 14px;
  margin: 0;
}

/* Resumen Compact (legacy / grid cells) */
.resumen-main {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 0;
}

.resumen-card {
  flex: 1;
  min-width: 220px;
  max-width: 350px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  background: #2a2a2a;
  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.resumen-card.primary {
  background: rgba(82, 157, 247, 0.5);
  border: 1px solid rgba(38, 68, 153, 0.6);
}

.resumen-card.success {
  background: rgba(0, 168, 107, 0.45);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.resumen-card.danger {
  background: rgba(252, 76, 78, 0.5);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.card-label {
  font-size: 0.9rem;
  color: #F8F8FF;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #F8F8FF;
}

.details {
  background: #F9FEFF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 0;
  max-width: 100%;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #888;
  gap: 20px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #888;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}

.detail-value {
  font-weight: 500;
  color: #252321;
  font-size: 14px;
  text-align: right;
  flex: 1;
}

.status {
  background: rgba(0, 125, 107, 0.15);
  color: #00A86B;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

/* Estados del plan - clases .status-* (mis-planes2, mis-planes-detalle2) */
.status-activo {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.status-contado {
  background: rgba(23, 162, 184, 0.15);
  color: #17a2b8;
}

.status-alta {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
}

.status-suspendido {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-baja {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* Liberado, Docente, Coordinador, etc. */
.status-liberado,
.status-docente,
.status-coordinador,
.status-terminado,
.status-no-viajo,
.status-para-borrar,
.status-con-deuda,
.status-pendiente,
.status-otro,
.status-debe {
  background: rgba(108, 117, 125, 0.15);
  color: #495057;
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 900px;
}

.resumen-pasajero-section {
  margin-top: 0;
}

.info-section {
  background: #F9FEFF;
  border-radius: 12px;
  padding: 20px;
}

@media (max-width: 992px) {
  .info-section {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .info-section {
    padding: 16px;
  }
}

.section-title-minimal {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #252321;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  font-weight: 600;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 0.95rem;
  gap: 10px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label-minimal {
  width: 120px;
  color: #888;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.info-value-minimal {
  color: #252321;
  font-size: 0.95rem;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 9, 7, 0.1);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background-color: rgba(13, 9, 7, 0.08);
  color: #0D0907;
  font-size: 12px;
  font-weight: 500;
}

/* Table Minimal */
.table-container-minimal {
  background-color: #F8F8FF;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  width: 100%;
}

.table-minimal {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  table-layout: auto;
}

.table-minimal thead {
  background-color: rgba(13, 9, 7, 0.05);
}

.table-minimal th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(13, 9, 7, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(13, 9, 7, 0.1);
  white-space: nowrap;
}

.table-minimal td {
  padding: 12px 16px;
  font-size: 14px;
  color: #0D0907;
  border-bottom: 1px solid rgba(13, 9, 7, 0.05);
  vertical-align: middle;
}

.table-minimal tbody tr:hover {
  background-color: rgba(244, 95, 55, 0.03);
}

.table-minimal tbody tr:last-child td {
  border-bottom: none;
}

/* Botones en tabla - Desktop */
.table-minimal td button,
.table-minimal td a.btn,
.table-minimal td .btn {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  margin: 2px;
}

/* Botones en tabla - Mobile */
@media (max-width: 768px) {
  .table-container-minimal {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-minimal {
    min-width: 600px; /* Ancho mínimo para mantener legibilidad */
  }

  .table-minimal th,
  .table-minimal td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .table-minimal th:first-child,
  .table-minimal td:first-child {
    position: sticky;
    left: 0;
    background-color: #ffffff;
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  }

  .table-minimal tbody tr td:first-child {
    background-color: #ffffff;
  }

  .table-minimal tbody tr:hover td:first-child {
    background-color: rgba(244, 95, 55, 0.03);
  }

  /* Botones más pequeños en mobile */
  .table-minimal td button:not(.btn-icon),
  .table-minimal td a.btn:not(.btn-icon),
  .table-minimal td .btn:not(.btn-icon) {
    padding: 4px 8px;
    font-size: 11px;
    margin: 1px;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Botones con iconos en mobile */
  #detalleCuotasTabla .btn-icon {
    width: 28px;
    height: 28px;
    margin: 2px;
  }

  #detalleCuotasTabla .btn-icon i,
  #detalleCuotasTabla .btn-icon svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
  }

  /* Asegurar que los botones se vean */
  .table-minimal td:first-child {
    min-width: 80px;
    max-width: none;
  }

  .table-minimal td:first-child button:not(.btn-icon),
  .table-minimal td:first-child a.btn:not(.btn-icon),
  .table-minimal td:first-child .btn:not(.btn-icon) {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Contenedor de botones iconos en mobile */
  #detalleCuotasTabla tbody td:first-child {
    flex-wrap: nowrap;
    gap: 2px;
  }
}

/* Responsive - Plan detail */
@media (max-width: 768px) {
  .plan-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .plan-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
  }

  .resumen-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .grid-resumen-cards .resumen-main {
    grid-template-columns: 1fr;
  }

  .resumen-card {
    max-width: 100%;
  }

  .resumen-main {
    gap: 10px;
  }

  .resumen-card {
    padding: 14px;
  }

  .details {
    max-width: 100%;
  }

  .plan-detail-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .plan-detail-header {
    max-width: 100%;
  }

  .tab-content-wrapper {
    max-width: 100%;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
  }

  .info-label-minimal {
    width: 100%;
  }

  .info-value-minimal {
    text-align: left;
  }
}

/* Plan detail - evita espacio en blanco abajo en pantallas chicas */
@media (max-width: 768px) {
  .page-plan-detail {
    gap: 16px !important;
    padding-bottom: 16px;
    min-height: 0 !important;
  }

  .page-plan-detail .plan-detail-header {
    padding-top: 12px;
    margin-bottom: 16px;
  }

  .page-plan-detail .plan-tabs {
    margin: 12px 0;
    min-height: 48px;
  }

  .page-plan-detail .tab-content-wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: calc(100vh - 280px); /* Fallback - será sobrescrito por JavaScript si está disponible */
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  /* Asegurar que ambos tabs ocupen todo el espacio disponible */
  .tab-content-wrapper .tab-content.active {
    min-height: 100% !important;
    height: 100% !important;
  }

  /* Ajustar padding del contenedor principal */
  .page-plan-detail .plan-detail-container {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Asegurar que el contenedor se ajuste al contenido */
  .plan-detail-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* Eliminar cualquier espacio después del último elemento en tab-content-wrapper */
  .tab-content-wrapper > *:last-child {
    margin-bottom: 0 !important;
  }

  /* Específicamente para la pestaña de cuotas */
  #tab-cuotas > *:last-child {
    margin-bottom: 0 !important;
  }

  /* Asegurar que cada tab-content tenga su propia altura en 768px */
  .tab-content-wrapper .tab-content {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .tab-content-wrapper .tab-content.active {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

    /* Evitar espacio en blanco en la pestaña de cuotas - hacer que tenga la misma altura mínima que resumen */
  #tab-cuotas {
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Hacer que el contenido de cuotas ocupe todo el espacio disponible */
  #tab-cuotas .table-container-minimal {
    flex: 1;
    display: block;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 20px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Hacer que la tabla tenga el ancho completo */
  #tab-cuotas .table-minimal {
    width: 100%;
    margin-bottom: 0;
  }
  
  /* Eliminar cualquier espacio extra en el contenedor de cuotas */
  #tab-cuotas > * {
    margin-bottom: 0 !important;
  }

  #tab-cuotas > *:last-child {
    margin-bottom: 0 !important;
  }

  /* Asegurar que el wrapper no tenga padding extra cuando cuotas está activo */
  .tab-content-wrapper {
    padding-bottom: 0 !important;
  }

  /* Reducir padding del page-plan-detail cuando está en cuotas */
  .page-plan-detail {
    padding-bottom: 16px;
  }

  /* Reducir gap cuando está en la pestaña de cuotas para evitar espacio extra */
  .page-plan-detail .tab-content-wrapper:last-child {
    margin-bottom: 0 !important;
  }

  /* Asegurar que el resumen también ocupe todo el espacio disponible */
  #tab-resumen {
    height: 100% !important;
    min-height: 100% !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #tab-resumen .resumen-grid-2x2 {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    flex: 1;
  }

  /* Asegurar que el resumen inactivo no ocupe espacio */
  #tab-resumen:not(.active) .resumen-grid-2x2 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-plan-detail {
    padding: 16px 12px 0;
    gap: 16px;
    padding-bottom: 0 !important;
  }

  .page-plan-detail .plan-detail-container {
    padding: 0 8px;
  }

  .contract-number {
    font-size: 22px;
  }
}

/* Ajustar plan-tabs para viewports pequeños - sin scroll vertical */
@media (max-width: 425px) {
  .plan-tabs {
    overflow-x: auto;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
    min-height: 48px !important; /* Altura mínima para asegurar que los botones se vean */
    height: auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
    align-items: stretch !important;
  }

  .plan-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .plan-tabs::-webkit-scrollbar-track {
    background: rgba(13, 9, 7, 0.1);
  }

  .plan-tabs::-webkit-scrollbar-thumb {
    background: rgba(244, 95, 55, 0.5);
    border-radius: 2px;
  }

  .tab-btn {
    flex-shrink: 0;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #F8F8FF !important;
    background: transparent !important;
    padding: 10px 16px !important;
    min-height: 48px !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .tab-btn.active {
    color: #F8F8FF !important;
    border-bottom: 3px solid #ff6b6b !important;
  }

  .tab-btn i {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 16px !important;
    margin-right: 6px !important;
  }

  .tab-btn .tab-icon-svg {
    display: inline-block !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
  }

  .tab-btn span {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 14px !important;
  }
}

/* Asegurar que el contenedor de tabs ocupe todo el ancho */
.tab-content-wrapper {
  width: 100%;
}

#tab-cuotas {
  width: 100%;
}

#tab-cuotas .table-container-minimal {
  width: 100%;
  max-width: 100%;
}

/* ============================================
   CARGA DE PASAJEROS - ESTILOS MEJORADOS
   ============================================ */

/* Search Section */
.search-section {
  background-color: #F8F8FF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  max-width: 700px;
    margin: auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  border: 2px solid rgba(13, 9, 7, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.search-wrapper:focus-within {
  border-color: #F45F37;
  box-shadow: 0 0 0 3px rgba(244, 95, 55, 0.1);
}

.search-icon {
  padding: 0 16px;
  color: rgba(13, 9, 7, 0.5);
  font-size: 18px;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 0;
  font-size: 15px;
  color: #0D0907;
  background: transparent;
  font-family: 'Inter', sans-serif;
  width: 100%;
  min-width: 0;
}

.search-input::placeholder {
  color: rgba(13, 9, 7, 0.4);
}

.search-clear {
  padding: 0 16px;
  border: none;
  background: transparent;
  color: rgba(13, 9, 7, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.search-clear:hover {
  color: #F45F37;
}

.search-help {
  margin-top: 0;
  text-align: right;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Ayuda debajo del buscador (evita superposición con notificaciones) */
.search-help-inline {
  margin-top: 12px;
  text-align: right;
}

.search-help-inline .help-link {
  font-size: 13px;
}

.help-link {
  color: #F45F37;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.help-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-header {
    flex-wrap: wrap;
  }

  .search-help {
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
  }

  .search-help-inline {
    margin-top: 10px;
  }
}

/* Results Section */
.results-section {
  background-color: #0D0907;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
}

.results-header {
  margin-bottom: 20px;
}

.results-count-text {
  font-size: 16px;
  font-weight: 500;
  color: #F8F8FF;
  display: block;
}

/* Viajes Cards Container */
/* Cards más anchas: en viewports grandes máx. 4 por fila; en el resto auto-fill */
.viajes-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (min-width: 1280px) {
  .viajes-cards-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Viaje Card */
.viaje-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.viaje-card:hover {
  box-shadow: 0 12px 32px rgba(82, 157, 247, 0.6), 0 8px 20px rgba(82, 157, 247, 0.5), 0 4px 12px rgba(82, 157, 247, 0.4);
  transform: translateY(-12px) scale(1.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Banda gris superior (N° contrato) en cards de viaje/planes */
.viaje-card .card-header-band {
  background-color: rgba(13, 9, 7, 0.06);
  margin: -20px -20px 16px -20px;
  padding: 12px 20px;
  border-radius: 12px 12px 0 0;
}

/* Banda gris inferior (Tipo) en cards de mis-planes */
.card-tipo-band {
  background-color: rgba(13, 9, 7, 0.06);
  margin: 16px -20px -20px -20px;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tipo-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(13, 9, 7, 0.7);
}

.card-tipo-value {
  font-size: 14px;
  font-weight: 500;
  color: #0D0907;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-tipo-value img {
  flex-shrink: 0;
}

.btn-agregar-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #529DF7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-agregar-card:hover {
  background-color: #3d7dd1;
  transform: scale(1.05);
}

.btn-agregar-card i {
  font-size: 12px;
}

.card-contract-id {
  font-size: 14px;
  font-weight: 600;
  color: #0D0907;
  font-family: 'Consolas', monospace;
}

.card-body {
  flex: 1;
  margin-bottom: 16px;
}

.card-school {
  font-size: 18px;
  font-weight: 700;
  color: #0D0907;
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-school img,
.card-school i {
  flex-shrink: 0;
  width: 20px;
  min-width: 20px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}

.card-destination {
  font-size: 16px;
  font-weight: 500;
  color: #0D0907;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-destination img {
  flex-shrink: 0;
}

.card-destination i {
  flex-shrink: 0;
  width: 20px;
  min-width: 20px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}

.card-type {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.7);
  margin: 0 0 8px 0;
}

.card-date {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.7);
  margin: 0;
}

.card-tipo-band .card-tipo-value img {
  flex-shrink: 0;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 9, 7, 0.1);
}

.card-badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(13, 9, 7, 0.08);
  color: #0D0907;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Badges de semáforo */
.card-badge.semaforo-verde {
  background-color: rgba(115, 214, 115, 0.2);
  color: #4a9d4a;
}

.card-badge.semaforo-amarillo {
  background-color: rgba(255, 241, 102, 0.3);
  color: #b8941a;
}

.card-badge.semaforo-rojo {
  background-color: rgba(247, 34, 34, 0.2);
  color: #d32f2f;
}

.card-badge.semaforo-gris {
  background-color: rgba(167, 167, 167, 0.2);
  color: #757575;
}

/* Botones de acción en cards */
.btn-ver-detalles {
  background-color: #529DF7 !important;
}

.btn-ver-detalles:hover {
  background-color: #3d7dd1 !important;
}

.btn-retomar {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.btn-retomar:hover {
  background-color: #e0a800 !important;
  color: #000 !important;
}

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: #F8F8FF;
  border-radius: 12px;
  border: 1px solid rgba(13, 9, 7, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: rgba(13, 9, 7, 0.7);
}

.empty-state-card i {
  font-size: 64px;
  margin-bottom: 20px;
  color: rgba(13, 9, 7, 0.4);
  display: block;
}

.empty-state-card p {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  color: rgba(13, 9, 7, 0.7);
}

/* Empty State */
.no-results {
  background-color: transparent !important;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: rgba(13, 9, 7, 0.5);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: rgba(13, 9, 7, 0.3);
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .search-section {
    padding: 20px;
  }

  .results-section {
    padding: 20px;
  }

  .viajes-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .search-section {
    padding: 16px;
  }

  .results-section {
    padding: 16px;
  }

  .results-count-text {
    font-size: 14px;
  }

  .viajes-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .viaje-card {
    padding: 16px;
  }

  .viaje-card .card-header-band {
    margin: -16px -16px 12px -16px;
    padding: 10px 16px;
  }

  .card-tipo-band {
    margin: 12px -16px -16px -16px;
    padding: 10px 16px;
  }

  .card-school {
    font-size: 16px;
  }

  .card-destination {
    font-size: 14px;
  }
}

/* ============================================
   HEADER CONTRATO - RESUMEN SIMPLE Y DISCRETO
   ============================================ */

.contrato-resumen-simple {
  background: #F8F8FF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(13, 9, 7, 0.06);
  border: 1px solid rgba(13, 9, 7, 0.08);
}

.contrato-resumen-header {
  margin-bottom: 16px;
}

.contrato-resumen-title {
  font-size: 16px;
  font-weight: 600;
  color: #0D0907;
  letter-spacing: 0.5px;
}

.contrato-resumen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.contrato-resumen-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contrato-resumen-simple .resumen-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(13, 9, 7, 0.6);
  white-space: nowrap;
}

.contrato-resumen-simple .resumen-label .resumen-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contrato-resumen-simple .resumen-label .resumen-icon-fa {
  width: 1em;
  height: 1em;
  font-size: 18px;
  text-align: center;
  color: rgba(13, 9, 7, 0.65);
}

.contrato-resumen-simple .resumen-text {
  font-size: 14px;
  font-weight: 400;
  color: #0D0907;
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .contrato-resumen-simple {
    padding: 16px;
    border-radius: 10px;
  }

  .contrato-resumen-header {
    margin-bottom: 14px;
  }

  .contrato-resumen-title {
    font-size: 15px;
  }

  .contrato-resumen-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contrato-resumen-item {
    gap: 8px;
  }

  .contrato-resumen-simple .resumen-label,
  .contrato-resumen-simple .resumen-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contrato-resumen-simple {
    padding: 14px;
  }

  .contrato-resumen-title {
    font-size: 14px;
  }

  .contrato-resumen-simple .resumen-label,
  .contrato-resumen-simple .resumen-text {
    font-size: 12px;
  }
}

/* ============================================
   SELECT TIPO PASAJERO MODERNO Y LLAMATIVO
   ============================================ */

.tipo-pasajero-select-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto 24px;
}

.tipo-pasajero-select-modern {
  width: 100%;
  padding: 20px 50px 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #0D0907;
  background: linear-gradient(135deg, #ffffff 0%, #F8F8FF 100%);
  border: 3px solid #F45F37;
  border-radius: 16px;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(244, 95, 55, 0.15), 0 2px 8px rgba(244, 95, 55, 0.1);
  outline: none;
}

.tipo-pasajero-select-modern:hover {
  border-color: #e0552d;
  box-shadow: 0 6px 28px rgba(244, 95, 55, 0.25), 0 4px 12px rgba(244, 95, 55, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.tipo-pasajero-select-modern:focus {
  border-color: #F45F37;
  box-shadow: 0 0 0 4px rgba(244, 95, 55, 0.2), 0 6px 28px rgba(244, 95, 55, 0.25);
  transform: translateY(-2px);
}

.tipo-pasajero-select-modern:not([value=""]) {
  background: linear-gradient(135deg, #F45F37 0%, #e0552d 100%);
  color: #ffffff;
  border-color: #F45F37;
}

.tipo-pasajero-select-modern:not([value=""]):hover {
  background: linear-gradient(135deg, #e0552d 0%, #d04a22 100%);
  box-shadow: 0 8px 32px rgba(244, 95, 55, 0.35), 0 4px 16px rgba(244, 95, 55, 0.2);
}

.tipo-pasajero-select-modern option {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  background: #ffffff;
  color: #0D0907;
}

.tipo-pasajero-select-modern option:first-child {
  color: rgba(13, 9, 7, 0.5);
  font-style: italic;
}

.select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #F45F37;
  font-size: 18px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.tipo-pasajero-select-modern:focus + .select-arrow,
.tipo-pasajero-select-wrapper:hover .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #e0552d;
}

.tipo-pasajero-select-modern:not([value=""]) + .select-arrow {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .tipo-pasajero-select-wrapper {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .tipo-pasajero-select-modern {
    padding: 18px 48px 18px 20px;
    font-size: 16px;
    border-radius: 14px;
  }

  .select-arrow {
    right: 18px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .tipo-pasajero-select-modern {
    padding: 16px 44px 16px 18px;
    font-size: 15px;
    border-radius: 12px;
    border-width: 2px;
  }

  .select-arrow {
    right: 16px;
    font-size: 14px;
  }
}

/* ============================================
   CENTRO DE AYUDA - FAQ MODERNO
   ============================================ */

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-category {
  background: #F8F8FF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(13, 9, 7, 0.06);
  border: 1px solid rgba(13, 9, 7, 0.08);
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(244, 95, 55, 0.2);
}

.faq-category-header i {
  font-size: 24px;
  color: #F45F37;
}

.faq-category-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0D0907;
  margin: 0;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(13, 9, 7, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(13, 9, 7, 0.08);
  border-color: rgba(244, 95, 55, 0.3);
}

.faq-item.highlight {
  border-color: #F45F37;
  box-shadow: 0 4px 16px rgba(244, 95, 55, 0.2);
  background: #fff8f6;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(244, 95, 55, 0.05);
}

.faq-question span {
  font-size: 16px;
  font-weight: 600;
  color: #0D0907;
  flex: 1;
  padding-right: 16px;
}

.faq-question i {
  font-size: 14px;
  color: #F45F37;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(13, 9, 7, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 2000px;
}

.faq-answer {
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  padding: 20px;
}

.faq-answer p {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #0D0907;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer ul li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #0D0907;
}

.faq-answer a {
  color: #F45F37;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: #e0552d;
  text-decoration: underline;
}

.faq-important {
  background: rgba(244, 95, 55, 0.1);
  border-left: 4px solid #F45F37;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
}

.faq-important p {
  margin: 0;
  font-size: 14px;
  color: #0D0907;
}

.faq-note {
  background: rgba(13, 9, 7, 0.05);
  border-left: 4px solid rgba(13, 9, 7, 0.3);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
  font-size: 14px;
  color: #0D0907;
}

.faq-contact {
  background: rgba(82, 157, 247, 0.1);
  border-left: 4px solid #529DF7;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
  font-size: 15px;
  color: #0D0907;
}

.faq-link {
  margin: 16px 0;
}

.faq-reference {
  font-size: 12px;
  color: rgba(13, 9, 7, 0.5);
  font-style: italic;
  margin-top: 12px;
}

.faq-table {
  margin: 20px 0;
  overflow-x: auto;
}

.faq-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(13, 9, 7, 0.05);
}

.faq-table th {
  background: rgba(244, 95, 55, 0.1);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #0D0907;
  border-bottom: 2px solid rgba(244, 95, 55, 0.2);
}

.faq-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #0D0907;
  border-bottom: 1px solid rgba(13, 9, 7, 0.08);
}

.faq-table tr:last-child td {
  border-bottom: none;
}

.faq-table tr:hover {
  background: rgba(244, 95, 55, 0.03);
}

.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: rgba(13, 9, 7, 0.5);
}

.faq-no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  color: rgba(13, 9, 7, 0.3);
}

.faq-no-results p {
  font-size: 16px;
  margin: 0 0 8px 0;
}

.faq-no-results-hint {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-category {
    padding: 20px;
  }

  .faq-category-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .faq-category-header h3 {
    font-size: 18px;
  }

  .faq-question {
    padding: 16px;
  }

  .faq-question span {
    font-size: 15px;
  }

  .faq-item.active .faq-answer {
    padding: 16px;
  }

  .faq-answer p,
  .faq-answer ul li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-category {
    padding: 16px;
  }

  .faq-category-header {
    gap: 10px;
  }

  .faq-category-header i {
    font-size: 20px;
  }

  .faq-category-header h3 {
    font-size: 16px;
  }

  .faq-question {
    padding: 14px;
  }

  .faq-question span {
    font-size: 14px;
    padding-right: 12px;
  }

  .faq-item.active .faq-answer {
    padding: 14px;
  }

  .faq-table {
    font-size: 12px;
  }

  .faq-table th,
  .faq-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ============================================
   TOGGLES SÍ/NO - Carga pasajeros datos (menor/mayor)
   ============================================ */

.pasajero-toggle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pasajero-toggle-group > label {
  font-size: 14px;
  font-weight: 500;
  color: #0D0907;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.pasajero-toggle {
  display: inline-flex;
  background: rgba(13, 9, 7, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  position: relative;
  border: 1px solid rgba(13, 9, 7, 0.1);
  transition: box-shadow 0.2s ease;
}

.pasajero-toggle:focus-within {
  box-shadow: 0 0 0 2px rgba(244, 95, 55, 0.35);
}

.pasajero-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.pasajero-toggle__track {
  display: flex;
  border-radius: 999px;
  background: transparent;
}

.pasajero-toggle__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(13, 9, 7, 0.65);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.pasajero-toggle__opt:hover {
  color: #0D0907;
}

.pasajero-toggle__opt--active {
  background: #F45F37;
  color: #fff;
  box-shadow: 0 2px 8px rgba(244, 95, 55, 0.35);
}

.pasajero-toggle__opt--active:hover {
  background: #e0552d;
  color: #fff;
}

/* Toggle tamaño pequeño */
.pasajero-toggle--sm {
  padding: 3px;
}

.pasajero-toggle--sm .pasajero-toggle__opt {
  min-width: 44px;
  padding: 6px 12px;
  font-size: 13px;
}

/* ============================================
   INFORMACIÓN ADICIONAL - Carga pasajeros
   ============================================ */

.info-adicional-section {
  background: rgba(244, 95, 55, 0.04);
  border: 1px solid rgba(244, 95, 55, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
}

.info-adicional-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.info-adicional-label {
  font-size: 15px;
  font-weight: 600;
  color: #0D0907;
  margin: 0;
}

.info-adicional-hint {
  font-size: 13px;
  color: rgba(13, 9, 7, 0.55);
  font-style: italic;
}

.info-adicional-textarea-wrapper {
  display: none;
  margin-top: 16px;
}

.info-adicional-textarea {
  min-height: 100px;
  resize: vertical;
  border-radius: 10px;
}

.info-adicional-counter {
  text-align: right;
  font-size: 12px;
  color: rgba(13, 9, 7, 0.5);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .info-adicional-section {
    padding: 14px 16px;
  }

  .info-adicional-toggle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .info-adicional-label {
    font-size: 14px;
  }

  .info-adicional-hint {
    font-size: 12px;
  }
}

/* Tag info adicional - para mis-planes-detalle */
.tag.tag-info {
  background: rgba(244, 95, 55, 0.12);
  color: #F45F37;
  border: 1px solid rgba(244, 95, 55, 0.25);
}

/* Display info adicional - para mis-planes-detalle */
.info-adicional-display {
  background: rgba(244, 95, 55, 0.05);
  border-left: 3px solid #F45F37;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.info-adicional-label-sm {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #F45F37;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-adicional-text {
  font-size: 13px;
  color: #0D0907;
  line-height: 1.5;
}

/* ===== Confirmar pasajeros (revisión final) ===== */
/* Fragmento embebido en #frm-completar-03 (carga-pasajeros-datos2): sin layout, una columna, cards compactas */
.confirmar-embed.confirmar-page {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.confirmar-embed .confirmar-cards-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 991px) {
  .confirmar-embed .confirmar-cards-row {
    grid-template-columns: 1fr;
  }
}
.confirmar-embed .confirmar-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.confirmar-embed .confirmar-card-header {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
}
.confirmar-embed .confirmar-card-body {
  flex: 1;
  min-height: 0;
  padding: 14px;
}
.confirmar-embed .confirmar-intro {
  margin-bottom: 18px;
}
.confirmar-embed .confirmar-intro h2 {
  font-size: 1.2rem;
}
.confirmar-page .confirmar-intro {
  text-align: center;
  margin-bottom: 24px;
}
.confirmar-page .confirmar-intro h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #0D0907;
  margin-bottom: 8px;
}
.confirmar-page .confirmar-intro p {
  font-size: 14px;
  color: rgba(13, 9, 7, 0.7);
  margin: 0;
}
.confirmar-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 991px) {
  .confirmar-cards-row {
    grid-template-columns: 1fr;
  }
}
.confirmar-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(13, 9, 7, 0.1);
  box-shadow: 0 1px 4px rgba(13, 9, 7, 0.08);
  overflow: hidden;
}
.confirmar-card-header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}
/* Prioridad sobre estilos legacy (.viaje en estilos.css) - #frm-completar-03 para cuando se embebe en carga-pasajeros-datos2 */
#frm-completar-03 .confirmar-card-header.viaje,
.confirmar-page .confirmar-card-header.viaje,
.confirmar-embed .confirmar-card-header.viaje {
  min-height: auto !important;
  max-height: none !important;
  border: none !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  background: linear-gradient(135deg, #F45F37 0%, #e0552d 50%, #c94d28 100%) !important;
  color: #fff !important;
  border-radius: 0 !important;
  position: relative !important;
}
.confirmar-card-header.pasajero {
  background: linear-gradient(135deg, #2a9d8f 0%, #238276 100%);
}
.confirmar-card-header.contacto {
  background: linear-gradient(135deg, #5c6bc0 0%, #4a56a8 100%);
}
.confirmar-card-header.plan {
  background: rgba(13, 9, 7, 0.5);
}
.confirmar-card-body {
  padding: 16px;
}
.confirmar-card-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(13, 9, 7, 0.06);
}
.confirmar-card-line:last-child {
  border-bottom: none;
}
.confirmar-card-line .label {
  color: rgba(13, 9, 7, 0.6);
  font-weight: 500;
}
.confirmar-card-line .value {
  color: #0D0907;
}
.confirmar-card-line .value em {
  font-style: normal;
  font-weight: 500;
}
/* Zona de acción: checkbox T&C + botón, centrada y con ancho controlado */
.confirmar-action-zone {
  max-width: 520px;
  margin: 28px auto 32px;
  text-align: center;
}
.confirmar-terms-block {
  padding: 18px 24px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: 12px;
  border: 1px solid rgba(244, 95, 55, 0.25);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(13, 9, 7, 0.06);
}
.confirmar-embed .confirmar-terms-block {
  background: linear-gradient(135deg, #fff 0%, #fffbf9 100%);
  border-color: rgba(244, 95, 55, 0.3);
}
.confirmar-terms-block .form-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.confirmar-terms-block .form-check-input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
}
.confirmar-terms-block .form-check-label {
  font-size: 14px;
  color: #0D0907;
}
.confirmar-terms-block .form-check-label a {
  color: #F45F37;
  font-weight: 600;
}
.confirmar-terms-block .form-check-label a:hover {
  text-decoration: underline;
}
.confirmar-action-zone .confirmar-btn-wrap {
  margin: 0;
}
.confirmar-btn-wrap {
  text-align: center;
  margin: 24px 0;
}
.confirmar-btn-wrap .btn-confirmar-viaje {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #F45F37 0%, #c94d28 100%);
  border: none;
  color: #fff;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.confirmar-btn-wrap .btn-confirmar-viaje:hover {
  filter: brightness(1.08);
  color: #fff;
}
.confirmar-alert-box {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(13, 9, 7, 0.04);
}
.confirmar-alert-box .confirmar-alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #856404;
  font-size: 1.25rem;
}
.confirmar-alert-box .confirmar-alert-text {
  font-size: 13px;
  color: #664d03;
  line-height: 1.5;
}
.confirmar-alert-box.info {
  border-color: rgba(13, 110, 253, 0.3);
  background: linear-gradient(135deg, #e8f4fd 0%, #d6ebff 100%);
}
.confirmar-alert-box.info .confirmar-alert-icon {
  color: #055160;
}
.confirmar-alert-box.info .confirmar-alert-text {
  color: #055160;
}
.confirmar-card-line.confirmar-plan-desc {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.confirmar-card-line.confirmar-plan-desc .value {
  font-size: 12px;
  color: rgba(13, 9, 7, 0.8);
  white-space: pre-line;
}
.confirmar-legal-box {
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid rgba(13, 9, 7, 0.08);
  background: linear-gradient(180deg, #fafaff 0%, #f5f5ff 100%);
  margin-top: 24px;
  box-shadow: 0 1px 4px rgba(13, 9, 7, 0.04);
}
.confirmar-legal-box .confirmar-legal-title {
  font-size: 15px;
  font-weight: 700;
  color: #0D0907;
  margin-bottom: 12px;
}
.confirmar-legal-box .confirmar-legal-body {
  font-size: 12px;
  color: rgba(13, 9, 7, 0.85);
  line-height: 1.6;
}
.confirmar-legal-box .confirmar-legal-body p {
  margin: 0 0 10px 0;
}
.confirmar-legal-box .confirmar-legal-body p:last-child {
  margin-bottom: 0;
}
.confirmar-legal-box .confirmar-legal-body b {
  font-weight: 600;
}
.confirmar-success-card {
  text-align: center;
  padding: 40px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.confirmar-success-card .confirmar-success-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 16px;
}
.confirmar-success-card .confirmar-success-msg {
  font-size: 1.1rem;
  color: #0D0907;
  margin-bottom: 24px;
}
.confirmar-success-card .btn {
  margin: 0 6px;
}
