/* Variables globales */
:root {
    /* Colores */
    --color-primary: #0a4d68;
    --color-secondary: #088395;
    --color-accent: #05bfdb;
    --color-light: #00ffca;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #ffffff;
    
    /* Tipografía */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 3px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.2);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.2);
    
    /* Bordes */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    
    /* Transiciones */
    --transition: all 0.3s ease-in-out;
    
    /* Layout */
    --grid-template: repeat(auto-fit, minmax(300px, 1fr));
    --gap-standard: 2rem;
    --padding-standard: 2rem;
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../IMG/ImgFondo2.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
}

/* Header y navegación */
.site-header {
    background-color: rgba(10, 77, 104, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.main-navigation li a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    transition: var(--transition);
}

.main-navigation li a:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* Hero section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: var(--color-text-light);
}

.hero .logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0,255,202,0.3);
}

.section {
    padding: var(--padding-standard);
    margin: 2rem auto;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
}

.section h2 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Objetivos */
.objetivo-general, .objetivos-especificos {
    margin-bottom: 2rem;
}

.objetivos-especificos ul {
    list-style: none;
    padding-left: 1.5rem;
}

.objetivos-especificos li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.objetivos-especificos li::before {
    content: "▹";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* Problemática y estadísticas */
.stats-container {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.statistics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.statistics li {
    padding: 1rem;
    text-align: center;
    border-left: 3px solid var(--color-light);
}

.statistics strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-light);
}

/* Imágenes y multimedia */
.problem-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

figure {
    margin: 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.video-container {
    margin: 3rem 0;
}

.video-container video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Resumen y Abstract */
.content-bilingual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
}

.section-title {
    color: var(--color-primary); /* Cambiamos el color del título */
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.resumen-es, .resumen-en {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Añadir estos estilos para el texto de los párrafos */
.resumen-es p, .resumen-en p {
    color: var(--color-text-light); /* Color para el texto normal */
}

/* Estilo para el texto en negrita dentro de los párrafos */
.resumen-es strong, .resumen-en strong {
    color: var(--color-light); /* Color para el texto en negrita */
    font-weight: bold;
}

.content {
    margin-top: 1rem;
}

/* Equipo */
#Estudio{
    width: 600px;
    height: 400px;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
    margin-top: 4rem;
    min-height: 80px;
}

/* Estilos del equipo */
.team-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.team-member {
    background-color: white;
    padding: var(--padding-standard);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.member-bio.expanded {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.team-member h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.team-member h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.team-member:hover h3::after {
    width: 100%;
}

.member-bio div[lang] {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
}

.member-bio h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.member-bio p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        margin: 1rem;
    }
}