/* =========================================
   VARIABLES Y CONFIGURACIÓN INICIAL
   ========================================= */
   :root {
    /* Paleta de colores */
    --color-orange: #d55e2f;
    --color-red-dark: #5f121a;
    --color-beige: #efeae6;
    --color-dark: #1C1C1C;
    --color-white: #ffffff;
    
    /* Tipografía */
    --font-main: 'Satoshi', sans-serif;
    
    /* Espaciado y otros */
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

*, *:hover, *:active, *:focus {
    cursor: none !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-beige);
    color: var(--color-dark);
    line-height: 1.5;
    overflow-x: clip;
    cursor: none !important;
}

::selection {
    background-color: var(--color-orange);
    color: var(--color-white);
}

a, button, .filter-btn, .logo-img, .logo, p, h1, h2, h3, h4, span, div.manifesto-dark-content {
    cursor: none !important;
}

/* Custom Cursor */
.custom-cursor {
    width: 25px;
    height: 25px;
    background-image: url('../assets/img/cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    /* La flecha suele apuntar arriba a la izquierda, así que no trasladamos el centro */
    transform: translate(-10%, -10%);
    transition: transform 0.1s ease;
}

.custom-cursor.hover {
    background-image: url('../assets/img/cursor-hover.png');
    transform: translate(-30%, -10%) scale(1.1);
}

.custom-cursor.text {
    background-image: url('../assets/img/cursor-text.png');
    transform: translate(-50%, -50%);
}

/* Utilities */
.bg-beige { background-color: var(--color-beige) !important; }
.bg-orange { background-color: var(--color-orange) !important; }
.bg-dark-red { background-color: var(--color-red-dark) !important; }
.text-orange { color: var(--color-orange) !important; }
.text-light, .text-beige { color: var(--color-beige) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 80px 0;
}

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 0;
    position: relative;
    z-index: 100;
    background-color: var(--color-beige);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
}

.logo {
    font-family: 'Satoshi', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-dark);
}

.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.logo-img-light {
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link.active {
    color: var(--color-orange);
}

.nav-link:hover {
    color: var(--color-orange);
}

.nav-divider {
    color: rgba(0,0,0,0.2);
}

.nav-icon {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 700;
}

.nav-contact {
    border: 1px solid rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 50px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-red-dark);
}

.btn-dark-red {
    background-color: var(--color-red-dark);
    color: var(--color-beige);
}

.btn-dark-red:hover {
    background-color: var(--color-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-beige);
    border-color: var(--color-beige);
}

.btn-outline-light:hover {
    background-color: var(--color-beige);
    color: var(--color-orange);
}

.hero {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 5%;
}

.hero-left {
    width: 45%;
    max-width: 650px;
}

.hero-category {
    font-size: 0.75rem;
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-title-img {
    margin-bottom: 20px;
}

.title-img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-dark);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(28, 28, 28, 0.85);
    font-weight: 500;
}

.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 48vw;
    height: 100%;
    z-index: 1;
}

.hero-drawing-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 48vw;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-image-composition {
    width: 100%;
    height: 100%;
    position: relative;
}

.bg-photo-placeholder {
    display: none;
}

.illustration-overlay-placeholder {
    display: none;
}

.bg-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.illustration-overlay {
    position: absolute;
    bottom: 0;
    left: -15%;
    width: 65%;
    max-width: 400px;
    height: auto;
    z-index: 2;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-container {
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
    color: var(--color-beige);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.marquee span {
    padding-right: 30px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* =========================================
   FEATURED PROJECT
   ========================================= */
.featured-project {
    padding: 0;
    background-color: var(--color-beige);
    border-top: 1px solid var(--color-orange);
}

.featured-grid-full {
    display: flex;
    width: 100%;
    min-height: 600px;
}

.featured-img-wrapper {
    width: 50%;
    position: relative;
    background-color: #dcd7d0; /* Color temporal hasta que se ponga la imagen */
}

.featured-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/ilustracion (7).png');
    background-size: cover;
    background-position: center;
}

.featured-info-wrapper {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 8% 5%;
}

.featured-info {
    max-width: 500px;
}

.category-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.line {
    height: 2px;
    width: 40px;
    display: inline-block;
}

.project-desc {
    margin-bottom: 30px;
    font-size: 1rem;
    color: rgba(28, 28, 28, 0.8);
}

/* =========================================
   WORKS GRID
   ========================================= */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.link-orange {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #ddd;
}

.work-footer {
    padding: 20px;
    color: var(--color-white);
}

.work-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.work-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 900;
}

.work-arrow {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   ABOUT SUMMARY (HOME)
   ========================================= */
.about-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-summary-left, .about-summary-right {
    padding: 80px 10%;
    display: flex;
    align-items: center;
}

.large-heading {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-top: 10px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-item {
    border-bottom: 1px solid rgba(28, 28, 28, 0.15);
    padding: 20px 0;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.skill-item p {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.6);
}

/* =========================================
   MANIFESTO
   ========================================= */
.manifesto-dark-content {
    padding-top: 20px;
}

.manifesto-p {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
    color: rgba(238, 234, 229, 0.7);
}

.manifesto-p strong.text-white {
    color: var(--color-white);
    font-weight: 700;
}

.manifesto-p strong.text-orange {
    color: var(--color-orange) !important;
    font-weight: 700;
}

.manifesto-p i.text-orange {
    color: var(--color-orange) !important;
    font-weight: 400;
    font-style: italic;
}

.manifesto-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-orange);
    margin: 40px 0 20px 0;
    opacity: 0.5;
}

.manifesto-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(238, 234, 229, 0.4);
    font-weight: 400;
}

.manifesto-text {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 20px 0;
}

.manifesto-author {
    color: rgba(0,0,0,0.5);
    font-weight: 500;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-left {
    width: 45%;
}

.cta-right {
    width: 45%;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-top: 10px;
}

.cta-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-title-center {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 10px;
}

.cta-desc-center {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-horizontal .cta-title {
    margin-top: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
}

.footer-brand .logo-img {
    height: 45px;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 250px;
}

.footer h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-orange);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: var(--color-beige);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-contact .category-small {
    color: var(--color-orange);
}

.footer-links a:hover, .footer-contact a:hover {
    opacity: 1;
    color: var(--color-orange);
}

.footer .hero-quote {
    color: var(--color-beige) !important;
}

.footer-bottom {
    padding-top: 20px;
    text-align: left;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   PAGE HERO (WORK & ABOUT)
   ========================================= */
.page-hero {
    padding: 100px 0;
}

.page-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.page-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   FILTERS
   ========================================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 5px;
}

.filter-btn:hover {
    color: var(--color-dark);
}

.filter-btn.active {
    color: var(--color-orange);
    border-bottom: 2px solid var(--color-orange);
}

/* Animación de filtrado */
.work-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.intro-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: rgba(0,0,0,0.8);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: stretch;
}

.vertical-separator {
    width: 1px;
    background-color: rgba(28, 28, 28, 0.15);
    align-self: stretch;
}

.services-section .section-header {
    margin-bottom: 40px;
    text-align: center;
}

.service-card {
    padding: 40px 30px;
    border-radius: var(--border-radius);
    color: var(--color-beige);
}

.service-dash {
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.8;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Timeline */
.timeline-container {
    max-width: 800px;
}

.timeline {
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.timeline-year {
    font-weight: 900;
    font-size: 1.2rem;
}

.timeline-content {
    font-size: 1.1rem;
}

/* Manifesto Dark */
.manifesto-dark {
    padding: 100px 0;
}

.manifesto-dark-content {
    margin-top: 30px;
    max-width: 800px;
}

.manifesto-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 40px 0;
}

.line-separator-dark {
    width: 100%;
    height: 1px;
    background-color: rgba(28, 28, 28, 0.15);
    margin: 40px 0;
}

.manifesto-large {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 30px;
}

.manifesto-large strong {
    font-weight: 700;
}

.manifesto-medium {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
}

.manifesto-medium strong {
    font-weight: 700;
}

.manifesto-small {
    font-size: 1.2rem;
    font-weight: 300;
}

.manifesto-small i {
    font-weight: 500;
}

/* Burger Menu Button (hidden on desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 200;
    outline: none;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 4px;
    transition: var(--transition);
}

/* Transform to X when active */
.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Touch device optimization (hide custom cursor, restore default pointer) */
@media (pointer: coarse) {
    .custom-cursor, .star-particle {
        display: none !important;
    }
    *, *:hover, *:active, *:focus {
        cursor: auto !important;
    }
}

/* =========================================
   RESPONSIVE LAYOUT & BREAKPOINTS
   ========================================= */

/* 1. MacBook / Medium Screens (1025px - 1366px) */
@media (max-width: 1366px) {
    .hero {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .hero-container {
        padding-left: 5%;
        padding-right: 2%;
    }
    .hero-left {
        width: 42%;
    }
    .title-img {
        max-width: 420px;
        height: auto;
    }
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-right {
        width: 48vw;
    }
    .illustration-overlay {
        width: 55%;
        left: -5%;
        max-width: 320px;
    }
    .project-hero {
        height: auto;
        min-height: 80vh;
    }
    .project-hero-right {
        padding: 5% 7%;
    }
}

/* 2. Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(238, 234, 229, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 150;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        padding: 60px 40px;
    }
    
    .nav-list.nav-open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.6rem;
        font-weight: 900;
        letter-spacing: 2px;
    }
    
    .nav-divider {
        display: none;
    }
    
    .nav-contact {
        border-width: 2px;
        padding: 12px 36px;
        border-radius: 50px;
    }

    .cols-2, .cols-3, .featured-grid, .about-summary, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .hero {
        flex-direction: column-reverse !important; /* Stack image composition on top of text on mobile/tablet */
        height: auto !important;
    }

    .hero-container {
        flex-direction: column;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-left {
        width: 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .title-img {
        max-width: 450px;
        width: 100%;
    }
    
    .hero-right {
        position: relative;
        width: 100%;
        height: 480px;
        margin-top: 0;
        margin-bottom: 40px; /* Space between the image above and text below */
        left: 0;
    }
    
    .hero-drawing-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 480px;
        z-index: 3;
        pointer-events: none;
    }
    
    .illustration-overlay {
        left: 5%;
        width: 50%;
        max-width: 300px;
    }
    
    .about-summary-left, .about-summary-right {
        padding: 60px 5%;
    }

    .cta-container, .cta-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-left, .cta-right {
        width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .featured-grid-full {
        flex-direction: column;
        min-height: auto;
    }
    
    .featured-img-wrapper, .featured-info-wrapper {
        width: 100%;
    }
    
    .featured-img-wrapper {
        height: 350px;
    }
    
    .featured-info-wrapper {
        padding: 50px 5%;
    }
}

/* 3. Mobiles (up to 768px) */
@media (max-width: 768px) {
    .logo-img {
        height: 30px !important; /* Elegant, ultra-compact logo on mobile */
    }
    
    .project-topbar-logo {
        height: 28px !important; /* Delicate project logo on mobile */
    }
    
    .burger-menu {
        width: 22px !important;
        height: 14px !important;
    }
    
    .burger-menu span {
        height: 2px !important;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }
    
    .nav-link {
        font-size: 1.4rem !important; /* More elegant expanded mobile links */
    }

    .services-grid.cols-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-right {
        height: 380px;
    }
    
    .hero-drawing-container {
        height: 380px;
    }
    
    .title-img {
        max-width: 350px;
    }
    
    .section-title {
        font-size: 1.6rem !important; /* Balanced section headings */
    }
    
    .large-heading {
        font-size: 2.0rem !important; /* Extremely readable and responsive big headings */
        line-height: 1.15 !important;
    }
    
    .project-title {
        font-size: 2.2rem !important; /* Fits beautifully on single lines */
        line-height: 1.15 !important;
    }
    
    .project-hero-minimal .project-title {
        font-size: 2.2rem !important;
    }
    
    .manifesto-large {
        font-size: 1.6rem !important;
    }
    
    .manifesto-medium {
        font-size: 1.25rem !important;
    }
    
    .manifesto-small {
        font-size: 1.0rem !important;
    }
    
    .about-summary-left, .about-summary-right {
        padding: 40px 5%;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vertical-separator {
        width: 100%;
        height: 1px;
        background-color: rgba(28, 28, 28, 0.15);
        margin: 10px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   PROJECT PAGE TEMPLATE
   ========================================= */

.project-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 5% !important;
    background-color: var(--color-beige) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.project-topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.project-topbar-link {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-topbar-logo {
    height: 35px;
    width: auto;
    display: block !important;
}

.project-hero {
    display: flex;
    height: 85vh;
    min-height: 500px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.project-hero-left {
    width: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0; /* No padding so the image touches the margins completely */
}

.project-hero-right {
    width: 50%;
    padding: 4% 8%; /* Compact padding on the right */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-beige);
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image fills the entire space and sticks to margins */
}

.project-category {
    font-size: 0.75rem;
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
    width: 100%;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(28,28,28,0.8);
    margin-bottom: 2rem;
    max-width: 90%;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-orange);
    padding: 5px 15px;
    border: 1px solid var(--color-orange);
    border-radius: 50px;
    text-transform: uppercase;
}

.project-behance-hero {
    margin-top: 25px;
}

.project-process {
    padding: 80px 5%;
    background-color: var(--color-beige);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.process-item {
    border-top: 1px solid var(--color-orange);
    padding-top: 20px;
}

.process-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0,0,0,0.1);
    margin-bottom: 10px;
    line-height: 1;
}

.process-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-desc {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.7);
}

.project-gallery-section {
    padding: 80px 0 80px 5%;
    background-color: var(--color-beige);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.project-gallery-header {
    margin-bottom: 40px;
}

.project-gallery-title {
    font-size: 2rem;
    font-weight: 900;
}

.project-gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-right: 5%;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) var(--color-beige);
}

.project-gallery-item {
    min-width: 70vw;
    background-color: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

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

.project-video-container {
    width: 100%;
    max-width: 90vw;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.project-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-cta-section {
    padding: 80px 5%;
    background-color: var(--color-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 60px;
}

.cta-text-side {
    max-width: 500px;
}

.project-nav-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-nav-projects {
    background-color: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-nav-projects:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .project-hero {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }
    .project-hero-left, .project-hero-right {
        width: 100% !important;
    }
    .project-hero-left {
        min-height: 40vh !important;
    }
    .project-hero-right {
        padding: 40px 6% !important;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .project-gallery-item {
        min-width: 90vw;
    }
    .cta-content-row {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* Star Particles */
.star-particle {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--color-orange);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 9998;
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* =========================================
   ITALIAN TABLE & FLIPBOOK + CINEMATIC SHOWCASE (IL SAPORE)
   ========================================= */
.italian-table-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle, #FFFBF2 0%, #F5EFEB 100%);
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Subtle fabric grid lines on the table background */
.italian-table-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(215, 90, 49, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(215, 90, 49, 0.03) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.table-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Scattered elements around the screen */
.scattered-ingredient {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.scattered-ingredient:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 15px 25px rgba(215, 90, 49, 0.25));
}

.scattered-ingredient.tomato { top: 12%; left: 8%; width: 110px; }
.scattered-ingredient.basil { top: 15%; right: 7%; width: 90px; }
.scattered-ingredient.cheese { bottom: 12%; left: 6%; width: 100px; }
.scattered-ingredient.pasta { bottom: 15%; right: 8%; width: 120px; }

/* Pulse animation for the scattered elements to draw attention */
.scattered-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(215, 90, 49, 0.3);
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scattered-ingredient:hover .scattered-glow {
    opacity: 1;
}

@keyframes rotateGlow {
    0% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* Flipbook Frame & Layout */
.flipbook-outer {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.flipbook-container {
    width: 100%;
    aspect-ratio: 1.45 / 1; /* Double page landscape format */
    background-color: #EADEC9;
    border-radius: 6px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.18), inset 0 0 20px rgba(0,0,0,0.05);
    padding: 18px;
    box-sizing: border-box;
    position: relative;
    perspective: 1500px;
}

/* The Book Spine line in center */
.flipbook-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 20;
    box-shadow: inset 1px 0 3px rgba(0,0,0,0.15);
}

.book-spread {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #FFFBF2;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.03);
}

/* Page half sheets */
.book-left-page, .book-right-page {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    padding: 8% 6%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease, opacity 0.5s ease;
}

.book-left-page {
    border-right: 1px solid rgba(0,0,0,0.06);
    box-shadow: inset -15px 0 30px rgba(0,0,0,0.04);
}

.book-right-page {
    box-shadow: inset 15px 0 30px rgba(0,0,0,0.04);
}

/* CSS Page Flipping Animation */
.page-flip-sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    background-color: #FFFBF2;
    z-index: 15;
    box-shadow: 15px 0 30px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    pointer-events: none;
    opacity: 0;
}

.page-flip-sheet.flipping-left {
    opacity: 1;
    transform: rotateY(-180deg);
}

/* Flipbook navigation buttons */
.flipbook-nav {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.flip-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    color: var(--color-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.flip-btn:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(215, 90, 49, 0.2);
}

.flip-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Content styles inside pages */
.book-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-dark-red);
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.book-subtitle {
    font-size: 0.75rem;
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.book-text {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.75);
    line-height: 1.5;
    margin-bottom: 15px;
}

.book-cover-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.page-num {
    position: absolute;
    bottom: 5%;
    font-size: 0.65rem;
    color: rgba(0,0,0,0.3);
    font-weight: 700;
}

.book-left-page .page-num { left: 8%; }
.book-right-page .page-num { right: 8%; }

/* =========================================
   CINEMATIC FULL-WIDTH EXPANSIVE SHOWCASE
   ========================================= */
.cinematic-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: var(--color-beige);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow-y: auto;
}

.cinematic-panel.active-showcase {
    transform: translateY(0);
}

/* Widescreen Cinematic Header Image */
.cinematic-banner {
    width: 100%;
    height: 55vh;
    position: relative;
    overflow: hidden;
    background-color: var(--color-black);
}

.cinematic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transform: scale(1.05);
    transition: transform 10s linear;
}

.cinematic-panel.active-showcase .cinematic-img {
    transform: scale(1);
}

/* Dark gradient overlay for text legibility */
.cinematic-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.cinematic-header-content {
    position: absolute;
    bottom: 10%;
    left: 8%;
    right: 8%;
    color: var(--color-white);
}

.cinematic-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cinematic-main-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* Close button for cinematic showcase */
.cinematic-close-btn {
    position: absolute;
    top: 4%;
    right: 4%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cinematic-close-btn:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    transform: scale(1.05) rotate(90deg);
}

/* Body / Details Section inside Cinematic Panel */
.cinematic-details {
    padding: 60px 8%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    background-color: var(--color-beige);
}

.cinematic-body-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-dark-red);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cinematic-body-text p {
    font-size: 1.1rem;
    color: rgba(0,0,0,0.75);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Technical Design Sideboard */
.cinematic-specs {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.spec-item {
    border-left: 3px solid var(--color-orange);
    padding-left: 15px;
}

.spec-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
}

@media (max-width: 900px) {
    .italian-table-section {
        padding: 60px 0;
    }
    
    .scattered-ingredient {
        display: none; /* Hide scattered items on mobile to prevent clutter */
    }
    
    .flipbook-container {
        aspect-ratio: auto;
        height: auto;
        padding: 10px;
    }
    
    .book-spread {
        flex-direction: column;
    }
    
    .book-left-page, .book-right-page {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    
    .book-left-page {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    
    .cinematic-details {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 5%;
    }
    
    .cinematic-banner {
        height: 40vh;
    }
}

/* =========================================
   FLOATING STARS
   ========================================= */
.floating-star {
    position: fixed;
    pointer-events: none;
    z-index: 1; /* Floating right above background */
    opacity: 0.8;
    animation: floatStarAnim infinite alternate ease-in-out;
}

@keyframes floatStarAnim {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(45deg); }
    66% { transform: translate(-10px, 15px) rotate(90deg); }
    100% { transform: translate(10px, -10px) rotate(135deg); }
}

/* =========================================
   FEATURED WORKS ZIG-ZAG (HOME)
   ========================================= */
.featured-works-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 60px;
}

.featured-work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Alternating rows */
.featured-work-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.featured-work-item:nth-child(even) .featured-work-img-wrapper {
    order: 2;
}

.featured-work-item:nth-child(even) .featured-work-info {
    order: 1;
}

/* =========================================
   FEATURED PROJECT INNER HERO (JERARQUÍA 2)
   ========================================= */
.project-hero-featured {
    width: 100vw;
    margin-top: 80px; /* Space for topbar */
    display: flex;
    flex-direction: column;
}

.featured-hero-image-wrapper {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background-color: var(--color-beige);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.featured-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
    align-items: flex-start;
}

.featured-hero-title-area h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-dark-red);
    letter-spacing: -1px;
    margin: 10px 0;
}

.featured-hero-desc-area p {
    font-size: 1.2rem;
    color: rgba(28,28,28,0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Old masonry rules removed to avoid conflicts */

/* =========================================
   ADVERTISING GALLERY (NOVECENTO)
   ========================================= */
.advertising-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 100px;
}

.ad-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(0,0,0,0.03);
    position: relative;
}

.ad-banner {
    grid-column: span 2;
    height: 400px;
}

.ad-flyer {
    grid-column: span 1;
    aspect-ratio: 3/4; /* Vertical format for flyers */
}

.ad-tshirt {
    grid-column: span 2;
    height: 600px;
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ad-item:hover .ad-img {
    transform: scale(1.03);
}

.featured-work-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #ddd;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.featured-work-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.featured-work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.featured-work-img-wrapper:hover .featured-work-img {
    transform: scale(1.05);
}

.featured-work-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-work-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0 20px 0;
    letter-spacing: -1px;
}

.featured-work-desc {
    font-size: 1.1rem;
    color: rgba(28,28,28,0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-beige); /* Beige background */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Slide up transition */
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    overflow: hidden;
    cursor: none !important;
}

.preloader.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.preloader-name-img {
    width: 80vw;
    max-width: 500px;
    height: auto;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    /* Duración ampliada a 3s para el trazo */
    animation: drawName 3s cubic-bezier(0.7, 0, 0.3, 1) forwards 0.5s; 
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Efecto al salir el nombre */
.preloader.name-out .preloader-name-img {
    transform: scale(1.15);
    opacity: 0;
}

@keyframes drawName {
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* =========================================
   FIGMA EMBED
   ========================================= */
.project-figma-section {
    padding: 40px 0;
}
.figma-embed-container {
    width: 100%;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.figma-embed-container iframe {
    width: 100%;
    height: 650px;
    border: none;
}

/* =========================================
   YUMPU EMBED
   ========================================= */
.project-yumpu-section {
    padding: 40px 0;
}
.yumpu-embed-container {
    width: 100%;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.yumpu-embed-container iframe {
    width: 100%;
    height: 850px;
    border: none;
}

/* =========================================
   YOUTUBE FALLBACK
   ========================================= */
.youtube-fallback {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.youtube-fallback:hover {
    transform: translateY(-5px);
}
.youtube-fallback img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.youtube-fallback .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 32px;
    padding-left: 6px; /* center the play triangle */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.youtube-fallback:hover .play-overlay {
    background-color: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* =========================================
   MASONRY GRID (PORTFOLIO ILUSTRATIVO)
   ========================================= */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 5% 20px 0;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.05);
}

/* Imagen que debe verse completa, sin recorte */
.masonry-item--full,
.masonry-item--full:nth-child(n) {
    aspect-ratio: unset !important;
}

.masonry-item--full .masonry-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 900px) {
    .featured-works-list {
        gap: 60px;
    }
    
    .featured-work-item, .featured-work-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-work-item:nth-child(even) .featured-work-img-wrapper {
        order: 1;
    }
    
    .featured-work-item:nth-child(even) .featured-work-info {
        order: 2;
    }
    
    .featured-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 5%;
    }
    
    .featured-hero-image-wrapper {
        height: 50vh;
    }
    
    .masonry-grid {
        column-count: 1;
    }
    
    .advertising-grid {
        grid-template-columns: 1fr;
    }
    .ad-banner, .ad-flyer, .ad-tshirt {
        grid-column: span 1;
        height: auto;
        aspect-ratio: 4/3;
    }
    .ad-flyer {
        aspect-ratio: 3/4;
    }
}
/* =========================================
   EXPLODED ISOMETRIC VIEW (IL SAPORE)
   ========================================= */
.exploded-view-section {
    height: 180vh; /* creates scrolling room */
    position: relative;
    background-color: var(--color-beige);
}
.exploded-view-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.exploded-view-header {
    position: absolute;
    top: 10%;
    left: 5%;
    max-width: 400px;
    z-index: 10;
}
.exploded-view-title {
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0;
}
.exploded-scene {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    transform: translateY(25px);
}
.exploded-wrapper {
    position: relative;
    width: 62vw;
    max-width: 780px;
    aspect-ratio: 1.414 / 1; /* Horizontal double page spread approx */
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(-35deg);
}
.exploded-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth scrubbing */
}
.layer-grid {
    background-color: transparent;
    box-shadow: none;
}
.layer-text, .layer-art {
    background: transparent;
    pointer-events: none;
}
.exploded-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05); /* Slight oversize to pop */
}
/* =========================================
   THEME DARK (IL SAPORE)
   ========================================= */
.theme-dark.bg-dark-red {
    background-color: var(--color-red-dark) !important;
    color: var(--color-beige);
}

.theme-dark .project-hero,
.theme-dark .project-hero-right,
.theme-dark .project-topbar,
.theme-dark .project-yumpu-section,
.theme-dark .project-cta-section,
.theme-dark .project-process,
.theme-dark .exploded-view-section {
    background-color: transparent !important;
}

.theme-dark .project-topbar-link {
    color: var(--color-beige) !important;
    background-color: transparent !important;
}

.theme-dark .project-topbar-logo {
    /* Convert black logo to beige-ish white */
    filter: brightness(0) invert(0.9) sepia(0.2) hue-rotate(340deg) saturate(2);
}

.theme-dark .project-title,
.theme-dark .process-number,
.theme-dark .process-title,
.theme-dark .exploded-view-title,
.theme-dark .project-gallery-title {
    color: var(--color-beige) !important;
}

.theme-dark .project-description,
.theme-dark .process-desc,
.theme-dark .exploded-view-intro {
    color: rgba(238, 234, 229, 0.85) !important;
}

.theme-dark .process-grid {
    border-top: 1px solid rgba(238, 234, 229, 0.2);
}

.theme-dark .process-item {
    border-right: 1px solid rgba(238, 234, 229, 0.2) !important;
}
.theme-dark .process-item:last-child {
    border-right: none !important;
}

.theme-dark .project-cta-section {
    border-top: 1px solid rgba(238, 234, 229, 0.2);
}

}
.layer-text, .layer-art {
    background: transparent;
    pointer-events: none;
}
.exploded-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05); /* Slight oversize to pop */
}
/* =========================================
   THEME DARK (IL SAPORE)
   ========================================= */
.theme-dark.bg-dark-red {
    background-color: var(--color-red-dark) !important;
    color: var(--color-beige);
}

.theme-dark .project-hero,
.theme-dark .project-hero-right,
.theme-dark .project-topbar,
.theme-dark .project-yumpu-section,
.theme-dark .project-cta-section,
.theme-dark .project-process,
.theme-dark .exploded-view-section {
    background-color: transparent !important;
}

.theme-dark .project-topbar-link {
    color: var(--color-beige) !important;
    background-color: transparent !important;
}

.theme-dark .project-topbar-logo {
    /* Convert black logo to beige-ish white */
    filter: brightness(0) invert(0.9) sepia(0.2) hue-rotate(340deg) saturate(2);
}

.theme-dark .project-title,
.theme-dark .process-number,
.theme-dark .process-title,
.theme-dark .exploded-view-title,
.theme-dark .project-gallery-title {
    color: var(--color-beige) !important;
}

.theme-dark .project-description,
.theme-dark .process-desc,
.theme-dark .exploded-view-intro {
    color: rgba(238, 234, 229, 0.85) !important;
}

.theme-dark .process-grid {
    border-top: 1px solid rgba(238, 234, 229, 0.2);
}

.theme-dark .process-item {
    border-right: 1px solid rgba(238, 234, 229, 0.2) !important;
}
.theme-dark .process-item:last-child {
    border-right: none !important;
}

.theme-dark .project-cta-section {
    border-top: 1px solid rgba(238, 234, 229, 0.2);
}

.theme-dark .project-hero,
.theme-dark .project-process {
    border-bottom: 1px solid rgba(238, 234, 229, 0.1) !important;
}

.theme-dark .btn-nav-projects {
    border-color: var(--color-beige) !important;
    color: var(--color-beige) !important;
    background-color: transparent !important;
}
.theme-dark .btn-nav-projects:hover {
    background-color: var(--color-beige) !important;
    color: var(--color-red-dark) !important;
    box-shadow: 0 4px 12px rgba(239,234,230,0.2);
}

/* =========================================
   HERO MINIMALISTA & MOCKUPS FLOTANTES
   ========================================= */
.project-hero-minimal {
    padding: 120px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    justify-content: center;
}

.floating-mockups-section {
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    margin-bottom: 80px;
}

.floating-mockup {
    position: absolute;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border-radius: 6px;
    will-change: transform;
}

/* Mockup 1: Cortado a la derecha, grande */
.mockup-1 {
    width: 55vw;
    max-width: 800px;
    right: -10vw;
    top: 15%;
    z-index: 2;
}

/* Mockup 2: Flotando a la izquierda, más chico */
.mockup-2 {
    width: 35vw;
    max-width: 500px;
    left: -5vw;
    top: 55%;
    z-index: 3;
}

/* Mockup 3: Detalle flotante en el centro-derecha */
.mockup-3 {
    width: 25vw;
    max-width: 400px;
    right: 15vw;
    bottom: -15%;
    z-index: 1;
    box-shadow: none; /* Porque es un dibujo PNG transparente */
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

@media (max-width: 900px) {
    .floating-mockups-section {
        height: 80vh;
    }
    .mockup-1 { width: 80vw; right: -20vw; }
    .mockup-2 { width: 60vw; left: -10vw; top: 65%; }
    .mockup-3 { width: 50vw; right: 5vw; }
}

/* =========================================
   FINAL REVISIONS IL SAPORE
   ========================================= */
.theme-dark .project-subtitle {
    color: var(--color-beige) !important;
    opacity: 0.8;
}

.exploded-view-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-mockups-section {
    height: 250vh !important;
}

.mockup-1 {
    width: 50vw !important;
    max-width: 750px !important;
    right: -2vw !important;
    left: auto !important;
    top: 5% !important;
}

.mockup-2 {
    width: 45vw !important;
    max-width: 700px !important;
    right: 5vw !important;
    left: auto !important;
    top: 40% !important;
}

.mockup-7 {
    width: 35vw !important;
    max-width: 500px !important;
    left: 5vw !important;
    right: auto !important;
    top: 15% !important;
    z-index: 2 !important;
    position: absolute;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border-radius: 6px;
    will-change: transform;
}

.mockup-3 {
    width: 46vw !important;
    max-width: 680px !important;
    left: 40% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: 28% !important;
    z-index: 3 !important;
    position: absolute;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border-radius: 6px;
    will-change: transform;
}

.mockup-4 {
    width: 52vw !important;
    max-width: 780px !important;
    right: 0vw !important;
    left: auto !important;
    top: 78% !important;
}

.mockup-5 {
    width: 42vw !important;
    max-width: 650px !important;
    left: 10vw !important;
    right: auto !important;
    top: 88% !important;
}

.star-float {
    filter: invert(1) brightness(2) !important;
    box-shadow: none !important;
    position: absolute;
    z-index: 5;
    will-change: transform;
}

/* Center exploded view text globally */
.theme-dark .exploded-view-header {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: none !important;
    width: 100% !important;
    top: 5% !important;
}

/* Add central mockups */
.mockup-6 {
    width: 40vw !important;
    max-width: 600px !important;
    left: 2vw !important;
    right: auto !important;
    top: 52% !important;
    z-index: 4 !important;
}

.mockup-8 {
    width: 48vw !important;
    max-width: 720px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 65% !important;
    z-index: 5 !important;
    position: absolute;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border-radius: 6px;
    will-change: transform;
}

/* Reduce gap below exploded view */
.project-yumpu-section {
    padding-top: 0px !important;
    margin-top: -15vh !important; /* Pull it up significantly */
    position: relative;
    z-index: 20;
}

/* New left mockup */
.mockup-7 {
    width: 65vw !important;
    max-width: 900px !important;
    left: -15vw !important;
    top: 5% !important;
    z-index: 3 !important;
}

/* Fix process item margins */
.theme-dark .process-item {
    padding-right: 40px;
}
.theme-dark .process-item:last-child {
    padding-right: 0;
}
@media (max-width: 1024px) {
    .theme-dark .process-item {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(238, 234, 229, 0.2) !important;
        padding-bottom: 30px;
        margin-bottom: 10px;
    }
    .theme-dark .process-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* Proportional Fluid Overrides for All 8 Mockups on Laptops & MacBooks */
@media (max-width: 1600px) {
    .floating-mockups-section {
        height: 230vh !important;
        margin-bottom: 40px !important;
    }
    
    /* Ensure all 8 mockups and stars are visible */
    .floating-mockups-section .mockup-1,
    .floating-mockups-section .mockup-2,
    .floating-mockups-section .mockup-3,
    .floating-mockups-section .mockup-4,
    .floating-mockups-section .mockup-5,
    .floating-mockups-section .mockup-6,
    .floating-mockups-section .mockup-7,
    .floating-mockups-section .mockup-8,
    .floating-mockups-section .star-float {
        display: block !important;
    }
    
    /* Scale down the widths to fit comfortably on Mac screens without colliding */
    .mockup-1 {
        width: 38vw !important;
        right: -2vw !important;
        left: auto !important;
        top: 5% !important;
    }
    
    .mockup-7 {
        width: 46vw !important;
        left: -8vw !important;
        right: auto !important;
        top: 4% !important;
    }
    
    .mockup-3 {
        width: 35vw !important;
        left: 45% !important;
        top: 25% !important;
        transform: translateX(-50%) !important;
    }
    
    .mockup-2 {
        width: 36vw !important;
        right: 4vw !important;
        left: auto !important;
        top: 36% !important;
    }
    
    .mockup-6 {
        width: 31vw !important;
        left: 2vw !important;
        right: auto !important;
        top: 48% !important;
    }
    
    .mockup-8 {
        width: 37vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 60% !important;
    }
    
    .mockup-4 {
        width: 40vw !important;
        right: 0vw !important;
        left: auto !important;
        top: 72% !important;
    }
    
    .mockup-5 {
        width: 33vw !important;
        left: 8vw !important;
        right: auto !important;
        top: 82% !important;
    }
}

/* Proportional Fluid Overrides for All 8 Mockups on Mobiles */
@media (max-width: 768px) {
    .floating-mockups-section {
        height: 180vh !important;
    }
    
    .mockup-1 {
        width: 50vw !important;
        right: -4vw !important;
        top: 6% !important;
    }
    
    .mockup-7 {
        width: 58vw !important;
        left: -10vw !important;
        top: 4% !important;
    }
    
    .mockup-3 {
        width: 46vw !important;
        left: 46% !important;
        top: 25% !important;
    }
    
    .mockup-2 {
        width: 47vw !important;
        right: 2vw !important;
        top: 36% !important;
    }
    
    .mockup-6 {
        width: 42vw !important;
        left: 1vw !important;
        top: 48% !important;
    }
    
    .mockup-8 {
        width: 48vw !important;
        left: 50% !important;
        top: 60% !important;
    }
    
    .mockup-4 {
        width: 50vw !important;
        right: 0vw !important;
        top: 72% !important;
    }
    
    .mockup-5 {
        width: 44vw !important;
        left: 5vw !important;
        top: 82% !important;
    }
}

/* =========================================
   PREMIUM MASONRY TEXT CARD STYLES (SUBTLE)
   ========================================= */
.masonry-text-card {
    background-color: transparent !important;
    border: none !important;
    padding: 10px 5px !important;
    border-radius: 0 !important;
    display: inline-block !important;
    width: 100% !important;
    break-inside: avoid !important;
    margin-bottom: 25px !important;
    box-shadow: none !important;
    transition: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.masonry-text-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.masonry-text-number {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--color-orange) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.masonry-text-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--color-dark) !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.masonry-text-desc {
    font-size: 0.82rem !important;
    color: #666666 !important;
    line-height: 1.55 !important;
}

/* =========================================
   EXPLODED VIEW HEADER DECONSTRUCTION FIX
   ========================================= */
.exploded-view-header,
.theme-dark .exploded-view-header {
    position: absolute !important;
    top: 80px !important;
    left: 5% !important;
    transform: none !important;
    max-width: none !important;
    width: 90% !important;
    text-align: left !important;
    display: block !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: flex-start !important;
}

.exploded-view-title,
.theme-dark .exploded-view-title {
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin: 10px 0 0 0 !important;
    color: var(--color-dark) !important;
    text-align: left !important;
}

/* Specific theme-dark exploded title fix if needed */
.theme-dark .exploded-view-title {
    color: var(--color-beige) !important;
}

@media (max-width: 900px) {
    .masonry-text-card {
        padding: 8px 4px !important;
    }
    .masonry-text-title {
        font-size: 0.9rem !important;
    }
    .exploded-view-header,
    .theme-dark .exploded-view-header {
        top: 40px !important;
    }
    .exploded-scene {
        transform: translateY(15px) !important;
    }
    .exploded-wrapper {
        width: 82vw !important;
        max-width: none !important;
    }
}

/* =========================================
   LIGHTBOX MODAL PREMIUM
   ========================================= */
.illustration-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(18, 18, 18, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease !important;
}

.illustration-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-close {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    background: transparent !important;
    border: none !important;
    color: var(--color-beige) !important;
    font-size: 3rem !important;
    cursor: none !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    z-index: 10000 !important;
}

.modal-close:hover {
    transform: rotate(90deg) !important;
    color: var(--color-orange) !important;
}

.modal-content {
    display: flex !important;
    width: 90vw !important;
    max-width: 1200px !important;
    height: 80vh !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.9) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.illustration-modal.active .modal-content {
    transform: scale(1) !important;
}

.modal-left {
    flex: 1.2 !important;
    background: #fdfaf6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px !important;
    overflow: hidden !important;
}

.modal-left img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.modal-right {
    flex: 0.8 !important;
    padding: 60px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(0,0,0,0.05) !important;
}

.modal-text-wrapper {
    flex-grow: 1 !important;
}

.modal-title {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--color-dark) !important;
    margin: 15px 0 20px 0 !important;
    line-height: 1.15 !important;
}

.modal-desc {
    font-size: 1rem !important;
    color: #555555 !important;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.modal-metadata {
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding-top: 25px !important;
}

.meta-item {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
    font-size: 0.95rem !important;
}

.meta-label {
    color: #888888 !important;
    font-weight: 500 !important;
}

.meta-value {
    color: var(--color-dark) !important;
    font-weight: 700 !important;
}

.modal-nav {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 30px !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding-top: 30px !important;
}

.modal-nav-btn {
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: var(--font-main) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--color-dark) !important;
    cursor: none !important;
    transition: all 0.3s ease !important;
}

.modal-nav-btn:hover {
    background: var(--color-orange) !important;
    color: #ffffff !important;
    border-color: var(--color-orange) !important;
}

@media (max-width: 900px) {
    .modal-content {
        flex-direction: column !important;
        height: 90vh !important;
    }
    .modal-left {
        flex: 1 !important;
        padding: 20px !important;
    }
    .modal-right {
        flex: 1.2 !important;
        padding: 30px !important;
    }
    .modal-title {
        font-size: 1.6rem !important;
        margin: 10px 0 !important;
    }
    .modal-desc {
        margin-bottom: 20px !important;
        font-size: 0.9rem !important;
    }
}

/* =========================================
   PINTEREST PROJECTS GRID (FULL-WIDTH)
   ========================================= */
.container.full-width {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 4% !important;
}

.works-grid.pinterest-grid {
    display: block !important;
    column-count: 3;
    column-gap: 20px;
    width: 100% !important;
    margin: 0 auto;
}

.works-grid.pinterest-grid .work-card {
    display: inline-flex !important;
    flex-direction: column !important;
    width: 100% !important;
    break-inside: avoid !important;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.works-grid.pinterest-grid .work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.works-grid.pinterest-grid .work-img {
    width: 100% !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Alturas staggered por tipo de card */
.work-card.h-square .work-img      { aspect-ratio: 1 / 1 !important; }
.work-card.h-portrait-sm .work-img { aspect-ratio: 11 / 12 !important; }
.work-card.h-portrait-lg .work-img { aspect-ratio: 4 / 5 !important; }
.work-card.h-landscape .work-img   { aspect-ratio: 16 / 9 !important; }
.work-card.h-tall .work-img        { aspect-ratio: 6 / 7 !important; }

/* Vista activa con filtros (grid de izquierda a derecha) */
.works-grid.pinterest-grid.filter-active {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.works-grid.pinterest-grid.filter-active .work-card {
    display: flex !important;
    margin-bottom: 0 !important;
}

@media (max-width: 900px) {
    .works-grid.pinterest-grid {
        column-count: 2;
        column-gap: 16px;
    }
    .works-grid.pinterest-grid.filter-active {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .works-grid.pinterest-grid {
        column-count: 1;
    }
    .works-grid.pinterest-grid.filter-active {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   PROJECT GALLERIES — NATURAL MASONRY
   Proporciones naturales originales, sin recorte ni zoom
   ========================================= */

.project-gallery-section .masonry-grid .masonry-item,
.project-gallery-section .masonry-grid .masonry-item:nth-child(n) {
    aspect-ratio: unset !important;
}

.project-gallery-section .masonry-grid .masonry-img {
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    display: block;
}

/* masonry-item--full: proporciones naturales, sin recorte, sin espacio blanco */
.masonry-item--full,
.masonry-item--full:nth-child(n) {
    aspect-ratio: unset !important;
    overflow: hidden !important;
}

.masonry-item--full .masonry-img {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
}

/* Mi Vida Ilustrada: sin stagger forzado, proporciones naturales */
.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-item,
.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-item:nth-child(n) {
    aspect-ratio: unset !important;
}

.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-img {
    height: auto !important;
    object-fit: unset !important;
}

/* =========================================
   NOVECENTO FULL-WIDTH GRID
   ========================================= */
.novecento-gallery-fullwidth {
    width: 100%;
    padding: 40px 0;
}

.novecento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 30px;
}

.novecento-img-item {
    overflow: hidden;
    line-height: 0;
}

.novecento-img-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.novecento-img-item:hover img {
    transform: scale(1.03);
}

/* Primera imagen ocupa todo el ancho */
.novecento-img-item:first-child {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .novecento-grid {
        grid-template-columns: 1fr;
    }
    .novecento-img-item:first-child {
        grid-column: 1;
    }
}


/* =========================================
   MI VIDA ILUSTRADA DYNAMIC MASONRY
   ========================================= */
.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-item,
.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-item:nth-child(n) {
    aspect-ratio: auto !important;
    overflow: hidden !important;
}

.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transform: none !important;
    transform-origin: center center !important;
    transition: transform 0.5s ease !important;
}

.portfolio-ilustrativo-page .project-gallery-section .masonry-grid .masonry-item:hover .masonry-img {
    transform: scale(1.05) !important;
}

/* =========================================
   MINIMALIST CENTERED PROJECT HERO
   ========================================= */
.project-hero-minimal {
    padding: 100px 5% 50px 5% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.project-hero-minimal .project-title {
    font-size: 3.8rem !important;
    font-weight: 900 !important;
    margin: 20px 0 15px 0 !important;
    line-height: 1.1 !important;
    color: var(--color-dark) !important;
}

.project-hero-minimal .project-description {
    font-size: 1.2rem !important;
    line-height: 1.85 !important;
    color: #555555 !important;
    max-width: 700px !important;
    margin: 0 auto 35px auto !important;
}

.project-hero-minimal .project-tags {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .project-hero-minimal {
        padding: 60px 5% 30px 5% !important;
    }
    .project-hero-minimal .project-title {
        font-size: 2.8rem !important;
    }
    .project-hero-minimal .project-description {
        font-size: 1.05rem !important;
    }
}

/* =========================================
   GALLERY HELPER NOTICE
   ========================================= */
.portfolio-ilustrativo-page .project-gallery-section {
    position: relative !important;
}

.gallery-helper-notice {
    position: absolute !important;
    right: 5% !important;
    top: 120px !important; /* Adjusted for the even larger head size */
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 10 !important;
    transform: rotate(-3.5deg) !important; /* Artistic hand-pinned tilt */
    transform-origin: right center !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Premium elastic bounce transition */
}

.gallery-helper-notice:hover {
    transform: rotate(-1.5deg) scale(1.04) !important; /* Playful hover correction and pop */
}

.helper-text {
    font-family: var(--font-main) !important;
    font-size: 0.9rem !important; /* Restored to original */
    font-weight: 700 !important;
    text-transform: lowercase !important; /* Keep the relaxed lowercase vibe but with Satoshi */
    color: var(--color-dark) !important;
    background-color: #FFFDF0 !important; /* Beautiful warm artist paper parchment tone */
    padding: 8px 18px !important; /* Restored to original */
    border-radius: 14px 14px 3px 14px !important; /* Asymmetrical hand-cut paper styling */
    border: 1px solid rgba(213, 94, 47, 0.15) !important; /* Soft touch of brand orange on the border */
    box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    letter-spacing: -0.01em !important;
}

.helper-illustration-placeholder {
    width: 140px !important; /* Increased from 110px to make head even larger */
    height: 140px !important; /* Increased from 110px to make head even larger */
    border-radius: 0 !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    flex-shrink: 0 !important;
    transform: rotate(4deg) !important;
    transition: transform 0.4s ease !important;
}

.gallery-helper-notice:hover .helper-illustration-placeholder {
    transform: rotate(-4deg) scale(1.05) !important;
}

.helper-illustration-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
}

@media (max-width: 900px) {
    .gallery-helper-notice {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin-top: -10px !important;
        margin-bottom: 30px !important;
        justify-content: flex-start !important;
        padding-right: 5% !important;
        transform: rotate(-1.5deg) !important; /* Gentle mobile tilt */
        transform-origin: center center !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .helper-text {
        font-size: 0.8rem !important; /* Restored to original */
        padding: 8px 14px !important; /* Restored to original */
        border-radius: 12px 12px 3px 12px !important;
        max-width: calc(100% - 110px) !important; /* Adjusted layout space for larger mobile head */
        line-height: 1.3 !important;
    }
    
    .helper-illustration-placeholder {
        width: 95px !important; /* Increased from 70px to make head even larger on mobile */
        height: 95px !important; /* Increased from 70px to make head even larger on mobile */
        border-radius: 10px !important;
        border: 2px solid var(--color-orange) !important;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
}

/* =========================================
   PROMINENT PROJECT BUTTONS
   ========================================= */
.btn-behance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-orange);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(213, 94, 47, 0.15);
}

.btn-behance:hover {
    background-color: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 18, 26, 0.25);
}

/* =========================================
   PROJECT HERO GIF BANNER (MI VIDA ILUSTRADA)
   ========================================= */
.project-hero-banner {
    background-image: url('../assets/img/GIF.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-hero-banner .project-hero-minimal {
    padding: 90px 5% 50px 5% !important;
}

.project-hero-banner .project-hero-minimal .project-title {
    color: var(--color-white) !important;
}

.project-hero-banner .project-hero-minimal .project-description {
    color: var(--color-white) !important;
}



