/* ====================================================
   Estudio Suite – Calendario de Disponibilidad
   Paleta: Celeste de marca
   ==================================================== */

.esc-wrapper {
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
}

/* ── Encabezado con navegación ── */
.esc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #5a8fa8;
    padding: 14px 20px;
    position: relative;
}

.esc-month-title {
    color: #f0f8fc;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: capitalize;
    text-align: center;
    flex: 1;
}

.esc-nav {
    background: rgba(240, 248, 252, 0.15);
    border: 2px solid rgba(240, 248, 252, 0.5);
    color: #f0f8fc;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.esc-nav:hover {
    background: rgba(240, 248, 252, 0.3);
    border-color: #f0f8fc;
}

/* ── Tabla ── */
.esc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.esc-table thead th {
    background-color: #7aafc8;
    color: #f0f8fc;
    text-align: center;
    padding: 10px 4px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.esc-table tbody td {
    border: 1px solid #cde4ef;
    height: 48px;
    width: 14.2857%;
    vertical-align: top;
    padding: 6px 8px;
    position: relative;
    background: #ffffff;
}

/* ── Día vacío (otro mes) ── */
.esc-table tbody td.esc-other-month {
    background-color: #f2f9fc;
}

/* ── Número del día ── */
.esc-day-num {
    font-size: 0.9rem;
    color: #2a5a72;
    display: inline-block;
    line-height: 1.4;
}

/* ── Día de hoy ── */
.esc-table tbody td.esc-today .esc-day-num {
    background-color: #5a8fa8;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ── Día OCUPADO ── */
.esc-table tbody td.esc-occupied {
    background-color: #daeef7;
}

.esc-table tbody td.esc-occupied .esc-day-num {
    text-decoration: line-through;
    color: #5a8fa8;
    opacity: 0.8;
}



/* ── Leyenda ── */
.esc-legend {
    display: flex;
    gap: 24px;
    padding: 12px 20px;
    background: #eef7fb;
    border-top: 1px solid #cde4ef;
    justify-content: center;
}

.esc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #2a5a72;
    letter-spacing: 0.03em;
}

.esc-legend-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
}

.esc-legend-occupied .esc-legend-box {
    background-color: #daeef7;
    border: 1px solid #5a8fa8;
}

.esc-legend-free .esc-legend-box {
    background-color: #ffffff;
    border: 1px solid #cde4ef;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .esc-table thead th {
        font-size: 0.65rem;
        padding: 8px 2px;
        letter-spacing: 0;
    }
    .esc-table tbody td {
        height: 48px;
        padding: 4px;
    }
    .esc-day-num {
        font-size: 0.75rem;
    }
    .esc-month-title {
        font-size: 1rem;
    }
}
