/* =====================================================
   PANEL DE ALUMNOS - AULA VIRTUAL VARESO
   ===================================================== */

.student-dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    /* Fondo marca: navy + acento naranja (sin violeta DiagnoLav) */
    background:
        radial-gradient(ellipse 90% 55% at 100% -10%, rgba(232, 119, 34, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 45% at -10% 110%, rgba(26, 74, 130, 0.55), transparent 50%),
        linear-gradient(160deg, #0b2447 0%, #143a6b 48%, #0b2447 100%);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-sizing: border-box;
    /* Margen de scroll: vareso-brand.css (--vareso-scroll-end) */
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-legajo-chip {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(232, 119, 34, 0.95);
    color: #fff;
    vertical-align: middle;
}

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

/* Botón de Notas - Agregado para funcionalidad de notas */
.notes-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1em;
    width: 40px;
    height: 40px;
}

.notes-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tabs-three .category-tab {
    max-width: 200px;
    flex: 1 1 140px;
    padding: 12px 16px;
    font-size: 14px;
}

.category-tab {
    flex: 1;
    max-width: 300px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(232, 119, 34, 0.65);
    transform: translateY(-1px);
}

.category-tab.active {
    background: #fff;
    color: #0b2447;
    border-color: #e87722;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 -3px 0 #e87722;
}

.category-tabs-hub .category-tab {
    max-width: 280px;
    flex: 1 1 160px;
}

/* Mis cursos (hub Aula) */
.mis-cursos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mis-curso-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.mis-curso-card:hover {
    transform: translateY(-2px);
}

.mis-curso-cover {
    width: 96px;
    min-height: 96px;
    max-height: 110px;
    flex-shrink: 0;
    align-self: stretch;
    background-color: #0b2447;
    background-image: linear-gradient(145deg, #0b2447, #1a4a82);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.6rem;
    overflow: hidden;
}

.mis-curso-cover--crecimiento {
    background: linear-gradient(145deg, #e87722, #c45f12);
}

.mis-curso-card--crecimiento .mis-curso-body p {
    color: #c45f12;
}

.crecimiento-panel {
    margin-bottom: 16px;
}

.crecimiento-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.crecimiento-title {
    margin: 0 0 12px;
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.mis-curso-body {
    flex: 1;
    padding: 12px 14px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mis-curso-body h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #1a202c;
}

.mis-curso-body p {
    margin: 0;
    font-size: 0.8rem;
    color: #38a169;
    font-weight: 600;
}

.mis-curso-open {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e87722;
    font-weight: 700;
}

/* Biblioteca: bloque de filtros (arriba) */
.library-filters-sticky {
    margin-bottom: 12px;
    padding: 8px 0;
}

.filters-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid rgba(232, 119, 34, 0.55);
    background: rgba(11, 36, 71, 0.45);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.filters-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 6px;
    border-radius: 999px;
    background: #e87722;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.library-filters-panel {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
}

.library-filters-panel--overlay {
    margin-top: 0;
    background: transparent;
    padding: 0;
}

@media (min-width: 720px) {
    .library-filters-panel {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAB: acceso a filtros al scrollear */
.filters-fab {
    position: fixed;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #e87722;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(232, 119, 34, 0.4);
    cursor: pointer;
    animation: filters-fab-in 0.22s ease-out;
}

.filters-fab.is-open {
    background: #0b2447;
}

.filters-fab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #0b2447;
    font-size: 0.75rem;
    font-weight: 800;
}

@keyframes filters-fab-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.filters-overlay-sheet {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    animation: filters-sheet-in 0.2s ease-out;
}

@keyframes filters-sheet-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.filters-overlay-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a202c;
}

.filters-overlay-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #edf2f7;
    color: #2d3748;
    cursor: pointer;
}

.filters-overlay-done {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #e87722;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (min-width: 720px) {
    .filters-overlay {
        align-items: center;
    }
}

.library-filter-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.library-filter-row label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.library-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    font-size: 0.9rem;
    background: white;
    color: #2d3748;
}

.material-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0b2447;
    background: #fff4eb;
    border: 1px solid rgba(232, 119, 34, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Diarias: liberación en orden */
.diarias-meta {
    text-align: center;
    color: white;
}

.diarias-day-label {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.diarias-mode-hint {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.85;
}

.diarias-order-hint {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.diarias-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #0b2447;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.diarias-next-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.diarias-next-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #c3dafe;
    background: #ebf4ff;
    color: #434190;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.diarias-next-btn-compact i {
    font-size: 0.7rem;
}

.diarias-next-btn-compact.is-waiting,
.diarias-next-btn-compact:disabled.is-waiting {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 1;
}

.diarias-next-btn-compact:disabled:not(.is-waiting) {
    opacity: 0.6;
    cursor: wait;
}

.material-card.is-locked {
    opacity: 0.55;
    filter: grayscale(0.85);
    cursor: not-allowed;
}

.material-card.is-locked:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.material-card.is-current {
    outline: 2px solid #f6e05e;
    outline-offset: 2px;
}

.material-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    color: white;
    font-size: 1.6rem;
}

.material-locked-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
}

.material-day-badge {
    display: inline-block;
    background: #e87722;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 8px;
}

/* Search Bar — forzar blanco (Safari/iOS dark mode a veces pinta el input oscuro) */
.search-bar {
    display: flex;
    gap: 10px;
    align-items: stretch;
    color-scheme: light;
}

.search-input-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #ffffff;
    border: 2px solid #e87722;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #e87722 !important;
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
    opacity: 1 !important;
}

.search-input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: none !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #0b2447 !important;
    -webkit-text-fill-color: #0b2447 !important;
    caret-color: #0b2447;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: light;
}

.search-input::placeholder {
    color: #5a6b82 !important;
    -webkit-text-fill-color: #5a6b82 !important;
    opacity: 1 !important;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
}

.search-input-wrapper:focus-within {
    border-color: #0b2447;
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.4), 0 4px 18px rgba(0, 0, 0, 0.25);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff4eb;
    border: 1px solid rgba(232, 119, 34, 0.4);
    color: #0b2447;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 7px;
    border-radius: 6px;
    z-index: 2;
}

.clear-search:hover {
    background: #ffe0c2;
    color: #0b2447;
}

.order-select {
    padding: 13px 16px;
    border: 2px solid #e87722;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0b2447 !important;
    -webkit-text-fill-color: #0b2447;
    background: #ffffff !important;
    background-color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    min-width: 160px;
    max-width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: light;
}

.order-select:focus {
    outline: none;
    border-color: #0b2447;
}

/* Type Filters */
.type-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.type-filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.type-filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.type-filter-btn.active {
    background: white;
    color: #0b2447;
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.type-filter-btn .badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.type-filter-btn.active .badge {
    background: #0b2447;
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.no-results i {
    opacity: 0.5;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Material Card */
.material-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.material-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2447 0%, #e87722 100%); /* Default: video */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colores de fondo específicos por tipo - ocupan todo el ancho */
.material-card[data-type="pdf"] .material-thumbnail {
    background: #ec4444; /* Rojo para PDF */
}

.material-card[data-type="grabacion"] .material-thumbnail {
    background: #f59e0b; /* Naranja para Reuniones */
}

.material-card[data-type="imagen"] .material-thumbnail {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Verde para Imágenes */
}

.material-card[data-type="recomendado"] .material-thumbnail {
    background: linear-gradient(135deg, #e87722 0%, #c45f12 100%); /* Naranja Vareso */
}

.material-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.material-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.material-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.material-title-row .material-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.material-note-btn {
    flex-shrink: 0;
    border: none;
    background: rgba(102, 126, 234, 0.12);
    color: #0b2447;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.material-note-btn:active {
    opacity: 0.88;
}

.material-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.material-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.material-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.material-date {
    font-size: 12px;
    color: #999;
}

.material-action {
    color: #0b2447;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.material-card:hover .material-action {
    transform: translateX(5px);
}

/* Modal */
.material-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.material-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.modal-body {
    padding: 30px;
}

.iframe-video,
.iframe-content {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.external-link-container {
    text-align: center;
    padding: 60px 40px;
}

.external-icon {
    opacity: 0.3;
}

.external-link-container p {
    color: #333;
    margin: 0 auto;
    max-width: 500px;
}

.external-link-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #0b2447 0%, #e87722 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (min-width: 768px) {
    .student-dashboard {
        padding: 20px;
        padding-bottom: 40px;
    }
    
    .materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .category-tab {
        font-size: 16px;
        padding: 15px 30px;
    }
    
    .type-filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .material-card:hover {
        transform: translateY(-8px);
    }
}

@media (min-width: 1024px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .student-dashboard {
        padding: 15px;
        padding-bottom: 100px; /* Más espacio en móvil para barra de navegación */
    }

    .category-tabs {
        flex-direction: row;
        gap: 8px;
    }

    .category-tab {
        max-width: 100%;
        flex: 1;
        min-width: 0;
        padding: 10px 15px;
        font-size: 13px;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .order-select {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
    }

    .type-filters {
        gap: 6px;
        justify-content: flex-start;
    }

    .type-filter-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .material-card:hover {
        transform: none;
    }

    .material-modal {
        padding: 10px;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .iframe-video,
    .iframe-content {
        height: 300px;
    }

    .dashboard-header {
        flex-direction: row;
        gap: 8px;
    }

    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .notes-button {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }
}

/* ===================================================== 
   BLOQUEO DE SUSCRIPCIÓN
   ===================================================== */

.subscription-block {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.block-icon {
    animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.subscription-btn {
    background: linear-gradient(135deg, #0b2447 0%, #e87722 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.subscription-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .subscription-block {
        padding: 40px 15px;
    }

    .subscription-btn {
        width: 100%;
        max-width: 300px;
    }
}
