/* ===============================
   HEADER MIS ACTIVIDADES
   =============================== */

.sa-my-activity-header {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin-bottom: 40px;
}

.sa-my-activity-header__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.sa-my-activity-header__subtitle {
    margin-top: 10px;
    font-size: 15px;
    color: #6b7280;
}

/* ===============================
   NAVEGACIÓN
   =============================== */

.sa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
}

.sa-back-link:hover {
    text-decoration: underline;
}

/* ===============================
   GRID DE ACTIVIDADES
   =============================== */

.sa-my-activities {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 👈 2 columnas */
    gap: 28px;
}

.sa-my-activities__empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* Tablet y móvil */
@media (max-width: 1024px) {
    .sa-my-activities {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   CARD ACTIVIDAD
   =============================== */

.sa-my-activity-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    padding-bottom: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    
}

/* Header card */

.sa-my-activity-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.sa-my-activity-card__title {
    margin: 0;
}

.sa-my-activity-card__meta {
    font-size: .85rem;
    color: #666;
}

.sa-my-activity-card__schedule {
    font-size: .8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    color: #555;
    white-space: nowrap;
}

.sa-my-activity-card__schedule:hover {
    color: #111;
}

/* ===============================
   ALUMNOS INSCRITOS (TABLA)
   =============================== */

.sa-my-activity-card__students {
    margin-left: -14px;
    margin-right: -14px;
}

.sa-my-activity-card__subtitle {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #666;
}

.sa-my-activity-table {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
}

.sa-my-activity-table__head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    font-size: .75rem;
    font-weight: 700;
    color: #6b7280;
}

.sa-my-activity-students {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Fila alumno */

.sa-my-activity-student {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px dashed #e5e7eb;
}

.sa-my-activity-student:last-child {
    border-bottom: none;
}

.sa-my-activity-student__name {
    font-weight: 600;
    color: #111;
}

.sa-my-activity-student__tarifa {
    font-size: .8rem;
    color: #777;
    margin-left: 4px;
}

.sa-my-activity-student__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 28px;            
    padding: 0 20px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;

    border-radius: 999px;
    white-space: nowrap;
}


.sa-my-activity-student__status--active {
    background: #e8f7ef;
    color: #1e7f52;
}

.sa-my-activity-student__actions {
    justify-self: end;
}

/* ===============================
   BOTÓN CANCELAR — ROJO PÍLDORA
   =============================== */

.sa-my-activity-student__cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.sa-my-activity-student__cancel::before {
    content: "✕";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: .65rem;
}

.sa-my-activity-student__cancel:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.sa-my-activity-student__cancel:active {
    transform: translateY(0);
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 640px) {
    .sa-my-activity-student {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sa-my-activity-student__actions {
        justify-self: start;
    }
}
/* ===============================
   MODAL HORARIO
   =============================== */

.sa-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-modal[hidden] {
    display: none;
}

.sa-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.sa-modal__content {
    position: relative;
    max-width: 760px;
    /* el que ya tenías */
    width: calc(100% - 32px);
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.sa-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    color: #9ca3af;
    /* gris suave */
    cursor: pointer;
    transition: color .2s ease, transform .15s ease;
}

.sa-modal__close:hover {
    color: #111;
    transform: scale(1.1);
    background: transparent;
}

.sa-modal__title {
    margin: 0 0 16px;
    padding-bottom: 10px;
}

/* ===============================
   HORARIO — DISEÑO BONITO
   =============================== */

/* Grid base */
.sa-schedule-grid {
    display: grid;
    gap: 20px;
}

/* Dos columnas (Primaria + Infantil) */
.sa-schedule-grid--double {
    grid-template-columns: repeat(2, 1fr);
}

/* Una sola columna (solo Primaria o Infantil) */
.sa-schedule-grid--single {
    grid-template-columns: 1fr;
}

/* ===============================
   COLUMNA
   =============================== */

.sa-schedule-column {
    background: #f7f7f8;
    border-radius: 16px;
    padding: 16px;
}

.sa-schedule-column__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===============================
   FILAS POR DÍA
   =============================== */

.sa-schedule-day-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.sa-schedule-day-row:last-child {
    border-bottom: none;
}

.sa-schedule-day {
    font-weight: 600;
    color: #374151;
}

.sa-schedule-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sa-schedule-slot {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .9rem;
}

.sa-schedule-group {
    color: #6b7280;
    font-size: .85em;
}

/* ===============================
   MODAL DE CANCELACION
   =============================== */

.sa-modal--cancel .sa-modal__content {
    padding: 36px;
}

.sa-modal--cancel .sa-modal__title {
    margin-bottom: 20px;
}

.sa-modal--cancel .sa-modal__body {
    margin-bottom: 36px;
    line-height: 1.5;
}

.sa-modal--cancel .sa-modal__footer {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.sa-modal--cancel .sa-btn {
    min-width: 140px;
    padding: 10px 18px;
}

.sa-modal--cancel .sa-modal__close {
    top: 18px;
    right: 18px;
}

.sa-modal--cancel #sa-cancel-text {
    color: #000000 !important;
    font-size: 15px;
}



/* Botón volver atrás (solo modal cancelar) */
.sa-btn--cancel-back {
    background: transparent;
    border: 2px solid #9ca3af;
    color: #374151 !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.sa-btn--cancel-back:hover {
    background: #f3f4f6;
    color: #374151 !important;
}

/* Botón confirmar cancelación */
.sa-btn--cancel-confirm {
    position: relative;
    background: #c4122f;
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: none;
    transition: all 0.2s ease;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Botón */
.sa-btn--cancel-confirm {
    position: relative;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Texto normal */
.sa-btn__text {
    display: inline-block;
}

/* Loading */
.sa-btn__loading {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
}

/* Spinner */
.sa-btn__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animación spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.sa-activity-success {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px 8px;
    background: #e8f7ef;
    color: #1e7f52;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}


/* El mensaje verde ocupa toda la fila */
.sa-activity-success__text {
    flex: 1;
}

.sa-activity-success__close {
    background: transparent;
    border: none;
    color: #1e7f52;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.sa-activity-success__close:hover {
    color: #145c3c;
}
/* ===============================
   LINK VER ACTIVIDAD (FOOTER CARD)
   =============================== */

.sa-my-activity-card__footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.sa-my-activity-card__footer .sa-btn--ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb; /* azul elegante */
    text-decoration: none;

    padding: 6px 14px;
    border-radius: 999px;

    transition: all 0.2s ease;
}

/* Flecha */
.sa-my-activity-card__footer .sa-btn--ghost::after {
    content: "→";
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

/* Hover */
.sa-my-activity-card__footer .sa-btn--ghost:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Animación flecha */
.sa-my-activity-card__footer .sa-btn--ghost:hover::after {
    transform: translateX(3px);
}