@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #1a1f1f;
    --text-muted: #435554;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --border-color: #e0e0e0;
    
    --current-accent: #C0005A;
    
    --davinci-hue: 0deg;
    --davinci-sat: 100%;
    --davinci-bri: 100%;
}

body.dark-mode {
    --bg-color: #0f1111;
    --text-color: #f9f9f9;
    --text-muted: #a0aab2;
    --nav-bg: rgba(15, 17, 17, 0.85);
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.mobile-only { display: inline; }
.desktop-only { display: none; }

html, body, *, *::before, *::after,
a, button, img, p, h1, h2, h3, h4, span, div {
    cursor: none !important;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px !important;
    height: 48px !important;
    z-index: 999999;
    pointer-events: none;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
    transform: translate(-100px, -100px);
    will-change: transform;
}

img, a {
    -webkit-user-drag: none !important;
    pointer-events: auto;
}

body.is-dragging-element * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 5%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.menu-toggle { display: none; }

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--current-accent);
    display: block;
    transition: 0.3s;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo a {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
}
.logo a:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.logo-img {
    width: 150px;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
    filter: var(--logo-filter, none);
}

body.dark-mode .logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--current-accent);
    display: flex;
    align-items: center;
    height: 32px;
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--current-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--current-accent);
    opacity: 0.8;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px; 
    flex: 1;
    justify-content: flex-end;
}

.lang-btn {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid color-mix(in srgb, var(--current-accent) 20%, var(--border-color));
    border-radius: 40px;
    padding: 2px; 
    height: 40px; 
    transition: border-color 0.4s ease;
}

body.accent-white .lang-btn .active-lang {
    color: #000000 !important;
}

.lang-btn span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 14px;
    border-radius: 36px; 
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease; 
    line-height: 1;
}

.lang-btn .active-lang {
    background-color: var(--current-accent);
    color: #ffffff !important; 
}

.lang-btn:hover {
    border-color: var(--current-accent);
}

.theme-toggle {
    background-color: var(--current-accent);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

body.dark-mode .theme-toggle {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.theme-toggle svg { 
    display: block;
    width: 18px; 
    height: 18px;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 1;
    display: block;
    transition: background-color 0.4s ease;
}

.hero-content-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-top {
    position: relative;
    z-index: 4;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.line-deco {
    display: inline-block;
    width: 250px;
    height: 2px;
    background-color: var(--text-color);
}

.move-icon { font-size: 26px; }

.hero-title-container {
    width: 100%;
    margin: auto 0;
    position: relative;
}

.line-1 {
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 10vw, 120px);
    word-spacing: 0;
    line-height: 0.95; 
    padding-top: 10px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--current-accent);
}

.stack-break { display: block; }

.line-2-wrapper {
    position: relative;
    z-index: 3;
    display: inline-block !important;
}

.figma-box {
    display: inline-block;
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(50px, 9vw, 110px);
    margin-top: clamp(6px, 1.2vh, 16px);
    margin-left: -18px;
    padding: clamp(5px, 0.9vh, 10px) clamp(11px, 1.8vw, 22px);
    letter-spacing: 0.0em;
    line-height: 1;
    text-transform: uppercase;
    
    background-color: var(--current-accent);
    color: var(--bg-color);
    border: 2px solid var(--current-accent);
    
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.figma-box .handle {
    position: absolute;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    background-color: var(--bg-color);
    border: 2px solid var(--current-accent);
    transition: border-color 0.4s ease, background-color 0.4s ease;
}
.handle.top-left { top: -6px; left: -6px; }
.handle.top-right { top: -6px; right: -6px; }
.handle.bottom-left { bottom: -6px; left: -6px; }
.handle.bottom-right { bottom: -6px; right: -6px; }

.color-palette.vertical {
    position: fixed !important;
    right: 25px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) translateZ(999px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 15px 12px !important;
    margin: 0 !important;
    background-color: var(--nav-bg) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 40px !important;
    z-index: 99999 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.color-swatch {
    position: relative;
    width: 28px; 
    height: 28px;
    border: 2px solid transparent; 
    border-radius: 50%;
    cursor: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.4s ease;
}

.color-swatch::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
    border-radius: 50%;
    cursor: none;
}

.color-swatch.swatch-black {
    background-color: #111111 !important;
}

body.dark-mode .color-swatch.swatch-black {
    background-color: #ffffff !important;
}

.color-swatch:hover {
    transform: scale(1.15) !important;
}

.color-swatch.active {
    transform: scale(1.2) !important;
    box-shadow: 0 0 0 2px var(--nav-bg), 0 0 0 4px var(--current-accent);
}

.hero-bottom-wrapper {
    position: relative;
    z-index: 4;
    margin-top: 40px;
    width: 100%;
    max-width: 500px;
}

.hero-bottom {
    max-width: 500px;
    text-align: left;
}

.bottom-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.bottom-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.line-deco-thick {
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: var(--text-color);
}

.hero-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-img {
    position: absolute;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    display: block;
    filter: hue-rotate(var(--davinci-hue)) saturate(var(--davinci-sat)) brightness(var(--davinci-bri));
    transition: filter 0.5s ease;
}

body.dark-mode .hero-img {
    filter: hue-rotate(var(--davinci-hue)) saturate(var(--davinci-sat)) brightness(var(--davinci-bri));
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    letter-spacing: 0.03em;
    line-height: 0.95;
    font-weight: 400;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: var(--current-accent);
    transition: color 0.4s ease;
}

.jornada-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.info-block {
    border-top: 2px solid color-mix(in srgb, var(--current-accent) 20%, var(--border-color));
    padding-top: 20px;
    transition: border-color 0.4s ease;
}

.info-block h3, .portfolio-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--current-accent);
}

.info-block h3 { margin-bottom: 12px; }
.info-block p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.portfolio-item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background-color: var(--border-color);
    margin-bottom: 15px;
    display: block;
}

.portfolio-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.portfolio-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.portfolio-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 6px;
    color: var(--text-muted);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-call {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    color: var(--text-muted);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    color: var(--text-muted);
}

.contact-info p a {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.contact-info p a:hover {
    transform: scale(1.05);
    color: var(--current-accent); 
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding-top: 20px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    border-top: 2px solid var(--border-color);
}

@media (max-width: 1199px), (hover: none) and (pointer: coarse) {
    html, body, *, *::before, *::after,
    a, button, img, p, h1, h2, h3, h4, span, div {
        cursor: auto !important;
    }

    #custom-cursor {
        display: none !important;
    }
}

@media (max-width: 899px) {
    .navbar { justify-content: space-between; }
    .nav-links { display: none; }
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        order: 1;
        padding: 8px;
        border-radius: 10px;
        background: transparent;
    }
    .logo { order: 2; flex: 1; justify-content: center; }
    .nav-actions { order: 3; flex: none; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 1200;
        background-color: var(--bg-color);
        border-top: 2px solid var(--border-color);
        border-bottom: 2px solid var(--border-color);
        padding: 8px 5%;
    }

    .nav-links.mobile-open li {
        list-style: none;
        width: 100%;
    }

    .nav-links.mobile-open a {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 15px;
        letter-spacing: 0.12em;
        border-bottom: 1px solid color-mix(in srgb, var(--current-accent) 20%, var(--border-color));
    }

    .nav-links.mobile-open li:last-child a {
        border-bottom: 0;
    }

    .hero-top { display: none; }
    .hero-title-container { margin: 0; text-align: center; width: 100%; }
    
    .line-1 {
        font-size: clamp(56px, 16.5vw, 96px);
        line-height: 0.94;
        text-align: center;
    }

    .line-2-wrapper {
        width: 100%;
        text-align: center;
    }

    .figma-box {
        font-size: clamp(54px, 15.5vw, 92px);
        margin-left: 0;
        margin-top: 10px;
        padding: 8px 16px;
    }
    
    .hero-content-grid { 
        justify-content: flex-start; 
        padding-top: 14px;
        padding-bottom: clamp(340px, 47vh, 500px) !important;
        align-items: center;
    }

    .hero-bottom-wrapper {
        margin-top: 22px;
        text-align: center;
    }

    .hero-bottom {
        text-align: center;
    }

    .bottom-title {
        justify-content: center;
    }
    
    .hero-img {
        height: clamp(340px, 47vh, 500px) !important;
        width: 100% !important; 
        left: 0 !important; 
        bottom: 0 !important;
        object-fit: contain !important;
        object-position: center bottom !important; 
        position: absolute !important;
    }

    .color-palette.vertical {
        right: 10px !important;
        padding: 10px 8px !important;
        gap: 12px !important;
        transform: translateY(-50%) scale(0.85) translateZ(999px) !important;
        transform-origin: right center;
        z-index: 999999 !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .nav-links { display: flex; gap: 25px; justify-content: center; flex: 1; }
    
    .hero-content-grid {
        justify-content: flex-start;
        align-items: flex-start;
        padding-bottom: clamp(390px, 46vh, 560px) !important;
    }
    
    .line-1 {
        font-size: clamp(68px, 8.6vw, 108px);
    }

    .figma-box {
        font-size: clamp(62px, 8vw, 98px);
        margin-left: -8px;
    }

    .hero-img {
        height: clamp(390px, 46vh, 560px) !important;
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        position: absolute !important;
    }
    
    .hero-bottom-wrapper {
        margin-top: 18px;
        align-self: flex-start;
        max-width: 620px;
    }

    .section-title { font-size: 72px; }
    .jornada-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-layout { grid-template-columns: 1fr 1fr; }
    .copyright { flex-direction: row; }
}

@media (min-width: 1200px) {
    .nav-links { display: flex; justify-content: center; flex: 1; }

    .section-title { font-size: 90px; }

    .hero-img {
        height: 90%;
        max-width: 58%;
        right: -3%;
        bottom: 0;
        object-fit: contain;
        object-position: bottom right;
    }
    
    .jornada-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-layout { grid-template-columns: 1fr 1fr; gap: 60px; }
    .copyright { flex-direction: row; }
}
