/* Panel Opciones de Pago — admin + consulta pública */
.pago-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 22px rgba(9, 14, 38, 0.06);
}
.pago-panel__title {
    color: #090e26;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.pago-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 0.65rem;
}

.pago-formas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}
@media (min-width: 576px) {
    .pago-formas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .pago-formas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pago-forma {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    user-select: none;
}
.pago-forma i {
    width: 1.35rem;
    text-align: center;
    color: #6b7280;
}
.pago-forma.is-active {
    border-color: #090e26;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    box-shadow: 0 0 0 1px rgba(9, 14, 38, 0.08);
}
.pago-forma.is-active i { color: #10B981; }
.pago-forma.is-interactive { cursor: pointer; }
.pago-forma.is-interactive:hover { border-color: #94a3b8; }
.pago-forma .pago-radio {
    width: 1rem;
    height: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}
.pago-forma.is-active .pago-radio {
    border-color: #1E3A8A;
}
.pago-forma.is-active .pago-radio::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #1E3A8A;
}

.pago-parcialidades {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}
@media (max-width: 420px) {
    .pago-parcialidades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pago-num {
    appearance: none;
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    min-height: 2.4rem;
    font-weight: 700;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all .2s ease;
}
.pago-num.is-paid,
.pago-num.is-locked {
    background: #090e26;
    border-color: #090e26;
    color: #fff;
    box-shadow: 0 4px 10px rgba(9, 14, 38, 0.25);
    cursor: not-allowed;
    opacity: 1;
}
.pago-num.is-new {
    background: #065f46;
    border-color: #064e3b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(6, 95, 70, 0.28);
}
.pago-num.is-interactive { cursor: pointer; }
.pago-num.is-interactive:hover { border-color: #090e26; }
.pago-num.is-new.is-interactive:hover {
    border-color: #064e3b;
    filter: brightness(1.05);
}

.pago-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: #4b5563;
}
.pago-meta strong { color: #090e26; }

.pago-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    margin-top: 0.35rem;
}
.pago-alert i { font-size: 1.1rem; }
.pago-alert--vigente {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.pago-alert--pausa {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.pago-alert--cancel {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.pago-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.pago-select-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
@media (min-width: 576px) {
    .pago-select-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .pago-select-row { grid-template-columns: 1.1fr 1fr 1.2fr; }
}

.pago-cortes {
    display: grid;
    gap: 0.45rem;
    max-height: 220px;
    overflow: auto;
    margin-bottom: 0.75rem;
    padding-right: 0.15rem;
}
.pago-corte {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    background: #fff;
}
.pago-corte.is-goto {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pago-corte.is-goto:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
}
.pago-corte.is-paid {
    border-color: #090e26;
    background: linear-gradient(90deg, #f8fafc, #eef2ff);
}
.pago-corte__n {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #090e26;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.pago-corte:not(.is-paid) .pago-corte__n { background: #9ca3af; }
.pago-corte__body {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.25;
}
.pago-corte__body strong { color: #090e26; font-size: 0.84rem; }
.pago-corte__body em { font-style: normal; color: #c2410c; }
.pago-corte__state {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
}
.pago-corte.is-paid .pago-corte__state { color: #047857; }
.pago-corte.is-hist {
    border-color: #090e26;
    background: #f3f4f6;
}
.pago-corte.is-hist .pago-corte__n {
    background: #090e26;
    color: #fff;
}
.pago-corte.is-hist .pago-corte__state { color: #090e26; }
.pago-corte.is-new {
    border-color: #065f46;
    background: #ecfdf5;
}
.pago-corte.is-new .pago-corte__n {
    background: #065f46;
    color: #fff;
}
.pago-corte__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}
.pago-corte__actions .btn {
    min-width: 2rem;
    padding: 0.2rem 0.4rem;
}

/* Vista pública: vigencia + renovación */
.pago-panel--publico {
    padding: 1.05rem 1.15rem 1.2rem;
}
.pago-publico-layout {
    display: grid;
    gap: 1.15rem;
}
@media (min-width: 768px) {
    .pago-publico-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
        align-items: start;
        gap: 1.35rem;
    }
}
.pago-publico-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.pago-financia-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #090e26;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(9, 14, 38, 0.18);
}
.pago-financia-chip i { opacity: 0.85; }
.pago-publico-metodo {
    font-size: 0.88rem;
    color: #4b5563;
}
.pago-publico-metodo strong { color: #090e26; }
.pago-publico-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.pago-publico-meta strong { color: #090e26; }
.pago-publico-renovacion {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}
.pago-publico-renovacion__icon {
    font-size: 1.35rem;
    line-height: 1;
}
.pago-publico-renovacion strong {
    display: block;
    margin-bottom: 0.2rem;
}
.pago-calendario--mini {
    padding: 0.65rem;
    max-width: 320px;
}
.pago-calendario--mini .pago-cal-day {
    min-height: 1.7rem;
    font-size: 0.72rem;
    border-radius: 6px;
}
.pago-calendario--mini .pago-cal-weekdays {
    font-size: 0.65rem;
}
.pago-calendario--mini .pago-cal-legend {
    font-size: 0.68rem;
    gap: 0.45rem 0.75rem;
}
.pago-calendario--mini .pago-cal-head strong {
    font-size: 0.9rem;
}

/* Interfaz propia (admin, no modal) */
.pago-page-panel .pago-panel--page {
    margin-bottom: 0;
    padding: 1.25rem 1.35rem 1.5rem;
}
.pago-page-layout {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 992px) {
    .pago-page-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr);
        align-items: start;
        gap: 1.75rem;
    }
}
.pago-page-layout__vista .pago-cortes {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.pago-page-panel .pago-calendario {
    padding: 1rem;
}
.pago-page-panel .pago-cal-day {
    min-height: 2.6rem;
    font-size: 0.9rem;
}
@media (min-width: 1200px) {
    .pago-page-panel .pago-cal-day {
        min-height: 3rem;
        font-size: 0.95rem;
    }
}

.pago-calendario {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    background: #fafbfc;
    margin-bottom: 0.5rem;
}
.pago-cal-today-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0.35rem 0 0.55rem;
}
.pago-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
}
.pago-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}
.pago-cal-day {
    aspect-ratio: 1;
    min-height: 2rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid transparent;
}
.pago-cal-day.is-empty { background: transparent; border: 0; }
.pago-cal-day.is-scheduled {
    border: 2px solid #1e3a8a;
    background: #eff6ff;
    color: #1e3a8a;
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.15);
}
.pago-cal-day.is-paid {
    background: #090e26;
    color: #fff;
    box-shadow: 0 3px 8px rgba(9, 14, 38, 0.22);
}
.pago-cal-day.is-new {
    background: #065f46;
    color: #fff;
    box-shadow: 0 3px 8px rgba(6, 95, 70, 0.25);
}
.pago-cal-day.is-renew {
    background: linear-gradient(145deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
}

/* Hoy (CDMX) siempre manda: prioriza sobre pagado / renovación / nuevo */
.pago-cal-day.is-today {
    position: relative;
    z-index: 2;
    background: #93c5fd !important;
    color: #1e3a8a !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.35) !important;
    font-weight: 800 !important;
}
.pago-cal-day.is-today::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1d4ed8;
    box-shadow: 0 0 0 1px #fff;
}
.pago-cal-day.is-today.is-paid::before,
.pago-cal-day.is-today.is-renew::before,
.pago-cal-day.is-today.is-new::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #090e26;
}
.pago-cal-day.is-today.is-renew::before { background: #ea580c; }
.pago-cal-day.is-today.is-new::before { background: #065f46; }
.pago-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: #4b5563;
}
.pago-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    margin-right: 0.3rem;
    vertical-align: -1px;
}
.pago-dot--today { background: #93c5fd; box-shadow: inset 0 0 0 1px #60a5fa; }
.pago-dot--paid { background: #090e26; }
.pago-dot--new { background: #065f46; }
.pago-dot--renew { background: #ea580c; }
.pago-dot--sched { background: #fff; box-shadow: inset 0 0 0 2px #1e3a8a; }

