:root {
    --primary-color: #2a6085;
    --secondary-color: #f7f7f7; 
    --accent-color: #2546bd3c; 
    --text-color: #333;
    --heading-color: #1a1a1a;
    --font-family: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Encabezado --- */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.sub2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 400;
    color: #ffffff;
}

.site-subtitle {
    margin: 5px 0 0;
    font-size: 1.2em;
    font-style: italic;
    color: #c0c0c0;
}

/* --- Secciones Generales --- */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

h2 {
    text-align: center;
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Tarjetas de Miembros --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 15px;
}

/* --- Líneas de Investigación --- */
.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.research-item {
    background: #fff;
    padding: 25px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.research-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}


/* Asegúrate de que estas clases estén en tu CA.css */
.member-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    text-align: left;
}

.member-details.active {
    max-height: 600px; /* Altura suficiente para que salga toda la info */
    opacity: 1;
    border-top: 1px solid #ddd;
    margin-top: 15px;
    padding-top: 10px;
}

.member-card {
    cursor: pointer;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-5px);
}

/* --- Estilos del Organigrama --- */
.Organigrama {
    width: 35%;          /* Tamaño al 35% del contenedor */
    height: auto;        /* Mantiene la proporción */
    display: block;      /* Permite usar márgenes automáticos */
    margin: 20px auto;   /* Centra horizontalmente y da espacio arriba/abajo */
    border-radius: 8px;  /* Opcional: bordes redondeados para que se vea mejor */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Opcional: sombra ligera */
}

/* Ajuste para celulares: Que no se vea tan chiquito en pantallas móviles */
@media (max-width: 768px) {
    .Organigrama {
        width: 80%;      /* En celulares sube al 80% para que sea legible */
    }
}