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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Hero Section */
.hero-section {
    background-color: #FFFFFF;
    padding: 2rem 2rem; /* poco aire arriba/abajo + margen lateral para centrar visualmente */
    display: flex;
    justify-content: center; /* centra el hero horizontalmente */
    align-items: stretch; /* evita centrado vertical extra */
}
.hero-container {
    background: url('images/fondo-hero.jpg') center / cover no-repeat; /* solo imagen de fondo */
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 1800px; /* ampliar hero según solicitud */
    width: 100%;
    padding: 1.25rem; /* padding uniforme para evitar solapes con nav */
    margin: 0 auto; /* centrar horizontalmente el hero */
    position: relative;
    overflow: hidden;
}

/* Figma-like tinted panels behind content */
.hero-container::before,
.hero-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 30px;
    z-index: 0; /* behind title and image */
}

/* Center panel */
.hero-container::before {
    left: 28%;
    width: 44%;
    background: rgba(6, 73, 87, 0.40);
}

/* Right panel */
.hero-container::after {
    right: 6%;
    width: 22%;
    background: rgba(6, 73, 87, 0.32);
    display: none; /* quitar capa duplicada bajo bandera y botón */
}

/* Navigation */
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* logo | links (center) | lang */
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo { justify-self: start; }
.nav-links { justify-self: center; }
.nav-right { justify-self: end; }

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px; /* pastilla */
    padding: 0.375rem;
    backdrop-filter: blur(6px);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    border: none;
}

.nav-link:hover {
    border-color: #f5a623;
}

.nav-link.active {
    background-color: #f5a623; /* pastilla activa */
    color: #0a5567;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn img {
    display: block;
    border-radius: 2px;
}

.btn-more-info {
    background-color: white;
    color: #0a5567;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-more-info:hover {
    background-color: #f5a623;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    padding: 2rem;
    min-height: 980px; /* recuperar altura interna para que la imagen no invada el menú */
}

.hero-title {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: clamp(110px, 15vw, 240px); /* más grande y centrado */
    font-weight: 500;
    color: white;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: normal;
    text-align: center;
    width: 100%;
    letter-spacing: 0;
    text-shadow: none;
    line-height: 1;
    text-wrap: balance;
}

.hero-image {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* sobre el título */
    width: 42%;
    max-width: 900px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text-box {
    position: absolute;
    bottom: 18%;
    right: 8%;
    left: auto;
    transform: none;
    max-width: 460px;
    padding: 0; /* no card background */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 3; /* above image */
    text-align: left;
}

.hero-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.btn-cta {
    display: inline-block;
    background-color: #f5a623;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    background-color: #e09615;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.linkedin-icon {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    z-index: 3;
}

.linkedin-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f5a623;
    transform: translateY(-3px);
}

.linkedin-icon svg {
    width: 18px;
    height: 18px;
}

/* Prevent hero title wrapping on very wide screens */
@media (min-width: 1629px) {
    .hero-title {
        white-space: nowrap; /* mantener en una sola línea */
        font-size: clamp(110px, 12.5vw, 220px); /* reducir ligeramente respecto a 15vw para evitar salto */
    }
}

/* Ajuste para que no se parta el H1 en desktop medio (1200–1628px) */
@media (min-width: 1200px) and (max-width: 1628px) {
    .hero-title {
        white-space: nowrap; /* una sola línea en esta franja */
        font-size: clamp(100px, 13.5vw, 220px); /* 15vw -> 13.5vw */
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background-color: #0a5567;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.badge-years {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f5a623;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.95;
}

.about-content {
    color: #333;
}

.about-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a5567;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-subtitle::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: #f5a623;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a5567;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Publications Section */
.publications-section {
    padding: 6rem 0;
    background-color: white;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.publication-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.publication-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publication-card:hover .publication-image img {
    transform: scale(1.05);
}

.publication-content {
    padding: 1.75rem;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.publication-category {
    color: #0a5567;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-date {
    color: #999;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a5567;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.publication-link {
    color: #f5a623;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: #e09615;
}

.text-center {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    color: #0a5567;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: 2px solid #0a5567;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: #0a5567;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 85, 103, 0.3);
}

/* Footer */
.footer {
    background-color: #0a5567;
    color: white;
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.footer-linkedin:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f5a623;
    transform: translateY(-3px);
}

/* Match hero LinkedIn icon sizing for consistency */
.footer-linkedin svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: #f5a623;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.footer-bottom {
    background-color: #f5a623;
    padding: 1.25rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0a5567;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal-link {
    color: #0a5567;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-legal-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content { min-height: 860px; }
    .hero-title {
        font-size: clamp(48px, 9vw, 120px);
        top: 13%;
        left: 9%;
        right: auto;
        transform: none;
        text-align: left;
        width: 60%;
    }
    .hero-image { width: 28%; top: 62%; left: 46%; transform: translate(-50%, -50%); }
    .hero-text-box { bottom: 18%; right: 8%; left: auto; transform: none; max-width: 460px; }
    /* Adjust tinted panels */
    .hero-container::before { left: 32%; width: 34%; }
    .hero-container::after { right: 6%; width: 22%; display: none; }
}

@media (max-width: 968px) {
    .nav { grid-template-columns: 1fr; row-gap: 1rem; padding: 0.75rem 1rem; }
    .nav-links { justify-self: center; flex-wrap: wrap; justify-content: center; }
    .nav-right { justify-self: center; }

    /* Reorganizar hero en pila para evitar solapes */
    .hero-content { min-height: auto; padding: 1.25rem; display: grid; grid-template-rows: auto auto auto; gap: 1rem; }
    .hero-title {
        position: relative; top: auto; left: auto; right: auto; transform: none;
        text-align: center; width: 100%; font-size: clamp(44px, 10vw, 88px);
        padding: 0 1rem;
    }
    .hero-image { position: relative; top: auto; left: auto; transform: none; width: clamp(320px, 68vw, 560px); max-width: 560px; margin: 0 auto; }
    .hero-text-box { position: relative; bottom: auto; right: auto; left: auto; transform: none; max-width: 640px; padding: 0 1rem; margin: 0 auto; text-align: center; }
    .linkedin-icon { position: static; margin: 0.5rem auto 0; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .experience-badge { right: 10px; bottom: 10px; }
    .publications-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom-content { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal { flex-direction: column; gap: 0.5rem; }

    /* Panel tintado más suave en tablet */
    .hero-container::before { left: 8%; width: 84%; background: rgba(6, 73, 87, 0.22); }
    .hero-container::after { display: none; }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-container {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .nav {
        padding: 0.5rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }
    
    .btn-more-info {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-title { font-size: clamp(34px, 11vw, 52px); }
    
    .hero-image { width: clamp(260px, 82vw, 520px); }
    .hero-text-box { padding: 0 0.5rem; }

    .hero-container::before {
        left: 0; width: 100%; background: rgba(6, 73, 87, 0.20);
    }
}


/* Cookies banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 85, 103, 0.96);
    color: #fff;
    padding: 0.85rem 1rem;
    z-index: 9999;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
}
.cookie-banner .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cookie-banner p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.cookie-banner a { color: #ffd27a; text-decoration: underline; }
.cookie-actions { margin-left: auto; display: flex; gap: 0.75rem; }
.cookie-accept {
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 640px) {
    .cookie-banner .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-actions { margin-left: 0; justify-content: flex-end; }
}
