/* ============================================
   Estilos para la Facultad de Ingeniería de Sistemas e Informática
   Basado en el estilo de indexAgra.php
   ============================================ */

/* Banner Facultad - Colores Verde */
.fisi-banner {
    position: relative;
    background: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    padding: 100px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.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(27, 94, 32, 0.85) 0%, rgba(76, 175, 80, 0.75) 100%);
    z-index: 1;
}

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

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

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

.facultad-logo img {
    width: 150px;
    height: 150px;
    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;
}

.facultad-label {
    display: block;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-container h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.escuelas-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.escuelas-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.escuelas-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.escuelas-nav .separator {
    color: #ffffff;
    font-size: 1.2rem;
}

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

/* Responsive para el banner con logo */
@media (max-width: 768px) {
    .fisi-banner {
        min-height: 450px;
        padding: 60px 20px;
    }

    .banner-image img {
        object-position: 65% 30%;
    }

    .banner-content {
        flex-direction: column;
        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;
    }

    .escuelas-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .facultad-logo img {
        width: 100px;
        height: 100px;
    }

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

    .escuelas-nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* 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,
    .fisi-banner,
    .facultad-section,
    .carreras-section,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

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

    .main-header-content,
    .top-header-content {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 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;
    align-items: start;
}

/* Columnas Facultad y Misión */
.facultad-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .facultad-container {
        grid-template-columns: 1fr;
    }

    .facultad-columns {
        grid-template-columns: 1fr;
    }
}

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

.badge-circle {
    background: #4CAF50;
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    flex-shrink: 0;
}

.section-title {
    color: #1B5E20;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.facultad-content p {
    line-height: 1.8;
    color: #424242;
    font-size: 1.1rem;
    text-align: justify;
    margin: 20px 0;
}

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

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

.carreras-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.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;
    max-width: 400px;
    width: 100%;
}

.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, #1B5E20 0%, #4CAF50 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;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.95), transparent);
    padding: 20px;
}

.carrera-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.carrera-info {
    padding: 25px;
}

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

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

.btn-carrera:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(27, 94, 32, 0.4);
}

/* Eventos Sidebar - Estático (no flotante) */
.eventos-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.eventos-container h3 {
    color: #1B5E20;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.no-eventos {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

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

.btn-add {
    flex: 1;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #388E3C;
}

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

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

.contactenos-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contactenos-box h4 {
    color: #1B5E20;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .section-badge {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .badge-circle {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

    .carreras-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
