/* ===================== */
/* ESTILOS GENERALES */
/* ===================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: url(../images/bg.jpg) no-repeat center fixed;
    background-size: cover;
    background-position: center;
}

/* ===================== */
/* CARRUSEL DE BANNERS - AUTO HEIGHT */
/* ===================== */
.carousel-inner {
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    width: 100%;
    padding-top: 40%; /* proporción inicial desktop */
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.carousel-fade .carousel-item {
    transition: transform 1s ease-out, opacity . 1s ease-out; /* Ejemplo para más de una transición */
}

/* ===================== */
/* CARDS DE EVENTOS */
/* ===================== */
.card-img-top,
.evento-img {
    width: 100%;
    aspect-ratio: 4/3; /* por defecto 4:3 */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.evento-card:hover .evento-img {
    transform: scale(1.08);
}

/* ===================== */
/* SIDEBAR ADMIN */
/* ===================== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.table-responsive {
    overflow-x: auto;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1500x500');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 30px;
}

.price-badge {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===================== */
/* ASIENTOS */
/* ===================== */
.seat-map {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.seat {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.seat.available { background-color: #d4edda; }
.seat.selected  { background-color: #007bff; color: white; }
.seat.unavailable { background-color: #f8d7da; cursor: not-allowed; }

/* ===================== */
/* CATEGORÍAS */
/* ===================== */
.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.category-card .card-body {
    padding: 1.5rem 1rem;
}

.category-card h5 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.category-card:hover h5 {
    color: #007bff;
}

.category-card small { color: #6c757d; }

/* ===================== */
/* CARDS Y EFECTOS HOVER */
/* ===================== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================== */
/* CHECKOUT Y FORMULARIOS */
/* ===================== */
.sticky-top {
    position: sticky;
    z-index: 1000;
}

.form-check.card {
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-check-input:checked + .form-check-label.card {
    border-color: #007bff;
    background-color: #f8f9fa;
}

/* ===================== */
/* ANIMACIONES */
/* ===================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* MEDIA QUERIES - RESPONSIVE */
/* ===================== */
@media (max-width: 992px) {
    .carousel-item { padding-top: 50%; }
    .evento-img { aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
    .carousel-item { padding-top: 60%; }
    .evento-img { aspect-ratio: 1.5/1; }
    .sticky-top { position: static; }
}

@media (max-width: 576px) {
    .carousel-item {
        padding-top: 0;
        height: auto;
    }
    .carousel-item img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0.375rem;
    }
    .evento-img { aspect-ratio: 1/1; }
}
