/* 
* CSS para páginas internas
* Escuela Manuel Belgrano N°37
*/

/* Estilos para banners de página */
.page-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 6rem 0 3rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/pattern.png');
    opacity: 0.1;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.page-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Contenido de página */
.page-content {
    padding: 4rem 0;
}

/* Estilos específicos para la página de noticias */
.news-sidebar-container {
    position: sticky;
    top: 90px;
}

/* Calendario de eventos en sidebar */
.sidebar-events .event-item {
    margin-bottom: 1rem;
}

.sidebar-events .event-info {
    padding: 0.75rem;
}

.sidebar-events .event-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Estilos para cards de información */
.info-box {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.info-box-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.info-box-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Estilos para la página de contacto - formulario mejorado */
.form-control {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control input,
.form-control select,
.form-control textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--text-color);
    transition: var(--transition);
    background-color: #fff;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-control textarea {
    height: 150px;
    resize: none;
}

.form-control .hint {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
}

.form-actions {
    margin-top: 2rem;
}

/* Estilo mejorado para los acordeones de FAQ */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: var(--box-shadow-md);
}

.accordion-header {
    padding: 1.25rem;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    padding-right: 2rem;
    position: relative;
    color: var(--dark-color);
}

.accordion-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-color);
}

.accordion-body {
    padding: 0 1.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-header {
    background-color: rgba(30, 64, 175, 0.05);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-body {
    padding: 1.25rem;
    opacity: 1;
    transform: translateY(0);
}

/* Página de horarios - Estilos mejorados para tabs */
.custom-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    position: relative;
}

.custom-tab {
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--box-shadow-md);
    border: 1px solid var(--border-color);
}

.custom-tab:hover {
    background-color: var(--light-color);
}

.custom-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--box-shadow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Alertas y notificaciones */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    position: relative;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.alert p {
    margin: 0;
    color: var(--text-color);
}

/* Estilos para galería de imágenes */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Estilos para la sección de contacto por email */
.email-contact-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.email-contact-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.email-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.email-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.email-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.email-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.email-contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.email-contact-card p {
    text-align: center;
    color: var(--text-color);
    max-width: 650px;
    margin: 0 auto 1.5rem;
}

.email-address {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.email-address span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.email-instructions {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(30, 64, 175, 0.05);
    border-radius: var(--border-radius);
}

.email-instructions h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.email-instructions h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.email-instructions ul {
    margin-left: 1.25rem;
}

.email-instructions li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.email-instructions li::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.email-cta {
    text-align: center;
    margin: 2rem 0;
}

.email-cta .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.email-cta .btn i {
    margin-right: 0.5rem;
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-align: center;
}

.response-time i {
    color: var(--primary-color);
}

.response-time p {
    margin: 0;
    font-style: italic;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .email-contact-card {
        padding: 2rem 1.5rem;
    }
    
    .email-address span {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .email-icon {
        width: 60px;
        height: 60px;
    }
    
    .email-icon i {
        font-size: 1.5rem;
    }
    
    .email-contact-card h3 {
        font-size: 1.3rem;
    }
}

/* Estilos adicionales para noticia destacada */
.featured-news {
    grid-column: 1 / -1; /* Ocupa todo el ancho disponible */
    display: flex;
    flex-direction: column;
}

.featured-news .news-image {
    height: 400px; /* Imagen más grande para la noticia destacada */
}

.featured-news .news-content {
    padding: 30px;
}

.featured-news h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.news-full-content {
    margin-top: 1.5rem;
}

.news-full-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.news-full-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-full-content li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(30, 64, 175, 0.05);
    font-style: italic;
    color: var(--text-color);
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.news-gallery img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.news-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow);
}

/* Media queries específicos para páginas */
@media (max-width: 768px) {
    .page-banner {
        padding: 5rem 0 2rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .custom-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-sidebar-container {
        position: static;
    }
    
    .featured-news .news-image {
        height: 300px;
    }
    
    .featured-news h3 {
        font-size: 1.5rem;
    }
    
    .news-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .featured-news .news-image {
        height: 220px;
    }
    
    .featured-news .news-content {
        padding: 20px;
    }
    
    .featured-news h3 {
        font-size: 1.3rem;
    }
}

/* Estilos para la sección de noticias (existentes) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    min-width: 60px;
    z-index: 2;
}

.day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Barra lateral de noticias */
.news-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.search-form {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

.search-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--secondary-color);
}

.recent-posts {
    list-style: none;
}

.recent-post {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.post-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
}

.post-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.categories {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.category-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: var(--light-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.category-link:hover .category-count {
    background-color: var(--primary-color);
    color: #fff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Estilos para los eventos próximos */
.upcoming-events {
    margin-top: 15px;
}

.event-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.event-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.event-date {
    min-width: 70px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-info {
    padding: 15px;
    flex: 1;
}

.event-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-time, .event-location {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.event-time i, .event-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Animación de rebote para el ícono de "leer más" */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}

.bounce {
    animation: bounce 1s ease infinite;
}

/* Estilos para la sección destacada */
.destacado-container {
    background-color: #f8f9ff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--box-shadow-md);
    overflow: hidden;
}

.destacado-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.destacado-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.destacado-badge i {
    margin-right: 0.3rem;
    color: var(--accent-color);
}

.destacado-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.destacado-description {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: 90%;
}

.destacado-actions {
    margin-bottom: 1rem;
}

.destacado-actions .btn {
    padding: 0.75rem 1.5rem;
}

.destacado-note {
    background-color: rgba(30, 64, 175, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    display: inline-block;
}

.destacado-note i {
    margin-right: 0.5rem;
}

/* Estilos para los elementos de noticias */
.news-list {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.news-list li {
    margin-bottom: 0.5rem;
}

.news-important {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.news-gallery-preview {
    margin-top: 1rem;
    text-align: right;
}

.gallery-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.gallery-link:hover {
    color: var(--primary-light);
}

.gallery-link i {
    transition: transform 0.3s ease;
}

.gallery-link:hover i {
    transform: translateX(3px);
}

.news-quote {
    margin: 1.5rem 0 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.news-quote blockquote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.news-quote cite {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color-light);
    font-style: normal;
    font-weight: 500;
}

/* Estilos para la galería de fotos */
.photos-gallery {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.gallery-tab {
    background-color: #fff;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.gallery-tab:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.gallery-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    height: 240px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.25rem 1.25rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.gallery-attribution {
    text-align: center;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: var(--text-color-light);
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.gallery-attribution a {
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-more {
    text-align: center;
    margin-top: 2rem;
}

/* Media queries para la galería */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .destacado-container {
        padding: 1.25rem;
    }
    
    .destacado-description {
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    .gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .destacado-badge {
        margin-bottom: 0.75rem;
    }
    
    .destacado-content h2 {
        font-size: 1.3rem;
    }
}

/* Estilos para página de tareas */
.tareas-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow-md);
    border: 1px solid var(--border-color);
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filtro-grupo label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.filtro-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: #fff;
    color: var(--text-color);
    font-size: 0.95rem;
    width: 100%;
}

.tareas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tarea-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tarea-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.tarea-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.tarea-curso, .tarea-materia {
    font-weight: 600;
    font-size: 0.9rem;
}

.tarea-titulo {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tarea-contenido {
    padding: 0 1.25rem;
    color: var(--text-color);
    flex-grow: 1;
}

.tarea-contenido p {
    margin-bottom: 1rem;
}

.tarea-meta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.tarea-profesor {
    margin-bottom: 0.75rem;
}

.tarea-profesor i, .tarea-fecha-publicacion i, .tarea-fecha-entrega i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.tarea-fechas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tarea-plazo {
    background-color: var(--light-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.tarea-plazo.normal {
    background-color: #e6f7ff;
    color: #0070f3;
}

.tarea-plazo.pronto {
    background-color: #fff7e6;
    color: #fa8c16;
}

.tarea-plazo.urgente {
    background-color: #fff1f0;
    color: #f5222d;
}

.tarea-plazo.vencida {
    background-color: #f5f5f5;
    color: #595959;
}

.tarea-archivo {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.tarea-mensaje {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.tarea-mensaje.error {
    background-color: #fff1f0;
    color: #f5222d;
}

.tarea-mensaje i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .tareas-grid {
        grid-template-columns: 1fr;
    }
    
    .tareas-filtros {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-grupo {
        width: 100%;
    }
}