/* Estilos Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #1f2937;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    background: #1e293b;
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: #38bdf8;
}

.logo-area h1 {
    font-size: 18px;
    font-weight: 700;
}

.logo-area p {
    font-size: 12px;
    color: #94a3b8;
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    background: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-warning {
    background: #7f1d1d;
    color: #fca5a5;
}

.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 16px;
    gap: 16px;
}

.sidebar-left, .sidebar-right {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: 100%;
    overflow-y: auto;
}

.sidebar-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.stage-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stage-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    padding: 7px 10px;
    border-radius: 7px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-btn:hover {
    background: #e2e8f0;
}

.stage-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

.btn-atraso {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.btn-atraso:hover {
    background: #fee2e2;
}

.btn-atraso.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-alta-inicio {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    font-weight: 600;
}

.btn-alta-inicio:hover {
    background: #dbeafe;
}

.divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.dot-inicio { background: #64748b; }
.dot-m1 { background: #3b82f6; }
.dot-m2 { background: #06b6d4; }
.dot-m3 { background: #10b981; }
.dot-m4 { background: #f59e0b; }
.dot-m5 { background: #8b5cf6; }
.dot-cert { background: #ec4899; }

/* Generador de Reportes */
.report-generator-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-field label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 3px;
}

.inline-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 11px !important;
    cursor: pointer;
}

.rep-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.rep-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.btn-export {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-excel { background: #15803d; }
.btn-excel:hover { background: #166534; }
.btn-csv { background: #0369a1; }
.btn-csv:hover { background: #075985; }

/* Contenedor Central */
.kanban-wrapper {
    flex: 1;
    overflow: auto;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.kanban-board {
    display: flex;
    gap: 12px;
    height: 100%;
}

.kanban-column {
    width: 285px;
    min-width: 285px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    border: 1px solid #cbd5e1;
}

.column-header {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #ffffff;
}

.header-col-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-card-col {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add-card-col:hover {
    background: rgba(255, 255, 255, 0.45);
}

.col-inicio { background: #475569; }
.col-m1 { background: #2563eb; }
.col-m2 { background: #0891b2; }
.col-m3 { background: #059669; }
.col-m4 { background: #d97706; }
.col-m5 { background: #7c3aed; }
.col-cert { background: #db2777; }

.card-count {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.column-body {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid #94a3b8;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.card-code {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-activo { background: #dcfce7; color: #166534; }
.status-inactivo { background: #f3f4f6; color: #4b5563; }
.status-baja { background: #fee2e2; color: #991b1b; }
.status-finalizado, .status-finalizó { background: #e0e7ff; color: #3730a3; }

.student-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-info {
    font-size: 11px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.card-info i {
    width: 14px;
    color: #64748b;
}

.card-note-box {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #334155;
    margin-top: 6px;
    margin-bottom: 6px;
    max-height: 48px;
    overflow: hidden;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.badge-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag-academico { background: #fef3c7; color: #92400e; }
.tag-economico { background: #ffe4e6; color: #9f1239; }

/* Resumen Desplegado al Centro */
.student-summary-panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    height: 100%;
    overflow-y: auto;
}

.summary-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-top-bar h2 {
    font-size: 18px;
    color: #0f172a;
}

.summary-top-bar p {
    font-size: 12px;
    color: #64748b;
}

.summary-top-actions {
    display: flex;
    gap: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.summary-card-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.summary-card-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-list-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 6px;
}

.asistio-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.no-asistio-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Barra Derecha */
.code-search-box {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.code-search-box input {
    flex: 1;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.btn-lookup {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-lookup:hover {
    background: #1d4ed8;
}

.helper-text {
    font-size: 11px;
    color: #64748b;
}

.search-box {
    position: relative;
    margin-bottom: 14px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}

.search-box input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.filter-options label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.form-control:focus {
    border-color: #2563eb;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    width: 750px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: #1e293b;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

.full-width {
    grid-column: span 2;
}

.section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.section-box h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #1e293b;
    margin-bottom: 8px;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.exam-card-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px;
    text-align: center;
    font-size: 11px;
}

.exam-card-item strong {
    display: block;
    color: #2563eb;
    margin-bottom: 2px;
}

.checkbox-row {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.comments-section {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comments-list {
    max-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.comment-item {
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid #e2e8f0;
}

.add-comment-box {
    display: flex;
    gap: 8px;
}

.add-comment-box input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.add-comment-box button {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}


/* ============================================================
   ESTILOS DE PORTADA, RESERVAS, CONFIGURACIÓN Y TARJETAS
   ============================================================ */

.landing-screen,
.reservas-screen,
.gestion-screen {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gestion-screen {
    overflow: hidden;
}

.landing-screen {
    overflow-y: auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #f1f5f9 45%, #f8fafc 100%);
    padding: 28px 20px;
    align-items: center;
    justify-content: center;
}

.landing-container {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-school-header {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    border: 1px solid #e2e8f0;
}

.landing-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2563eb;
    overflow: hidden;
    flex-shrink: 0;
}

.landing-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.landing-school-meta h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.landing-school-meta p {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
}

.landing-school-contact {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.landing-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.landing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.card-reservas:hover { border-color: #2563eb; }
.card-escuela:hover { border-color: #059669; }

.landing-card-illustration {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.landing-card-illustration svg {
    max-height: 126px;
    width: auto;
}

.landing-card-body h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.landing-card-body p {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 14px;
}

.school-url-text {
    font-weight: 700;
    color: #059669 !important;
    margin-bottom: 6px !important;
}

.landing-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.landing-card-cta.cta-green {
    background: #059669;
}

/* Apartado inferior en letras más pequeñas: Solo para docentes */
.landing-teacher-footer {
    margin: 4px auto 0;
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.teacher-footer-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.teacher-confirm-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.teacher-confirm-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}

.teacher-login-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teacher-login-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.teacher-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.btn-teacher-submit {
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
}

/* Header Navigation & Config Dropdown */
.btn-header-nav {
    background: #334155;
    color: #ffffff;
    border: 1px solid #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-header-nav:hover {
    background: #475569;
}

.config-menu-wrapper {
    position: relative;
}

.btn-config-trigger {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.btn-config-trigger:hover {
    background: #1d4ed8;
}

.config-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    padding: 6px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-menu-item {
    border: none;
    background: transparent;
    color: #1e293b;
    text-align: left;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
}

.config-menu-item:hover {
    background: #f1f5f9;
}

.config-menu-item.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.header-school-mini-logo {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-school-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-teacher {
    background: #0f766e;
    color: #ccfbf1;
}

/* Vista Reservas para Alumnos */
.reservas-screen {
    overflow-y: auto;
    background: #f1f5f9;
}

.reservas-main-container {
    width: 100%;
    max-width: 1180px;
    margin: 20px auto;
    padding: 0 18px 30px;
}

.reservas-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: start;
}

.reservas-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.reservas-panel h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-lookup-row {
    display: flex;
    gap: 8px;
}

.student-info-card {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.student-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.info-label {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
}

.modalidad-pill {
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.alert-banner {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-block-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    font-size: 13px;
}

.alert-block-box i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-block-box p {
    margin-top: 4px;
    font-weight: 500;
}

.booking-rules-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-picker-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.week-usage-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.slot-btn {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slot-btn:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
}

.slot-btn.selected {
    border-color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.slot-btn:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.85;
}

.slot-time {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.slot-btn:disabled .slot-time {
    color: #64748b;
}

.slot-cap {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
}

.slot-btn:disabled .slot-cap {
    color: #dc2626;
}

.confirm-reserva-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-slot-summary {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
}

.btn-confirm-big {
    padding: 11px 16px;
    font-size: 14px;
}

.btn-confirm-big:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.student-reservas-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 540px;
    overflow-y: auto;
}

.reserva-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.empty-state-box {
    text-align: center;
    padding: 32px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.empty-state-box i {
    font-size: 28px;
    margin-bottom: 8px;
}

/* Modal Confirmación Exitosa */
.modal-small {
    width: 440px;
}

.modal-header-success {
    background: #059669;
}

.success-check-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
}

.confirm-msg-text {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

/* Badges de asistencia en tarjetas y tablas */
.pendiente-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.card-reservas-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-reservas-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
}

.cnt-vino { color: #166534; }
.cnt-novino { color: #991b1b; }
.cnt-pend { color: #92400e; }

.card-reservas-link {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.card-reservas-link:hover {
    background: #dbeafe;
}

/* Workspace de Configuración */
.config-workspace {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: #e2e8f0;
}

.config-workspace-inner {
    max-width: 1240px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.config-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.config-section-header h2 {
    font-size: 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-section-header p {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.config-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.config-filters-bar .form-group {
    min-width: 170px;
    flex: 1;
}

.ctrl-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ctrl-stat-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-success { background: #16a34a; color: #ffffff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: #ffffff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: #d97706; color: #ffffff; }
.btn-warning:hover { background: #b45309; }

.add-docente-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.escuela-form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.logo-upload-preview {
    height: 150px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
    overflow: hidden;
    padding: 10px;
}

.logo-upload-preview img {
    max-height: 125px;
    max-width: 100%;
    object-fit: contain;
}

.sr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.sr-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

@media (max-width: 860px) {
    .landing-cards-grid,
    .reservas-grid,
    .escuela-form-grid,
    .teacher-login-fields,
    .add-docente-grid,
    .slots-grid {
        grid-template-columns: 1fr;
    }
}
