/* Calendario de la reserva — variante A · Limpia (números sueltos, color solo donde hay algo que decir) (2026-11-13).
   Sin recuadros por día: el calendario va sobre una tarjeta blanca con sombra suave. Colores: blanco = disponible · amarillo = sujeto a confirmación ·
   rojo tachado = no disponible · verde = solo la selección del visitante. Los días pasados no se ven ni se pueden tocar.
   Se carga DESPUÉS de ngen.css y reserva-pasos.css. */

/* El recuadro beige que hoy rodea el calendario desaparece: la tarjeta blanca flota sobre el fondo de la página */
.rs .rs-card:has(> .ngr-calendar) { background: transparent; padding: 0; border: 0; box-shadow: none; }

.rs .ngr-calendar {
    background: #fff; border: 0; border-radius: 6px;
    padding: 20px clamp(14px, 2.6vw, 28px) 22px;
    box-shadow: 0 18px 40px -22px rgba(31,48,39,.38), 0 2px 8px rgba(31,48,39,.06);
}
.rs .ngr-calendar .ngr-cal-head { min-height: 46px; padding-left: 2px; }
.rs .ngr-calendar .ngr-cal-title { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--ngen-bosque); }
.rs .ngr-calendar .ngr-cal-nav { gap: 8px; top: 13px; right: clamp(14px, 2.6vw, 28px); }
.rs .ngr-calendar .ngr-cal-arrow {
    width: 42px; height: 42px; border: 0; border-radius: 6px;
    background: #f1efe8; box-shadow: none; color: var(--ngen-bosque);
    font-size: 20px; font-weight: 600; transition: background .15s, color .15s, box-shadow .15s;
}
.rs .ngr-calendar .ngr-cal-arrow:hover:not(:disabled) { background: var(--ngen-bosque); color: #fff; }
.rs .ngr-calendar .ngr-cal-arrow:disabled { opacity: .3; box-shadow: none; }

.rs .ngr-calendar .ngr-cal-grid { gap: 4px; }
.rs .ngr-calendar .ngr-cal-dow { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ngen-piedra); padding-bottom: 8px; }

.rs .ngr-calendar .ngr-cal-day {
    min-height: 50px; padding: 0; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 6px; box-shadow: none;
    color: var(--ngen-pino); font-size: 16px; font-weight: 500;
    transition: background .12s, box-shadow .12s, transform .12s;
}
.rs .ngr-calendar .ngr-cal-day.is-blank { background: none; box-shadow: none; }
.rs .ngr-calendar .ngr-cal-day:hover:not(.is-disabled):not(.is-blank):not(.is-start):not(.is-end) { background: #f1efe8; }

/* Días pasados (o fuera de rango): no se ven y no se pueden tocar */
.rs .ngr-calendar .ngr-cal-day.is-disabled:not(.is-booked) {
    visibility: hidden; pointer-events: none; min-height: 0; height: 0; width: auto; aspect-ratio: auto; padding: 0; font-size: 0; overflow: hidden; box-shadow: none;
}
/* Las semanas que ya pasaron por completo no ocupan lugar: el calendario parte en la semana actual */
.rs .ngr-calendar .ngr-cal-day.is-blank { min-height: 0; height: 0; width: auto; aspect-ratio: auto; }

/* AMARILLO = sujeto a confirmación */
.rs .ngr-calendar .ngr-cal-day.is-limited { background: #fdecb4; box-shadow: none; color: #5e4300; font-weight: 600; }
.rs .ngr-calendar .ngr-cal-day.is-limited:hover { background: #fbe08f; }

/* ROJO = no disponible */
.rs .ngr-calendar .ngr-cal-day.is-disabled.is-booked {
    background: #f6d4d4; box-shadow: none; color: #8a2a2a;
    text-decoration: line-through; text-decoration-thickness: 1.5px; cursor: not-allowed; transform: none;
}

/* VERDE = la selección del visitante (único verde del calendario) */
.rs .ngr-calendar .ngr-cal-day.is-in-range { background: #dde6da; box-shadow: none; color: var(--ngen-pino); }
.rs .ngr-calendar .ngr-cal-day.is-hint-range { background: #f0f4ee; box-shadow: none; color: var(--ngen-bosque); font-weight: 600; }
.rs .ngr-calendar .ngr-cal-day.is-start,
.rs .ngr-calendar .ngr-cal-day.is-end { background: var(--ngen-bosque); color: #fff; font-weight: 700; box-shadow: none; }
.rs .ngr-calendar .ngr-cal-day:focus-visible { outline: 2px solid var(--ngen-bosque); outline-offset: 2px; }

/* Leyenda con los mismos colores y formas que las celdas */
.rs .ngr-cal-legend { gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--ngen-pino); }
.rs .ngr-cal-legend-item { gap: 8px; }
.rs .ngr-cal-legend-dot { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.rs .ngr-cal-legend-dot--free { background: #fff; box-shadow: inset 0 0 0 1.5px #cdc8b7; }
.rs .ngr-cal-legend-dot--limited { background: #fdecb4; }
.rs .ngr-cal-legend-dot--busy { background: #f6d4d4; }
.rs .ngr-cal-legend::after {
    content: "Tu selección"; display: inline-flex; align-items: center; min-height: 16px; padding-left: 24px;
    background: linear-gradient(var(--ngen-bosque), var(--ngen-bosque)) left center / 16px 16px no-repeat;
}
body[data-lang="en"] .rs .ngr-cal-legend::after { content: "Your selection"; }
@media (max-width: 480px) {
    .rs .ngr-calendar .ngr-cal-grid { gap: 3px; }
    .rs .ngr-calendar .ngr-cal-day { min-height: 46px; font-size: 15px; }
    .rs .ngr-cal-legend { gap: 8px 14px; font-size: 12.5px; }
}
