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

html, body {
    height: 100%;
    font-family: "Instrument Sans", sans-serif;
    background-color: #F9F9F9;
    padding-bottom: 80px; /* espacio extra para footer fijo en desktop */
}

/* =======================
   HEADER REDISEÑADO
======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;

    /* Fondo blanco 70% + blur 30% */
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

.header-left {
    font-size: 12px;
    font-weight: 300;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
}

.header-center {
    display: flex;
    gap: 8px;
}

.header-right {
    display: flex;
}

.nav-link {
    font-size: 12px;
    font-weight: 300;
    text-decoration: none;
    color: #000000;
    transition: color 0.3s, font-weight 0.3s;
}

.nav-link:hover {
    color: #0024fc; /* azul hover */
    font-weight: 400;
}

/* =======================
   HAMBURGUESA
======================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 16px;
    height: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #0024fc;
}
/* =======================
   CONTACT OVERLAY
======================= */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

/* TARJETA */
.contact-card {
    width: 495px;
    height: 286px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    position: relative;
    transform: rotate(-5deg);
    padding: 24px;
}

/* CLOSE */
.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    color: #000000;
    cursor: pointer;
}

.contact-close:hover {
    color: #0024ce;
}

/* CONTENIDO */
.contact-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
}

/* TEXTOS */
.contact-intro,
.contact-follow {
    font-size: 17.5px;
    font-weight: 500;
    font-style: italic;
    color: #000000;
    margin-bottom: 8px;
}

.highlight {
    color: #0024ce;
}

/* LINKS */
.contact-link,
.contact-socials a {
    font-size: 15.3px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
}

.contact-link:hover,
.contact-socials a:hover {
    color: #0024ce;
}
/* =======================
   MOBILE MENU (oculto por defecto)
======================= */
.mobile-menu {
    display: none; /* oculto en desktop */
    flex-direction: column;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    text-align: center;
}

.mobile-menu .nav-link {
    font-size: 12px;
    font-weight: 300;
    color: #000000;
}

.mobile-menu .nav-link:hover {
    color: #0024fc;
    font-weight: 400;
}

/* ========================
   HERO
======================== */
.hero {
    width: 100%;
    background-color: #F9F9F9;
    display: block;
}
.hero img {
    width: 100%;
    height: auto;
    max-height: 820px;
    display: block;
    object-fit: cover;
}

/* ========================
   INTRO
======================== */
.intro-wrap {
    width: 100%;
    margin-top: 100px;
}
.intro-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 150px;
    padding: 10px 5px;
}

/* LEFT column */
.intro-left {
    width: 672px;
    margin-left: 0px;
}
.project-title {
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 18px 0;
    line-height: 1.1;
}
.project-meta {
    width: 300px;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    line-height: 1.6;
}

/* RIGHT column */
.intro-right {
    width: 650px;
    margin-right: 60px;
}
.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 0;
    margin-top: 12px;
}

/* ========================
   GALLERY
======================== */
.gallery {
    max-width: 1440px;
    margin: 125px auto 180px auto; /* más espacio debajo para desktop */
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.g-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.g-item {
    border-radius: 20px;
    overflow: hidden;
    background: #f2f2f2;
    display: block;
}

.g-item img,
.g-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
    overflow: hidden;
}

/* tamaños exactos */
.g-imagen1  { width: 1400px; height: 750px; }
.g-imagen2  { width: 808px; height: 690px; }
.g-imagen3  { width: 572px; height: 334px; }
.g-imagen4  { width: 572px; height: 334px; }
.g-imagen5  { width: 453px; height: 615px; }
.g-imagen6  { width: 927px; height: 615px; }
.g-imagen7  { width: 1400px; height: 760px; }

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================
   FOOTER
======================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.footer-email {
    font-size: 9pt;
    color: #000000;
    white-space: nowrap;
    line-height: 40px;
}
.footer-email a {
    text-decoration: none;
    color: #000000;
}
.footer-email a:hover {
    color: #0024fc;
}

.footer-icons {
    display: flex;
    gap: 24px;
}
.footer-icons a {
    color: #0024fc;
    display: flex;
    align-items: center;
}
.footer-icons a[data-icon="instagram"] span,
.footer-icons a[data-icon="linkedin"] span { font-size: 18px !important; }
.footer-icons a[data-icon="behance"] span { font-size: 20px !important; }

.g-item video {
    object-fit: cover;
    width: 101%;
    height: 101%;
    position: relative;
    left: -0.5%;
    top: -0.5%;
    background-color: transparent;
}

/* ========================
   RESPONSIVE TABLET
======================== */
@media (max-width: 1366px) {

    .intro-inner {
        gap: 40px;
        padding: 0 40px;
    }

    .g-imagen1, .g-imagen2, .g-imagen3, .g-imagen4, .g-imagen5, .g-imagen6, .g-imagen7 {
        width: 100%;
        height: auto;
    }

    .g-item {
        width: calc(50% - 10px);
        height: auto;
    }
}

/* ========================
   RESPONSIVE MÓVIL
======================== */
@media (max-width: 768px) {

    .header {
        height: 40px;
        padding: 0 16px;
    }

    /* Ocultamos menú original */
    .header-center,
    .header-right {
        display: none;
    }

    /* Mostramos hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Mostramos menú móvil cuando está activo */
    .mobile-menu.active {
        display: flex;
    }

    .hero img {
        margin-top: 40px;
    }
    /* INTRO mobile */
    
    .intro-wrap {
        margin-top: 40px;
    }

    .intro-inner {
        flex-direction: column;
        gap: 10px;
    }

    .intro-left, .intro-right {
        width: 100%;
        margin: 0;
    }

    .project-title {
        width: 100%;
        margin-bottom: 6px;
        font-size: 26px;
        order: 1;
    }

    .project-description {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.4;
        order: 2;
    }

    .intro-left .project-meta {
        margin-top: 6px;
        font-size: 11px;
        order: 3;
    }

    /* GALLERY */
    .gallery {
        margin-top: 50px;
        padding-bottom: 50px;
    }

    .g-item {
        width: 100%;
        height: auto;
    }

    .g-row {
        flex-direction: column;
        gap: 15px;
    }

    /* FOOTER */
    .footer {
        padding: 0 12px;
    }

    .footer-email {
        font-size: 8.5pt;
        line-height: 33px;
    }

    .footer-icons {
        gap: 16px;
    }
    /* =======================
   CONTACT OVERLAY - MÓVIL
======================= */
@media (max-width: 768px) {

    .contact-card {
        width: 90%;
        max-width: 360px;
        height: auto;
        padding: 20px;
        transform: rotate(-3deg);
    }

    .contact-content {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 40px;
    }

    .contact-intro,
    .contact-follow {
        font-size: 15px;
        line-height: 1.4;
    }

    .contact-link,
    .contact-socials a {
        font-size: 14px;
    }

    .contact-close {
        font-size: 13px;
    }
}

}
