@charset "utf-8";
/* ========== CART DRAWER STYLES ========== */

.cart-float-btn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary, #1a1a1a);
    color: white;
    border: 1.5px solid var(--accent, #c89b3c);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cart-float-btn:hover {
    background: var(--accent, #c89b3c);
    border-color: var(--accent-dark, #9c7a30);
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(200, 155, 60, 0.35);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent, #c89b3c);
    color: var(--primary, #1a1a1a);
    border-radius: 50%;
    min-width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid var(--primary, #1a1a1a);
    padding: 0 3px;
    line-height: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    transition: visibility 0.3s;
}

.cart-drawer.active {
    visibility: visible;
}

.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-drawer.active .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active .cart-drawer-content {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-border, #e0e0e0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: var(--primary, #1a1a1a);
    font-weight: 600;
    font-size: 1.25rem;
}

.cart-header h3 i {
    color: var(--accent, #c89b3c);
    margin-right: 0.5rem;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text, #777777);
    transition: all 0.3s ease;
}

.close-cart-btn:hover {
    color: var(--error, #d32f2f);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text, #777777);
}

.cart-empty-message i {
    font-size: 3rem;
    color: var(--accent, #c89b3c);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.cart-item {
    background: var(--secondary, #f5f5f5);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent, #c89b3c);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-item-title {
    font-weight: 600;
    color: var(--primary, #1a1a1a);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--light-text, #777777);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--error, #d32f2f);
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--light-text, #777777);
    margin-bottom: 0.5rem;
}

.cart-item-seats {
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ========== NUEVO: DESGLOSE DE COSTO DE PLATAFORMA ========== */
.cart-item-fees {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
}

.fee-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    padding: 0.15rem 0;
}

.fee-line span:first-child {
    color: #888;
}

.fee-line span:last-child {
    font-weight: 500;
    color: #555;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-quantity {
    color: var(--primary, #1a1a1a);
    font-weight: 500;
}

.cart-item-price {
    color: var(--accent-dark, #9c7a30);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-border, #e0e0e0);
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary, #1a1a1a);
    margin-bottom: 1rem;
}

/* ========== NUEVO: DESGLOSE EN TOTAL DEL CARRITO ========== */
.cart-total-breakdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.total-line span:first-child {
    font-weight: 400;
}

.total-line span:last-child {
    font-weight: 500;
    color: #666;
}

.total-line.total-final {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--accent, #c89b3c);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary, #1a1a1a);
}

.total-line.total-final span:last-child {
    color: var(--accent-dark, #9c7a30);
    font-weight: 700;
}

/* Ajuste para cuando no hay desglose */
.cart-total span {
    display: inline-block;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--accent, #c89b3c);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover:not(:disabled) {
    background: var(--accent-dark, #9c7a30);
    transform: translateY(-2px);
}

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