.contenedor-custom-calendar {
    width: min(100%,860px);
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,25,58,.08)
}

.custom-calendar-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px
}

.custom-calendar-tabs .boton-cal {
    min-width: 220px;
    padding: 16px 24px;
    border: 2px solid #00193a;
    border-radius: 14px;
    background: #00193adb;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease
}

.custom-calendar-tabs .boton-cal.active {
    border-color: #d9a600;
    color: #00193a;
    background: linear-gradient(90deg,#ffc407 0,#ffe58a 50%,#ffc407 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35)
}

.custom-calendar-tabs .boton-cal:hover {
    transform: translateY(-1px)
}

.listar-anios {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px
}

.item-anio {
    border: 1px solid #dfe5ee;
    border-radius: 999px;
    padding: 8px 22px;
    background: #fff;
    color: #00193a;
    font-weight: 800;
    cursor: pointer
}

.item-anio.activo {
    background: #00193a;
    color: #fff;
    border-color: #00193a
}

.listar-meses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px
}

.item-mes {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e0e5ec;
    background: #fff;
    color: #00193a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer
}

.item-mes.activo {
    background: #ffc407;
    border-color: #ffc407;
    color: #00193a
}

.calendar-month-box {
    width: 100%
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px
}

.calendar-head strong {
    display: block;
    color: #00193a;
    font-size: 24px;
    line-height: 1.1
}

.calendar-head span {
    color: #6b7280;
    font-size: 13px
}

.calendar-price {
    text-align: right;
    color: #00193a;
    font-size: 24px;
    font-weight: 900
}

.calendar-price small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600
}

.calendar-grid,.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr))
}

.calendar-weekdays {
    margin-bottom: 8px;
    text-align: center
}

.calendar-weekdays span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800
}

.calendar-grid {
    gap: 7px
}

.calendar-day {
    min-width: 0;
    min-height: 76px;
    padding: 8px 4px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: transform .2s ease,box-shadow .2s ease
}

.calendar-day:hover:not(.is-empty) {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,25,58,.12)
}

.calendar-number {
    color: #00193a;
    font-size: 18px;
    font-weight: 900
}

.calendar-status {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .4px
}

.calendar-day small {
    font-size: 10px;
    color: #3f4b5f;
    font-weight: 700
}

.calendar-day.is-empty {
    visibility: hidden;
    pointer-events: none
}

.calendar-day.is-closed {
    background: #f3f4f6
}

.calendar-day.is-closed .calendar-status {
    color: #8a8f98
}

.calendar-day.is-book {
    background: #c9ff65;
    border-color: #a8e93c
}

.calendar-day.is-book .calendar-status {
    color: #1b7d35
}

.calendar-day.is-few {
    background: #ffe08a;
    border-color: #f5c84c
}

.calendar-day.is-few .calendar-status {
    color: #926a00
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.calendar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block
}

.legend-closed {
    background: #d1d5db
}

.legend-book {
    background: #c9ff65
}

.legend-few {
    background: #ffe08a
}

@media (max-width: 640px) {
    .custom-calendar {
        overflow-x:hidden
    }

    .contenedor-custom-calendar {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px;
        border-radius: 14px;
        overflow-x: hidden
    }

    .custom-calendar-tabs {
        gap: 10px
    }

    .custom-calendar-tabs .boton-cal {
        min-width: 100%;
        padding: 14px 16px;
        font-size: 15px
    }

    .listar-anios {
        margin-top: 8px
    }

    .listar-meses {
        gap: 8px
    }

    .item-mes {
        min-width: 92px;
        padding: 9px 10px;
        text-align: center
    }

    .calendar-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .calendar-price {
        text-align: left;
        font-size: 24px
    }

    .calendar-grid,.calendar-weekdays {
        grid-template-columns: repeat(7,minmax(0,1fr))
    }

    .calendar-grid {
        gap: 5px
    }

    .calendar-weekdays span {
        font-size: 10px
    }

    .calendar-day {
        width: 100%;
        min-height: 52px;
        height: 52px;
        padding: 4px 2px;
        border-radius: 7px
    }

    .calendar-number {
        font-size: 14px;
        line-height: 1
    }

    .calendar-status {
        font-size: 7px;
        line-height: 1;
        letter-spacing: 0
    }

    .calendar-day small {
        display: none
    }
}
.calendar-day {
    min-width: 0;
    min-height: 78px;
    padding: 7px 5px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.calendar-number {
    color: #00193a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.calendar-badge {
    width: 100%;
    min-height: 25px;
    padding: 5px 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.calendar-badge.has-spaces {
    background: #00193a;
    color: #fff;
}

.calendar-badge.no-spaces {
    background: #f2f3f5;
    color: #9b1c1c;
    border: 1px solid #e3e5e8;
}

.calendar-day.is-book {
    background: #ffffff;
    border-color: #1aab00;
}

.calendar-day.is-few {
    background: #ffffff;
    border-color: #ffc407;
}

.calendar-day.is-closed {
    background: #ffffff;
    border-color: #edf0f4;
}

.calendar-status,
.calendar-day small {
    display: none;
}

@media (max-width: 640px) {
    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        min-height: 68px;
        height: auto;
        padding: 6px 3px;
        border-radius: 8px;
    }

    .calendar-number {
        font-size: 13px;
    }

    .calendar-badge {
        min-height: 24px;
        padding: 4px 3px;
        font-size: 10px;
        border-radius: 8px;
    }
}
.calendar-maintenance-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #f5f5f5;
    text-align: center;
}

.calendar-maintenance-notice strong {
    font-size: 18px;
    line-height: 1.3;
}

.calendar-maintenance-notice span {
    font-size: 14px;
    line-height: 1.5;
}

.calendar-price-closed {
    text-transform: uppercase;
}

.calendar-day.is-closed:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.calendar-day.is-closed:disabled .calendar-badge {
    pointer-events: none;
}
.listar-meses .item-mes:nth-child(2) .mes-cal {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #b42318;
    color: #777;
}
.listar-meses .item-mes:nth-child(2) {
    background: #f3f3f3;
    border: 1px solid #c9c9c9;
    color: #777;
    cursor: not-allowed;
    opacity: 0.8;
}