/* =========================================================
   TAB 6: MI HORARIO (ESTILO MODERNO GLASSMORPHISM PREMIUM)
   ========================================================= */
.schedule-import-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -2px 0 16px;
}

.schedule-import-control-top {
    padding: 13px 15px;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(30, 64, 175, .12), rgba(15, 23, 42, .36));
}

.schedule-import-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.38);
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.schedule-import-button:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(96, 165, 250, 0.65);
    transform: translateY(-1px);
}

.schedule-import-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.schedule-import-button.is-loading svg {
    animation: schedule-import-pulse 1s ease-in-out infinite alternate;
}

@keyframes schedule-import-pulse {
    to { opacity: 0.35; }
}

.schedule-import-status {
    color: var(--text-muted);
    font-size: 12px;
}

.schedule-import-status.is-error {
    color: #fca5a5;
}

.schedule-import-note {
    flex-basis: 100%;
    margin: -3px 0 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.schedule-import-preview {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.schedule-import-preview[hidden] {
    display: none;
}

.schedule-import-preview-heading,
.schedule-import-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-import-preview-heading h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 15px;
}

.schedule-import-preview-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.schedule-import-dismiss {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 22px;
    cursor: pointer;
}

.schedule-import-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.schedule-import-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.schedule-import-item.is-uncertain {
    border-color: rgba(251, 191, 36, 0.55);
}

.schedule-import-item-main,
.schedule-import-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-import-item-main strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
}

.schedule-import-item-main span,
.schedule-import-item-meta {
    color: var(--text-muted);
    font-size: 11px;
}

.schedule-import-item-meta {
    align-items: flex-end;
    flex: 0 0 auto;
    text-align: right;
}

.schedule-import-item-meta b {
    color: #fbbf24;
}

.schedule-import-preview-actions {
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .schedule-import-control { align-items: flex-start; flex-direction: column; }
    .schedule-import-control-top { padding: 12px; }
    .schedule-import-button { width: 100%; }
    .schedule-import-item { flex-direction: column; }
    .schedule-import-item-meta { align-items: flex-start; text-align: left; }
}

.my-schedule-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-card);
    position: relative;
}


.my-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.my-hero-top-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.my-hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.my-hero-status-pill.now {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.my-hero-status-pill.estudio {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #c084fc !important;
    border: 1px solid rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.4) !important;
}

.pulse-dot-purple {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c084fc;
    box-shadow: 0 0 8px #a855f7;
    display: inline-block;
    animation: pulseDotPurple 2.2s infinite ease-in-out;
}

@keyframes pulseDotPurple {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #a855f7; }
    50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 3px #a855f7; }
}

.my-hero-status-pill.next {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.my-hero-status-pill.done {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.my-hero-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.my-hero-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.my-hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.my-hero-class-info {
    flex: 1;
    min-width: 250px;
}

.my-hero-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.my-hero-next-label {
    display: block;
    margin-bottom: 4px;
    color: #60a5fa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.my-hero-next-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.my-hero-next-time svg {
    color: #60a5fa;
    flex: 0 0 auto;
}

.my-hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.6; /* Mayor espaciado entre líneas para evitar que el texto choque con las píldoras de sala */
}

.my-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-hero-progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 14px;
}

.my-hero-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* GRID SEMANAL (5 COLUMNAS BENTO MODERNO) */
.my-week-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 901px) {
    .my-week-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
    }
}

@media (max-width: 900px) {
    .my-week-grid {
        width: 100vw;
        max-width: none;
        margin-left: calc(-50vw + 50%);
        padding-left: max(20px, calc((100vw - 1400px) / 2));
        padding-right: max(20px, calc((100vw - 1400px) / 2));
        box-sizing: border-box;
    }
}

.my-day-col {
    scroll-snap-align: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.my-day-col.is-today-col {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(22, 30, 49, 0.6);
    box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.15);
}

.my-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
}

.my-day-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-day-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.my-day-col.is-today-col .my-day-title {
    color: #60a5fa;
}

.my-today-chip {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    text-transform: uppercase;
}

.my-day-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sub);
}

.my-day-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TARJETAS DE CLASE DENTRO DE LA SEMANA - TAMAÑO FIJO SIN DESNIVELES */
.my-class-card {
    background: rgba(22, 30, 49, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 158px;
    min-height: 158px;
    max-height: 158px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.my-class-card:hover {
    background: rgba(30, 41, 69, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.16);
}

/* CASILLA VACÍA CUANDO NO HAY CLASES EN UN BLOQUE - MISMO TAMAÑO EXACTO */
.my-empty-slot {
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 158px;
    min-height: 158px;
    max-height: 158px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.my-empty-slot:hover {
    background: rgba(22, 38, 68, 0.65);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.25);
}

.my-empty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.my-empty-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    line-height: 1;
}

.my-empty-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: auto 0;
}

.my-empty-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
    transition: opacity 0.15s ease;
}

.my-empty-add-hint {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.01em;
}

.my-empty-slot:hover .my-empty-text {
    display: none;
}

.my-empty-slot.is-readonly:hover .my-empty-text {
    display: inline;
}

.my-empty-slot:hover .my-empty-add-hint {
    display: inline-flex;
}

.my-timeline-empty-card {
    background: rgba(15, 23, 42, 0.32);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.my-timeline-empty-card:hover {
    background: rgba(22, 38, 68, 0.45);
    border-color: rgba(59, 130, 246, 0.4);
    border-style: solid;
}

.my-empty-timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.my-timeline-empty-card:hover .my-empty-timeline-btn {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* BOTONES DE ACCIÓN: ELIMINAR Y RESTABLECER */
.btn-reset-horario {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-horario:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.my-btn-edit {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 2px 4px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    opacity: 0.45;
}

.my-class-card:hover .my-btn-edit {
    opacity: 0.85;
}

.my-btn-edit:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93c5fd !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

.my-btn-delete-timeline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-btn-delete-timeline:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    transform: translateY(-1px);
}

/* MODAL AGREGAR ASIGNATURA - EXPANDIDO VERTICALMENTE HACIA ARRIBA */
.my-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.my-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
    padding: 26px 28px;
    margin: auto;
    display: flex;
    flex-direction: column;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from { transform: scale(0.93); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#form-agregar-clase {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.my-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-modal-title {
    font-size: 18.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.my-modal-subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 4px;
}

.my-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.my-modal-close:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

/* BUSCADOR DE CLASES REALES EN LA BASE DE DATOS */
.my-search-real-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.my-search-real-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.my-search-real-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #93c5fd;
}

.my-search-real-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}

.my-real-classes-list {
    max-height: 240px;
    min-height: 130px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
    padding-right: 2px;
}

.my-real-class-item {
    background: rgba(30, 41, 69, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.my-real-class-item:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(2px);
}

.my-real-item-info {
    flex: 1;
    min-width: 0;
}

.my-real-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-real-item-meta {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.my-real-item-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 11px;
}

.my-real-select-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.my-real-class-item:hover .my-real-select-btn {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* DIVISOR CON TEXTO */
.my-divider-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.my-divider-with-text::before,
.my-divider-with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* CAMPOS DE FORMULARIO */
.my-form-group {
    margin-bottom: 14px;
    position: relative;
}

.my-form-row {
    display: flex;
    gap: 12px;
}

.my-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.my-form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #f8fafc;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}

.my-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* DROPDOWN FLOTANTE PERSONALIZADO PARA SALAS */
.my-custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    max-height: 165px;
    overflow-y: auto;
    z-index: 10010;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.my-dropdown-item {
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.my-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
}

/* SELECTOR DE TIPO POR PÍLDORAS - SEGMENTED CONTROL DOCK */
.my-tipo-pills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.my-tipo-pill {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
}

.my-tipo-pill:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.my-tipo-pill.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.25) 100%);
    border: 1px solid rgba(96, 165, 250, 0.55);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* EFECTO DE AUTOCOMPLETADO SUAVE */
@keyframes fieldAutofillGlow {
    0% { border-color: #60a5fa; box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
    100% { border-color: rgba(255, 255, 255, 0.14); }
}

.field-autofilled {
    animation: fieldAutofillGlow 1.2s ease-out;
}

/* SELECTOR DE ROL - SEGMENTED CONTROL DOCK */
.my-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.my-role-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.my-role-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.my-role-btn.active#btn-modal-rol-student {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.my-role-btn.active#btn-modal-rol-assistant {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    .my-tipo-pills {
        grid-template-columns: repeat(3, 1fr);
    }
    .my-modal-dialog {
        padding: 20px 16px;
    }
    .my-modal-actions {
        flex-wrap: wrap;
    }
}


.my-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.my-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.my-btn-secondary[hidden] {
    display: none !important;
}

.my-btn-danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
    margin-right: auto;
}

.my-btn-danger:hover {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.17);
}

.my-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.my-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.my-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

/* TOAST NOTIFICACIÓN SUTIL */
.my-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.my-toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* DISTINCIÓN DE ROLES */
.my-class-card.is-student {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-left: 3.5px solid #38bdf8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.my-class-card.is-student:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(6, 182, 212, 0.22));
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.my-class-card.is-assistant {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-left: 3.5px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.my-class-card.is-assistant:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.22));
    border-color: rgba(245, 158, 11, 0.6);
    border-left-color: #fbbf24;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}











.pulse-dot-white {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    display: inline-block;
    animation: pulseDotWhite 2s infinite ease-in-out;
    margin-right: 4px;
}
@keyframes pulseDotWhite {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}


.my-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.my-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    line-height: 1;
}


.my-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-student {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-assistant {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.my-role-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.16) 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 6px;
    padding: 1px 5.5px;
    font-size: 11px;
    line-height: 1.2;
    box-shadow: 0 1px 5px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    user-select: none;
    cursor: default;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.my-role-emoji:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transform: scale(1.06);
}

.my-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    max-height: 36px;
}

.my-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
    height: 36px;
    max-height: 36px;
    overflow: hidden;
    justify-content: center;
}

.my-type-tag {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.25;
    color: #93c5fd;
}

.my-class-card.is-assistant .my-type-tag,
.my-timeline-card.is-assistant .my-type-tag {
    color: #fbbf24;
}

.my-type-sec {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.my-prof-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 5px;
    height: 25px;
    min-height: 25px;
    max-height: 25px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* SALA CLICABLE PREMIUM */
.my-room-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(14, 165, 233, 0.14) 100%);
    border: 1px solid rgba(125, 211, 252, 0.35);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 22px;
    max-height: 22px;
    line-height: 18px;
    box-sizing: border-box;
    max-width: 155px;
    flex-shrink: 1;
    min-width: 0;
}

.my-room-pill svg {
    flex-shrink: 0;
}

.my-room-pill span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.my-room-pill:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(14, 165, 233, 0.3) 100%);
    border-color: rgba(147, 197, 253, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* PÍLDORA DE SALA EN AYUDANTÍAS DEL USUARIO (COLOR AMARILLO/ÁMBAR) */
.my-room-pill.is-assistant-room,
.my-class-card.is-assistant .my-room-pill,
.my-timeline-card.is-assistant .my-room-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.16) 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    box-shadow: 0 1px 5px rgba(245, 158, 11, 0.2);
}

.my-room-pill.is-assistant-room:hover,
.my-class-card.is-assistant .my-room-pill:hover,
.my-timeline-card.is-assistant .my-room-pill:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: rgba(251, 191, 36, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.my-card-bloque-num {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sub);
    white-space: nowrap;
    flex-shrink: 0;
}

/* VISTA TIMELINE DIARIO (CUANDO SE FILTRA POR UN DÍA ESPECÍFICO) */
.my-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.my-timeline-card {
    background: rgba(22, 30, 49, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.my-timeline-card:hover {
    background: rgba(30, 41, 69, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
}

.my-timeline-card.is-student {
    border-left: 4px solid #38bdf8;
}

.my-timeline-card.is-assistant {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.05) 0%, rgba(22, 30, 49, 0.8) 100%);
}



.my-time-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-time-range {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.my-bloque-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.my-info-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.my-info-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.my-info-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.my-actions-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    /* Eliminado: .my-week-grid ya no colapsa en móvil, hace scroll horizontal! */
    .my-timeline-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .my-actions-box {
        justify-content: flex-start;
    }
}

/* ESTILO ESPECIAL PARA TOPES LIBRES (CRUCE) */
.my-type-tag.tipo-crucelibre {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.my-class-card.is-assistant.is-cruce-libre {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-top: 3px solid #4ade80;
}

.my-class-card.is-cruce {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-top: 3px solid #4ade80;
}

/* COLORES POR TIPO DE CLASE */
.my-class-card.tipo-laboratorio {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.15)) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-left: 3.5px solid #a855f7 !important;
}

.my-class-card.tipo-laboratorio:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(147, 51, 234, 0.22)) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
}

.my-class-card.tipo-ayudantia.is-student {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(225, 29, 72, 0.15)) !important;
    border: 1px solid rgba(236, 72, 153, 0.4) !important;
    border-left: 3.5px solid #ec4899 !important;
}

.my-class-card.tipo-ayudantia.is-student:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(225, 29, 72, 0.22)) !important;
    border-color: rgba(236, 72, 153, 0.6) !important;
}

.my-timeline-card.tipo-laboratorio {
    border-left-color: #a855f7 !important;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.08) 0%, rgba(22, 30, 49, 0.4) 100%) !important;
}

.my-timeline-card.tipo-ayudantia.is-student {
    border-left-color: #ec4899 !important;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.08) 0%, rgba(22, 30, 49, 0.4) 100%) !important;
}

.my-timeline-card.is-cruce {
    border-left-color: #4ade80;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 30, 49, 0.4) 100%);
}


/* TIPO TAG Y ROOM PILL PARA LABORATORIO (Morado) */
.my-class-card.tipo-laboratorio .my-type-tag,
.my-timeline-card.tipo-laboratorio .my-type-tag {
    color: #c084fc !important;
}

.my-class-card.tipo-laboratorio .my-room-pill,
.my-timeline-card.tipo-laboratorio .my-room-pill,
.my-hero-top-badges.tipo-laboratorio .my-room-pill,
.my-room-pill.tipo-laboratorio {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(147, 51, 234, 0.16) 100%) !important;
    border: 1px solid rgba(192, 132, 252, 0.45) !important;
    color: #c084fc !important;
    box-shadow: 0 1px 5px rgba(168, 85, 247, 0.2) !important;
}
.my-class-card.tipo-laboratorio .my-room-pill:hover,
.my-timeline-card.tipo-laboratorio .my-room-pill:hover,
.my-hero-top-badges.tipo-laboratorio .my-room-pill:hover,
.my-room-pill.tipo-laboratorio:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(147, 51, 234, 0.25) 100%) !important;
    border-color: rgba(192, 132, 252, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35) !important;
}

/* TIPO TAG Y ROOM PILL PARA AYUDANTIA ESTUDIANTE (Rosa) */
.my-class-card.tipo-ayudantia.is-student .my-type-tag,
.my-timeline-card.tipo-ayudantia.is-student .my-type-tag {
    color: #f472b6 !important;
}

.my-class-card.tipo-ayudantia.is-student .my-room-pill,
.my-timeline-card.tipo-ayudantia.is-student .my-room-pill,
.my-hero-top-badges.tipo-ayudantia.is-student .my-room-pill,
.my-room-pill.tipo-ayudantia.is-student {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(225, 29, 72, 0.16) 100%) !important;
    border: 1px solid rgba(244, 114, 182, 0.45) !important;
    color: #f472b6 !important;
    box-shadow: 0 1px 5px rgba(236, 72, 153, 0.2) !important;
}
.my-class-card.tipo-ayudantia.is-student .my-room-pill:hover,
.my-timeline-card.tipo-ayudantia.is-student .my-room-pill:hover,
.my-hero-top-badges.tipo-ayudantia.is-student .my-room-pill:hover,
.my-room-pill.tipo-ayudantia.is-student:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.35) 0%, rgba(225, 29, 72, 0.25) 100%) !important;
    border-color: rgba(244, 114, 182, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
}



/* Selector de horarios para topes libres */
.cruce-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #94a3b8;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

.cruce-trigger:hover,
.cruce-trigger:focus-visible {
    color: #7dd3fc;
}

.cruce-trigger:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.72);
    outline-offset: 2px;
}

.cruce-menu-overlay {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px;
}

.cruce-menu-dialog {
    width: min(400px, 100%);
    max-width: 400px;
    max-height: min(590px, calc(100vh - 40px));
    padding: 18px;
    background: #101a2e;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.62);
}

.cruce-menu-dialog .my-modal-header {
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-color: rgba(148, 163, 184, 0.15);
}

.cruce-menu-dialog .my-modal-title {
    color: #f8fafc;
}

.cruce-menu-dialog .my-modal-subtitle {
    color: #94a3b8;
    font-weight: 500;
}

.cruce-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 9px 10px;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 7px;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
    user-select: none;
}
.cruce-option:hover {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(125, 211, 252, 0.32);
}
.cruce-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 650;
}
.cruce-avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(71, 85, 105, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.cruce-avatar.is-me {
    color: #e0f2fe;
    background: rgba(14, 116, 144, 0.42);
    border-color: rgba(56, 189, 248, 0.36);
}
.cruce-checkbox {
    display: none;
}
.cruce-toggle {
    width: 38px;
    height: 22px;
    background: rgba(71, 85, 105, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    position: relative;
    transition: background 180ms ease, border-color 180ms ease;
}
.cruce-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #cbd5e1;
    border-radius: 50%;
    transition: transform 180ms ease, background 180ms ease;
    box-shadow: 0 1px 3px rgba(2, 6, 23, 0.45);
}
.cruce-checkbox:checked + .cruce-toggle {
    background: #0284c7;
    border-color: #38bdf8;
}
.cruce-checkbox:checked + .cruce-toggle::after {
    transform: translateX(16px);
    background: #f0f9ff;
}

.cruce-menu-dialog .my-btn-primary {
    width: 100%;
    min-height: 40px;
    border-radius: 7px;
    box-shadow: none;
}

/* ESTILOS BLANCOS PARA BLOQUE ACTUAL (Sobrescribe morado/rosa/default) */





/* Asegurar altura estandarizada para todos los inputs */
.my-form-input {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.horario-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.horario-controls-bottom > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 500px) {
    .horario-controls-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .horario-controls-bottom > div {
        width: 100%;
    }
    
    .horario-controls-bottom > div .custom-dropdown {
        flex: 1;
    }
    
    .horario-controls-bottom .pill-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .my-hero-top {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .my-hero-status-pill {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

    .my-hero-top-badges {
        flex-shrink: 0;
    }
}

.my-hero-status-pill.assistant {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
}
.my-hero-status-pill.assistant .pulse-dot {
    background-color: #fbbf24 !important;
    box-shadow: 0 0 8px #f59e0b !important;
}

/* TIPO LABORATORIO (Morado) */
.my-hero-status-pill.laboratorio {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25) !important;
}
.my-hero-status-pill.laboratorio .pulse-dot {
    background-color: #c084fc !important;
    box-shadow: 0 0 8px #a855f7 !important;
}

/* TIPO AYUDANTÍA ESTUDIANTE (Rosa) */
.my-hero-status-pill.ayudantia-student {
    background: rgba(236, 72, 153, 0.18) !important;
    color: #f472b6 !important;
    border: 1px solid rgba(236, 72, 153, 0.4) !important;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.25) !important;
}
.my-hero-status-pill.ayudantia-student .pulse-dot {
    background-color: #f472b6 !important;
    box-shadow: 0 0 8px #ec4899 !important;
}

/* TIPO CÁTEDRA (Cyan) */
.my-hero-status-pill.catedra {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}
.my-hero-status-pill.catedra .pulse-dot {
    background-color: #7dd3fc !important;
    box-shadow: 0 0 8px #38bdf8 !important;
}


.my-hero-status-pill.done .pulse-dot {
    background-color: #94a3b8 !important;
    box-shadow: 0 0 8px #64748b !important;
}

/* TIPO VENTANA (Naranja/Coral) */
.my-hero-status-pill.next-ventana {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25) !important;
}

/* VARIANTES DE BARRA DE PROGRESO */
.my-hero-progress-bar.laboratorio {
    background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.my-hero-progress-bar.ayudantia-student {
    background: linear-gradient(90deg, #db2777 0%, #f472b6 100%) !important;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.my-hero-progress-bar.assistant {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.my-hero-progress-bar.catedra {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* OCULTAR ELEMENTOS EN MÓVIL PARA AHORRAR ESPACIO */
@media (max-width: 640px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* MOSTRAR SOLO EN MÓVIL (para abreviaturas) */
.show-mobile-inline {
    display: none;
}
@media (max-width: 640px) {
    .show-mobile-inline {
        display: inline !important;
    }
}
