/* =========================================
   1. RESET Y CONFIGURACIÓN BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f7f7f7;
    color: #111;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. CINTA SUPERIOR Y MENÚ DESPLEGABLE
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1.5rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

.navbar-logo {
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #111;
    text-decoration: none;
}

.menu-container {
    position: relative;
}

.menu-trigger {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 10px 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #eaeaea;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.menu-container:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 1rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.dropdown a:hover {
    background-color: #f9f9f9;
    color: #111;
}

/* =========================================
   3. ESTRUCTURAS DE PÁGINAS (Hero con Video)
   ========================================= */
.welcome-screen {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4vw;
    overflow: hidden; /* Corta los excesos del video */
}

/* Propiedades para el video */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que el video llene la pantalla sin deformarse */
    z-index: -2; /* Lo manda al fondo de todo */
}

/* Capa oscura semitransparente */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Cambia el 0.4 a un número mayor si quieres oscurecer más */
    z-index: -1;
}

/* Contenedor de textos */
.welcome-content {
    position: relative;
    z-index: 1; /* Lo pone por encima del video y la capa oscura */
    color: #ffffff;
}

.welcome-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #f0f0f0; 
    max-width: 600px;
    font-weight: 300;
}
.page-container {
    padding: 8rem 4vw 4rem 4vw; /* Espacio extra arriba para que el menú no tape el título */
    min-height: 100vh;
}

.page-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
}

/* =========================================
   4. LISTAS Y GRIDS
   ========================================= */
.grid-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.project-item {
    border-bottom: 1px solid #ddd;
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    opacity: 0.5;
    cursor: pointer;
}

.project-item h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
}

.project-item span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

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

.masonry-item {
    background: #e0e0e0;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
