/* =========================================
   Reset básico y Fuentes
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000;
    overflow-x: hidden; 
}

/* =========================================
   Navegación Superior (Navbar)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 1000;
    background: transparent;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    color: #ffffff; 
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff; 
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* =========================================
   Sección Hero (Video a Pantalla Completa)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.55); 
    z-index: 1; 
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; 
}

.hero-content h1 {
    color: #000000; 
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 30px; 
    line-height: 1.1;
}

.hero-logo-container {
    width: 100%;
    max-width: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1)); 
}

/* =========================================
   Sección Principal (Feed de Proyectos)
   ========================================= */
.main-content {
    display: flex;
    padding: 0 50px;
    margin-top: 80px; 
    background-color: #fff;
    position: relative;
    z-index: 20; 
}

.side-nav {
    width: 40%;
    position: sticky;
    top: 120px; 
    height: fit-content;
    padding-right: 40px;
}

.nav-item {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px; 
    border-bottom: 1px solid #000;
    padding: 15px 0; 
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

.nav-item:hover {
    color: #888;
    padding-left: 10px; 
}

.nav-item.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.portfolio-feed {
    width: 60%;
    padding-left: 20px;
}

.project-card {
    margin-bottom: 100px;
}

.project-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    color: #000;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Filtro grayscale eliminado de aquí */
    transition: transform 0.5s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

/* =========================================
   Página de Detalle de Proyecto (Estilo KAAN)
   ========================================= */
.overlay-page {
    background-color: #fff;
    animation: slideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.close-overlay {
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    z-index: 9999;
    font-weight: 300;
    transition: opacity 0.3s;
}

.close-overlay:hover {
    opacity: 0.5;
}

.project-detail-container {
    padding: 100px 50px;
    max-width: 1400px; 
    margin: 0 auto;    
}

.detail-meta {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
}

.detail-title {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 60px;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.full-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.project-description {
    max-width: 900px;  
    margin-bottom: 80px;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

.technical-grid {
    display: flex;
    gap: 80px;         
    border-top: 1px solid #000;
    padding-top: 40px;
    margin-bottom: 100px;
}

.info-column {
    width: 25%;        
    min-width: 200px;
}

.info-group {
    margin-bottom: 30px;
}

.info-group span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-group p {
    font-size: 0.9rem;
    color: #333;
}

.visual-column {
    width: 75%;        
}

.blueprint {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Filtro grayscale y contrast eliminado de aquí */
}

.blueprint-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

/* =========================================
   Optimización para Dispositivos Móviles
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .main-content {
        flex-direction: column;
        padding: 0 20px;
        margin-top: 40px;
    }

    .side-nav {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .nav-item {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .portfolio-feed {
        width: 100%;
        padding-left: 0;
    }

    .technical-grid {
        flex-direction: column; 
        gap: 40px;
    }

    .info-column, .visual-column {
        width: 100%; 
    }

    .blueprint-row {
        grid-template-columns: 1fr; 
    }

    .full-img, .blueprint {
        display: block;
        width: 100%;
        height: auto; 
    }

    .project-detail-container {
        padding: 80px 20px;
    }
}

/* Eliminación de subrayado en menú lateral */
.side-nav a.nav-item {
    text-decoration: none; 
    display: block;
}