/* ============================================
   ESTILOS VICERRECTORADO DE INVESTIGACI�N
   ============================================ */

/* Banner Vicerrectorado */
.vicerrectorado-banner {
    background: linear-gradient(135deg, #2d8f47 0%, #359444 100%);
    color: white;
    padding: 50px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.banner-contact {
    text-align: right;
}

.banner-contact p {
    margin: 5px 0;
    font-size: 1rem;
}

.banner-contact strong {
    font-weight: 600;
}

/* Contenedor Principal */
.vicerrectorado-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.vicerrectorado-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Sidebar con Tabs */
.vicerrectorado-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.tabs-menu {
    display: flex;
    flex-direction: column;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: none;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    color: #555;
}

.tab-button:last-child {
    border-bottom: none;
}

.tab-button:hover {
    background: #f5f5f5;
}

.tab-button.active {
    background: #359444;
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.tab-button.active .tab-icon {
    opacity: 1;
}

.tab-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contenido */
.vicerrectorado-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Secci�n de Funciones */
.funciones-section h2 {
    color: #359444;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.funciones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funciones-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    font-size: 0.95rem;
}

.funciones-list li:before {
    content: "\2022";
    color: #359444;
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: 8px;
}

/* Secci�n Vicerrector */
.vicerrector-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vicerrector-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 100, 100, 0.3);
}

.vicerrector-image {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.vicerrector-card h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 10px 0 5px;
    font-weight: 700;
}

.vicerrector-title {
    color: #359444;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* Secci�n de Eventos */
.eventos-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.eventos-title {
    color: #359444;
    font-size: 1.2rem;
    margin: 0 0 15px;
    font-weight: 700;
    border-bottom: 2px solid #359444;
    padding-bottom: 10px;
}

.eventos-content {
    text-align: center;
}

.no-eventos {
    color: #888;
    font-size: 0.95rem;
    margin: 20px 0;
}

.calendario-link a {
    color: #359444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendario-link a:hover {
    text-decoration: underline;
}

/* Secci�n de Tarjetas Informativas */
.info-cards-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-investigacion {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

.card-cti {
    background: linear-gradient(135deg, #7d8f3a 0%, #9caf4e 100%);
    color: white;
}

.card-content {
    flex: 1;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px;
}

.card-subtitle {
    font-weight: 600;
    font-size: 1.05rem;
}

.card-line {
    width: 60px;
    height: 4px;
    background: white;
    margin-top: 20px;
}

.card-icon {
    opacity: 0.2;
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: white;
}

.card-logo {
    max-width: 180px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.cti-logo {
    width: 100%;
    height: auto;
    filter: brightness(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .vicerrector-section {
        grid-column: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

    .banner-container {
        flex-direction: column;
        text-align: center;
    }

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

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

    .info-cards-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-content {
        padding: 20px;
    }

    .vicerrector-section {
        grid-template-columns: 1fr;
    }

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

    .tab-button {
        padding: 15px;
    }

    .tab-text {
        font-size: 0.9rem;
    }

    .info-card {
        padding: 30px;
        flex-direction: column;
        gap: 20px;
    }

    .card-logo {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .vicerrectorado-main {
        padding: 0 10px;
    }

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

    .banner-contact p {
        font-size: 0.9rem;
    }

    .funciones-list li {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }
}
