/* General Body and Font Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Wrapper for main content */
.wrapper {
    margin: 0 auto;
    padding: 20px;
    /*background-color: #fff;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: auto; /* Cambiado de 100vh para evitar altura forzada */
    display: flex;
    flex-direction: column;
}

.bg-coliseos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../recursos/coliseos/dibos.jpg") no-repeat center center/cover;
    filter: blur(10px) opacity(75%);
    z-index: -1;
}

.bg-campos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../recursos/campos/mangomarca.jpg") no-repeat center center/cover;
    filter: blur(10px) opacity(75%);
    z-index: -1;
}

.bg-afiliados {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../recursos/TheFamily.jpg") no-repeat center center/cover;
    filter: blur(10px) opacity(75%);
    z-index: -1;
}

/* Header Styles */
header {
    background-color: #c98126;
    color: #000000;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

header h2 {
    margin: 0;
    font-size: 2.5em;
}

/* Back Button Styles */
.volver {
    text-align: left;
    margin-bottom: 20px;
}

.volver a {
    display: inline-block;
    background-color: #c98126;
    color: #000000;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.volver a:hover {
    background-color: #a96e23;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Main Content Area */
.main-content {
    flex-grow: 0; /* Cambiado de 1 a 0 para que no tome espacio extra */
    padding: 20px 0;
    min-height: auto; /* Altura mínima automática */
}

/* Department Selector */
.department-selector {
    margin-bottom: 30px;
    text-align: center;
}

.select-container {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 300px;
}

.department-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C114.1L146.2%2C254.9L5.4%2C114.1C-1.8%2C106.9-1.8%2C102.4%2C5.4%2C95.2c7.2-7.2%2C11.7-7.2%2C19%2C0l121.8%2C121.8l121.8-121.8c7.2-7.2%2C11.7-7.2%2C19%2C0C294.2%2C102.4%2C294.2%2C106.9%2C287%2C114.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 16px 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.department-select:focus {
    outline: none;
    border-color: #c98126;
}

/* Initial message before selection */
.no-selection {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin-top: 20px;
    display: block; /* Visible by default */
}

/* Message when no coliseos are available for selected department */
.no-coliseos-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 1.2em;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin: 0; /* Remove margin to avoid extra spacing */
}

/* Coliseos Grid Container */
.coliseos-grid {
    display: none; /* Hidden by default - JavaScript will show it when needed */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0; /* Removido el padding que causaba espacio extra */
    justify-content: center;
    min-height: 0; /* Prevent unnecessary height when empty */
}

.coliseos-grid.show {
    display: grid; /* Show when has content */
}

/* Coliseo Cards */
.coliseo-card {
    display: none; /* Hidden by default, JavaScript will show them */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.coliseo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.coliseo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.card-content {
    padding: 20px;
}

.coliseo-name {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 700;
}

.coliseo-address {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.schedule-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #777;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.schedule-days, .schedule-hours {
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px;
    margin-top: 20px; /* Reducido de 40px a 20px */
    border-top: 2px solid #c98126;
    text-align: center;
}

.footer .container {
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section h3, .footer-section h4 {
    color: #c98126;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p, .footer-section ul {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c98126;
}

.footer-section ul li a:hover {
    color: #00BFA5;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: #bdc3c7;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .coliseos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 15px;
    }

    header h2 {
        font-size: 2em;
    }

    .coliseos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h2 {
        font-size: 1.8em;
    }

    .volver a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .department-select {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .no-selection, .no-coliseos-message {
        font-size: 1em;
        padding: 20px;
    }

    .coliseos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0; /* Sin padding en móviles también */
    }

    .coliseo-image {
        height: 180px;
    }

    .coliseo-name {
        font-size: 1.3em;
    }

    .coliseo-address, .schedule-info {
        font-size: 0.85em;
    }
}