/* VITRUVI STUDIO - MAIN STYLESHEET
   Fixed: Margins, Padding & Premium UX
*/

/* --- 1. VARIABLES & CONFIG --- */
:root {
    /* Paleta Oficial */
    --carbon: #0F1A24;
    --carbon-soft: #121C25;
    --arena: #EDE7DF;
    --grey-editorial: #E5E8EB;
    --text-light: #F7F7F3;
    --text-dark: #0F1A24;
    --gold-muted: #D6C4A4;

    /* Tipografía */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Espaciados */
    --margin-desktop: 160px;
    --margin-mobile: 32px;
    --section-padding: 160px;

    /* UI Elements */
    --nav-height: 80px;
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--carbon);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    /* REMOVED: opacity: 0; -> Fix LCP & SEO Rendering */
}

img,
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: opacity 0.3s ease;
}

/* Contenedor Global */
.container-v {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
    width: 100%;
}

/* --- 3. COMPONENTS: PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--carbon);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
    opacity: 0;
}

/* --- 4. NAVIGATION --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px var(--margin-desktop);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    transition: color 0.3s ease, padding 0.3s ease;
}

.nav-logo {
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
    text-decoration: none;
    color: inherit;
    z-index: 101;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 30px;
}

.nav-bar[style*="color: rgb(15, 26, 36)"] .lang-switcher {
    border-left-color: rgba(15, 26, 36, 0.2);
}

.lang-link {
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.lang-link:hover {
    opacity: 1;
}

.lang-link.active {
    opacity: 1;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
}

.lang-sep {
    opacity: 0.2;
}

@media (max-width: 1024px) {
    .lang-switcher {
        display: none;
        /* Se mostrará dentro del menú móvil si es necesario, o lo ocultamos en v1 */
    }

    /* Opción: Mostrarlo en el mobile-menu-overlay */
}

/* --- 5. SECTIONS --- */

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 36, 0.35);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding: 0 var(--margin-mobile);
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    overflow: hidden;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 580px;
    margin: 0 auto 3rem;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
}

/* Manifesto - FIXED MARGINS */
.manifesto {
    background-color: var(--carbon-soft);
    min-height: 100vh;
    /* CORREGIDO: Usamos padding-top/bottom para respetar los lados */
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);

    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 8rem;
}

.manifesto-text h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.2;
    margin-bottom: 3rem;
}

.manifesto-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 520px;
    font-weight: 300;
}

.quote {
    margin-top: 4rem;
    padding-left: 24px;
    border-left: 1px solid var(--gold-muted);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-muted);
    font-size: 1.4rem;
}

.manifesto-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

/* Selected Works - FIXED MARGINS */
.works {
    background-color: var(--arena);
    color: var(--text-dark);
    /* CORREGIDO */
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.work-item {
    margin-bottom: 200px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-header {
    margin-top: 2.5rem;
}

.work-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.work-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.7;
}

.work-meta {
    display: inline-block;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.work-hero-img {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.work-hero-img img {
    transform: scale(1.1);
}

.work-split {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 6rem;
    align-items: center;
}

.work-video-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.work-diptych-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.diptych-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

/* The Problem - FIXED MARGINS */
.problem {
    background-color: var(--grey-editorial);
    color: var(--text-dark);
    /* CORREGIDO */
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.problem-text h2 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.problem-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.problem-visuals {
    display: flex;
    gap: 24px;
}

.pv-item {
    flex: 1;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.pv-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

/* The Method - FIXED MARGINS */
.method {
    background-color: #fff;
    color: var(--text-dark);
    /* CORREGIDO */
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.method-col {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 32px;
}

.method-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.method-col p {
    font-size: 1.1rem;
    opacity: 0.7;
}

.method-cta {
    text-align: right;
    display: block;
    overflow: hidden;
}

.method-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    display: inline-block;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

/* Boutique & CTA */
.boutique {
    background-color: var(--carbon);
    color: var(--text-light);
    padding: 240px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boutique h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 3rem;
}

.boutique p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 650px;
    margin-bottom: 6rem;
    line-height: 1.8;
}

.status-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    /* Updates for CRO */
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-outline {
    display: inline-block;
    padding: 24px 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.5s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Footer */
footer {
    background-color: #0A131A;
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 5rem;
}

.footer-links a {
    margin: 0 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.footer-links a:hover {
    opacity: 1;
}

.cookie-link-footer {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.cookie-link-footer:hover {
    opacity: 1;
}

/* --- 6. COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    max-width: 520px;
    width: calc(100% - 40px);
    background: rgba(15, 26, 36, 0.98);
    color: #F7F7F3;
    padding: 24px 26px;
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cookie-btn {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border: 1px solid rgba(247, 247, 243, 0.3);
    background: transparent;
    color: #F7F7F3;
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.cookie-btn-primary {
    background: #F7F7F3;
    color: #0F1A24;
    border-color: #F7F7F3;
}

.cookie-btn:hover {
    background: rgba(247, 247, 243, 0.08);
    border-color: rgba(247, 247, 243, 0.8);
}

.cookie-btn-primary:hover {
    background: #ffffff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal-backdrop.is-visible {
    display: flex;
}

.cookie-modal {
    background: #F5F5F0;
    color: #0F1A24;
    max-width: 640px;
    width: calc(100% - 40px);
    border-radius: 20px;
    padding: 26px 28px 24px;
}

.cookie-modal h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.cookie-modal p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 18px;
}

.cookie-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.cookie-toggle-row:first-of-type {
    border-top: none;
}

.cookie-switch {
    position: relative;
    width: 42px;
    height: 22px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-switch input:checked+.cookie-slider {
    background-color: #0F1A24;
}

.cookie-switch input:checked+.cookie-slider::before {
    transform: translateX(18px);
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* --- 8. PAGE: PROJECTS --- */
/* (Se mantiene igual que original, omitido por brevedad para no romper limites de tokens, el original es correcto) */
.hero-project {
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 800px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
    opacity: 0.7;
}

.hero-img-wrapper {
    margin-top: 80px;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    position: relative;
}

.hero-img-wrapper img {
    transform: scale(1.1);
}

.intro-block {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.intro-title {
    font-size: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.intro-text {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    line-height: 1.4;
    opacity: 0.9;
}

.project-card {
    margin-bottom: 240px;
}

.p-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.p-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.p-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.p-desc {
    text-align: right;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.7;
}

.p-visual {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.visual-hero {
    height: 90vh;
}

.visual-split {
    aspect-ratio: 16/9;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 0;
}

.visual-diptych {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-diptych img {
    aspect-ratio: 3/4;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 40px;
    margin-bottom: 160px;
}

.grid-item {
    position: relative;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease, pointer-events 0s;
}

.grid-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 20px;
}

.grid-img img {
    transition: transform 0.7s ease;
}

.grid-item:hover .grid-img img {
    transform: scale(1.05);
}

.grid-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.grid-info span {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 0.1em;
}

.filters {
    margin-bottom: 80px;
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.filter-item {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.filter-item.active,
.filter-item:hover {
    opacity: 1;
}

.final-block {
    text-align: center;
    padding: 100px 0 200px;
}

.final-block h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.final-block p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}

.cta-section {
    background-color: var(--carbon);
    color: var(--text-light);
    padding: 200px 0;
    text-align: center;
}

@media (max-width: 768px) {

    .intro-block,
    .p-header,
    .visual-split,
    .visual-diptych,
    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .p-desc {
        text-align: left;
        margin-top: 10px;
    }

    .visual-hero {
        height: 60vh;
    }

    .hero-img-wrapper {
        height: 60vh;
    }

    .filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}

/* --- 9. PAGE: PROJECT DETAIL --- */
body.body-editorial {
    background-color: #F9F8F6;
    color: var(--text-dark);
}

body.body-editorial .nav-bar {
    color: var(--text-dark);
}

.hero-detail {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-detail {
    color: var(--text-light);
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-title h1 {
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 300px;
    text-align: right;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.9;
}

.concept-section {
    padding-top: 200px;
    padding-bottom: 200px;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 4rem;
}

.concept-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    display: inline-block;
}

.concept-text {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    line-height: 1.4;
}

.concept-text strong {
    font-weight: 400;
    color: var(--carbon);
}

.gallery-block {
    margin-bottom: 160px;
}

.sec-hero {
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.cinemagraph-container {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    position: relative;
    margin: 160px 0;
}

.materiality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.mat-img {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.mat-desc {
    padding: 40px;
}

.mat-desc h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.full-wide {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.poetic-caption {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    margin: 120px 0;
    opacity: 0.6;
}

.result-section {
    background-color: var(--carbon);
    color: var(--text-light);
    padding: 160px 0;
    text-align: center;
}

.result-data {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.result-quote {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}

.next-project {
    padding: 200px 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.5s;
}

.next-project:hover {
    background-color: #EFECE6;
}

.next-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 20px;
}

.next-title {
    font-size: 4rem;
    font-family: var(--font-serif);
}

@media (max-width: 1024px) {
    .hero-title h1 {
        font-size: 4rem;
    }

    .concept-section {
        grid-template-columns: 1fr;
    }

    .materiality-grid {
        grid-template-columns: 1fr;
    }

    .full-wide {
        width: 100%;
        margin-left: 0 !important;
        height: auto;
        aspect-ratio: 3/4;
    }
}

@media (max-width: 768px) {
    .hero-content-detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-subtitle {
        text-align: left;
        margin-top: 20px;
    }

    .mat-desc {
        padding: 0;
        margin-top: 20px;
    }
}

/* --- 10. PAGE: CONTACT --- */
.contact-hero {
    padding-top: 200px;
    padding-bottom: 80px;
}

.ch-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.ch-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 500px;
}

.form-sec {
    padding-bottom: 160px;
    display: grid;
    grid-template-columns: 0.6fr 0.4fr;
    gap: 100px;
}

.form-group {
    margin-bottom: 40px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    opacity: 0.6;
    cursor: pointer;
}

.form-input,
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-weight: 300;
    transition: 0.3s border-color;
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: #fff;
}

.form-textarea {
    min-height: 100px;
    resize: none;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
}

.form-checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.form-checkbox-wrapper input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #fff;
    transform: scale(0);
    transition: 0.2s transform;
}

.form-checkbox-wrapper input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.legal-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.submit-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 20px 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.info-block {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 60px;
}

.ib-item {
    margin-bottom: 60px;
}

.ib-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 10px;
}

.ib-value {
    font-size: 1.1rem;
    display: block;
    text-decoration: none;
    color: #fff;
    margin-bottom: 5px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.ib-value:hover {
    opacity: 1;
}

.status-msg {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .form-sec {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .info-block {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 60px;
    }
}

/* --- 11. PAGE: METHOD --- */
/* (Se omite contenido idéntico, mantener original) */
.hero-method {
    min-height: 90vh;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hm-title h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 900px;
}

.hm-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 500px;
}

.hm-visual {
    width: 100%;
    height: 60vh;
    margin-top: 80px;
    overflow: hidden;
    position: relative;
}

.intro-sec {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 4rem;
}

.intro-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: inline-block;
}

.intro-copy {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    line-height: 1.5;
}

.pillars-sec {
    padding-bottom: var(--section-padding);
}

.pillar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 160px;
    align-items: center;
}

.pillar-row.reverse {
    direction: rtl;
}

.pillar-row.reverse .pillar-content {
    direction: ltr;
}

.pillar-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pillar-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 450px;
}

.pillar-visual {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.process-list {
    background-color: var(--grey-editorial);
    padding: var(--section-padding) 0;
}

.process-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.step-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.step-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-final {
    background-color: var(--carbon);
    color: var(--text-light);
    padding: 200px 0;
    text-align: center;
}

@media (max-width: 1024px) {

    .intro-sec,
    .pillar-row,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pillar-row {
        margin-bottom: 80px;
    }

    .pillar-row.reverse {
        direction: ltr;
    }
}

/* --- 12. PAGE: PHILOSOPHY --- */
.hero-philo {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hp-text {
    padding-right: 80px;
    padding-left: var(--margin-desktop);
}

.hp-text h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hp-text p {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 400px;
}

.hp-img {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.manifesto-sec {
    padding: 200px var(--margin-desktop);
    text-align: center;
}

.man-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
}

.man-text {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.sensibility-sec {
    padding: 100px var(--margin-desktop);
    background: #EAE8E4;
}

.grid-sens {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.sens-item h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sens-item p {
    opacity: 0.7;
    max-width: 350px;
}

.team-sec {
    padding: 160px var(--margin-desktop);
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 60px;
    align-items: center;
}

.team-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-txt h2 {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.team-txt p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cta-philo {
    background: var(--carbon);
    color: #fff;
    padding: 200px 0;
    text-align: center;
}

@media (max-width: 1024px) {

    .hero-philo,
    .grid-sens,
    .team-sec {
        grid-template-columns: 1fr;
    }

    .hero-philo {
        height: auto;
        padding-bottom: 0;
    }

    .hp-text {
        padding: 150px var(--margin-desktop) 50px;
    }

    .hp-img {
        height: 60vh;
        width: 100%;
    }

    .manifesto-sec {
        padding: 100px var(--margin-desktop);
    }
}

/* --- 13. PAGES: LEGAL --- */
.legal-hero {
    padding-top: 180px;
    padding-bottom: 60px;
}

.legal-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 18px;
    margin-bottom: 28px;
    display: inline-block;
}

.legal-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.legal-subtitle {
    font-size: 1.05rem;
    max-width: 540px;
    opacity: 0.75;
}

.legal-wrapper {
    padding: 40px 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    gap: 70px;
}

.legal-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-meta p {
    margin-bottom: 15px;
}

.legal-meta strong {
    font-weight: 500;
    color: var(--carbon);
}

.legal-meta a {
    text-decoration: underline;
}

.legal-content {
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 40px 0 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.legal-content ul {
    margin: 16px 0 24px 20px;
}

.legal-content li {
    margin-bottom: 8px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-meta {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 30px;
        margin-bottom: 10px;
    }
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 40px;
    font-size: 0.9rem;
    text-align: left;
}

.legal-content th {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 1px solid var(--text-dark);
    padding: 12px 8px;
    opacity: 1;
}

.legal-content td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 8px;
    opacity: 0.8;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

/* --- FIX: FOOTER VISIBILITY --- */
footer,
body.body-editorial footer {
    color: #F7F7F3 !important;
}

footer a,
body.body-editorial footer a,
footer .nav-link,
footer .footer-links a,
footer .cookie-link-footer {
    color: #F7F7F3 !important;
}

footer .footer-tagline,
footer .footer-links a,
footer .cookie-link-footer {
    opacity: 0.6;
}

footer .footer-links a:hover,
footer .cookie-link-footer:hover {
    opacity: 1;
}

/* --- CORRECCIÓN RESPONSIVE Y MENÚ MÓVIL (COMPLETO & PREMIUM) --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--carbon);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
}

.m-link {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-light);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile Toggle: Hidden by default on desktop */
.mobile-toggle {
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --margin-desktop: 60px;
    }

    .nav-bar {
        padding: 30px var(--margin-desktop);
    }

    .nav-menu {
        display: none !important;
    }

    .nav-logo {
        display: none !important;
    }

    .nav-bar.project-nav .nav-logo {
        display: block !important;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        z-index: 10001;
    }

    .mobile-toggle {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 24px;
        width: 60px;
        height: 60px;
        background-color: #0F1A24;
        color: #F7F7F3;
        border-radius: 50%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 10000;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s;
        -webkit-tap-highlight-color: transparent;
        outline: none;
        user-select: none;
    }

    .mobile-toggle span {
        display: block;
        width: 24px;
        height: 1px;
        background-color: currentColor;
        transition: transform 0.4s ease;
    }
}

@media (max-width: 768px) {
    :root {
        --margin-desktop: 24px;
        --section-padding: 100px;
    }

    .m-link {
        font-size: 2.5rem;
    }

    .manifesto,
    .problem,
    .work-split,
    .method-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .manifesto {
        display: flex;
        flex-direction: column-reverse;
    }

    .work-hero-img {
        height: 60vh;
    }

    .problem-visuals {
        flex-direction: column;
    }

    .boutique {
        padding: 160px 0;
    }

    .nav-bar {
        padding: 20px var(--margin-desktop);
    }
}

/* --- BOTÓN DE CIERRE PREMIUM --- */
.close-menu-x {
    position: fixed;
    bottom: 30px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #F7F7F3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10005;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.close-menu-x::before,
.close-menu-x::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background-color: #0F1A24;
    transition: background-color 0.3s ease;
}

.close-menu-x::before {
    transform: rotate(45deg);
}

.close-menu-x::after {
    transform: rotate(-45deg);
}

.close-menu-x:hover {
    transform: rotate(90deg);
}

.close-menu-x:hover::before,
.close-menu-x:hover::after {
    background-color: #000;
}

/* --- 15. CRO & UI UPDATES (NEW) --- */

/* Hero Buttons */
.hero-cta-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 14px 34px;
    background-color: var(--text-light);
    color: var(--carbon);
    border: 1px solid var(--text-light);
    border-radius: 0px;
    /* Editorial feel */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
}

.btn-text-only {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    opacity: 0.8;
    padding: 10px 0;
}

.btn-text-only:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Trust Bar */
.trust-bar {
    background-color: #F9F8F6;
    /* Force light background for visibility */
    padding: 30px var(--margin-desktop);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-right: 2rem;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    gap: 3rem;
    opacity: 0.9;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #333;
    flex-wrap: wrap;
}

@media(max-width: 1024px) {
    .trust-bar {
        padding: 30px var(--margin-mobile);
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .trust-logos {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Nav Conversion Button */
.btn-nav-cta {
    border: 1px solid currentColor;
    padding: 10px 24px;
    border-radius: 99px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background-color: var(--text-light);
    color: var(--carbon) !important;
    border-color: var(--text-light);
}

.btn-nav-cta::after {
    display: none;
    /* Disable standard underline effect */
}

/* Scarcity Conversion Box */
.conversion-box {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-cta {
    font-size: 0.9rem;
    padding: 26px 52px;
    background: rgba(255, 255, 255, 0.05);
}

.big-cta:hover {
    background: var(--text-light);
    color: var(--carbon);
}