/* CONTRIX: selector compartido en español, solo en las pantallas que lo solicitan. */
.cx-es-date-original {
    /* El input date nativo sigue enviándose al servidor, pero no se muestra
       junto al selector español; un solo campo visible por fecha. */
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}
.cx-es-date-control { position: relative; min-width: 0; display: flex; align-items: stretch; }
.cx-es-date-control > .cx-es-date-visible {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 39px;
    cursor: pointer;
    background-color: #fff;
    color: #24364e;
}
.cx-es-date-control > .cx-es-date-trigger {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    width: 34px;
    border: none;
    background: transparent;
    color: #334b6b;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cx-es-date-control > .cx-es-date-trigger:hover { background: #edf4ff; }
.cx-es-date-control > .cx-es-date-trigger:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.cx-es-calendar {
    position: fixed;
    z-index: 100000;
    width: min(308px, calc(100vw - 20px));
    padding: 14px;
    border: 1px solid #d9e5f5;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(16, 35, 65, .22);
    background: #fff;
    color: #1b2a43;
    font-family: inherit;
}
.cx-es-calendar[hidden] { display: none !important; }
.cx-es-cal-heading { font-size: .95rem; font-weight: 750; margin: 0 0 10px; }
.cx-es-cal-head { display: grid; grid-template-columns: 30px 1fr 82px 30px; gap: 6px; align-items: center; }
.cx-es-cal-head button, .cx-es-cal-head select { height: 34px; min-width: 0; border: 1px solid #d7e3f4; border-radius: 8px; background: #f7faff; color: #1d3659; }
.cx-es-cal-head button { font-size: 20px; line-height: 1; cursor: pointer; }
.cx-es-cal-head select { font-size: .88rem; padding: 0 6px; }
.cx-es-cal-week, .cx-es-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cx-es-cal-week { margin-top: 12px; }
.cx-es-cal-week span { font-size: .75rem; color: #5c6d87; font-weight: 750; padding: 6px 0; }
.cx-es-cal-days button { aspect-ratio: 1; min-width: 0; padding: 2px; border: none; border-radius: 8px; background: transparent; color: #1c3151; cursor: pointer; font-size: .89rem; }
.cx-es-cal-days button:hover:not(:disabled), .cx-es-cal-days button:focus-visible { background: #e8f0ff; outline: none; }
.cx-es-cal-days button[data-selected="true"] { background: #2563eb; color: #fff; font-weight: 750; }
.cx-es-cal-days button[data-today="true"]:not([data-selected="true"]) { outline: 1px solid #6f9ee9; }
.cx-es-cal-days button:disabled { opacity: .28; cursor: not-allowed; }
.cx-es-cal-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #e5ecf6; padding-top: 10px; margin-top: 9px; }
.cx-es-cal-footer button { background: #f1f5fc; color: #1d4ed8; border: none; border-radius: 7px; padding: 6px 11px; font-weight: 650; cursor: pointer; font-size: .85rem; }
.cx-es-cal-footer button:hover { background: #e4edfc; }
@media (max-width: 520px) { .cx-es-calendar { padding: 10px; width: min(295px, calc(100vw - 16px)); } }
