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

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    padding: 10px 18px;
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu > li > a:hover {
    color: #d62828;
}

/* Dropdown styles */
.nav-menu li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 2px solid #d62828;
    padding: 8px 0;
    z-index: 1000;
}

.nav-menu li:hover .dropdown {
    display: block;
}

.nav-menu li .dropdown a {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-menu li .dropdown a:hover {
    background: #f8f9fa;
    color: #d62828;
    padding-left: 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f5f5f5;
}

.page-hero {
    margin-top: 80px;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f5f5f5;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-index .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.page-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    padding: 30px 50px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.description {
    font-size: 1rem;
    color: #222;
    line-height: 1.5;
    font-weight: 400;
    max-width: 500px;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.alt-bg {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.research-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.research-card h3 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 500;
}

.research-card p {
    color: #666;
    line-height: 1.7;
}

/* Publications */
.publications-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.publication-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d62828;
}

.pub-content h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}

.pub-authors {
    color: #666;
    margin-bottom: 5px;
}

.pub-journal {
    color: #888;
    font-style: italic;
}

.btn-primary {
    display: inline-block;
    padding: 8px 18px;
    background: #d62828;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 15px auto;
    width: fit-content;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: #b91f1f;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(214, 40, 40, 0.25);
}

/* Teaching */
.teaching-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.teaching-content h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 500;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list span {
    background: #d62828;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
}

.teaching-philosophy p {
    color: #666;
    line-height: 1.8;
}

/* Media */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.media-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.media-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.media-item h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}

.media-source {
    color: #888;
    font-style: italic;
}

/* Bio */
.bio-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.bio-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bio-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.credentials {
    margin-top: 30px;
}

.credentials h4 {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 500;
}

.credentials ul {
    list-style: none;
    color: #666;
}

.credentials li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.credentials li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d62828;
}

/* Contact */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item strong {
    display: block;
    font-size: 1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-item a {
    color: #d62828;
    text-decoration: none;
}

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

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #d62828;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #b91f1f;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-footer a {
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-footer a:hover {
    background: #d62828;
    transform: translateY(-3px);
}

.social-footer svg {
    width: 20px;
    height: 20px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.2rem;
    color: #000;
    margin: 20px 20px 10px;
    font-weight: 500;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.project-card .btn-primary {
    margin: 0 20px 20px;
    display: inline-block;
    width: calc(100% - 40px);
    text-align: center;
}

/* Project Detail */
.project-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-detail-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.project-detail-content h3 {
    font-size: 1.5rem;
    color: #000;
    margin: 30px 0 15px;
    font-weight: 500;
}

.project-detail-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-detail-content ul {
    list-style: none;
    color: #666;
    margin: 20px 0;
}

.project-detail-content li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
}

.project-detail-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d62828;
    font-weight: bold;
}

/* Research Areas */
.research-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.area-card h3 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 500;
}

.area-card p {
    color: #666;
    line-height: 1.7;
}

/* RENACYT Page */
.renacyt-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.renacyt-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.renacyt-text h3 {
    font-size: 1.3rem;
    color: #000;
    margin: 30px 0 15px;
    font-weight: 500;
}

.renacyt-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0 30px;
}

.renacyt-buttons .btn-primary {
    flex: 1;
    margin: 0;
}

.renacyt-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid #d62828;
}

.link-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.link-card strong {
    display: block;
    color: #000;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.link-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.renacyt-certificate {
    position: sticky;
    top: 100px;
}

.certificate-placeholder {
    background: #f8f9fa;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-weight: 500;
}

/* Awards/Reconocimientos */
.awards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.award-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.award-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.award-content {
    padding: 30px;
}

.award-content h3 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}

.award-org {
    color: #d62828;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.award-content p {
    color: #666;
    line-height: 1.7;
}

/* Teaching Photos Gallery */
.teaching-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.teaching-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.teaching-photos img:hover {
    transform: scale(1.05);
}

/* Media Page Sections */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.media-tab {
    padding: 10px 25px;
    background: #f8f9fa;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.media-tab.active, .media-tab:hover {
    background: #d62828;
    color: #fff;
}

.media-section {
    display: none;
}

.media-section.active {
    display: block;
}

.media-interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.interview-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.interview-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.interview-card-content {
    padding: 20px;
}

.interview-card h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 8px;
    font-weight: 500;
}

.interview-card .media-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.interview-card p {
    color: #666;
    line-height: 1.6;
}

.columns-list {
    display: grid;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.column-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #d62828;
}

.column-item h4 {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 8px;
    font-weight: 500;
}

.column-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.column-item p {
    color: #666;
    line-height: 1.7;
}

.column-item a {
    color: #d62828;
    text-decoration: none;
    font-weight: 500;
}

.column-item a:hover {
    text-decoration: underline;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::before {
    content: "▶";
    font-size: 3rem;
    color: #d62828;
}

.video-card-content {
    padding: 20px;
}

.video-card h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}

.video-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.video-card a {
    color: #d62828;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        margin: 10px 0;
    }

    .nav-menu li .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 10px;
    }

    .nav-menu li:hover .dropdown {
        display: none;
    }

    .nav-menu.active li .dropdown {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        min-height: 500px;
    }

    .page-hero {
        height: 250px;
    }

    .hero-overlay {
        background: none;
    }

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

    .description {
        font-size: 1rem;
    }

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

    .teaching-content {
        grid-template-columns: 1fr;
    }

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

    .renacyt-content {
        grid-template-columns: 1fr;
    }

    .renacyt-certificate {
        position: static;
    }

    .renacyt-buttons {
        flex-direction: column;
    }

    .award-card {
        grid-template-columns: 1fr;
    }

    .award-image {
        height: 250px;
    }

    .project-detail-images {
        grid-template-columns: 1fr;
    }

    .media-interviews-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .publication-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}