:root {
    --bs-success: #059669;
  }

.datepicker table tr td.active.active,
.datepicker table tr td.active.highlighted.active,
.datepicker table tr td.active.highlighted:active,
.datepicker table tr td.active:active {
    background-color: #5143D9 !important;
    color: white;
}

.datepicker .available-day {
    color: #15803D;
    font-weight: 600;
    background-color: rgba(21, 128, 61, 0.1);
    border-radius: 0;
}
.datepicker table tr td.day.disabled {
    color: #ccc;
}
[data-bs-theme="dark"] .datepicker .available-day {
    color: #4ADE80;
    background-color: rgba(74, 222, 128, 0.05);
}
[data-bs-theme="dark"] .datepicker table tr td.day.disabled {
    color: #555;
}
.datepicker table tr td.new, .datepicker table tr td.old {
    color: #777 !important;
    background-color: transparent !important;
}
[data-bs-theme="dark"] .datepicker table tr td.day:hover, [data-bs-theme="dark"] .datepicker table tr td.focused{
    background-color: #333;
}

/* También ocultamos los bordes o estilos de las celdas vacías */
.datepicker table tr td.new {
    border: none !important;
    background: transparent !important;
    visibility: hidden; /* O usa display: none; si prefieres que no ocupen espacio */
}
.datepicker table tr td.old {
    pointer-events: none;
}
/* Nav Link Hover Effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-expand-xl .navbar-brand .navbar-brand-item {
    height: 65px !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        /* margin-top: 1rem; */
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }
}

.btn-primary {
    /* background-color: #382F99; */
    background-color: #5143D9;
}

.text-primary {
    /* background-color: #382F99; */
    color: #5143D9;
}

.back-top {
    /* background-color: #382F99; */
    background-color: #5143D9;
}

/* Cart Premium Button */
.cart-premium-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    /* Indigo to Purple Gradient */
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    /* Glowing shadow */
    display: inline-block;
}

.cart-premium-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    /* Stronger glow on hover */
}

.cart-badge-pill {
    background: white;
    color: #6366f1;
    font-weight: 800;
    font-size: 0.75rem;
    height: 20px;
    min-width: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-badge-pill.empty {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.cart-chip {
    background: linear-gradient(135deg, #ffffff, #f5f7fb);
    border-radius: 999px;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: #0b0a12;
    cursor: pointer;
    max-height: 52px;
}

.cart-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 67, 217, 0.15);
    border-color: rgba(81, 67, 217, 0.4);
}

.cart-chip-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e0edff;
    color: #5143D9;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cart-chip-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
}

.cart-chip-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    line-height: 1;
}

.cart-chip-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
}

.cart-chip-subtitle-empty {
    color: #9ca3af;
    font-style: italic;
}

.cart-chip-arrow {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.cart-chip:hover .cart-chip-arrow {
    color: #5143D9;
}

/* Dark mode overrides */
[data-bs-theme="dark"] .cart-chip {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
/* [data-bs-theme="dark"] .cart-chip-icon {
    background: #0ea5e9;
    color: #0b1727;
} */
[data-bs-theme="dark"] .cart-chip-badge {
    box-shadow: 0 0 0 2px #111827;
}
[data-bs-theme="dark"] .cart-chip-title {
    color: #9ca3af;
}
[data-bs-theme="dark"] .cart-chip-subtitle,
[data-bs-theme="dark"] .cart-chip-subtitle-empty {
    color: #e5e7eb;
}
[data-bs-theme="dark"] .cart-chip-arrow {
    color: #9ca3af;
}
/* [data-bs-theme="dark"] .cart-chip:hover .cart-chip-arrow {
    color: #38bdf8;
} */

/* Link purchase box (account bookings) */
[data-bs-theme="dark"] .link-purchase-box {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid #303644 !important;
}
[data-bs-theme="dark"] .link-purchase-box .text-body-secondary {
    color: #cbd5e1 !important;
}

/* ================================
    WIZARD STEPPER
    ================================ */

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.stepper-step.skip-step {
    opacity: 0.3;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    position: relative;
}

.stepper-circle i {
    font-size: 1.25rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-circle {
    background: #5143D9;
    border-color: #5143D9;
    box-shadow: 0 4px 12px rgba(81, 67, 217, 0.3);
}

.stepper-step.active .stepper-circle i {
    color: white;
}

.stepper-step.completed .stepper-circle {
    background: #0CBC87;
    border-color: #0CBC87;
}

.stepper-step.completed .stepper-circle i {
    color: white;
}

.stepper-step.completed .stepper-circle::after {
    content: '\f26b';
    font-family: 'bootstrap-icons';
    position: absolute;
    font-size: 1rem;
    color: white;
}

.stepper-step.completed .stepper-circle i {
    display: none;
}

.stepper-label {
    text-align: center;
}

.stepper-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .stepper-title {
    color: #9ca3af;
}
.stepper-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

[data-bs-theme="dark"] .stepper-subtitle {
    color: #9ca3af;
}
.stepper-step.active .stepper-title {
    color: #5143D9;
    font-weight: 700;
}

/* External events accordion (dark mode) */
[data-bs-theme="dark"] .external-event-selector .accordion-button:not(.collapsed) {
    color: #cbbdff;
}
[data-bs-theme="dark"] .external-event-selector .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.stepper-step.completed .stepper-title {
    color: #0CBC87;
}

.stepper-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 0.5rem;
    margin-top: -24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stepper-line.completed {
    background: #0CBC87;
}

/* Responsive stepper */
@media (max-width: 575px) {

    .stepper-circle {
        width: 40px;
        height: 40px;
    }

    .stepper-circle i {
        font-size: 1rem;
    }

    .stepper-title {
        font-size: 0.75rem;
    }

    .stepper-subtitle {
        display: none !important;
    }

    .stepper-line {
        margin-top: -20px;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .stepper-container {
        padding: 0 0.5rem;
    }
}

.wizard-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.wizard-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.wizard-panel {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    align-self: flex-start;
}

.wizard-panel.active {
    opacity: 1;
}

.wizard-container {
    min-height: auto;
}

.wizard-panel .card {
    max-width: 100%;
    box-sizing: border-box;
}

.wizard-panel .card-body {
    max-width: 100%;
    box-sizing: border-box;
}

.wizard-slider.sliding {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wizard-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wizard-panel .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.wizard-back-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

.wizard-back-btn:hover {
    background-color: #5143D9;
    border-color: #5143D9;
    color: white;
    transform: scale(1.05);
}

.wizard-back-btn i {
    font-size: 0.875rem;
}

.wizard-panel .intervals {
    max-width: 100%;
    overflow-x: auto;
}

.wizard-panel .intervals table {
    width: 100%;
    max-width: 100%;
}

.wizard-panel .intervals .row {
    row-gap: 0.5rem;
}

.booking-hour-option {
    width: 100%;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    #summary-card-container > .summary-container {
        position: sticky;
        top: 100px;
        z-index: 10;
    }
}

@media (max-width: 991px) {
    #summary-card-container > .summary-container {
        position: static;
        margin-top: 1rem;
    }
}

#mobile-sticky-bar .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
}

#mobile-sticky-bar .badge i {
    font-size: 0.85rem;
}

@media (max-width: 1199px) {
    body {
        /* padding-bottom: 90px; */
    }

    #summary-card-container {
        margin-top: 2rem;
    }

    #panel-date .card-body,
    #panel-time .card-body {
        padding: 1rem !important;
    }

    .intervals h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        margin-top: 0.5rem;
    }

    .intervals h5:first-child {
        margin-top: 0;
    }

    .wizard-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .wizard-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .wizard-panel .card-header h5 {
        font-size: 0.95rem;
    }

    .wizard-panel .card-header .badge {
        font-size: 0.7rem;
    }

    .wizard-panel .btn-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .datepicker {
        font-size: 0.9rem;
    }

    .datepicker table tr td,
    .datepicker table tr th {
        padding: 0.5em !important;
        font-size: 0.9em !important;
    }

    .datepicker table tr th {
        font-size: 0.75em !important;
    }

    .booking-hour-option {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.2rem !important;
        min-height: auto;
    }

    .intervals .row > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .intervals .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        row-gap: 0;
    }
}

@media (min-width: 576px) {
    .wizard-header-content {
        flex-direction: row;
        align-items: center;
    }

    .wizard-header-actions {
        width: auto;
        justify-content: flex-end;
    }

    .wizard-panel .card-header h5 {
        font-size: 1.1rem;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .datepicker table tr td,
    .datepicker table tr th {
        padding: 0.7em !important;
        font-size: 1.1em !important;
    }

    .intervals .row > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .booking-hour-option {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.3rem !important;
    }
}

@media (min-width: 992px) {
    .datepicker table tr td,
    .datepicker table tr th {
        padding: 0.8em !important;
        font-size: 1.2em !important;
    }

    .booking-hour-option {
        font-size: 0.9rem !important;
        padding: 0.6rem 0.4rem !important;
    }
}

@media (max-width: 576px) {
    .mobile-summary-item {
        font-size: 0.75rem;
    }

    .mobile-total {
        font-size: 0.9rem;
    }

    #btn-scroll-to-summary {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* ================================
    TICKET OPTION CARDS (Step 3)
    ================================ */

.ticket-option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-bs-theme="dark"] .ticket-option-card {
    border-color: #303644;
}

.ticket-option-card:hover {
    border-color: #5143D9;
    box-shadow: 0 4px 12px rgba(81, 67, 217, 0.4);
    transform: translateY(-2px);
}

.ticket-option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ticket-option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-option-icon i {
    font-size: 1.5rem;
    color: white;
}

.ticket-option-info {
    flex-grow: 1;
}

.ticket-option-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
}

[data-bs-theme="dark"] .quantity-selector {
    background: #303644;
}

.btn-quantity {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #5143D9;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-quantity:hover {
    background: #5143D9;
    color: white;
    transform: scale(1.1);
}

.btn-quantity:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    padding: 0;
}

[data-bs-theme="dark"] .quantity-input {
    color: #e5e7eb;
}
.quantity-input:focus {
    box-shadow: none;
    outline: none;
}

@media (max-width: 767px) {
    .ticket-option-card {
        padding: 1rem;
    }

    .ticket-option-icon {
        width: 40px;
        height: 40px;
    }

    .ticket-option-icon i {
        font-size: 1.25rem;
    }

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

    .quantity-input {
        width: 50px;
        height: 32px;
        font-size: 1rem;
    }
}

#btn-finalizar-compra {
    box-shadow: 0 4px 12px rgba(81, 67, 217, 0.3);
    transition: all 0.3s ease;
}

#btn-finalizar-compra:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 67, 217, 0.4);
}

#summary-tickets-value {
    max-height: 150px;
    overflow-y: auto;
}
/* ================================
    SELECT2
    ================================ */

.select2-container--default .select2-selection--single {
    border: 0 !important;
    height: calc(2.5rem + 5px) !important;
    padding: 0.375rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-search--dropdown{
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    color: inherit !important;
    font-size: 1.1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 8px !important;
}

.select2-dropdown {
    border-color: #5143D940 !important;
}

.select2-results__option {
    font-size: 0.9rem !important;
    padding:12px !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: #5243d93b !important;
    color: inherit !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field{
    padding: 8px !important;
    outline: none !important;
    /* border-color: #5143D9; */
}

/* Dark mode for Select2 */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: var(--bs-mode) !important;
    /* border: 1px solid #334155 !important;
    color: #e2e8f0 !important; */
}
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #e2e8f0 transparent transparent transparent !important;
}
[data-bs-theme="dark"] .select2-dropdown {
    background-color: #0b0a12 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}
[data-bs-theme="dark"] .select2-results__option {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option--selected {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: #2f3c55 !important;
    color: #f8fafc !important;
}
.text-primary-hover{
    color:white !important;
}

.text-primary-hover a:hover{
    color: #b2aafa !important;
}

.breadcrumb-item a{
    color: #545558 !important;
}
.breadcrumb-item.active{
    color: #292a2b !important;
    font-weight: 700 !important;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .breadcrumb-item a{
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .breadcrumb-item.active{
    color: #f8fafc !important;
    font-weight: 700 !important;
}
[data-bs-theme="dark"] .breadcrumb-item+.breadcrumb-item::before{
    color: #94a3b8;
}
.bg-light, .bg-light label, .text-darkgrey, .form-label{
    color: #545558;
}
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .bg-light label {
    color: #e2e8f0;
}

/* Ajuste de texto secundario (más oscuro en claro, claro en oscuro) */
.text-body {
    color: #0b0a12 !important;
}
[data-bs-theme="dark"] .text-body {
    color: #e2e8f0 !important;
}
.text-body-secondary {
    color: #8a8a8a !important;
}
[data-bs-theme="dark"] .text-body-secondary {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .bg-light label {
    color: #e2e8f0;
}

/* UPDATE SUCCESS ERROR contrast with background */
.text-success {
    color: #047857 !important;
}

/* .bg-success {
    background-color: #047857 !important;
} */
.btn-outline-secondary{
    color: #545558 !important;
    border-color: #545558 !important;
}
.btn-outline-secondary:hover{
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}
.dropdown .dropdown-toggle:after {
    content: "" !important;
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center !important;}

[aria-label="Pagination Navigation"] .bg-white {
    background-color: var(--bs-body-bg) !important;
}
[aria-label="Pagination Navigation"] .border-gray-300 {
    border-color: #dee2e6 !important;
}
[aria-label="Pagination Navigation"] .text-gray-500,
[aria-label="Pagination Navigation"] .text-gray-700 {
    color: var(--bs-body-color) !important;
}
[aria-label="Pagination Navigation"] .active\\:bg-gray-100,
[aria-label="Pagination Navigation"] .active\\:text-gray-700 {
    background-color: #f1f5f9 !important;
    color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .bg-white {
    background-color: #0b0a12 !important;
}
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .border-gray-300 {
    border-color: #334155 !important;
}
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .text-gray-500,
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .text-gray-700 {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .active\\:bg-gray-100,
[data-bs-theme="dark"] [aria-label="Pagination Navigation"] .active\\:text-gray-700 {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .btn-outline-secondary{
    color: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover{
    color: #0b0a12 !important;
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
}
[data-bs-theme="dark"] .dropdown .dropdown-toggle:after {
    filter: invert(1) brightness(1.2);
}

/* Toggle Switch - Componente genérico reutilizable */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dee2e6;
    transition: 0.2s;
    border-radius: 20px;
}

.toggle-switch .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    top: 1px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0d6efd;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.toggle-switch input:focus + .toggle-slider {
    outline: 2px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
}

/* Estilo para toggles obligatorios cuando no están marcados */
.toggle-switch.toggle-required input:not(:checked) + .toggle-slider {
    border: 1px solid #dc3545;
}

/* Toggle Switch - Dark mode */
/* SweetAlert2 dark mode */
[data-bs-theme="dark"] .swal2-popup {
    background: #0b0a12 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
[data-bs-theme="dark"] .swal2-title { color: #f8fafc !important; }
[data-bs-theme="dark"] .swal2-html-container { color: #cbd5e1 !important; }
[data-bs-theme="dark"] .swal2-styled.swal2-confirm { background: #5143d9 !important; }
[data-bs-theme="dark"] .swal2-styled.swal2-cancel { background: #334155 !important; }

/* LoadingOverlay dark mode */
[data-bs-theme="dark"] .loadingoverlay {
    background-color: rgba(37, 44, 60, 0.4) !important;
}
[data-bs-theme="dark"] .loadingoverlay_svg {
    filter: brightness(0) invert(1);
}
.custom-select{
    border: 1px solid var(--bs-gray-300) !important;
}
.select2-container--default.custom-select .select2-selection--single .select2-selection__rendered{
    font-size: 14px !important;
}
.select2-container--default.custom-select .select2-results__option{
    font-size: 12px !important;
}
[data-bs-theme=dark] .alert-danger {
    --bs-alert-bg: rgba(214, 41, 62, .35);
    --bs-alert-border-color: rgba(214, 41, 62,0.8);
}
[data-bs-theme=dark] .alert-danger li{
    color: white !important;
}
.collapse-icon {
    transition: transform 0.2s ease;
}
[data-bs-toggle="collapse"][aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* Ticket description modal */
.ticket-description-popup {
    max-width: 1190px !important;
    width: fit-content !important;
}
.ticket-description-content {
    text-align: left !important;
    line-height: 1.6 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}
.ticket-description-content::-webkit-scrollbar {
    width: 6px;
}
.ticket-description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.ticket-description-content::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}
.ticket-description-content::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}
#ticketBaseTabs .nav-link { border: 1px solid var(--bs-border-color) !important; }
#ticketBaseTabs .nav-link.active { background-color: var(--bs-primary) !important; color: #fff !important; border-color: var(--bs-primary) !important; }
#ticketBaseTabs .nav-link:not(.active) { background-color: var(--bs-secondary-bg); color: var(--bs-body-color); }
#ticketBaseTabs .nav-link:not(.active):hover { background-color: var(--bs-tertiary-bg); }

.pagination .page-item .page-link{
    padding:5px 12px !important;
    margin-left: 2px !important;

}
.last-spots-badge {
    background: linear-gradient(135deg, #ff6a3d, #ff3d2e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(255, 61, 46, 0.25);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
    z-index: 5;
}

.save-amount-badge {
    background: rgba(255, 90, 60, 0.12);
    color: #ff5a3c;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 90, 60, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
    backdrop-filter: blur(4px);
    z-index: 5;
}
/* =========================
   Blog (shared)
========================= */


/* Focus accesible común */
.blog-focus:focus-visible {
  outline: 3px solid rgba(59,130,246,.45);
  outline-offset: 2px;
  border-radius: .5rem;
}

/* Bloque imagen común (list + detail) */
.blog-img-wrap,
.blog-card-img-wrap,
.blog-detail-img-wrap {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-img-wrap::before,
.blog-card-img-wrap::before,
.blog-detail-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.65;
}

/* Imagen real dentro del wrap */
.blog-img-wrap img,
.blog-card-img-wrap img,
.blog-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

/* Icono fallback */
.blog-img-wrap .bi-journal-richtext,
.blog-card-img-wrap .bi-journal-richtext,
.blog-detail-img-wrap .bi-journal-richtext {
  color: rgba(255,255,255,0.92);
  position: relative;
  z-index: 1;
}

/* =========================
   Blog list
========================= */

.blog-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  overflow: hidden;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
}

/* Evita CLS: ratio fijo en cards */
.blog-card-img-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 0; /* card ya controla */
}

.blog-card-img-wrap .bi-journal-richtext {
  font-size: 3.25rem;
}

.blog-entity-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #5c6b7a;
}

/* =========================
   Blog detail
========================= */

.blog-detail-img-wrap {
  aspect-ratio: 21 / 9;
  border-radius: 1rem;
}

/* Si quieres distinta opacidad del pattern en detail */
.blog-detail-img-wrap::before {
  opacity: .7;
}

.blog-detail-img-wrap .bi-journal-richtext {
  font-size: 5rem;
}

.blog-detail-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Deja el HTML del post bonito */
.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: .75rem;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  margin-top: 1.5rem;
}
