/* Error messages */
.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 500;
  padding: 0 20px;
  width: 100%;
}

#error-boletos-general {
  padding: 10px 15px;
  margin-bottom: 10px;
  text-align: center;
}

/* Mensajes de estado especiales */
.no-dates-available {
  color: #856404;
  font-weight: bold;
  text-align: center;
  padding: 15px;
}

.d-flex>.btn, .d-flex>.btn-group {
    width: 5%;
}

.site-not-available {
  text-align: center;
  margin: 20px;
  padding: 20px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
}

.site-not-available i {
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 10px;
}

.site-not-available h5 {
  color: #856404;
  margin-bottom: 15px;
}

.site-not-available p {
  color: #856404;
  margin-bottom: 15px;
}

.site-not-available .contact-info {
  font-size: 0.9rem;
}

/* Estilos para la vista de compra */

/* ----- Tarjeta Principal ----- */
.purchase-card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.purchase-card .card-header {
  background-color: #f5f7f9;
  border: none;
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  color: #9F2241;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-number {
  margin-right: 8px;
  font-weight: bold;
  color: #9F2241;
}

.chevron-icon {
  transition: transform 0.3s;
  color: #691C32;
}

/* ----- Datepicker Container Original (para compatibilidad) ----- */
.datepicker-container {
  padding: 0;
}

/* ----- ESTILOS PARA EL CALENDARIO MODERNO ----- */
.modern-calendar-container {
  background: white;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.modern-calendar-header {
  background: linear-gradient(135deg, #9F2241 0%, #691C32 100%);
  color: white;
  padding: 15px 10px;
  text-align: center;
  position: relative;
}

.modern-calendar-title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.nav-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.nav-button:focus {
  outline: none;
}

.current-month {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.modern-calendar-grid {
  padding: 10px;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: #691C32;
  padding: 5px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 2rem;
  
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  animation: fadeIn 0.5s ease;
}

.day {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  min-height: 45px;
}

.day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #9F2241, #691C32);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Día normal disponible */
.day.available {
  background: #f8f9fa;
  color: #333;
  border-color: #e9ecef;
  font-size: 1.2em;
}

.day.available:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 34, 65, 0.2);
  border-color: #9F2241;
}

.day.available:hover::before {
  opacity: 1;
}

.day.available:hover {
  color: white;
}

/* Día seleccionado */
.day.selected {
  background: linear-gradient(135deg, #9F2241, #691C32) !important;
  color: white !important;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(159, 34, 65, 0.4);
  font-weight: 600;
  border-color: #691C32;
}

/* Día de hoy */
.day.today:not(.selected) {
  background: linear-gradient(135deg, #235B4E, #10312B);
  color: white;
  position: relative;
}

.day.today:not(.selected)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

/* Día cerrado */
.day.closed {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
  position: relative;
}

.day.closed::after {
  content: '×';
  position: absolute;
  top: 2px;
  right: 5px;
  color: #dc3545;
  font-size: 14px;
  font-weight: bold;
}

/* Días de otros meses */
.day.other-month {
  color: #ddd;
  pointer-events: none;
}

/* Leyenda del calendario */
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 25px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8em;
  color: #666;
  font-weight: 500;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.legend-dot.available {
  background: #f8f9fa;
  border: 2px solid #9F2241;
}

.legend-dot.today {
  background: linear-gradient(135deg, #235B4E, #10312B);
}

.legend-dot.closed {
  background: #f5f5f5;
  border: 1px solid #ccc;
  position: relative;
}

.legend-dot.closed::after {
  content: '×';
  position: absolute;
  top: -4px;
  right: -2px;
  color: #dc3545;
  font-size: 8px;
  font-weight: bold;
}

/* Banner de restricción de tiempo mejorado */
.time-restriction-banner {
  background: linear-gradient(135deg, #ff8c00, #ff6600);
  color: white;
  padding: 18px 25px;
  text-align: center;
  font-size: 1.4rem;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.time-restriction-banner.time-restriction-urgent {
  background: linear-gradient(135deg, #dc3545, #b02a37);
}

.time-restriction-banner.time-restriction-info {
  background: linear-gradient(135deg, #1976d2, #1565c0);
}

.time-restriction-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.time-restriction-banner i {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ----- Lista de Boletos ----- */
.ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticket-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #e2e8f0;
}

.ticket-icon-container {
  margin-right: 15px;
}

.ticket-icon {
  color: #333;
  font-size: 1.2rem;
  transform: rotate(45deg);
}

.ticket-info {
  flex: 1;
}

.ticket-name {
  font-weight: 600;
  color: #9F2241;
  font-size: 1.9rem;
}

.ticket-description {
  font-size: 0.85rem;
  color: #666;
}

/* Información de ofertas de tickets */
.ticket-offer-info {
  display: none;
  font-size: 0.9em;
  color: #d5001c;
  font-weight: 600;
  margin-top: 5px;
  padding: 5px 8px;
  background-color: #fff3f3;
  border-radius: 4px;
  border-left: 3px solid #d5001c;
}

.ticket-price {
  font-weight: 600;
  color: #9F2241;
  margin-right: 20px;
  font-size: 1.5rem;
}

.ticket-quantity {
  display: flex;
  align-items: center;
}

.btn-decrement, .btn-increment {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #9F2241;
  color: white;
  border: none;
  border-radius: 0;
}

.btn-decrement:hover, .btn-increment:hover {
  background-color: #691C32;
}

.quantity-display {
  width: 40px;
  text-align: center;
  color: #333;
  height: 36px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* ----- Estilos para promociones ----- */
.promotion-item {
  background-color: #f0f8ff;
  border-left: 4px solid #007bff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.promotion-item.promotion-percentage {
  background-color: #f0f8ff;
  border-left-color: #007bff;
}

.promotion-item.promotion-fixed {
  background-color: #fff8f0;
  border-left-color: #ff8c00;
}

.promotion-item.promotion-buy-x-get-y {
  background-color: #fff3f3;
  border-left-color: #d5001c;
}

.promotion-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #007bff;
}

.promotion-item.promotion-fixed .promotion-title {
  color: #ff8c00;
}

.promotion-item.promotion-buy-x-get-y .promotion-title {
  color: #d5001c;
}

.promotion-detail {
  margin: 5px 0;
}

.promotion-ticket-info {
  margin: 5px 0;
}

.promo-ticket {
  font-weight: 600;
}

.promo-discount {
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}

.promo-discount-percentage {
  background-color: #007bff;
}

.promo-discount-fixed {
  background-color: #ff8c00;
}

.promo-discount-buy-x-get-y {
  background-color: #d5001c;
}

.promotion-description {
  margin-top: 8px;
  font-size: 0.95em;
}

.promotion-validity {
  font-size: 0.85em;
  margin-top: 8px;
  color: #666;
}

.buy-x-get-y-text {
  font-size: 0.9em;
}

/* ----- Tarjeta de Resumen ----- */
.summary-card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 4px;
  margin-top: 0;
}

.summary-card .card-body {
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-of-type {
  border-bottom: none;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.summary-row.promotion-row {
  color: #d5001c;
}

.summary-label {
  font-weight: 600;
  color: #333;
}

.summary-value {
  font-weight: 600;
  text-align: right;
}

/* Estilos para el resumen de ahorros */
.savings-summary {
  margin-top: 10px;
  color: #d5001c;
  font-weight: bold;
}

.btn-continue {
  background-color: #9F2241;
  border: none;
  color: white;
  padding: 12px;
  font-weight: 600;
  margin-top: 20px;
  border-radius: 3px;
  text-transform: uppercase;
}

.btn-continue:hover {
  background-color: #691C32;
  color: white;
}

/* ----- Contenedor principal ----- */
.purchase-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.info-title {
  background-color: #691C32;
  color: white;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-weight: normal;
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
  text-align: center;
}

/* ----- Breadcrumb ----- */
.breadcrumb-container {
    display: flex;
    align-items: center;
    padding: 1rem 5rem; /* Agregado padding lateral para evitar que toque los bordes */
    margin: 0 auto 1rem;
    color: black;
    max-width: 1140px;
    width: 100%; /* Asegura que tome todo el ancho disponible */
}

.breadcrumb-container a {
  color: #9F2241;
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb-container a:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #691C32;
}

.breadcrumb-container span {
  color: black;
}

/* ----- Estilos para botones de acción ----- */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.btn-add-cart {
  background-color: #235B4E;
  border-color: #235B4E;
  color: white;
  font-weight: 600;
  padding: 12px;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.btn-add-cart:hover {
  background-color: #10312B;
  border-color: #10312B;
  color: white;
}

.btn-add-cart i {
  margin-right: 0.5rem;
}

/* ----- Estilos para botones deshabilitados ----- */
.btn-disabled {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

.btn-disabled:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
  cursor: not-allowed !important;
}

/* ----- Estilos para el badge del carrito ----- */
.cart-badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background-color: #dc3545 !important;
  color: white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

/* ----- Estilos para los toasts (DEPRECATED - usar enhanced-toast) ----- */
.custom-toast {
  /* Estilos mantenidos para compatibilidad pero no se usan */
  display: none;
}

.custom-toast.toast-success {
  background-color: #28a745;
  color: white;
}

.custom-toast.toast-warning {
  background-color: #ff9800;
  color: white;
}

.custom-toast.toast-error {
  background-color: red;
  color: white;
}

.custom-toast.toast-show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.toast-body i {
  margin-right: 10px;
  font-size: 20px;
}

.toast-body span {
  font-weight: 500;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  line-height: 1;
}

/* ===== ESTILOS EXTRAÍDOS DEL CARRITO.JS ===== */

/* Toast Container para carrito */
#toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10000 !important;
  pointer-events: none !important;
  max-width: 400px !important;
}

/* Enhanced Toast específico para carrito */
.enhanced-toast.cart-toast {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  max-width: 100%;
  word-wrap: break-word;
  position: relative;
}

.enhanced-toast.cart-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.enhanced-toast.cart-toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

.enhanced-toast.cart-toast.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-left: 4px solid #155724;
}

.enhanced-toast.cart-toast.error {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
  border-left: 4px solid #721c24;
}

.enhanced-toast.cart-toast.warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: #212529;
  border-left: 4px solid #856404;
}

.enhanced-toast.cart-toast.info {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  border-left: 4px solid #0c5460;
}

.enhanced-toast.cart-toast .toast-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.enhanced-toast.cart-toast .toast-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.enhanced-toast.cart-toast .toast-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.enhanced-toast.cart-toast .toast-text {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.enhanced-toast.cart-toast .toast-close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.enhanced-toast.cart-toast .toast-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.enhanced-toast.cart-toast.warning .toast-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ===== ESTILOS COMPLETOS DEL CARRITO ===== */

/* ----- Contenedor principal del carrito ----- */
.cart-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ----- Carrito vacío ----- */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 600px;
}

.empty-cart-icon {
  font-size: 4rem;
  color: #9F2241;
  margin-bottom: 1.5rem;
}

.empty-cart h3 {
  color: #333;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.empty-cart p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-explore-sites {
  background-color: #9F2241;
  border-color: #9F2241;
  color: white;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-explore-sites:hover {
  background-color: #691C32;
  border-color: #691C32;
  color: white;
  text-decoration: none;
}

/* ===== ALERTAS DEL CARRITO ===== */
.cart-alerts-container {
  margin-bottom: 1.5rem;
}

.cart-alerts-container .alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.cart-alerts-container .alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: currentColor;
}

.time-warning {
  background-color: #fff3cd;
  border-left-color: #ff9800;
  color: #856404;
  animation: pulse-border 2s infinite;
}

.time-warning.alert-danger {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
  animation: pulse-urgent 1s infinite;
}

.past-date-warning {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
  position: relative;
}

.past-date-warning::before {
  background-color: #dc3545;
}

.expired-warning {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

.availability-warning {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

.promo-changes {
  background-color: #d1ecf1;
  border-left-color: #17a2b8;
  color: #0c5460;
}

.validation-warning {
  background-color: #fff3cd;
}

@keyframes pulse-border {
  0%, 100% { border-left-width: 4px; }
  50% { border-left-width: 6px; }
}

@keyframes pulse-urgent {
  0%, 100% { 
    border-left-width: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  50% { 
    border-left-width: 8px;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
  }
}

/* ----- Items del carrito ----- */
.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

/* Estados de items del carrito */
.cart-item.expired-item {
  opacity: 0.7;
  position: relative;
}

.cart-item.expired-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(220, 53, 69, 0.1) 10px,
    rgba(220, 53, 69, 0.1) 20px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.cart-item.unavailable-item {
  opacity: 0.8;
  filter: grayscale(30%);
}

.cart-item.updated-promotions {
  border-left: 4px solid #17a2b8;
  animation: highlight-update 2s ease-out;
}

/* Efectos visuales para actualizaciones */
.item-updated {
  background-color: rgba(40, 167, 69, 0.1) !important;
  transition: background-color 0.3s ease;
}

.summary-updated {
  background-color: rgba(23, 162, 184, 0.1) !important;
  transition: background-color 0.3s ease;
}

@keyframes highlight-update {
  0% { 
    background-color: rgba(23, 162, 184, 0.1);
    transform: scale(1.02);
  }
  100% { 
    background-color: transparent;
    transform: scale(1);
  }
}

.cart-item-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.cart-item-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cart-item-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 1.5rem;
}

.site-info .site-name {
  color: #691C32;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.visit-date {
  color: #666;
  font-size: 1.30rem;
  font-weight: 600;
}

.visit-date .fa {
  margin-right: 0.5rem;
}

/* ===== BADGES DE ESTADO ===== */
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.item-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-status-badge i {
  margin-right: 0.25rem;
  font-size: 0.8rem;
}

.item-status-badge.expired {
  background-color: #dc3545;
  color: white;
  animation: pulse 1.5s infinite;
}

.item-status-badge.unavailable {
  background-color: #6c757d;
  color: white;
}

.item-status-badge.updated {
  background-color: #17a2b8;
  color: white;
  animation: glow 2s ease-in-out;
}

.item-status-badge.urgent {
  background-color: #ff9800;
  color: white;
  animation: pulse-border 2s infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(23, 162, 184, 0); }
  50% { box-shadow: 0 0 10px rgba(23, 162, 184, 0.5); }
}

.btn-remove-item {
  color: #dc3545;
  border-color: #dc3545;
  transition: all 0.3s;
}

.btn-remove-item:hover {
  background-color: #dc3545;
  color: white;
}

/* ----- Lista de tickets ----- */
.tickets-list {
  margin-bottom: 1rem;
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.ticket-row:last-child {
  border-bottom: none;
}

.ticket-info {
  flex: 1;
  margin-right: 1rem;
}

.ticket-name {
  font-weight: 500;
  color: #333;
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}

.ticket-description {
  color: #000000;
  font-size: 1.6rem;
}

.ticket-quantity {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.quantity-label {
  margin-right: 0.5rem;
  font-size: 1.3rem;
  color: #666;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.btn-quantity-decrease,
.btn-quantity-increase {
  background-color: #9F2241;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background-color 0.3s;
}

.btn-quantity-decrease:hover,
.btn-quantity-increase:hover {
  background-color: #691C32;
}

.btn-quantity-decrease:disabled,
.btn-quantity-increase:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.quantity-display {
  color: #333;
  padding: 0 12px;
  height: 30px;
  display: flex;
  align-items: center;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  justify-content: center;
}

.ticket-price {
  text-align: right;
  min-width: 100px;
}

.unit-price {
  color: #666;
  font-size:  1.2rem;
}

.subtotal-price {
  font-weight: 600;
  color: #333;
  font-size: 1.5rem;
}

/* ----- Descuentos del item ----- */
.item-discounts {
  background-color: #f0f8ff;
  border-left: 4px solid #9F2241;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
  position: relative;
}

.discounts-header {
  font-weight: 600;
  color: #007bff;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  align-items: center;
  justify-content: space-between;
}

.discounts-header .fa {
  margin-right: 0.5rem;
}

.promotion-updated-badge {
  background-color: #17a2b8;
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.discount-amount {
  color: #28a745;
  font-weight: 600;
}

/* ----- Total del item ----- */
.item-total {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-weight: 400;
}

.item-total .d-flex {
  margin-bottom: 0.5rem;
}

.item-total .d-flex:last-child {
  margin-bottom: 0;
  font-size: 1.8rem;
}

/* ----- Acciones del carrito ----- */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 2px solid #f0f0f0;
  margin-top: 2rem;
  gap: 1rem;
}

.cart-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
  flex: 1;
  max-width: 200px;
}

.cart-actions .btn i {
  margin-right: 0.5rem;
}

.cart-actions .btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.cart-actions .btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}

/* ----- Tarjeta de resumen ----- */
.cart-summary-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 2rem;
}

.cart-summary-card .card-title {
  color: #9F2241;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

.summary-row:not(.total-row) {
  border-bottom: 1px solid #f0f0f0;
}

.summary-label {
  color: #333;
  font-size: 1.8rem;
}

.summary-value {
  color: #333;
  font-weight: 600;
  font-size: 1.8rem;
}

.discount-row .summary-label,
.discount-row .summary-value {
  color: #28a745;
}

.total-row {
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #9F2241;
}

.btn-checkout {
  background-color: #9F2241;
  border-color: #9F2241;
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  margin-top: 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: normal;
  line-height: 1.2;
  min-height: 45px;
}

.btn-checkout:hover {
  background-color: #691C32;
  border-color: #691C32;
  color: white;
}

.btn-checkout:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

.btn-checkout.btn-warning {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 600;
}

.btn-checkout i {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.checkout-info {
  margin-top: 1rem;
  text-align: center;
}

.checkout-info .fa {
  margin-right: 0.25rem;
}

/* ===== ESTILOS PARA MODALES DE CONFIRMACIÓN ===== */

/* Modal overlay específico para modal de confirmación */
#confirmModal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

/* Modal de confirmación específico */
#confirmModal .confirm-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: confirmModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes confirmModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header del modal de confirmación específico */
#confirmModal .confirm-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

#confirmModal .confirm-header h3 {
  margin: 0;
  color: #9F2241;
  font-size: 2.3rem;
  font-weight: 600;
}

/* Body del modal de confirmación específico */
#confirmModal .confirm-body {
  padding: 1.5rem;
}

#confirmModal .confirm-body p {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* Footer del modal de confirmación específico */
#confirmModal .confirm-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid #e5e5e5;
  background-color: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

#confirmModal .confirm-footer .btn {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 90px;
}

#confirmModal .confirm-footer .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

#confirmModal .confirm-footer .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  transform: translateY(-1px);
}

#confirmModal .confirm-footer .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

#confirmModal .confirm-footer .btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

/* Botón de cerrar específico para modal de confirmación */
#confirmModal .close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#confirmModal .close-button:hover {
  background-color: #f0f0f0;
  color: #333;
  transform: rotate(90deg);
}

/* ===== ESTILOS PARA MODAL DE AVISO ===== */
#avisoModal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.aviso-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  animation: confirmModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aviso-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.aviso-header h3 {
  margin: 0;
  color: #9F2241;
  font-size: 2.5rem;
  font-weight: 600;
  align-content: center;
}

.aviso-body {
  padding: 1.5rem;
}

.aviso-body h4 {
  color: #9F2241;
  font-weight: 600;
  margin-bottom: 1rem;
}

.aviso-body p {
  color: #333;
  font-size: 1.5rem;
  line-height: 1.5;
}

.aviso-important {
  background-color: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #ffc107;
}

.aviso-exentos {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.visitantes-titulo {
  font-weight: 600;
  color: #9F2241;
  margin-bottom: 0.5rem;
}

.aplicable-horario {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.aviso-exentos ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.domingos-texto {
  background-color: #d1ecf1;
  color: #0c5460;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  border-left: 4px solid #17a2b8;
}

.boletos-especiales {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  border-left: 4px solid #dc3545;
  font-size: 1.4rem;
}

.aviso-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
  border-radius: 0 0 12px 12px;
}

.btn-accept {
  background-color: #9F2241;
  border-color: #9F2241;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  background-color: #691C32;
  border-color: #691C32;
  transform: translateY(-1px);
}

/* Toast responsive para carrito */
@media (max-width: 480px) {
  #toast-container {
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
  }
  
  .enhanced-toast.cart-toast {
    margin-bottom: 8px;
    padding: 10px 12px;
  }
  
  .enhanced-toast.cart-toast .toast-text {
    font-size: 13px;
  }
}

/* Countdown urgente */
.urgent-countdown {
  animation: pulse 1s infinite;
  font-weight: bold !important;
}

/* Error loading styles (para consistencia) */
.error-loading {
  text-align: center;
  padding: 40px;
}

.error-loading h3 {
  color: #dc3545;
  margin-bottom: 15px;
}

.error-loading p {
  color: #666;
  margin-bottom: 20px;
}

.error-loading .btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* ----- Responsive para carrito ----- */
@media (max-width: 768px) {
  .cart-container {
    padding: 0 10px;
  }
  
  .cart-item-card .card-header {
    padding: 1rem;
  }
  
  .site-info .site-name {
    font-size: 1.1rem;
  }
  
  .ticket-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .ticket-quantity {
    margin-right: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .ticket-price {
    text-align: left;
    width: 100%;
  }
  
  .cart-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cart-actions .btn {
    width: 100%;
    max-width: none;
  }
  
  .cart-summary-card {
    position: static;
    margin-top: 2rem;
  }
  
  /* Status badges responsive */
  .status-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .item-status-badge {
    font-size: 0.7rem;
  }
  
  /* Alertas responsive */
  .cart-alerts-container .alert {
    padding: 0.75rem 1rem;
  }
  
  .cart-alerts-container .alert .btn {
    margin-top: 0.5rem;
    width: 100%;
  }
  
  /* Responsive para modal de confirmación */
  #confirmModal .confirm-modal {
    width: 95%;
    margin: 10px;
  }
  
  #confirmModal .confirm-header {
    padding: 1rem;
  }
  
  #confirmModal .confirm-body {
    padding: 1rem;
  }
  
  #confirmModal .confirm-footer {
    padding: 1rem;
    flex-direction: column;
  }
  
  #confirmModal .confirm-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  #confirmModal .confirm-footer .btn:last-child {
    margin-bottom: 0;
  }

  /* Responsive para modal de aviso */
  .aviso-modal {
    width: 95%;
    margin: 10px;
  }
  
  .aviso-header {
    padding: 1rem;
  }
  
  .aviso-body {
    padding: 1rem;
  }
  
  .aviso-footer {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .empty-cart {
    padding: 2rem 1rem;
  }
  
  .empty-cart-icon {
    font-size: 3rem;
  }
  
  .empty-cart h3 {
    font-size: 1.5rem;
  }
  
  .quantity-controls {
    flex-shrink: 0;
  }
  
  .btn-quantity-decrease,
  .btn-quantity-increase {
    width: 35px;
    height: 35px;
  }
  
  .quantity-display {
    height: 35px;
    min-width: 45px;
  }
  
  /* Botones de checkout responsive */
  .btn-checkout {
    font-size: 0.85rem;
    padding: 0.65rem 0.4rem;
  }
  
  .btn-checkout.btn-warning {
    font-size: 0.8rem;
    padding: 0.65rem 0.3rem;
  }
  
  /* Responsive para modal de confirmación en móviles pequeños */
  #confirmModal .confirm-modal,
  .aviso-modal {
    width: 98%;
    margin: 5px;
    border-radius: 8px;
  }
  
  #confirmModal .confirm-header,
  .aviso-header {
    border-radius: 8px 8px 0 0;
  }
  
  #confirmModal .confirm-footer,
  .aviso-footer {
    border-radius: 0 0 8px 8px;
  }
  
  #confirmModal .confirm-header h3,
  .aviso-header h3 {
    font-size: 1.2rem;
  }
  
  #confirmModal .close-button {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }
}

/* Toast Container y Enhanced Toast System */
.toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10000 !important;
  pointer-events: none !important;
  max-width: 400px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.enhanced-toast {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto !important;
  max-width: 100%;
  word-wrap: break-word;
  position: relative !important;
  z-index: 10001 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.enhanced-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.enhanced-toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

.enhanced-toast.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-left: 4px solid #155724;
}

.enhanced-toast.error {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
  border-left: 4px solid #721c24;
}

.enhanced-toast.warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: #212529;
  border-left: 4px solid #856404;
}

.enhanced-toast.info {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  border-left: 4px solid #0c5460;
}

.enhanced-toast .toast-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.enhanced-toast .toast-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.enhanced-toast .toast-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.enhanced-toast .toast-text {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.enhanced-toast .toast-close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.enhanced-toast .toast-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.enhanced-toast.warning .toast-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Calendar Not Available Styles */
.calendar-not-available {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  min-height: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 16px;
}

.not-available-content {
  max-width: 400px;
}

.not-available-content i {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 16px;
  display: block;
}

.not-available-content h4 {
  color: #dc3545;
  margin-bottom: 12px;
  font-weight: 600;
}

.not-available-content p {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 15px;
}

.contact-info-box {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info-box p {
  margin: 0;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.contact-info-box p:nth-child(1) i {
  margin-right: 8px;
  color: #17a2b8;
}

.contact-info-box p:nth-child(2) {
  font-weight: bold;
  color: #17a2b8;
  font-size: 18px;
  margin: 8px 0;
}

.contact-info-box p:nth-child(3) {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.contact-info-box p:nth-child(4) {
  color: #6c757d;
  font-size: 14px;
  margin: 8px 0 0 0;
}

.contact-info-box p:nth-child(4) i {
  margin-right: 6px;
}

.contact-info-box p:nth-child(4) a {
  color: #17a2b8;
  text-decoration: none;
}

/* Disabled Ticket Section */
.purchase-card.ticket-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Summary Alert */
.summary-alert {
  font-size: 14px;
  margin-bottom: 1rem;
}

.summary-alert i {
  margin-right: 5px;
}

/* Estilos para el Modal de Aviso */

/* Overlay que cubre toda la pantalla */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenedor del modal */
.aviso-modal {
  background-color: white;
  width: 1400px;
  max-width: 95%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabecera del modal - estilo para "AVISO" */
.aviso-header {
  position: relative;
  text-align: center;
  padding: 25px 30px;
  border-bottom: 2px solid #e2e8f0;
  background-color: white;
}

.aviso-header h3 {
  margin: 0;
  color: #9F2241;
  font-size: 3rem;
  font-weight: 700;
}

.close-button {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  line-height: 1;
  color: #9F2241;
  cursor: pointer;
}

.close-button:hover {
  color: #f0f0f0;
}

/* Mejoras en el cuerpo del modal */
.aviso-body {
  padding: 30px 50px;
  overflow-y: auto;
  flex: 1;
}
.modal-content {
    border-radius: 10px;
}
/* Estilos para "VENTA INDIVIDUAL" */
.aviso-body h4 {
  color: #9F2241;
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: left;
  padding-bottom: 0;
  border-bottom: none;
}

.aviso-body p {
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 1.4rem;
}

/* Estilo para el aviso importante con fondo */
.aviso-important {
  font-weight: 600;
  color: #333;
  background-color: #fff0f0;
  padding: 25px 30px;
  border-left: 6px solid #9F2241;
  margin: 30px 0;
  font-size: 1.45rem;
}

.aviso-body a {
  color: #9F2241;
  text-decoration: none;
}

.aviso-body a:hover {
  text-decoration: underline;
}

/* Estilos para "VISITANTES NACIONALES EXENTOS DE PAGO" */
.aviso-exentos {
  margin-top: 40px;
  border-top: none;
  padding-top: 20px;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.aviso-exentos h4 {
  color: #000;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.aviso-body > p:first-of-type {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.aviso-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.aviso-body li {
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 1.40rem;
}

/* Título "VISITANTES NACIONALES EXENTOS DE PAGO" */
.aviso-body .visitantes-titulo {
  font-weight: bold;
  color: #000;
  margin-bottom: 18px;
  font-size: 1.75rem;
  text-transform: uppercase;
}

/* Aplicable en horario normal */
.aviso-body .aplicable-horario {
  margin-bottom: 15px;
  font-size: 1.65rem;
}

/* Domingos texto */
.aviso-body .domingos-texto {
  margin-top: 20px;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Boletos especiales */
.aviso-body .boletos-especiales {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 20px;
}

/* Estilo del botón aceptar */
.btn-accept {
  background-color: #691C32;
  color: white;
  border: none;
  padding: 18px 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.5rem;
  text-transform: uppercase;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.btn-accept:hover {
  background-color: #4D1425;
}

/* Pie del modal */
.aviso-footer {
  padding: 30px;
  text-align: center;
}

/* ----- Estilos para el modal de reemplazo de paquete ----- */
.replace-package-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
}

.replace-package-modal {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: replaceModalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes replaceModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.replace-modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff8f0, #fff);
  border-radius: 16px 16px 0 0;
}

.replace-modal-header h3 {
  margin: 0;
  color: #9F2241;
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.replace-modal-header h3 i {
  color: #ff9800;
  margin-right: 10px;
}

.replace-modal-body {
  padding: 2rem;
}

.current-package,
.new-package {
  margin-bottom: 1.5rem;
}

.current-package h4,
.new-package h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.package-info {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  transition: all 0.3s ease;
}

.package-info.current {
  background: linear-gradient(135deg, #fff3cd, #fefcf3);
  border-color: #ffc107;
  color: #856404;
}

.package-info.new {
  background: linear-gradient(135deg, #d4edda, #f1f8f4);
  border-color: #28a745;
  color: #155724;
}

.package-info i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.replace-warning-message {
  background: linear-gradient(135deg, #f8d7da, #fcf1f2);
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  color: #721c24;
  font-size: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.replace-warning-message i {
  color: #dc3545;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.replace-modal-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border-radius: 0 0 16px 16px;
}

.replace-modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.replace-modal-footer .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.replace-modal-footer .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.replace-modal-footer .btn-primary {
  background-color: #9F2241;
  border-color: #9F2241;
  color: white;
}

.replace-modal-footer .btn-primary:hover {
  background-color: #691C32;
  border-color: #691C32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159, 34, 65, 0.3);
}

.replace-close-button {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.replace-close-button:hover {
  background-color: #f0f0f0;
  color: #333;
  transform: rotate(90deg) scale(1.1);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .ticket-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ticket-price {
    margin: 10px 0;
  }
  
  .ticket-quantity {
    align-self: flex-end;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  /* Calendario responsive */
  .modern-calendar-container {
    border-radius: 0;
  }

  .modern-calendar-header {
    padding: 25px 15px;
  }

  .modern-calendar-title {
    font-size: 2rem;
  }

  .current-month {
    font-size: 1.6rem;
  }

  .modern-calendar-grid {
    padding: 20px;
  }

  .calendar-legend {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
  }

  .legend-item {
    font-size: 2rem;
  }

  .day {
    min-height: 50px;
  }
  
  .weekday {
    font-size: 0.95rem;
    padding: 12px 0;
  }
  
  .nav-button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .time-restriction-banner {
    font-size: 1rem;
    padding: 15px 20px;
  }
  
  /* Toast responsive */
  .toast-container {
    top: 20px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
  }
  
  .enhanced-toast {
    margin-bottom: 8px;
    padding: 10px 12px;
  }
  
  .enhanced-toast .toast-text {
    font-size: 13px;
  }
  
  /* Modal responsive */
  .aviso-modal {
    max-width: 95%;
    max-height: 90vh;
  }
  
  .aviso-header h3 {
    font-size: 1.8rem;
  }
  
  .aviso-body h4 {
    font-size: 1.4rem;
  }
  
  .aviso-body {
    padding: 20px 15px;
  }
  
  .aviso-body p {
    font-size: 1.1rem;
  }
  
  .aviso-important {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  
  /* Modal de reemplazo responsive */
  .replace-package-modal {
    width: 95%;
    margin: 10px;
  }
  
  .replace-modal-header {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  
  .replace-modal-header h3 {
    font-size: 1.4rem;
  }
  
  .replace-modal-body {
    padding: 1.5rem 1rem;
  }
  
  .package-info {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .replace-modal-footer {
    padding: 1rem;
    flex-direction: column;
  }
  
  .replace-modal-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .replace-modal-footer .btn:last-child {
    margin-bottom: 0;
  }
}