/* =========================================
   VARIABLES Y COLORES DE MARCA (ZAIRA MONTES)
   ========================================= */
:root {
    --primary-dark: #2d3436;
    --accent-blue: #0f95cd;      /* Tu azul principal */
    --accent-light: #1eb2e6;     /* Tu azul claro de apoyo */
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --text-gray: #636e72;
    --transition: all 0.3s ease;
}

/* =========================================
   RESET Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAVEGACIÓN (HEADER)
   ========================================= */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 20px; /* Ajuste para tu isologo.svg */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-blue);
}

.btn-cv {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(15, 149, 205, 0.3);
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 149, 205, 0.4);
    opacity: 0.9;
}

/* =========================================
   SECCIÓN HERO (PRESENTACIÓN)
   ========================================= */
#hero {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   TÍTULOS DE SECCIÓN
   ========================================= */
.section-title {
    font-size: 2rem;
    margin: 60px 0 40px;
    padding-left: 15px;
    border-left: 6px solid var(--accent-light);
    color: var(--accent-blue);
}

/* =========================================
   GRID Y CARDS (PROYECTOS Y LOGROS)
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card, .card-animacion, .card-simple {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card:hover, .card-animacion:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--accent-blue);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.tag {
    display: inline-block;
    background: rgba(30, 178, 230, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card h3, .card-animacion h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.img-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.2rem; }
    nav ul { display: none; } /* Aquí podrías añadir un menú hamburguesa luego */
    .grid { grid-template-columns: 1fr; }
}

/* Espaciado para la introducción de sección */
.intro-section {
    margin-bottom: 30px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Estilo para las tarjetas de proyectos académicos */
.card-simple {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    transition: var(--transition);
}

.card-simple:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.highlight-wp {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-left: 6px solid var(--accent-blue) !important;
}

/* Contenedor para que el video sea responsivo (16:9) */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    position: relative;
    height: 0;
    margin-bottom:30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Estilo para el tag de bienvenida en el Hero */
.tag-intro {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.hero-subtext {
    font-size: 1.3rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: 15px;
}

/* Efecto suave al hacer click en el logo para volver arriba */
html {
    scroll-behavior: smooth;
}

/* Ajuste para que los logos institucionales se vean uniformes y profesionales */
.logo-uni {
    width: auto !important;
    height: 80px !important; /* Altura controlada para logos */
    object-fit: contain !important; /* Para que no se corte el logo */
    margin: 0 auto 10px auto;
    display: block;
    filter: grayscale(100%); /* Efecto serio que se quita al pasar el mouse */
    opacity: 0.7;
    transition: var(--transition);
}

.card-simple:hover .logo-uni {
    filter: grayscale(0%);
    opacity: 1;
}