* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.contenedor-calendario {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Encabezado del calendario con logotipos */
.encabezado-calendario {
    background: linear-gradient(135deg, #e9e3e3 0%, #e9e3e3 100%);
    color: #2d4a5f;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 1px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-izquierdo {
    display: flex;
    align-items: center;
}

.logo-ilum {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.contenedor-titulo-calendario {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.titulo-calendario {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0;
}

.logo-derecho {
    display: flex;
    align-items: center;
}

.logo-hns {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.indicador-semana {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
}

/* Encabezado de días */
.encabezado-dias {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
}

.encabezado-dia {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.encabezado-dia:hover {
    background: #ccc9c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.encabezado-dia.activo {
    background: linear-gradient(135deg, #3d6582, #284051);
    color: white;
    border-color: #2d4a5f;
    transform: translateY(-2px);
}

.encabezado-dia.activo .numero-dia {
    color: #fbbf24;
}

.nombre-dia {
    font-size: 1rem;
    font-weight: 600;
    color: #2d4a5f;
    margin-bottom: 0.25rem;
}

.encabezado-dia.activo .nombre-dia {
    color: white;
}

.encabezado-dia.hoy.activo .nombre-dia {
    color: #ffffff;
}

.encabezado-dia.hoy .nombre-dia {
    color: #2d4a5f;
}

.numero-dia {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d4a5f;
}

.indicador-hoy {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #fbbf24;
    border-radius: 50%;
}

/* Cuadrícula de salones */
.cuadricula-salones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.cuadricula-salones.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.tarjeta-salon {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: aparecerDesdeAbajo 0.5s ease forwards;
}

.tarjeta-salon:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes aparecerDesdeAbajo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-salon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.tarjeta-salon.salvador {
    border-color: #f9a8d4;
    background: linear-gradient(to bottom, #fdf2f8, white);
}

.tarjeta-salon.bonpland {
    border-color: #93c5fd;
    background: linear-gradient(to bottom, #eff6ff, white);
}

.nombre-salon {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.tarjeta-salon.salvador .nombre-salon {
    color: #be185d;
}

.tarjeta-salon.bonpland .nombre-salon {
    color: #1d4ed8;
}

.detalles-salon {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-detalle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.icono-detalle {
    width: 1rem;
    height: 1rem;
    opacity: 0.7;
}

.etiqueta-estado {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.etiqueta-estado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.etiqueta-estado:hover::before {
    left: 100%;
}

.estado-disponible {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.estado-disponible:hover {
    background-color: #bbf7d0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.estado-ocupado {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.estado-ocupado:hover {
    background-color: #fecaca;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.info-horario {
    font-weight: 500;
    color: #374151;
}

.sin-seleccion {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.125rem;
}

.icono-sin-seleccion {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .contenedor-calendario {
        padding: 1rem 0.5rem;
    }

    .encabezado-calendario {
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        position: relative;
    }

    .contenedor-titulo-calendario {
        order: -1;
        margin-bottom: 0;
    }

    .titulo-calendario {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .logo-ilum {
        height: 50px;
    }

    .logo-hns {
        height: 40px;
    }

    .indicador-semana {
        position: static;
        display: inline-block;
        margin-top: 0;
    }

    .encabezado-dias {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .cuadricula-salones {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .encabezado-dias {
        grid-template-columns: 1fr;
    }

    .encabezado-dia {
        padding: 0.75rem;
    }

    .nombre-dia {
        font-size: 0.875rem;
    }

    .numero-dia {
        font-size: 1.25rem;
    }

    .titulo-calendario {
        font-size: 1.25rem;
    }

    .logo-ilum {
        height: 45px;
    }

    .logo-hns {
        height: 35px;
    }
}