/* ============================================
   Estilos para la Facultad de Educación y Humanidades
   ============================================ */

/* Banner Facultad */
.edu-banner {
    position: relative;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    padding: 100px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 550px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.60) 0%, rgba(245, 124, 0, 0.55) 100%);
    z-index: 1;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.facultad-logo {
    flex-shrink: 0;
}

.facultad-logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    background: white;
    border-radius: 50%;
    padding: 10px;
}

.facultad-logo img:hover {
    transform: scale(1.05);
}

.banner-text {
    flex: 1;
    text-align: left;
}

.banner-container h1 {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.banner-subtitle {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Banner */
@media (max-width: 992px) {
    .banner-content {
        gap: 30px;
    }

    .banner-container h1 {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .edu-banner {
        min-height: 300px;
        padding: 40px 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-text {
        text-align: center;
    }

    .facultad-logo img {
        width: 120px;
        height: 120px;
    }

    .banner-container h1 {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }
}

/* Sección Facultad con Sidebar */
.facultad-section {
    background: #ffffff;
    padding: 60px 20px;
}

.facultad-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.section-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.badge-circle {
    background: #FF9800;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.section-title {
    color: #359444;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.facultad-content p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Sidebar de Eventos */
.eventos-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.eventos-container h3 {
    color: #FF9800;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.no-eventos {
    color: #999;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

.eventos-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-add {
    background: #FF9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.btn-calendar {
    color: #FF9800;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #FF9800;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-calendar:hover {
    background: #FF9800;
    color: white;
}

.contactenos-box {
    margin-top: 30px;
    padding: 20px;
    background: #FFF3E0;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
}

.contactenos-box h4 {
    color: #FF9800;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.contactenos-box p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0;
}

.contactenos-box strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Facultad Section */
@media (max-width: 1024px) {
    .facultad-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .eventos-sidebar {
        position: static;
    }
}

/* Sección Carreras */
.carreras-section {
    background: #f5f5f5;
    padding: 60px 20px;
}

.carreras-container {
    max-width: 1400px;
    margin: 0 auto;
}

.carreras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.carrera-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carrera-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carrera-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.carrera-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carrera-card:hover .carrera-image img {
    transform: scale(1.1);
}

.carrera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 152, 0, 0.7), rgba(245, 124, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carrera-overlay h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-nuevo-card {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

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

.carrera-info {
    padding: 25px;
}

.carrera-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.btn-carrera {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-carrera:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

.carrera-nueva {
    position: relative;
}

/* Responsive Carreras */
@media (max-width: 768px) {
    .carreras-grid {
        grid-template-columns: 1fr;
    }

    .carrera-overlay h3 {
        font-size: 1.5rem;
    }
}

/* Sección Unidades */
.unidades-section {
    background: #ffffff;
    padding: 60px 20px;
}

.unidades-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.unidad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
}

.unidad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.unidad-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.unidad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.unidad-card:hover .unidad-image img {
    transform: scale(1.1);
}

.unidad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 152, 0, 0.6), rgba(245, 124, 0, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
}

.unidad-overlay h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Unidades */
@media (max-width: 768px) {
    .unidades-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes generales para móvil */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }

    .main-header,
    .top-header,
    .edu-banner,
    .facultad-section,
    .carreras-section,
    .unidades-section,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .banner-container,
    .facultad-container,
    .carreras-container,
    .unidades-container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
}
