* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    /*border-bottom: 1px solid rgba(217, 213, 201, 0.1);*/
}

.header-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    color: #D9D5C9;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.site-header.scrolled .header-logo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    font-size: 1.8rem;
}

.header-logo .maffe {
    font-weight: 800;
}

.header-logo .studio {
    font-weight: 400;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
    position: relative;
    /* Changed from fixed */
    top: auto;
    right: auto;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D9D5C9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hamburger Animation State */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.main-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.main-nav li {
    display: block;
    margin: 25px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    width: 100%;
}

.nav-overlay.open .main-nav li {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger animation for menu items */
.nav-overlay.open .main-nav li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.open .main-nav li:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-overlay.open .main-nav li:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-overlay.open .main-nav li:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-overlay.open .main-nav li:nth-child(5) {
    transition-delay: 0.5s;
}

.nav-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 3rem;
    color: #D9D5C9;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #D9D5C9;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* No scroll class for menu */
.no-scroll {
    overflow: hidden;
}

/* Page content padding for fixed header */
body:not(.project-page) section:first-of-type {
    padding-top: 140px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial;
    background: #000000;
    color: #D9D5C9;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit
}

.wrapper {
    width: 100%;
    margin: 0;
    padding: 40px 24px
}

/* HERO */
.hero {
    background: #000000;
    color: #D9D5C9;
    padding: 80px 0 40px 0;
    position: relative;
}

.hero .inner {
    width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.hero h1 {
    font-size: 12rem;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -0.03em;
    white-space: nowrap;
    margin: 0;
}

.hero h1 .maffe {
    font-weight: 800;
    font-size: 14rem;
}

.hero h1 .studio {
    font-weight: 400 !important;
}

/* Contenedor de botón y párrafo */
.hero .row {
    overflow: hidden;
}

/* Botón flotante */
.hero .row a.cta {
    padding: 14px 22px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Párrafo con efecto “hanging indent” */
.hero .row p.lead {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    margin: 0;
    display: block;
}

.hero .toplinks {
    position: absolute;
    top: 40px;
    right: 40px
}

.hero .menu {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 2.4rem;
    cursor: pointer
}

/* SECCIÓN NOSOTRAS */
.nosotras {
    background: #000000;
    color: #D9D5C9;
    padding: 40px 40px;
}

.nosotras-inner {
    max-width: 100%;
}

.nosotras-section {
    margin-top: 0;
}

.nosotras-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
    padding-bottom: 30px;
    /*border-bottom: 1px solid rgba(217, 213, 201, 0.2);*/
}

.nosotras-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.nosotras-image {
    flex: 1;
}

.nosotras-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0px;
}

.nosotras-text {
    flex: 1;
    font-size: 25px;
    line-height: 1.6;
    color: #D9D5C9;

}

/* Bloque especial para la historia de MAFFE */
.maffe-story {
    margin-top: 50px;
    padding: 40px;
    border-left: 4px solid #D9D5C9;
    background: rgba(217, 213, 201, 0.05);
}

.story-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: #D9D5C9;
}

.story-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(217, 213, 201, 0.7);
    display: block;
    margin-top: 8px;
}

.maffe-story p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #D9D5C9;
    margin-top: 20px;
}

/* PROJECTS GRID intercalado */
.projects {
    background: #000000;
    color: #D9D5C9;
    padding: 40px;
}

@media (max-width: 900px) and (min-width: 601px) {
    .projects {
        padding: 40px 40px;
    }
}

@media (max-width: 600px) {
    .projects {
        padding: 40px 20px;
    }
}

/* Grid Layout: 3 columns equal width */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
    width: 100%;
    margin: 0;
}

/* All projects same size */
.proj {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    margin-bottom: 60px;
}

.img-container {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    background: #000000;
    border: none;
    width: 100%;
    height: 420px;
    margin-bottom: 0;
}

.proj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease, transform .6s ease;
}

.text-container {
    margin-top: 8px;
    position: relative;
}

.proj .pname {
    position: relative;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #D9D5C9;
    opacity: 1;
    transition: opacity .28s ease;
    margin: 0;
    line-height: 1.2;
}

.proj .meta {
    position: relative;
    padding: 0;
    font-size: .95rem;
    color: #bbb;
    opacity: 1;
    transition: opacity .28s ease;
    margin: 0;
    margin-top: 2px;
}

/* responsive */
@media (max-width: 900px) and (min-width: 601px) {
    .hero h1 {
        font-size: 6rem
    }

    /* Tablet: 2 columns */
    .proj-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }

    .projects {
        padding: 40px 40px;
    }

    .proj {
        width: 100% !important;
        margin-bottom: 50px;
    }

    .text-container {
        margin-top: 3px;
    }

    .proj:nth-child(n) {
        width: 100%;
    }

    .proj .img-container {
        height: 250px;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 14vw;
        /* Responsive font size based on viewport width instead of fixed rem */
        white-space: normal;
        /* Allow wrapping if absolutely necessary */
        word-break: break-all;
        /* Prevent overflow */
    }

    .hero h1 .maffe {
        font-size: 16vw;
    }

    /* Mobile: stacking vertical */
    .proj-grid {
        display: block;
        padding: 0;
    }

    .proj {
        width: 100% !important;
        margin-bottom: 0 !important;
        margin-top: 50px !important;
        background: transparent;
    }

    .proj:last-child {
        margin-bottom: 0;
    }

    .text-container {
        margin-top: 2px;
    }

    .proj .pname {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .proj .meta {
        font-size: 0.85rem;
        margin-top: 0;
    }

    .proj:nth-child(n) {
        width: 100%;
    }

    .proj .img-container {
        height: auto;
        aspect-ratio: 16/9;
    }

    /* Further adjustments if needed, though 900px rule covers stacking */
    .hero .inner {
        padding: 0 20px;
    }
}

.toplinks .cta {
    font-weight: 700;
}

/* Botón contacto ovalado */
.toplinks .contact-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #D9D5C9;
    border-radius: 50px;
    font-weight: 700;
    color: #D9D5C9;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.toplinks .contact-btn:hover {
    background-color: #D9D5C9;
    color: #000;
    transform: scale(1.05);
}

/* AMADO */
#amado-project .img-container img,
#amado-project-2 .img-container img {
    object-fit: cover;
}

#amado-project .pname,
#amado-project-2 .pname {
    position: relative;
    left: auto;
    bottom: auto;
    font-size: 1.3rem;
    font-weight: 600;
    color: #D9D5C9;
    z-index: 2;
}

#amado-project .meta,
#amado-project-2 .meta {
    position: relative;
    left: auto;
    bottom: auto;
    font-size: .95rem;
    color: #bbb;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* DiLuigi */
#diluigi-project .img-container img,
#diluigi-project-2 .img-container img {
    object-fit: cover;
}

#diluigi-project .pname,
#diluigi-project-2 .pname {
    position: relative;
    left: auto;
    bottom: auto;
    font-size: 1.3rem;
    font-weight: 600;
    color: #D9D5C9;
    z-index: 2;
}

#diluigi-project .meta,
#diluigi-project-2 .meta {
    position: relative;
    left: auto;
    bottom: auto;
    font-size: .95rem;
    color: #bbb;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Animación de carga */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICIOS LISTADOS */
.services-list {
    background: #000000;
    color: #D9D5C9;
    padding: 40px 40px;
}

.services-list-container {
    max-width: 100%;
}

.services-list-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-item {
    font-size: 2.5rem;
    font-weight: 600;
    color: #D9D5C9;
    text-align: center;
    display: block;
    text-decoration: none;
}

a.service-item:hover {
    opacity: 0.7;
}

/* SERVICIOS CON ACORDEÓN */
.services {
    background: #000000;
    color: #D9D5C9;
    padding: 40px 40px;
}

.services-container {
    max-width: 100%;
}

.services-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    padding-bottom: 30px;
    /*border-bottom: 1px solid rgba(217, 213, 201, 0.2);*/
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    border: 1px solid rgba(217, 213, 201, 0.2);
    border-radius: 0px;
    overflow: hidden;
    background: rgba(217, 213, 201, 0.02);
}

.accordion-header {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    color: #D9D5C9;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(217, 213, 201, 0.05);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
    color: rgba(217, 213, 201, 0.8);
}

.accordion-content.active {
    max-height: 300px;
    padding: 0 30px 30px 30px;
}

.accordion-content p {
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 400;
}

/* NUESTRO PROCESO */
.process {
    background: #000000;
    color: #D9D5C9;
    padding: 40px 40px;
}

.process-container {
    max-width: 100%;
}

.process-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    padding-bottom: 30px;
    /*border-bottom: 1px solid rgba(217, 213, 201, 0.2);*/
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.process-item {
    padding: 40px;
    border: 1px solid rgba(217, 213, 201, 0.2);
    border-radius: 0px;
    background: rgba(217, 213, 201, 0.02);
    transition: all 0.3s ease;
}

.process-item:hover {
    background: rgba(217, 213, 201, 0.05);
    border-color: rgba(217, 213, 201, 0.3);
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(217, 213, 201, 0.3);
    margin-bottom: 15px;
    letter-spacing: -0.05em;
}

.process-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #D9D5C9;
}

.process-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(217, 213, 201, 0.8);
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:600px) {
    .wrapper {
        padding: 20px 16px;
    }

    .hero {
        padding: 120px 0 24px 0;
    }

    .hero h1 {
        font-size: 4.2rem;
    }

    .hero h1 .maffe {
        font-size: 4.8rem;
    }

    .proj-grid {
        grid-template-columns: 1fr;
    }

    .hero .row a.cta {
        font-size: 1.1rem;
        padding: 10px 18px;
    }

    .hero .row p.lead {
        font-size: 1.7rem;
    }

    .hero .row p.lead .first-line {
        text-align: left !important;
        display: block;
    }

    .toplinks .contact-btn {
        padding: 10px 26px;
        font-size: 1rem;
    }

    .hero .menu {
        font-size: 2rem;
    }

    /* Mobile: Reduce margin between cards and show location */
    .proj {
        margin-bottom: 0 !important;
    }

    .proj .meta {
        opacity: 1 !important;
    }

    /* Mobile: Reduce footer top padding */
    .site-footer {
        padding-top: 40px !important;
    }
}

/* FOOTER */
.site-footer {
    padding: 100px 40px 60px;
    background: #000000;
    color: #D9D5C9;
    text-align: center;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    border-top: 1px solid #D9D5C9;
    border-bottom: 1px solid #D9D5C9;
    padding: 30px 0;
    width: 100%;
}

.site-footer .icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.site-footer .icon-link svg,
.site-footer .icon-link i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.site-footer .icon-link:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #ffffff;
}

.site-footer .icon-link:hover i {
    color: #ffffff !important;
}

.footer-text {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: normal;
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer Dark (negro con blanco) */
.footer-dark {
    background: #000000 !important;
    color: #ffffff !important;
}

.footer-dark .footer-icons {
    border-color: #ffffff !important;
}

.footer-dark .icon-link {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.footer-dark .icon-link svg,
.footer-dark .icon-link i {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.footer-dark .icon-link:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.footer-dark .icon-link:hover i,
.footer-dark .icon-link:hover svg {
    color: #000000 !important;
    fill: #000000 !important;
}

.footer-dark .footer-text {
    color: #ffffff !important;
}