/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fafafa;
    --color-text: #2c2c2c;
    --color-accent: #8b7355;
    --color-light: #e8e3de;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/** LAS COLUMNAS **/

.container {
    display: flex;
}

.column {
    width: 50%;
    height: 100vh;
}

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

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    height: 100%;
}


/* EL navbar**/

.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    cursor: pointer;
    pointer-events: auto;
}

.name-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 50%;
    z-index: 99;
    display: flex;
    justify-content: center;
    pointer-events: none; /* deja pasar los clicks */
}

.name {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text);
    pointer-events: auto;
}

.menu-icon {
    width: 30px;
    cursor: pointer;
    z-index: 102;
    position: relative;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    border-radius: 2px;
    z-index: 102;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-light);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
}

.menu-overlay.active {
    display: flex;
}

.menu-list {
    list-style: none;
    padding: 0;
    text-align: center;
    z-index: 101;
}

.menu-list li {
    margin: 30px 0;
}

.menu-list a {
    font-family: var(--font-serif);
    color: var(--color-text);
    text-decoration: none;
    font-size: 28px;
    font-weight: 500;
}

.menu-list a:hover {
    color: var(--color-accent);
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
        min-height: 100vh; /* Cambia de 50vh a 100vh */
        height: auto; /* Añade esto */
    }
    
    .content {
        padding-top: 80px;
        min-height: 100vh; /* Añade esto */
        height: auto; /* Añade esto */
    }

    .name-header {
        width: 100%;
    }
    
    .name {
        font-size: 22px;
    }

    .menu-overlay {
        height: 40%;
        width: 100%;
    }

    .menu-list a {
        font-size: 24px;
    }
}





/**PROJECTS SECTIONS*/
.projects-section {
    width: 100%;
}

.project-item {
    width: 100%;
    padding: 80px 0;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 40px;
}

.project-content.reverse {
    flex-direction: row-reverse;
}

.project-media {
    flex: 1;
}

.project-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-text {
    flex: 1;
}

.project-text h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.project-text p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .project-content,
    .project-content.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    
    .project-item {
        padding: 60px 0;
    }
    
    .project-text h2 {
        font-size: 24px;
    }
    
    .project-text p {
        font-size: 16px;
    }
}

/***ELS VIDEOOOS*/
.project-media video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/*els contact linkks*/

.content-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px;
    height: 100%;
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.contact-link {
    text-decoration: none;
    color: #333;
    font-size: 22px;
    padding: 15px;
}

.contact-link:hover {
    background-color: #333;
    color: white;
}