/* =========================================
   RESET BÁSICO Y CONFIGURACIÓN GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.block {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   BLOQUE PRINCIPAL (HERO)
   ========================================= */
.hero-block {
    position: relative;
    overflow: hidden; 
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 24px); 
    object-fit: cover;
    object-position: center bottom; 
    z-index: 1;
}

.main-nav, .brand-content, .scroll-indicator { z-index: 10; }
.marquee-container { z-index: 20; }

.main-nav {
    position: absolute;
    top: 3rem;
    left: 3rem;
}

.main-nav ul { list-style: none; }
.main-nav li { margin-bottom: 0.4rem; }
.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}
.main-nav a:hover { opacity: 0.7; }

.brand-content {
    position: absolute;
    bottom: 30%;
    right: 5%;
    max-width: 500px;
    text-align: left;
}

.brand-logo {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

.explore-btn {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    font-size: 0.9rem;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}
.explore-btn:hover { opacity: 0.7; }

.scroll-indicator {
    position: absolute;
    bottom: 3.5rem;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.scroll-indicator span {
    font-size: 0.7rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: #ffffff;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* =========================================
   MARQUESINA ANIMADA (PIE DE PÁGINA DEL HOME)
   ========================================= */
.marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 0;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    font-size: 0.55rem;
    letter-spacing: 2px;
    animation: marquee 25s linear infinite;
}

.marquee-content span { padding: 0 30px; }

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   ENCABEZADO BLANCO DE PROYECTOS (STICKY)
   ========================================= */
.projects-wrapper {
    width: 100%;
    position: relative;
}

.projects-header {
    width: 100%;
    height: 35px; 
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.projects-nav-left {
    display: flex;
    gap: 1.5rem;
}

.projects-nav-left a {
    text-decoration: none;
    color: #000000;
    font-size: 0.75rem;
    font-weight: normal;
    transition: opacity 0.3s ease;
}
.projects-nav-left a:hover { opacity: 0.6; }

.projects-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #000000;
    font-size: 0.9rem; 
    font-weight: bold;
    letter-spacing: 1.5px;
}

.projects-nav-right .arrow-btn {
    text-decoration: none;
    color: #000000;
    font-size: 1rem; 
    transition: opacity 0.3s ease;
}
.projects-nav-right .arrow-btn:hover { opacity: 0.6; }

/* =========================================
   ELEMENTOS FIJOS DE LOS PROYECTOS
   ========================================= */
#project-fixed-elements {
    transition: opacity 0.4s ease;
    opacity: 1;
    visibility: visible;
}

#project-fixed-elements.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fixed-project-logo {
    position: fixed;
    bottom: 50px;
    left: 3rem;
    width: 60px; 
    height: auto;
    z-index: 90;
}

/* Franja negra fija */
.fixed-project-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #000000;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    z-index: 90;
}

.fixed-project-footer span {
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
}

.more-link, 
.more-link:visited, 
.more-link:active {
    color: #ffffff !important; 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 300; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-left: auto; 
    transition: opacity 0.3s ease;
}

.more-link:hover {
    opacity: 0.6; 
}

/* =========================================
   IMÁGENES DE LOS PROYECTOS
   ========================================= */
.project-block {
    position: relative;
    overflow: hidden; 
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* --- ESTILOS DE LA MARQUESINA SEPARADORA --- */
.project-marquee {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 0;
    display: flex;
    z-index: 10;
    border-top: 1px solid #ffffff;
    /* Borde corregido a 4px como se solicitó originalmente */
    border-bottom: 4px solid #ffffff; 
}

.project-marquee .marquee-content {
    display: flex;
    white-space: nowrap;
    font-size: 0.55rem;
    letter-spacing: 2px;
    animation: marquee 25s linear infinite; 
}

.project-marquee .marquee-content span { 
    padding: 0 30px; 
}

/* =========================================
   SECCIÓN DE CONTACTO Y FOOTER FINAL
   ========================================= */
.contact-section {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 100;
}

.contact-container {
    padding: 6rem 3rem 3rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-label {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.contact-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.contact-divider {
    border: none;
    border-top: 1px solid #999;
    margin: 2rem 0;
    width: 100%;
}

.contact-services {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #333;
    text-transform: uppercase;
}

.contact-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #333;
}

.contact-info-list a {
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}

.contact-info-list a:hover {
    opacity: 0.6;
}

.contact-info-list svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #333;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-quote {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    color: #555;
    margin-top: 5rem;
    margin-bottom: 3rem;
    letter-spacing: 1.5px;
}

/* --- FOOTER NEGRO --- */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 4rem 3rem 2rem 3rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.subscribe-form {
    display: flex;
    margin-top: 1rem;
}

.subscribe-form input {
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 0.75rem;
    width: 180px;
}

.subscribe-form button {
    padding: 8px 20px;
    border: none;
    background-color: #555;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background-color: #777;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.footer-logo-text {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #777;
    font-weight: bold;
}

/* =========================================
   ESTILOS PARA EL CARRUSEL (PÁGINAS INTERNAS)
   ========================================= */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 35px); 
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-btn:hover { background: rgba(0, 0, 0, 0.7); }
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }


/* =========================================
   PÁGINA DE FILTROS (FILTERS.HTML)
   ========================================= */
.filters-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

.filters-main {
    flex-grow: 1; /* Ocupa todo el espacio blanco disponible */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filters-header-title {
    text-align: right;
    margin-bottom: 4rem;
}

.filters-header-title h2 {
    font-size: 2.2rem;
    color: #555;
    font-weight: 800;
    letter-spacing: 2px;
}

.filters-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.filter-item {
    text-decoration: none;
    color: #000000;
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-item:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

.filter-item img {
    width: 100%;
    max-width: 250px;
    height: 120px; /* Ajusta esto si tus imágenes son más altas */
    object-fit: contain; /* Evita que los dibujos se deformen */
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.filters-footer {
    background-color: #000000;
    color: #ffffff;
    min-height: 35vh; /* Altura de la franja negra */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem;
}

.filters-quote {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 800;
    text-align: center;
    max-width: 800px;
    color: #cccccc;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.filters-initials {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 5px;
}

/* =========================================
   PÁGINA DE BIOGRAFÍA (BIO.HTML) - AJUSTE DEFINITIVO
   ========================================= */
.bio-page {
    background-color: #ffffff;
    overflow: hidden; 
}

.bio-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 35px); 
}

/* 
   1. Quitamos el centrado forzado para que el texto nazca desde arriba.
   2. Ajustamos el padding para eliminar el hueco gigante a la derecha y 
      darle un margen superior (3rem) para que no choque con el menú.
*/
.bio-left {
    flex: 6.5; 
    padding: 3rem 4rem 2rem 3.5rem; 
    overflow-y: hidden; 
    background-color: #ffffff;
    display: block; /* Volvemos al comportamiento normal de bloque */
}

/* 
   Ajustamos sutilmente el tamaño para que quepa perfecto en una 
   sola pantalla sin amontonarse ni requerir barra de scroll. 
*/
.bio-left p {
    font-size: 0.68rem; 
    line-height: 1.35;  
    color: #222;
    margin-bottom: 0.6rem; 
    letter-spacing: 0.2px;
    text-align: justify;
}

/* 
   Al hacer la columna de la foto ligeramente más estrecha (flex: 3.5), 
   cambiamos la proporción de la caja. El navegador reduce el zoom horizontal 
   y, en consecuencia, revela mucho más cuerpo hacia abajo.
*/
.bio-right {
    flex: 3.5; 
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #000000;
}

.bio-right-top {
    background-color: #000000;
    padding: 2rem 2.5rem 1.5rem 2.5rem; 
    flex: 0 0 auto;
}

.bio-right-top h2 {
    color: #b0b0b0; 
    font-size: 1.3rem; 
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2px;
}

.bio-right-bottom {
    flex: 1; 
    background-size: 70% auto; /* Obliga a la foto a no ser más ancha que su columna */
    background-position: center top; /* Pega la foto arriba, revelando los hombros abajo */
    background-repeat: no-repeat;
    background-color: #000000; /* Para rellenar si la foto es más corta que la pantalla */
    filter: grayscale(100%) contrast(110%);
}

/* =========================================
   PÁGINA DE AWARDS (AWARDS.HTML)
   ========================================= */
.awards-page {
    background-color: #000000;
    overflow: hidden; 
}

.awards-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 35px); 
}

.awards-left {
    flex: 3.5; 
    background-color: #111; 
    background-size: 60% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.awards-right {
    flex: 6.5; 
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 5rem 2rem 5rem;
    overflow-y: auto; /* Permite hacer scroll si la pantalla es muy bajita */
    display: flex;
    flex-direction: column;
}

.awards-header-text {
    text-align: center;
    margin-bottom: 2rem;
}

.awards-header-text h1 {
    font-size: 2.5rem;
    color: #cccccc;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.awards-sub1, .awards-sub2, .awards-sub3 {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.awards-body-text {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.awards-body-text p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
    letter-spacing: 0.3px;
}

.awards-diploma {
    text-align: center;
    margin-top: auto; /* Empuja el diploma hacia el fondo si hay espacio */
    padding-bottom: 1rem;
}

.awards-diploma img {
    max-width: 75%; /* Ajusta el tamaño del diploma */
    height: auto;
    display: inline-block;
}

/* =========================================
   RESPONSIVIDAD PARA CELULARES
   ========================================= */
@media (max-width: 850px) {
    .projects-header {
        height: auto;
        padding: 10px 1.5rem;
        flex-wrap: wrap; 
    }
    .projects-title {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        font-size: 0.8rem;
        order: 1; 
    }
    .projects-nav-left {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        order: 2;
    }
    .projects-nav-right {
        position: absolute;
        bottom: 10px;
        right: 1.5rem;
    }
    .contact-top {
        flex-direction: column;
    }
    .contact-right {
        justify-content: flex-start;
        margin-top: 2rem;
    }
    .footer-columns {
        flex-direction: column;
    }
    .contact-quote {
        font-size: 1.5rem;
    }
	/* Agregar dentro del @media (max-width: 850px) existente */
    .filters-grid {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }
    .filters-header-title {
        text-align: center;
    }
    .filters-quote {
        font-size: 1.5rem;
    }
	/* Agregar dentro del @media (max-width: 850px) existente */
    .bio-page {
        overflow: auto; /* Devolvemos el scroll normal a la página en celulares */
    }
    .bio-container {
        flex-direction: column;
        height: auto;
    }
    .bio-right {
        order: 1; /* El cuadro negro y la foto van arriba en celular */
        flex: none;
    }
    .bio-right-bottom {
        min-height: 400px;
    }
    .bio-left {
        order: 2; /* El texto va debajo en celular */
        flex: none;
        padding: 2rem 1.5rem;
        overflow-y: visible;
    }
	/* Agregar dentro del @media (max-width: 850px) existente */
    .awards-page {
        overflow: auto; 
    }
    .awards-container {
        flex-direction: column;
        height: auto;
    }
   .awards-left {
    flex: 3.5; 
    background-color: #000000; /* Le ponemos negro puro para que el fondo se funda con el resto de la página */
    
    /* === AQUÍ ESTÁ EL TRUCO === */
    /* Empieza probando con 'contain' (que obliga a la foto a mostrarse 100% completa sin cortes) 
       o con un porcentaje como '80% auto' o '100% auto' igual que hicimos en la bio */
    background-size: cover; 
    
    /* Centramos la foto perfectamente en el medio de la columna */
    background-position: center center; 
    background-repeat: no-repeat;
}
    .awards-right {
        flex: none;
        padding: 2rem 1.5rem;
        overflow-y: visible;
    }
    .awards-diploma img {
        max-width: 100%; 
    }
}