:root {
    --primary-color: #002d72;
    --accent-color: #c1272d;
    --underline-color: #444;
    --text-color: #333;
    --bg-light: #f5f5f5;
}
/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: "Open Sans", serif; color: var(--text-color); background: var(--bg-light); line-height: 1.6; }

.container { max-width: 1200px; margin: 2rem auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* Header sin borde inferior */
header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #fff; border-bottom: none; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--accent-color); text-decoration: none; }
nav ul { display: flex; list-style: none; }
nav li { margin-left: 1.5rem; }
nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}
nav a.active {
    color: var(--text-color);
}

nav a:not(.active):hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}


.hero h1 { font-family: 'Georgia', serif; font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0;
    height: 50vh;
    color: #fff;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.hero__video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    border: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    padding: 1rem;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    font-size: 32px;
    width: max-content;
}

.hero-content p {
    font-size: 24px;
}


section { padding: 2rem; }
.section-title {
    position: relative;
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 1px;
}

/* Noticias */
.news-list { display: flex; flex-direction: column; gap: 0.75rem; }
.news-item {
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}
.news-item:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Publicaciones */
.publicaciones ul { list-style: disc inside; margin-left: 1rem; }
.publicaciones li { margin-bottom: 0.5rem; }

/* Contacto */
.contact p { text-align: center; }
.contact a { color: var(--primary-color); text-decoration: none; font-weight: bold; }

/* Footer */
footer { padding: 1rem 2rem; background: #fff; text-align: center; font-size: 0.85rem; color: var(--text-color); border-top: 1px solid var(--bg-light); }

.section{
    display: flex;
    flex-direction: column;
}

.cards {
    display: flex;
    justify-content: space-between;
}

#research > div:nth-child(2) {
    margin-bottom: 40px;
}

.card {
    display: flex;
    flex-direction: column;
    width: 31%;
}

.ratio-16-9 {
    position: relative;
    aspect-ratio: 1.34;
    overflow: hidden;
    width: 100%;
    border-radius: 25px;
    box-shadow:
            0 2px 4px -1px rgba(0,0,0,0.2),
            0 4px 5px 0 rgba(0,0,0,0.14),
            0 1px 10px 0 rgba(0,0,0,0.12);
}

.ratio-16-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.ratio-16-9 .card-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    color: #fff;
    max-width: 60%;           /* o el ancho que necesites */
    padding: 14px 14px 0 0;
    border-radius: 8px;
}

.ratio-16-9 .card-content h3 {
    margin: 0 0 4px;
    font-size: 1.5rem;
}
.ratio-16-9 .card-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    opacity: 0.85;
}


.ratio-16-9::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.ratio-16-9 .btn {
    position: absolute;
    bottom: 24px; right: 24px;
    padding: 10px 24px;
    font-size: 18px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 5;
}

.quienes-somos .team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.quienes-somos .team-member {
    position: relative;
    width: 230px;
    height: 600px;
    border-radius: 1000px;
    background-color: #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    text-align: center;
}
.quienes-somos .team-member h3 {
    margin: 0;
    font-size: 1.25rem;
}
.quienes-somos .team-member .role {
    margin: 0.25rem 0 1rem 0;
    font-size: 1rem;
    padding: 0 1rem;
    color: #555;
}
.quienes-somos .team-member img {
    width: 100%;
    border-radius: 1000px;
    flex-grow: 1;
    object-fit: cover;
}
/* Variaciones de color */
.quienes-somos .member-1 { background-color: #FDEBD0; }
.quienes-somos .member-2 { background-color: #E8DAEF; }
.quienes-somos .member-3 { background-color: #D6EAF8; }
.quienes-somos .member-4 { background-color: #F9E79F; }
