/* =========================================
   1. RESET Y ESTILOS GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: #F2F2F2;
    color: #111;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --bg: #F2F2F2;
    --muted: #F2F2F2;
    --text: #111111;
    --muted-text: #333333;
    --accent: #111111;
    --accent-2: #F2C94C;
}

/* =========================================
   2. NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    width: 100%;
    padding: 0 73px;
    background-color: transparent;
    position: absolute;
    /* Changed from relative/fixed context if any, now absolute inside sticky container */
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar.navbar-static {
    position: relative;
    height: auto;
    min-height: 120px;
    /* Preserve height but allow flow */
    /* top/left don't matter much for relative in this context without offset, but good to reset if nervous */
}

.nav-left {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    text-decoration: none;
    color: #111;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #111;
    transition: width 0.3s ease;
}

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

.logo-container img {
    height: 24px;
    width: auto;
    display: block;
}

/* =========================================
   3. HERO SECTION (PINNED SCROLLYTELLING)
   ========================================= */
.hero-track {
    height: 250vh;
    /* Aumentado a 250vh para que el texto cambie más lento y dé tiempo a leer */
    width: 100%;
}

.hero-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    /* Evitar scroll horizontal indeseado */
    background-color: #F2F2F2;
    padding: 0 73px;

    /* Left Align Setup */
    display: block;
    /* Use block to allow absolute positioning context */
}

.spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* CRÍTICO: Esto manda el 3D al fondo */
    pointer-events: none;
    /* CRÍTICO: Permite que el mouse "atraviese" el canvas para hacer scroll */
}

#canvas3d {
    width: 100%;
    height: 100%;
    display: block;
    /* Evita márgenes fantasma de elementos inline */
}

.hero-item {
    position: absolute;
    top: 50%;
    right: 73px;
    left: 73px;
    /* Match site padding */
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: left;
    max-width: 1100px;
    padding: 0;
}

.text-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espacio entre párrafos */
    max-width: 800px;
    /* O el ancho que prefieras para lectura */
}

.hero-item.active {
    opacity: 1;
    z-index: 10;
}

/* Tipografía Específica */
.text-h1 {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 300;
    color: #151515;
    margin: 0;
}

.text-h1 strong {
    font-weight: 500;
}

.text-p {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 300;
    color: #151515;
    margin: 0;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 500;
    color: #151515;
    font-family: 'Hanken Grotesk', sans-serif;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #151515;
    border-bottom: 2px solid #151515;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-8px) translateX(-50%);
    }

    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

/* Responsive para Hero */
@media (max-width: 900px) {
    .text-h1 {
        font-size: 2.5rem;
    }

    .text-p {
        font-size: 1.5rem;
    }
}


/* =========================================
   4. SELECTED WORK (ELASTIC GRID)
   ========================================= */
.selected-work-section {
    width: 100%;
    padding: 0 73px 0px;
    background-color: #F2F2F2;
    overflow: hidden;
}

.our-work-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1.25;
    color: #151515;
    margin: 0 0 70px 0;
    padding: 0;
}

.work-flex-container {
    display: flex;
    width: 100%;
    height: 638px;
    align-items: flex-start;
    gap: 10px;
}

.work-card {
    position: relative;
    flex: 1;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), height 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    border-radius: 20px;
}

.work-card:last-child {
    border-right: none;
}

/* --- STATES --- */
.work-card.active {
    flex: 2;
    /* Ratio aprox visual */
    height: 638px;
    filter: brightness(1);
    z-index: 10;
}

.work-card.neighbor {
    flex: 1;
    height: 430px;
    filter: brightness(0.9);
}

.work-card.rest {
    flex: 1;
    height: 362px;
    filter: brightness(0.8);
}

/* --- BACKGROUNDS --- */
.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* VITAL: Esto permite que el video se recorte sin deformarse al cambiar el ancho de la tarjeta */
    z-index: 0;
    /* Se queda al fondo */
    pointer-events: none;
    /* Evita que el usuario interactúe con el video (play/pause) */
    opacity: 0.9;
    /* Opcional: Ajuste leve si el video es muy brillante */
}

.work-card:hover .card-bg-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.work-card.active .card-overlay {
    opacity: 0.3;
}

.all-work-card {
    background-color: #151515;
    color: #fff;
    padding: 40px;
    justify-content: space-between;
}

/* --- CONTENT --- */
.card-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    color: #fff;
}

.work-card.active .card-content {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1;
    white-space: nowrap;
}

.card-desc {
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
    white-space: normal;
}

.btn-pill-small {
    display: inline-block;
    padding: 12px 28px;
    background-color: #fff;
    color: #000;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.btn-pill-small:hover {
    background-color: #000;
    color: #fff;
}

/* All Work Card Specifics */
.all-work-content-top {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-title-large {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.all-work-card:not(.active) .card-title-large {
    font-size: 24px;
}

.card-desc-small {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-work-card.active .card-desc-small {
    opacity: 1;
    transition-delay: 0.2s;
}

.all-work-bottom-bar {
    width: 100%;
    margin-top: auto;
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.all-work-card:hover .all-work-bottom-bar {
    background-color: #fff;
    color: #151515;
}


/* =========================================
   5. OFFERINGS SECTION
   ========================================= */
.scrolly-track {
    height: 400vh;
    position: relative;
}

.offerings-section {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: #F2F2F2;
    padding: 0 73px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offerings-container {
    background-color: #151515;
    border-radius: 20px;
    padding: 70px;
    color: #FFFFFF;
}

.offerings-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 124px;
    margin: 0 auto;
    align-items: start;
}

.offerings-left {
    position: relative;
}

.offerings-title-sticky {
    position: sticky;
    top: 50px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0;
    overflow-wrap: break-word;
}

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

.mobile-toggle-icon {
    display: none;
}

.offering-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: flex-start;

    /* Animación Scrolly */
    opacity: 0.2;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: blur(2px);
}

.offering-item.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02);
}

.offering-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
}

.offering-desc {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #CCCCCC;
    max-width: 700px;
}


/* =========================================
   6. TEAM SECTION (PATCHED DESKTOP LAYOUT)
   ========================================= */
/* =========================================
   6. TEAM SECTION (STRICT DESKTOP GRID)
   ========================================= */
.team-section {
    background-color: #F2F2F2;
    padding: 0 73px;
    width: 100%;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 10px 40px;
    width: 100%;
    max-width: 1400px;
    /* Empujar a la derecha */
    margin-left: auto;
    margin-right: 0;
}

/* --- ROW STYLES (Flattened) --- */
.team-row {
    display: contents;
}

/* --- TITLE --- */
.team-heading,
.clients-heading {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 500;
    line-height: 1;
    color: #151515;
    margin: 0 0 100px;
    max-width: 1400px;
    padding-left: 0;
    text-align: left;
    /* Ensure title is outside the grid flow or handled */
}

/* --- CARD STYLES --- */
.team-card {
    display: flex;
    flex-direction: row-reverse;
    /* Foto derecha, Texto izquierda */
    align-items: flex-end;
    justify-content: normal;
    gap: 0px;
    width: 100%;
    margin: 0 !important;
    position: relative;
    overflow: visible;

    /* Animación */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 2s ease, transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- IMAGE --- */
.team-img-placeholder {
    width: 226px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background-color: #D9D9D9;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-img-placeholder {
    filter: grayscale(0%);
}

/* --- TEXTO --- */
.team-info {
    width: auto;
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5px;
    margin-right: 20px;
    /* Separación extra */
}

.team-name {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #151515;
    margin-bottom: 5px;
}

.team-role {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.btn-view-all-mobile {
    display: none;
}


/* =========================================
   7. CLIENTS SECTION (PARTNERS)
   ========================================= */
.clients-section {
    padding: 150px 73px;
    background-color: #F2F2F2;
    width: 100%;
}

.clients-container {
    width: 90%;
    margin: 0 auto;
}

@media (min-width: 1371px) {
    .clients-container {
        padding: 0 77px;
    }
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    align-items: center;
    justify-items: center;
}

.client-logo-wrapper {
    width: calc(100% / 5 - 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.client-logo {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: block;
}

.client-logo-wrapper:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}


/* =========================================
   8. CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 120px 20px 300px 20px;
    width: 100%;
}

.contact-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 30px;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    max-width: 280px;
}

.contact-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    margin: 0 30px;
}

.contact-cta {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.arrow-long {
    font-size: 1.2rem;
    font-weight: 300;
}

.email-container {
    text-align: center;
}

.contact-email {
    text-decoration: none;
    color: #333;
    font-style: italic;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.contact-email:hover {
    opacity: 0.6;
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background-color: #F4F4F4;
    width: 100%;
    padding: 0 73px 40px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-bottom: 25px;
}

.footer-logo-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.symbol-img {
    height: 35px;
    width: auto;
}


/* =========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1400px) {
    .offerings-container {
        padding: 50px;
    }

    .offerings-grid {
        gap: 60px;
    }

    .offerings-title-sticky {
        font-size: 60px;
    }
}

@media (max-width: 1024px) {
    .work-flex-container {
        flex-direction: column;
        height: auto;
    }

    .work-card {
        height: 300px;
        width: 100%;
        flex: none !important;
    }

    .card-content {
        opacity: 1;
        transform: translateY(0);
    }

    .offerings-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .offering-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .offering-text {
        max-width: 100%;
    }

    /* Team Tablet */
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-bio {
        grid-column: 1 / -1;
        padding-top: 40px;
        max-width: 800px;
    }

    /* Clients Tablet */
    .clients-grid {
        gap: 60px;
    }

    .client-logo-wrapper {
        width: calc(100% / 5 - 49px);
    }
}

/* =========================================
   FIX: MEDIUM SCREENS (901px - 1370px)
   Global & Layout Adjustments (EXCEPT TEAM for 1024+)
   ========================================= */
@media (min-width: 901px) and (max-width: 1370px) {

    /* 1. Global (Margins & Fonts) */
    .navbar,
    .hero-sticky-content,
    .selected-work-section,
    .offerings-section,
    .team-section,
    .clients-section,
    .site-footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .text-h1,
    .our-work-title,
    .offerings-title-sticky,
    .team-heading,
    .clients-heading {
        font-size: 56px;
    }

    /* 2. OUR WORK (Bento Grid 3 Cols) */
    .our-work-title {
        padding: 0px;
        font-size: 56px;
    }

    .work-flex-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        height: auto !important;
        padding: 0px;
        flex-direction: row !important;
        /* Reset just in case */
    }

    .work-card {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
        height: 300px !important;
        order: 1;
        /* Images first */
        filter: brightness(1) !important;
        transform: none !important;
    }

    .all-work-card {
        order: 2;
        /* Black card last */
        grid-column: span 2;
        /* Takes 2 slots */
    }

    /* TYPOGRAPHY OVERRIDES (Prevent Overflow) */
    .card-title {
        font-size: 24px !important;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .card-desc {
        white-space: normal !important;
        font-size: 14px !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .btn-pill-small {
        padding: 8px 16px;
        font-size: 11px;
    }

    /* All Work Card Typography */
    .card-title-large {
        font-size: 32px !important;
    }

    .card-desc-small {
        font-size: 14px;
    }

    /* 3. OFFERINGS */
    .offerings-grid {
        grid-template-columns: 250px 1fr;
    }

    .offerings-title-sticky {
        font-size: 50px;
    }
}

/* --- TABLET ONLY (769px - 1023px) --- 
   Mantener Team vertical solo para tablets reales,
   para portátiles (1024+) usamos el grid de escritorio.
*/
@media (min-width: 901px) and (max-width: 1023px) {
    .team-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .team-row {
        display: contents;
    }

    .team-card {
        flex-direction: column;
        /* Vertical layout for tablet */
        align-items: end;
        text-align: center;
    }

    .team-img-placeholder {
        width: 100%;
        aspect-ratio: 3 / 4;
        margin-bottom: 0px;
    }

    .team-info {
        text-align: center;
        margin-right: 0;
    }
}

/* =========================================
   8. FOOTER (MINIMALIST)
   ========================================= */
.site-footer {
    padding: 0 73px;
    padding-bottom: 40px;
    margin-top: 100px;
}

.footer-divider {
    border-top: 1px solid #151515;
    padding-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.footer-symbol {
    width: 30px;
    height: auto;
    opacity: 1;
}

@media (max-width: 900px) {

    /* 1. HEADER (STRICT) */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px 20px 0 20px;
        gap: 15px;
        /* Navbar is absolute top:0 in desktop, checked existing css */
    }

    .logo-container {
        order: -1;
        /* Logo arriba */
        margin-bottom: 0px;
    }

    .nav-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        /* En fila horizontal */
        gap: 15px;
        /* Separación exacta */
        justify-content: center;
        width: auto;
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        font-size: 10px;
        /* Medida exacta */
        line-height: 1;
    }

    /* 2. HERO (Tipografía Controlada) */
    .hero-sticky-content {
        background-color: #F4F4F4;
        /* Fondo gris */
        padding-top: 20px;
        /* Padding para evitar choque */
        padding-left: 20px;
        padding-right: 20px;
    }

    .spline-background {
        display: none;
        /* Ocultar Spline */
    }

    .hero-item {
        left: 20px;
        width: calc(100% - 40px);
        text-align: left;
        /* Alineado izq */
        /* Ajuste vertical si es necesario, mantenemos posicionamiento absoluto original */
    }

    .text-h1 {
        font-size: 40px;
        /* Medida exacta */
        line-height: 1.1;
        /* Medida exacta */
    }

    .text-p {
        font-size: 22px;
        /* Medida exacta */
        line-height: 1.3;
    }

    /* 3. SELECTED WORK (CAROUSEL - STATIC OVERRIDE) */
    .selected-work-section {
        padding: 0;
        /* Padding removed for full bleed carousel */
    }

    .our-work-title {
        padding: 0 20px;
        margin-bottom: 40px;
        font-size: 40px !important;
        line-height: 1.1;
    }

    .work-flex-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: auto;
        /* Scroll & Layout */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 30px;
        /* Espacio para scroll */
        gap: 16px !important;
        /* Gap forzado */

        /* Hide scrollbars */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .work-flex-container::-webkit-scrollbar {
        display: none;
    }

    /* NEUTRALIZACIÓN TOTAL DE TARJETAS */
    .work-card,
    .work-card.active,
    .work-card.neighbor,
    .work-card.rest {
        flex: 0 0 85vw !important;
        /* Ancho fijo forzado */
        width: 85vw !important;
        height: 420px !important;
        /* Altura fija forzada */
        filter: brightness(1) !important;
        /* Brillo total */
        scroll-snap-align: center;
        scroll-snap-align: center;
        margin-right: 0 !important;
        border-right: none;
        margin-bottom: 0;
        padding: 30px;

        /* Reset Transformaciones */
        transform: none !important;
        transition: none !important;
    }

    .work-card:last-child {
        margin-right: 0 !important;
    }

    /* Reordering Logic (Mantener) */
    .mobile-first {
        order: -1;
    }

    .mobile-last {
        order: 100;
    }

    /* CONTENIDO VISIBLE SIEMPRE */
    .card-content {
        opacity: 1 !important;
        transform: none !important;
        position: relative;
        z-index: 10;
    }

    .card-title {
        font-size: 1.5rem;
        white-space: normal;
        /* Texto fluye en lineas */
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .card-desc {
        white-space: normal;
        font-size: 1rem;
    }

    /* Fondos estáticos */
    .work-card:hover .card-bg-img,
    .card-bg-img {
        transform: none !important;
    }

    .card-overlay {
        opacity: 0.3;
    }

    /* Global Mobile Padding for other sections */
    .site-footer,
    .team-section,
    .offerings-section,
    .clients-section,
    .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Contact Mobile */
    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-line {
        display: none;
    }

    .contact-text {
        font-size: 16px !important;
        line-height: 1.5;
    }

    .contact-cta {
        font-size: 20px !important;
        /* Padding adjustment if needed */
        padding: 16px 32px;
    }

    .email-container {
        text-align: left;
    }

    .contact-email {
        font-size: 16px !important;
    }

    /* Team Mobile */
    .team-heading,
    .clients-heading {
        text-align: left !important;
        font-size: 40px !important;
        line-height: 1.1;
        margin-bottom: 40px;
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
    }

    .team-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 15px;
    }

    .team-row {
        display: contents;
    }

    .team-card {
        display: flex;
        /* Ensure flex for centering if needed, though grid parent handles layout */
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        /* Remove limit */
        margin: 0 !important;
        /* Reset magic margins */
        gap: 10px;
    }

    .team-info {
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .team-img-placeholder {
        width: 100%;
        border-radius: 12px;
        /* aspect-ratio already defined in desktop, but good to ensure */
    }

    .team-name {
        font-size: 1rem;
        /* Slightly reduced */
    }

    .btn-view-all-mobile {
        display: block;
        width: 100%;
        background-color: #151515;
        color: #FFFFFF;
        padding: 18px 0;
        border-radius: 50px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-top: 30px;
        border: none;
    }



    /* Offerings Mobile (ACCORDION) */
    .scrolly-track {
        height: auto !important;
        position: static;
    }

    .offerings-section {
        position: relative !important;
        height: auto !important;
        top: auto;
        padding: 40px 20px;
        background-color: #F2F2F2;
    }

    .offerings-container {
        padding: 0;
        width: 100%;
        background-color: transparent;
        /* Remove container bg */
    }

    .offerings-title-sticky {
        font-size: 40px !important;
        line-height: 1.1;
        position: static;
        margin-bottom: 30px;
        margin-top: 0;
        text-align: left;
        color: #151515;
        /* Dark text on light bg */
    }

    .offerings-grid {
        display: flex;
        flex-direction: column;
        gap: 0px;
        /* Gap managed by margins */
    }

    .offerings-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px !important;
    }

    /* ACCORDION ITEMS */
    .offering-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        background-color: #151515;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 0 !important;
        cursor: pointer;

        /* Reset Animations */
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        gap: 0;
        /* Reset grid gap */
    }

    .offering-title {
        font-size: 20px;
        color: #FFFFFF;
        margin: 0;
    }

    .mobile-toggle-icon {
        display: block;
        width: 24px !important;
        height: 24px !important;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    /* ACCORDION CONTENT */
    .offering-desc {
        max-height: 0;
        /* Animation key */
        opacity: 0;
        overflow: hidden;
        flex-basis: 100%;
        margin-top: 0;
        color: #CCCCCC;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin-top 0.3s ease;
    }

    /* ACTIVE STATE */
    .offering-item.active .offering-desc {
        max-height: 500px;
        /* Large enough value */
        opacity: 1;
        margin-top: 16px;
    }

    .offering-item.active .mobile-toggle-icon {
        transform: rotate(45deg);
    }


    /* Clients Mobile */
    .clients-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .client-logo-wrapper {
        width: 100%;
    }

    .client-logo-wrapper {
        height: 100px;
    }

    .client-logo {
        max-height: 50px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 0 20px;
        margin-top: 60px;
    }

    .footer-symbol {
        width: 25px;
    }
}

/* =========================================
   MEDIUM SCREENS (901px - 1370px)
   Offerings Redesign: Static Vertical List
   ========================================= */
@media (min-width: 901px) and (max-width: 1370px) {

    /* 1. Desactivar el Riel */
    .scrolly-track {
        height: auto !important;
        position: static !important;
        display: block !important;
        margin-top: 100px;
    }

    /* 2. Desactivar la Sección Pegajosa */
    .offerings-section {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        display: block !important;
        padding: 0 40px !important;
    }

    /* 3. El Contenedor Negro */
    .offerings-container {
        background-color: #151515;
        border-radius: 30px;
        padding: 60px;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        max-width: none;
    }

    /* 4. Estructura Interna */
    .offerings-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 60px !important;
        grid-template-columns: none !important;
        margin: 0;
    }

    /* 5. Título */
    .offerings-left {
        width: 100%;
        position: static;
    }

    .offerings-title-sticky {
        position: static !important;
        font-size: 48px !important;
        width: 100%;
        margin: 0;
    }

    /* 6. Listado */
    .offerings-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* 7. Items */
    .offering-item {
        display: grid !important;
        grid-template-columns: 220px 1fr !important;
        gap: 30px;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .offering-title {
        font-size: 28px;
        font-weight: 500;
        margin: 0;
    }

    .offering-desc {
        font-size: 16px;
        line-height: 1.5;
        color: #CCCCCC;
        max-width: none;
    }

    /* 8. Espacio para Team Heading */
    .team-heading {
        margin-top: 80px;
    }

    /* 9. Rediseño Team Section (Asimétrico 2 Cols) */
    .team-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 60px;
        max-width: 900px;
        margin-left: auto !important;
        margin-right: 0;
    }

    .team-row {
        display: contents !important;
    }

    .team-card {
        display: flex !important;
        flex-direction: row-reverse !important;
        margin: 0 !important;
        width: 100%;
        justify-content: end;
    }

    .team-info {
        text-align: right;
        margin-right: 20px;
    }

    /* 10. Botón "All Team" Visible */
    .btn-view-all-mobile {
        display: block !important;
        width: 100%;
        margin-left: auto;
        background-color: #151515;
        color: #FFFFFF;
        padding: 20px 0;
        border-radius: 50px;
        margin-top: 60px;
        font-weight: 700;
        letter-spacing: 2px;
        border: none;
        cursor: pointer;
    }
}

/* FIX: Narrow Medium Screens (Team Images) */
@media (min-width: 901px) and (max-width: 1050px) {
    .team-card {
        /* Aseguramos que haya espacio entre texto y foto */
        gap: 20px !important;
    }

    .team-img-placeholder {
        /* FRENAMOS el crecimiento de la imagen */
        width: 180px !important;
        /* Tamaño fijo seguro para tablet vertical */
        height: 180px !important;
        flex-shrink: 0;
        /* Evita que se deforme */
    }

    .team-info {
        /* Aseguramos que el texto tenga su espacio */
        width: auto;
        flex: 1;
        /* Ocupa el espacio restante */
    }
}

/* =========================================
   OUR WORK PAGE (Gallery)
   ========================================= */

/* 1. Page Title */
.work-page-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    color: #151515;
    padding: 0 73px;
    margin: 40px 0 50px 0;
}

/* 2. Grid Layout */
.work-gallery-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
    padding: 0 73px 250px;
    width: 100%;
}

/* 3. Card Container */
.project-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

/* 4. Media Area & Hover Effect */
.project-media {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.project-img,
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.project-entry:hover .project-img,
.project-entry:hover .project-video {
    transform: scale(1.05);
}

/* 5. Overlay Elements */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through if needed, or controlled by parent 'a' */
}

.project-name {
    position: absolute;
    top: 30px;
    left: 30px;
    margin: 0;
    color: #FFFFFF;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 1px;
    z-index: 2;
}

.project-arrow-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #FFFFFF;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    z-index: 2;
}

.project-arrow-btn:hover {
    background-color: #F2F2F2;
    transform: scale(1.1);
}

/* 6. Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-pill {
    border: 1px solid #E0E0E0;
    background: transparent;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 10px;
    color: #333;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =========================================
   FIX: MEDIUM SCREENS (900px - 1370px)
   Work Gallery Specific Adjustments
   ========================================= */
@media (min-width: 900px) and (max-width: 1370px) {
    .work-page-title {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .work-gallery-section {
        padding: 0 40px 100px !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
        /* Vertical 40px, Horizontal 10px */
    }

    .project-entry {
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .project-media {
        aspect-ratio: 405 / 223 !important;
    }

    .project-img {
        object-fit: cover;
    }

    .project-tags {
        display: flex;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 0;
    }

    .project-arrow-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* FIX: MOBILE SCREENS (< 900px) */
/* FIX: MOBILE SCREENS (< 900px) */
@media (max-width: 900px) {
    .work-page-title {
        font-size: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .work-gallery-section {
        padding: 0 20px 80px !important;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-media {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        width: 100%;
    }

    .project-img {
        object-fit: cover;
    }

    .project-tags {
        margin-top: 0px;
        flex-wrap: wrap;
        /* Ensure wrap is active, though standard flex often wraps */
    }

    /* Reset/Clean Tag Pill for Mobile Pro */
    .tag-pill {
        white-space: nowrap;
        /* Return to standard */
        padding: 8px 18px;
        /* Return to standard mostly or slightly adjusted if needed, user implied natural flow */
        font-size: 9px;
        line-height: normal;
        /* Reset */
        text-align: left;
    }

    /* Optional: keep button slightly smaller if needed, but 1-column has space. 
       User instruction didn't specify button changes for Pro option, 
       but keeping strict mobile tweaks might be safe or resetting. 
       Let's stick to the prompt: only grid/image/tags mentioned. 
    */
    .project-arrow-btn {
        bottom: 20px;
        right: 20px;
    }
}


/* =========================================
   11. CONTACT PAGE (NEW - STRICT GRID)
   ========================================= */

/* --- BASE / SHARED STYLES --- */
.contact-main-section {
    width: 100%;
    min-height: 80vh;
    padding-bottom: 150px;
    /* Consistent bottom padding */
    box-sizing: border-box;
    padding-top: 60px;
    /* Global base spacing */
}

.contact-title {
    font-family: 'Hanken Grotesk', sans-serif;
    color: #151515;
    margin: 0;
    line-height: 1.1;
}

.contact-subtitle {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #666666;
    max-width: 600px;
}

.contact-form-wrapper {
    width: 100%;
    margin-top: 40px;
    /* Space between P and Form inside right col */
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Inputs Base */
.form-group label {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #CCCCCC;
    padding: 15px 0;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px;
    color: #151515;
    border-radius: 0;
    outline: none;
    transition: border-bottom-color 0.3s ease;
    max-width: 100%;
    /* Prevent overflow in grid */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom: 1px solid #000000;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.contact-submit-btn:hover {
    opacity: 0.8;
}

/* --- STATE 1: DESKTOP (> 1370px) --- */
@media (min-width: 1371px) {
    .contact-main-section {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 100px;
        align-items: start;
        padding-left: 73px;
        padding-right: 73px;
        /* Padding top already 60px base, but prompt implied 100px for desktop grid content? 
           User prompt: "padding-top: 60px ... solo para dar aire visual ... pero ya no necesitas cálculos locos". 
           Wait, step 228 said "padding-top: 100px" inside media query. 
           Step 274 (Current) says "Agrega padding-top: 60px...".
           I will follow the NEWEST instruction (60px) generic or override if needed. 
           Let's use 60px base. Desktop usually benefits from more air. I will keep 100px for desktop if compatible.
           "Agrega padding-top: 60px... a .contact-main-section". 
           I'll stick to 60px to be safe. It flows after navbar. 
           Actually, let's make sure margins are exactly as requested: 73px side.
        */
        padding-top: 60px;
        /* Keeping the spacious look of desktop */
    }

    .contact-title {
        font-size: 100px;
        max-width: 90%;
        /* Force line breaks: "Let's build / something / great." */
    }

    .contact-right-col {
        padding-top: 150px;
        /* Visual offset to align with "great" */
        text-align: left;
    }

    .form-row-dual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* --- STATE 2: MEDIUM (900px - 1370px) --- */
@media (min-width: 900px) and (max-width: 1370px) {
    .contact-main-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
        padding-left: 40px;
        padding-right: 40px;
    }

    .contact-title {
        font-size: 80px !important;
        line-height: 1.1;
    }

    .contact-right-col {
        padding-top: 120px;
    }

    /* Force Body Text Sizing for Proportion */
    .contact-right-col p,
    .contact-right-col label,
    .contact-right-col input,
    .contact-right-col select,
    .contact-right-col textarea {
        font-size: 14px !important;
    }

    .form-row-dual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* --- STATE 3: MOBILE (< 900px) --- */
@media (max-width: 899px) {
    .contact-main-section {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding-top: 60px;
        /* Consistent top air */
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-title {
        font-size: 60px;
    }

    .form-row-dual {
        display: flex;
        flex-direction: column;
        gap: 0px;
        /* Stacked inputs, maybe add small margin to input itself if needed, but Prompt said gap 0px */
    }

    /* Ensure gap between stacked fields in dual row if 0px gap looks too tight? 
       Actually inputs have padding 15px 0, plus form-group gap 10px? 
       Ah, form-group gap is internal (label/input). 
       The groups themselves need separation. 
       We might need margin-bottom on .form-group in mobile if gap is 0. 
       Or maybe usage of gap: 10px is clearer? 
       Prompt said "gap: 0px. (Nombre y Email uno debajo del otro)". 
       I will stick to prompt. 
       However, if they touch, I'll add margin-bottom to the first child.
    */
    .form-row-dual .form-group:first-child {
        margin-bottom: 30px;
        /* explicit spacing for stacked dual row */
    }

    .contact-form {
        gap: 30px;
        /* Slightly tighter vertical form gap on mobile */
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Navbar Mobile Fix */
    .navbar {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        padding: 20px !important;
    }

    .navbar .nav-left,
    .navbar .logo-container {
        width: auto !important;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .logo-container {
        order: -1;
        margin-bottom: 20px !important;
    }

    .nav-links {
        padding: 0;
        text-align: center;
    }
}

/* =========================================
   11. COMING SOON PAGE (DARK THEME)
   ========================================= */
body.dark-theme {
    background-color: #111111;
    color: #FFFFFF;
}

body.dark-theme .nav-links a {
    color: #FFFFFF;
}

body.dark-theme .nav-links a::after {
    background-color: #FFFFFF;
}

body.dark-theme .logo-img,
body.dark-theme .footer-symbol {
    filter: invert(1);
}

body.dark-theme .site-footer {
    background-color: transparent;
}

body.dark-theme .footer-line {
    background-color: #FFFFFF;
}

.coming-soon-wrapper {
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
    min-height: calc(100vh - 120px - 100px);
}

.coming-soon-left h1 {
    font-family: 'Hanken Grotesk', sans-serif;
    margin: 0;
    font-size: 45px;
    line-height: 1.1;
    max-width: 600px;
    font-weight: 500;
}

.coming-soon-right p {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    color: #CCCCCC;
    max-width: 450px;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 300;
}

.btn-pill-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #FFFFFF;
    color: #111111;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 20px;
    transition: opacity 0.3s, background 0.3s, color 0.3s;
}

.btn-pill-white:hover {
    background-color: #E6E6E6;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .coming-soon-left h1 {
        font-size: 60px;
    }

    .coming-soon-wrapper {
        padding: 80px 40px;
    }
}

@media (min-width: 1024px) {
    .coming-soon-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        padding: 100px 73px;
    }

    .coming-soon-left h1 {
        font-size: 100px;
        max-width: 90%;
    }

    .coming-soon-right {
        padding-top: 250px;
    }
}