/* ============================================
   VARIABLES Y RESET
   ============================================ */

:root {
    --primary-color: #2d5a3d;
    --secondary-color: #f5f1e8;
    --text-color: #2c2c2c;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --accent-color: #4a7c59;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Estilo unificado para todos los enlaces */
a {
    color: #239201; /* El azul estándar de los enlaces de contacto */
    text-decoration: none; /* Quita el subrayado por defecto */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #2d5a3d; /* Un azul más oscuro al pasar el ratón */
    text-decoration: underline; /* Aparece el subrayado al pasar el ratón */
}

/* Excepción para botones para que no pierdan su estilo de botón */
.btn, .btn-primary, .btn-cv {
    text-decoration: none !important;
}

.btn:hover, .btn-primary:hover, .btn-cv:hover {
    text-decoration: none !important;
}

/* ============================================
   CONTENEDOR
   ============================================ */

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

/* ============================================
   NAVEGACIÓN
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-cv {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-cv:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hero .title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-links .btn {
    font-size: 0.9rem;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ============================================
   SECCIÓN SOBRE MÍ
   ============================================ */

.about {
    background-color: #f9f9f9;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.bio-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bio-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bio-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.position-card {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(74, 124, 89, 0.1));
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.position-title {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.position-card p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.position-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.position-card a:hover {
    text-decoration: underline;
}

/* ============================================
   SECCIÓN INVESTIGACIÓN
   ============================================ */

.research {
    background-color: var(--white);
}

.research-focus {
    background-color: rgba(45, 90, 61, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
}

.research-focus p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.award-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.award-year {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.award-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.indicator-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.indicator-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.indicator-card p {

    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SECCIÓN PUBLICACIONES
   ============================================ */

.publications {
    background-color: #f9f9f9;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.profile-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-card h3 {
    color: var(--primary-color);
}

.profile-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   SECCIÓN DOCENCIA
   ============================================ */

.teaching {
    background-color: var(--white);
}

.master-info {
    background-color: rgba(45, 90, 61, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
}

.master-info h3 {
    color: var(--primary-color);
}

.master-info p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.courses-section {
    margin-bottom: 2rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.course-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-3px);
}

.course-card h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.logos img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logos img:hover {
    opacity: 1;
}

/* ============================================
   SECCIÓN FIRE
   ============================================ */

.fire {
    background-color: rgba(187,200,175,0.58);
}

.fire-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fire-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

.fire-header h2 {
    margin-bottom: 0.5rem;
}

.fire-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.fire-mission {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.fire-mission p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}


.fire-contact {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.fire-contact h3 {
    color: var(--primary-color);
}

.fire-contact p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.fire-contact a {
    color: white;
    text-decoration: none;
}

.fire-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.cv-section {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1), rgba(74, 124, 89, 0.1));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
}

.cv-section h3 {
    color: var(--primary-color);
}

.cv-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .title {
        font-size: 1.3rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .hero-links {
        flex-direction: column;
    }

    .hero-links .btn {
        width: 100%;
    }

    section h2 {
        font-size: 2rem;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logos {
        gap: 1rem;
    }

    .logos img {
        height: 50px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar-content {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        margin-top: 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .title {
        font-size: 1.1rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    .bio-card,
    .award-card,
    .profile-card,
    .activity-card,
    .project-card,
    .contact-card {
        padding: 1.5rem;
    }

    .indicators-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .fire-logo {
        height: 80px;
    }

    .logos {
        flex-direction: column;
        gap: 1rem;
    }

    .logos img {
        height: 40px;
    }
}
/* ============================================
   ESTILOS EXCLUSIVOS PARA PUBLICACIONES
   ============================================ */

/* Contenedor con margen del 20% solicitado */
.publications-main-container {
    padding: 40px 20% 80px 20%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Título de la sección de publicaciones */
.pub-section-title {
    text-align: center;
    margin: 40px auto;
    color: #2d5a3d;
    font-size: 2.2rem;
    font-weight: bold;
}

/* Bloque individual de publicación (Gris a Blanco) */
.pub-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f5f5f5; /* Fondo gris clarito */
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.pub-item:hover {
    background-color: #ffffff; /* Cambia a blanco */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(8px); /* Efecto de desplazamiento */
}

.pub-icon {
    flex-shrink: 0;
    margin-right: 20px;
    margin-top: 5px;
}

.pub-content {
    font-family: 'Verdana', Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* Enlaces en verde institucional */
.pub-content a {
    color: #2d5a3d !important;
    text-decoration: none;
    font-weight: 500;
}

.pub-content a:hover {
    text-decoration: underline;
}

/* Estilo para el encabezado (Hero) de esta página con atenuación */
.hero-mini-pub {
    height: 25vh;
    min-height: 200px;
    display: flex;
    align-items: center; 
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    margin-top: 70px; /* Espacio para la navbar */
    background-color: #000; /* Color de fondo base */
    overflow: hidden;
}

/* Capa de aclarado (Overlay blanco) */
.hero-mini-pub::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6); /* Capa blanca al 60% de opacidad */
    z-index: 1;
}

.hero-mini-pub h1 {
    z-index: 2; /* Asegura que el texto esté por encima de la atenuación */
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin: 0;
    position: relative;
}

.hero-mini-pub .hero-bg-img {
    background-image: url('images/fondo.JPG');
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Ajustes para móviles */
@media (max-width: 1024px) {
    .publications-main-container { padding-left: 10%; padding-right: 10%; }
}

@media (max-width: 768px) {
    .publications-main-container { padding-left: 5%; padding-right: 5%; }
    .hero-mini-pub h1 { font-size: 2.2rem; }
}

/* Estilos para el nuevo logo/foto en la navegación */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre la foto y el logo */
    text-decoration: none;
}

.nav-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.nav-logo-img {
    height: auto; /* Ajusta según el tamaño de tu logo */
    width: 85px;
}

/* Ocultar el nombre en móviles si el logo ocupa mucho espacio */
@media (max-width: 480px) {
    .nav-logo-img { height: 28px; }
    .nav-profile-img { width: 32px; height: 32px; }
}

