/* Seat Selection Styles */

.seat-map {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow-x: auto;
}

.stage {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.stage::after {
    content: '♪';
    margin-right: 8px;
    font-size: 18px;
}

.seats-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: none;
    overflow: visible;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    min-width: max-content;
}

.seat-row {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: max-content;
}

.seat-row-label {
    flex-shrink: 0;
    width: 70px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    color: #1a1a2e;
    padding-right: 10px;
    white-space: nowrap;
    display: inline-block;
}

.seat {
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 10px;
    font-weight: bold;
    background: #fff;
    min-width: 28px;
    min-height: 28px;
}

.seat-aisle {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    min-width: 28px;
    min-height: 28px;
    font-size: 9px;
    color: #999;
}

.seat:hover:not(.ocupado) {
    transform: scale(1.1);
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Asientos VIP - Verde */
.seats-container[data-seccion="VIP"] .seat.disponible {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.seats-container[data-seccion="VIP"] .seat.disponible:hover {
    background: #c3e6cb;
    border-color: #1e7e34;
}

/* Asientos General - Plateado */
.seats-container[data-seccion="General"] .seat.disponible {
    background: #e8eaed;
    border-color: #9aa0a6;
    color: #3c4043;
}

.seats-container[data-seccion="General"] .seat.disponible:hover {
    background: #d8dce0;
    border-color: #80868b;
}

.seat.ocupado {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: not-allowed;
}

.seat.seleccionado {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.seat.seleccionado:hover {
    transform: scale(1.1);
    background: #0b5ed7;
}

/* Leyenda del modal */
.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-icon {
    width: 30px;
    height: 30px;
    border: 2px solid;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.legend-disponible .legend-icon {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.legend-ocupado .legend-icon {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.legend-seleccionado .legend-icon {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Responsive para tablets y móviles medianos */
@media (max-width: 992px) {
    .seat {
        width: 32px;
        height: 32px;
        font-size: 11px;
        min-width: 32px;
        min-height: 32px;
    }

    .seat-row {
        gap: 6px;
    }

    .seat-row-label {
        width: 50px;
        font-size: 12px;
        min-width: 50px;
    }

    .seat-map {
        padding: 12px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .seat {
        width: 26px;
        height: 26px;
        font-size: 9px;
        min-width: 26px;
        min-height: 26px;
    }

    .seat-row {
        gap: 4px;
    }

    .seat-row-label {
        width: 40px;
        font-size: 9px;
        min-width: 40px;
        padding-right: 8px;
    }

    .seats-container {
        padding: 6px;
    }

    .seat-legend {
        gap: 10px;
        flex-direction: column;
    }

    .seat-map {
        padding: 10px;
        margin-bottom: 12px !important;
    }

    .seat-divider {
        padding: 12px 0;
        margin: 12px 0;
    }

    h5 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .stage {
        padding: 10px 15px;
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .seat {
        width: 22px;
        height: 22px;
        font-size: 8px;
        min-width: 22px;
        min-height: 22px;
    }

    .seat-row {
        gap: 3px;
    }

    .seat-row-label {
        width: 32px;
        font-size: 8px;
        min-width: 32px;
        padding-right: 4px;
    }

    .seat-map {
        padding: 8px;
        margin-bottom: 10px !important;
    }

    .seats-container {
        padding: 4px;
        gap: 4px;
    }

    h5 {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .stage {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .seat-divider {
        padding: 8px 0;
        margin: 8px 0;
    }

    .seat-aisle {
        width: 22px;
        height: 22px;
    }
}

/* Separador entre VIP y General */
.seat-divider {
    text-align: center;
    padding: 16px 0;
    margin: 16px 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    border-top: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    position: relative;
}


.seat-divider-decoration {
    font-size: 16px;
    color: #d4af37;
    letter-spacing: 6px;
    position: relative;
    z-index: 2;
}

/* Modal responsivo */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h5 {
        font-size: 16px;
    }

    .modal-body {
        padding: 15px 10px;
    }

    .modal-footer {
        padding: 12px;
        gap: 8px;
    }

    .modal-footer button {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Scrollbar styling */
.seats-container::-webkit-scrollbar {
    width: 8px;
}

.seats-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.seats-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.seats-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
