/* ===============================================
   ESTILOS ESPECÍFICOS DEL PORTAL DEL ESTUDIANTE
   Estos estilos solo afectan a StudentPortal.jsx
   ===============================================
   
   📚 ÍNDICE DE SECCIONES:
   
   1. ESTILOS GENERALES Y BASE (línea 15)
   2. COMPONENTES PRINCIPALES (línea 24)
      - Header Principal
      - Container Principal  
      - Encabezado del Estudiante
   3. SECCIONES DE CONTENIDO (línea 85)
      - Clases Anteriores
      - Videos Recomendados
      - Buzón de Sugerencias
   4. FILTROS Y CONTROLES (línea 285)
      - Etiquetas de Filtro
      - Búsqueda y Ordenamiento
   5. CARRUSEL DE VIDEOS (línea 430)
   6. NOTIFICACIONES/TOAST (línea 450)
   7. ESTADOS DE CARGA (línea 580)
   8. ESTILOS DE TARJETAS (línea 645)
   9. MODAL (línea 675)
   10. CALIFICACIÓN POR ESTRELLAS (línea 750)
   11. UTILIDADES Y HELPERS (línea 775)
   12. COLORES Y TEMAS EDITABLES (línea 850)
   13. RESPONSIVE DESIGN (línea 925)
   
   =============================================== */

/* ========================================
   1. ESTILOS GENERALES Y BASE
   ======================================== */

/* Estilos para el portal del estudiante */
body {
    font-family: 'Inter', sans-serif, system-ui, Avenir, Helvetica, Arial, sans-serif;
    /* Base font size más grande para móvil */
    font-size: 16px;
}

/* ========================================
   2. COMPONENTES PRINCIPALES
   ======================================== */

/* --- 2.1 Header Principal del Portal --- */
.student-portal-header {
    width: 100%;
}

/* --- 2.2 Container Principal --- */
.student-portal-container {
    padding-top: 40px;
}

/* --- 2.3 Encabezado del Estudiante --- */
.student-header-wrapper {
    margin-bottom: 1rem;
}

.student-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.student-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-header-icon {
    height: 2rem;
    width: 2rem;
    color: #2563eb;
}

.student-header-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
}

.student-header-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    background-color: white;
    color: #1f2937;
    transition: background-color 0.2s;
    border: 2px solid #d1d5db;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.student-header-logout-button:hover {
    background-color: #f9fafb;
}

.student-header-logout-icon {
    height: 2rem;
    width: 2rem;
}

/* ========================================
   3. SECCIONES DE CONTENIDO
   ======================================== */

/* --- 3.1 Sección de Clases Anteriores --- */
.previous-classes-section {
    margin-top: 2.5rem;
}

.previous-classes-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-top: 2.5rem;
}

.previous-classes-description-wrapper {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 1.25rem;
}

.previous-classes-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* --- 3.2 Sección de Videos Recomendados --- */
.recommended-videos-section {
    margin-top: 6rem;
}

.recommended-videos-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 2rem;
}

/* --- 3.3 Sección de Buzón de Sugerencias --- */
.suggestions-section {
    margin-top: 6rem;
}

.suggestions-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 1rem;
}

.suggestions-professor-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.suggestions-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.suggestions-rating-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.suggestions-comments-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.suggestions-comments-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.suggestions-textarea {
    width: 100%;
    height: 8rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    resize: none;
}

.suggestions-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.suggestions-history-wrapper {
    margin-top: 1rem;
}

.suggestions-history-title {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.suggestions-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 10rem;
    overflow-y: auto;
}

.suggestions-history-item {
    padding: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.suggestions-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.suggestions-history-item-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.suggestions-history-item-responded-badge {
    font-size: 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.suggestions-history-item-message {
    font-size: 0.875rem;
    color: #374151;
}

.suggestions-history-item-response {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #eff6ff;
    border-left: 4px solid #60a5fa;
    border-radius: 0.25rem;
}

.suggestions-history-item-response-label {
    font-size: 0.75rem;
    color: #1e40af;
    font-weight: 500;
}

.suggestions-history-item-response-text {
    font-size: 0.875rem;
    color: #1e3a8a;
    margin-top: 0.25rem;
}

.suggestions-submit-button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}

.suggestions-submit-button:hover {
    background-color: #1d4ed8;
}

.suggestions-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.suggestions-confirmation-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
}

/* ========================================
   4. FILTROS Y CONTROLES
   ======================================== */

/* --- 4.1 Etiquetas de Filtro --- */
.filter-tags-wrapper {
    flex-grow: 1;
}

.filter-tags-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.filter-tags-icon {
    height: 1rem;
    width: 1rem;
}

.filter-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0.8;
}

.filter-tag-button {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
    transition: all 0.2s;
}

.filter-tag-button-inactive {
    background-color: white;
    color: black;
    border-color: black;
}

.filter-tag-button-inactive:hover {
    background-color: #f9fafb;
}

.filter-tag-button-active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-tags-toggle-wrapper {
    margin-top: 0.75rem;
}

.filter-tags-toggle-button {
    font-size: 0.875rem;
    color: #2563eb;
}

.filter-tags-toggle-button:hover {
    text-decoration: underline;
}

/* --- 4.2 Controles de Búsqueda y Ordenamiento --- */
.search-sort-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: #4b5563;
    transition: color 0.2s;
}

.sort-dropdown-button:hover {
    color: #2563eb;
}

.sort-dropdown-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
}

.sort-dropdown-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.sort-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    z-index: 20;
}

.sort-dropdown-menu-hidden {
    display: none;
}

.sort-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s;
}

.sort-dropdown-item:hover {
    background-color: #f3f4f6;
}

.search-input-wrapper {
    position: relative;
    width: 10rem;
}

.search-input {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 2.25rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-icon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.search-input-icon {
    height: 1rem;
    width: 1rem;
    color: #9ca3af;
}

/* ========================================
   5. CARRUSEL DE VIDEOS
   ======================================== */

.videos-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
    scroll-snap-type: x mandatory;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.videos-carousel-no-results {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    width: 100%;
}

@media (min-width: 768px) {
    .videos-carousel {
        gap: 1rem;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ========================================
   6. NOTIFICACIONES/TOAST
   ======================================== */

.notification-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    max-width: 24rem;
}

.notification-toast-content {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.notification-toast-success {
    background-color: #22c55e;
    color: white;
}

.notification-toast-error {
    background-color: #ef4444;
    color: white;
}

.notification-toast-info {
    background-color: #3b82f6;
    color: white;
}

.notification-toast-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-toast-content-wrapper {
    display: flex;
    align-items: center;
}

.notification-toast-icon-wrapper {
    flex-shrink: 0;
}

.notification-toast-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.notification-toast-text-wrapper {
    margin-left: 0.75rem;
    flex: 1;
}

.notification-toast-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-toast-message {
    font-size: 0.875rem;
    opacity: 0.9;
}

.notification-toast-close-button {
    margin-left: 1rem;
    flex-shrink: 0;
    color: white;
    transition: color 0.2s;
}

.notification-toast-close-button:hover {
    color: #e5e7eb;
}

.notification-toast-close-icon {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   7. ESTADOS DE CARGA
   ======================================== */

.loading-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 9999px;
    height: 3rem;
    width: 3rem;
    border-bottom: 2px solid #2563eb;
}

.loading-text {
    margin-left: 0.75rem;
    color: #4b5563;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.error-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
}

.error-icon {
    color: #dc2626;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #4b5563;
    margin-bottom: 1rem;
}

.error-retry-button {
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.error-retry-button:hover {
    background-color: #1d4ed8;
}

/* ========================================
   8. ESTILOS DE TARJETAS DE VIDEO
   ======================================== */

.post-card {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    flex-shrink: 0;
    min-width: 250px;
    max-width: 250px;
    scroll-snap-align: start;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Tarjetas ocupan todo el ancho del viewport en móvil (menos padding) */
@media (max-width: 768px) {
    .post-card {
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        scroll-snap-align: center;
    }
}

/* ========================================
   9. ESTILOS DEL MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
    touch-action: none;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.3s ease-in-out;
    background-color: white;
    color: #565656;
}

.modal-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Animaciones para el modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-60%); }
    to { transform: translateY(-50%); }
}

.video-only-view {
    background-color: black;
    color: white;
    padding: 0;
    max-width: 90%;
}

/* ========================================
   10. COMPONENTE DE CALIFICACIÓN POR ESTRELLAS
   ======================================== */

.star-rating-container {
    display: inline-flex;
    gap: 4px;
}

.star-rating-container svg {
    cursor: pointer;
    width: 24px;
    height: 24px;
    color: #d1d5db;
    transition: color 0.2s ease-in-out;
}

.star-rating-container svg.filled {
    color: #f4e53e;
}

/* ========================================
   11. UTILIDADES Y HELPERS
   ======================================== */

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Personalización del scroll para los carruseles */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-mandatory {
    scroll-snap-type: mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

/* Scrollbar personalizado para los carruseles */
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Scrollbar personalizado */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.scrollbar-track-gray-100::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.scrollbar-thumb-gray-300::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.scrollbar-thumb-gray-400:hover::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========================================
   12. COLORES Y TEMAS EDITABLES
   ======================================== */

/* Cambiar el color de fondo del portal del estudiante */
.bg-gray-50 {
    background-color: #f9fafb; /* Gris muy claro */
}

/* Cambiar el color de los títulos principales */
.text-2xl.font-bold.text-gray-700 {
    color: #565656; /* Gris oscuro */
}

/* Cambiar el color de los títulos más pequeños */
.text-xl.font-semibold.text-gray-600 {
    color: #565656; /* Gris medio */
}

/* Cambiar colores de los botones */
.bg-blue-600 {
    background-color: #2563eb; /* Azul */
}

.bg-blue-600:hover {
    background-color: #1d4ed8; /* Azul más oscuro */
}

/* Estilos para los inputs del portal */
.border.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}

/* Personalizar el carrusel de banners */
.h-\[175px\] {
    height: 175px;
}

/* Cambiar colores de los textos */
.text-gray-800 {
    color: #565656;
}

.text-gray-600 {
    color: #565656;
}

.text-gray-500 {
    color: #565656;
}

/* Estilos para el buzón de sugerencias */
.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.border-green-200 {
    border-color: #bbf7d0;
}

/* ========================================
   13. RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Responsive font sizes - móvil primero */
@media (max-width: 768px) {
    body {
        font-size: 17px; /* Fuente base más grande en móvil */
    }
    
    /* Títulos más grandes en móvil */
    h1 {
        font-size: 1.75rem !important; /* ~28px */
    }
    
    h2 {
        font-size: 1.5rem !important; /* ~24px */
    }
    
    h3 {
        font-size: 1.25rem !important; /* ~20px */
    }
    
    h4 {
        font-size: 1.125rem !important; /* ~18px */
    }
    
    /* Textos más legibles */
    p, span, div {
        font-size: 1rem !important; /* ~16px */
        line-height: 1.6 !important;
    }
    
    /* Botones más grandes */
    button {
        font-size: 1rem !important;
        padding: 0.75rem 1.25rem !important;
        min-height: 44px; /* Tamaño mínimo táctil iOS */
    }
    
    /* Inputs más grandes */
    input, textarea {
        font-size: 1rem !important;
        padding: 0.75rem !important;
        min-height: 44px;
    }
}

.mb-8 {
    border-bottom: 2px solid;
    border-color: #e8e8e8;
    padding-bottom: 20px;
}


@media (min-width: 1280px) {
  .container {
    padding-left: 150px;
    padding-right: 150px;
  }
}
.container {
    padding-top: 40px;
   
  }
.mt-12 {
    margin-top: 100px;
}
@media (max-width: 768px) {
    .post-card {
        min-width: calc(100vw - 4rem) !important;
      max-width: calc(100vw - 5rem)!important;
    }
}

div.flex.flex-wrap.gap-2.mt-4 {
  opacity: 0.8;
}

.post-card {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    flex-shrink: 0;
    min-width: 250px;
    max-width: 250px;
    scroll-snap-align: start;
}

/* Tarjetas ocupan todo el ancho del viewport en móvil (menos padding) */
@media (max-width: 768px) {
    .post-card {
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        scroll-snap-align: center;
    }
}

/* Estilos para el modal de video */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
    touch-action: none;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.3s ease-in-out;
    background-color: white;
    color: #565656;
}

.modal-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Animaciones para el modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-60%); }
    to { transform: translateY(-50%); }
}

.video-only-view {
    background-color: black;
    color: white;
    padding: 0;
    max-width: 90%;
}

/* Estilos para el componente de calificación por estrellas */
.star-rating-container {
    display: inline-flex;
    gap: 4px;
}

.star-rating-container svg {
    cursor: pointer;
    width: 24px;
    height: 24px;
    color: #d1d5db;
    transition: color 0.2s ease-in-out;
}

.star-rating-container svg.filled {
    color: #f4e53e;
}

/* Utilidades adicionales */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Personalización del scroll para los carruseles */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-mandatory {
    scroll-snap-type: mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

/* Scrollbar personalizado para los carruseles */
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Scrollbar personalizado */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.scrollbar-track-gray-100::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.scrollbar-thumb-gray-300::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.scrollbar-thumb-gray-400:hover::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===============================================
   ESTILOS EDITABLES DEL PORTAL DEL ESTUDIANTE
   =============================================== */

/* Cambiar el color de fondo del portal del estudiante */
.bg-gray-50 {
    background-color: #f9fafb; /* Gris muy claro */
}

/* Cambiar el color de los títulos principales */
.text-2xl.font-bold.text-gray-700 {
    color: #565656; /* Gris oscuro */
}

/* Cambiar el color de los títulos más pequeños */
.text-xl.font-semibold.text-gray-600 {
    color: #565656; /* Gris medio */
}

/* Personalizar las tarjetas de video */
.post-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Cambiar colores de los botones */
.bg-blue-600 {
    background-color: #2563eb; /* Azul */
}

.bg-blue-600:hover {
    background-color: #1d4ed8; /* Azul más oscuro */
}

/* Estilos para los inputs del portal */
.border.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}

/* Personalizar el carrusel de banners */
.h-\[175px\] {
    height: 175px;
}

/* Cambiar colores de los textos */
.text-gray-800 {
    color: #565656;
}

.text-gray-600 {
    color: #565656;
}

.text-gray-500 {
    color: #565656;
}

/* Estilos para el buzón de sugerencias */
.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.border-green-200 {
    border-color: #bbf7d0;
}

/* ===============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =============================================== */

/* Optimización para móviles */
@media (max-width: 768px) {
    /* Container principal con padding móvil */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Títulos de sección más visibles */
    .text-2xl {
        font-size: 1.5rem !important; /* 24px */
        line-height: 2rem !important;
    }
    
    .text-xl {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.75rem !important;
    }
    
    .text-lg {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.75rem !important;
    }
    
    /* Textos descriptivos más legibles */
    .text-sm {
        font-size: 0.95rem !important; /* 15px */
        line-height: 1.5rem !important;
    }
    
    .text-xs {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.25rem !important;
    }
    
    /* Etiquetas/tags más grandes y táctiles */
    .text-xs.font-medium {
        font-size: 0.9rem !important; /* 14.4px */
        padding: 0.5rem 1rem !important;
        min-height: 36px;
    }
    
    /* Espaciado entre elementos */
    .gap-2 {
        gap: 0.75rem !important;
    }
    
    .gap-4 {
        gap: 1rem !important;
    }
    
    /* Márgenes más amplios */
    .mb-2 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mt-4 {
        margin-top: 1.25rem !important;
    }
    
    .mt-8 {
        margin-top: 2.5rem !important;
    }
    
    .mt-12 {
        margin-top: 6rem !important;
    }
    
    
    /* Header del estudiante */
    .text-3xl {
        font-size: 1.875rem !important; /* 30px */
        line-height: 2.25rem !important;
    }
    
    /* Botones más táctiles */
    .w-10.h-10 {
        width: 44px !important;
        height: 44px !important;
    }
    
    .h-5.w-5 {
        height: 22px !important;
        width: 22px !important;
    }
    
    .h-4.w-4 {
        height: 18px !important;
        width: 18px !important;
    }
    
    /* Campo de búsqueda más grande */
    .w-40 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Dropdown de ordenamiento */
    .w-48 {
        width: 14rem !important;
        font-size: 1rem !important;
    }
}

/* Tablet y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .text-2xl {
        font-size: 1.75rem !important;
    }
    
    .text-xl {
        font-size: 1.375rem !important;
    }
    
    .post-card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* Desktop - mantener tamaños originales o ligeramente más grandes */
@media (min-width: 1025px) {
    body {
        font-size: 16px;
    }
    
    .post-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* Prevenir zoom en inputs en iOS */
@supports (-webkit-touch-callout: none) {
    input, textarea, select {
        font-size: 16px !important;
    }
}
