:root {
    --dark: #120B09;
    --dark-2: #1B120F;
    --dark-3: #251915;
    --cream: #F7F1EA;
    --beige: #F1E5D9;
    --charcoal: #242424;
    --wood-brown: #6B4528;
    --wood-brown-brand: #8b5a2b;
    --wood-brown-dark: #603E24;
    --natural-sand: #C7A57A;
    --warm-white: #F7F5F0;
    --steel-gray: #6C757D;
    --ink: #1C1713;
    --ink-soft: #5D4A40;
    --line: #E7D8C4;
    --white: #FFFFFF;
    --shadow-soft: 0 18px 35px rgba(18, 11, 9, 0.08);
    --shadow-strong: 0 24px 52px rgba(18, 11, 9, 0.16);
    --radius: 18px;
    --maxw: 1280px;
    /* === Semantic tokens (Fase 1 - base para responsive + dark mode) === */
    --bg: var(--cream);
    --bg-alt: var(--beige);
    --bg-soft: #faf5f0;
    --surface: #FFFFFF;
    --surface-soft: rgba(255, 255, 255, 0.72);
    --surface-card: rgba(255, 255, 255, 0.85);
    --text: var(--ink);
    --text-soft: var(--ink-soft);
    --text-muted: var(--steel-gray);
    --border: rgba(28, 23, 19, 0.08);
    --border-strong: rgba(28, 23, 19, 0.14);
    --border-warm: rgba(199, 165, 122, 0.28);
    font-size: 16px;
}

/* === Modo Oscuro Completo (Theme Toggle) === */
[data-theme="dark"] {
    --bg: #120B09;
    --bg-alt: #160D0B;
    --bg-soft: #1B120F;
    --surface: #1E1410;
    --surface-soft: rgba(30, 20, 16, 0.92);
    --surface-card: #251915;
    --text: #F7F1EA;
    --text-soft: #C9B8A8;
    --text-muted: #9A8A7E;
    --ink: #F7F1EA;
    --ink-soft: #C9B8A8;
    --cream: #120B09;
    --beige: #160D0B;
    --warm-white: #1E1410;
    --charcoal: #F7F1EA;
    --wood-brown: #D8AE67;
    --wood-brown-dark: #C7A57A;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-warm: rgba(199, 165, 122, 0.3);
    --line: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 24px 52px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
    background: #120B09;
    color: #F7F1EA;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
    }
}

::selection {
    background: var(--natural-sand);
    color: var(--dark);
}

/* Para Firefox */
::-moz-selection {
    background: var(--natural-sand);
    color: var(--dark);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(185, 112, 44, 0.08), transparent 28%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}



.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wood-brown);
    margin-bottom: 10px;
}

.section-head {
    margin-bottom: 44px;
}

.section-head h2 {
    font-size: clamp(2.1rem, 2vw + 1rem, 3rem);
    color: var(--ink);
}


#our-work {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

#our-work .wrap {
    position: relative;
    z-index: 1;
}

.work-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
}

.work-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    opacity: 0.4;
}

#our-work .section-head {
    margin-bottom: 28px;
}

#our-work .section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

#our-work .section-head .eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    background: rgba(107, 69, 40, 0.4);
}

#our-work .section-head h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 1.8vw + 1rem, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

#our-work .work-intro {
    margin-top: 14px;
    color: var(--ink-soft);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

#our-work .work-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.work-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(107, 69, 40, 0.08);
    border: 1px solid rgba(107, 69, 40, 0.14);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--wood-brown-dark);
    transition: background .2s ease, border-color .2s ease;
}

.work-badge:hover {
    background: rgba(107, 69, 40, 0.14);
    border-color: rgba(107, 69, 40, 0.24);
}

.work-badge i {
    color: var(--wood-brown);
    font-size: 0.8rem;
}

#our-work .section-head .eyebrow,
#our-work .section-head h2,
#our-work .section-head .work-intro,
.work-badge {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.work-badge {
    transform: translateY(16px) scale(0.95);
}

#our-work .section-head.in-view .eyebrow {
    opacity: 1;
    transform: translateY(0);
}

#our-work .section-head.in-view h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

#our-work .section-head.in-view .work-intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .2s;
}

#our-work .section-head.in-view .work-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#our-work .section-head.in-view .work-badge:nth-child(1) {
    transition-delay: .3s;
}

#our-work .section-head.in-view .work-badge:nth-child(2) {
    transition-delay: .38s;
}

#our-work .project-carousel-shell {
    animation: projectReveal .65s cubic-bezier(.2, .7, .2, 1) both;
}

#our-work .project-carousel-shell {
    animation-delay: .1s;
}

@keyframes projectReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-head p {
    color: var(--ink-soft);
    max-width: 560px;
    margin-top: 12px;
    font-size: 1rem;
}

.section-head.split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 16, 12, 0.08);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(107, 69, 40, 0.24);
}

.about-card h3 {
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(184, 101, 30, 0.14);
    border-radius: 18px;
    padding: 24px 18px 20px;
    box-shadow: 0 12px 28px rgba(23, 13, 10, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 69, 40, 0.35);
    box-shadow: 0 22px 40px rgba(28, 23, 19, 0.08);
}

.service-number {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wood-brown);
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.04rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    border-radius: 10px;
    /* cambiar si es cuadrado o redondo los cuadros */
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--natural-sand);
    outline-offset: 3px;
    border-radius: 10px;
    /* mismo valor que .btn */
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--wood-brown);
    color: var(--warm-white);
    box-shadow: 0 18px 26px rgba(107, 69, 40, 0.28);
}

.btn-primary:hover {
    background: var(--wood-brown-dark);
}

.btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--wood-brown);
    color: var(--wood-brown);
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background .25s ease, padding .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

header.scrolled {
    background: rgba(18, 11, 9, 0.92);
    backdrop-filter: blur(4px);
    padding: 14px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.work-bg,
#proceso::before,
#proceso::after {
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
}

.logo img {
    display: block;
    width: min(100%, 52px);
    max-height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    max-width: 95px;
    line-height: 0.9;
    letter-spacing: 0.02em;
    transform: translateY(-1px);
}

.brand-text strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.7rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.brand-text span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.62rem, 0.9vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--wood-brown-brand) !important;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.brand-text b {
    color: var(--wood-brown-brand) !important;

}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

nav.main-nav a {
    position: relative;
    padding: 10px 0;
    color: rgb(255, 250, 250);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color .2s ease;
}

nav.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--natural-sand);
    transition: transform .22s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: #d8ae67;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
    transform: scaleX(1);
}


header .btn-primary {
    padding: 12px 22px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        linear-gradient(100deg, rgba(11, 6, 4, 0.72) 0%, rgba(11, 6, 4, 0.45) 30%, rgba(11, 6, 4, 0.15) 52%, rgba(11, 6, 4, 0) 70%, rgba(11, 6, 4, 0) 78%),
        url('assets/imgestrategia/foto letras (1).png') 65% 45% / cover no-repeat;
    padding: 150px 0 120px;
    /* padding inferior reserva espacio para hero-features absoluto en desktop */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 11, 9, 0.05), rgba(17, 11, 9, 0.22));
    pointer-events: none;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero .wrap {
    max-width: none;
    margin: 0;
    padding-left: clamp(20px, 5vw, 75px);
    padding-right: clamp(20px, 4vw, 32px);
}

.hero .wrap.hero-inner {
    max-width: 820px;
}

.hero-kicker {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    margin-bottom: 16px;
    opacity: 0;
    animation: heroFadeUp .6s ease-out forwards 0s;
}

/* ← ACÁ cambiás el color del título  */
.hero h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 16px 34px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: heroFadeUp .9s cubic-bezier(.2, .7, .2, 1) forwards .15s;
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.hero .rule {
    width: 64px;
    height: 3px;
    background: var(--natural-sand);
    margin-bottom: 10px;
    border-radius: 999px;
    opacity: 0;
    animation: heroFadeUp .9s cubic-bezier(.2, .7, .2, 1) forwards .32s;
}

/* ← ACÁ cambiás el color del texto secundario */
.hero p.lede {
    color: rgb(248, 248, 242);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 26px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: heroFadeUp .9s cubic-bezier(.2, .7, .2, 1) forwards .48s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p.secondary-lede {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero .cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    opacity: 0;
    animation: heroFadeUp .9s cubic-bezier(.2, .7, .2, 1) forwards .64s;
}

/* Barra de 4 features en una sola línea, estilo imagen de referencia */
.hero-features {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(12, 8, 6, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.25);
    padding: 22px 0;
    backdrop-filter: blur(10px);
}

.hero-features .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 16px;
    padding-left: 32px;
    padding-right: 32px;
}

.hf-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hf-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--natural-sand);
    background: radial-gradient(circle at 32% 28%, rgba(199, 165, 122, 0.22), rgba(199, 165, 122, 0.05));
    box-shadow: 0 8px 20px rgba(107, 69, 40, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--natural-sand);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hf-item:hover .hf-icon {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(107, 69, 40, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hf-icon svg {
    width: 19px;
    height: 19px;
}

.hf-icon i {
    display: block;
    line-height: 1;
    font-size: 19px;
}

.hf-item h4 {
    color: #fff;
    font-size: clamp(0.72rem, 0.8vw + 0.45rem, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0;
    white-space: normal;
}

/* === FASE 1: Responsive hero - fix absolute bar en mobile === */
@media (max-width: 980px) {
    .hero {
        padding: 130px 0 0;
        min-height: auto;
    }

    .hero-features {
        position: static;
        margin-top: 48px;
    }
}

@media (max-width: 640px) {
    .hero {
        background-position: 58% 45%;
        padding: 110px 0 0;
    }

    .hero p.lede {
        font-size: 1rem;
    }

    .hero .cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        padding: 18px 0;
    }

    .hero-features .wrap {
        gap: 14px;
    }
}

section {
    padding: 96px 0;
}

.bg-cream {
    background: var(--bg);
}

.bg-beige {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.bg-dark {
    background: linear-gradient(180deg, var(--dark) 0%, #1b120f 100%);
    color: #fff;
}

.bg-dark .eyebrow {
    color: var(--natural-sand);
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.work-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.work-controls .btn svg {
    width: 16px;
    height: 16px;
}

.project-carousel-shell {
    position: relative;
}

.car-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(28, 23, 19, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.car-btn:hover {
    border-color: rgba(107, 69, 40, 0.5);
    color: var(--wood-brown);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 11, 9, 0.08);
}

.car-btn svg {
    width: 18px;
    height: 18px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 0 12px;
    margin-top: 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(107, 69, 40, 0.2);
    transition: transform .2s ease, background .2s ease;
}

.carousel-dot.is-active {
    background: var(--wood-brown);
    transform: scale(1.08);
}

.car-btn--side {
    position: absolute;
    top: calc(50% - 33px);
    z-index: 3;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(28, 23, 19, 0.1);
    color: var(--wood-brown-dark);
    box-shadow: 0 6px 16px rgba(18, 11, 9, 0.1);
}

.car-btn--side:hover {
    color: #fff;
    background: var(--wood-brown);
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
}

.car-btn--side-prev {
    left: -66px;
}

.car-btn--side-next {
    right: -66px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.project-card {
    position: relative;
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    background: var(--surface-soft);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    box-shadow: none;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, background-color .3s ease;
    cursor: pointer;
}

.project-card.is-active {
    border-color: rgba(107, 69, 40, 0.22);
    background: var(--surface);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: rgba(107, 69, 40, 0.18);
    outline: none;
}

.project-card .thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}

.project-card:hover .thumb img,
.project-card:focus-visible .thumb img {
    transform: scale(1.03);
    filter: saturate(1.04) contrast(1.01);
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(18, 11, 9, 0.78);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 7px 12px;
    border-radius: 999px;
}

.project-tag--light {
    background: rgba(247, 237, 224, 0.96);
    color: var(--wood-brown-dark);
    border: 1px solid rgba(107, 69, 40, 0.16);
}

.project-body {
    padding: 18px 20px 20px;
    min-height: auto;
}

.project-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 10px;
}

.project-meta {
    font-size: 0.78rem;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 11px;
    margin-bottom: 14px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--wood-brown);
    transition: color .2s ease, gap .2s ease;
}

.project-link svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.project-card:hover .project-link,
.project-card:focus-visible .project-link {
    color: var(--wood-brown-dark);
}

.project-card:hover .project-link svg,
.project-card:focus-visible .project-link svg {
    transform: translateX(3px);
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.project-meta .dot {
    margin: 0 5px;
    color: var(--line);
}

.project-meta i {
    color: var(--wood-brown);
    font-size: 0.76rem;
}

.project-meta svg {
    width: 15px;
    height: 15px;
    color: var(--wood-brown);
    flex-shrink: 0;
}

.project-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 11, 9, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

.project-preview-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-preview {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(370px, 0.9fr);
    align-self: center;
    width: min(940px, calc(100vw - 48px));
    height: min(420px, calc(100vh - 48px));
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transition: opacity .24s ease, transform .24s ease;
}

.project-preview.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.project-preview__media {
    position: relative;
    min-height: 0;
    background: #fffdfa;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
}

.project-preview__gallery-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.project-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: opacity .18s ease, transform .3s ease;
}

.project-preview__counter {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(18, 11, 9, 0.72);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-preview__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(107, 69, 40, 0.18);
    background: #fffdfa;
    color: var(--wood-brown-dark);
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}

#previewPrev {
    left: 10px;
    transform: translateY(-50%);
}

#previewNext {
    right: 10px;
    transform: translateY(-50%);
}

.project-preview__nav:hover {
    background: var(--wood-brown);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.project-preview__nav svg {
    width: 20px;
    height: 20px;
}

.project-preview__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    flex: 0 0 60px;
    width: 100%;
    max-width: 100%;
    gap: 7px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.project-preview__thumbs::-webkit-scrollbar {
    display: none;
}

.project-preview__thumb {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    opacity: 0.78;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.project-preview__thumb:hover,
.project-preview__thumb.is-active {
    opacity: 1;
    border-color: var(--natural-sand);
    transform: translateY(-2px);
}

.project-preview__thumb img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.project-preview__content {
    position: relative;
    padding: 24px 26px 18px;
    background: #fffdfa;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.project-preview__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(28, 23, 19, 0.08);
    background: var(--beige);
    color: var(--ink);
    display: grid;
    place-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-preview__close:hover {
    transform: rotate(90deg);
    box-shadow: 0 12px 24px rgba(18, 11, 9, 0.08);
}

.project-preview__close svg {
    width: 18px;
    height: 18px;
}

.eyebrow--light {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    background: transparent;
    color: var(--wood-brown-dark);
    border: 0;
    padding: 0;
    font-size: 0.68rem;
    margin-bottom: 12px;
}

.project-preview__content h3 {
    margin: 0 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.project-preview__content p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 0;
    max-width: 38ch;
}

.project-preview__meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.project-preview__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid rgba(28, 23, 19, 0.08);
    border-radius: 7px;
    background: var(--beige);
}

.icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(107, 69, 40, 0.08);
    color: var(--wood-brown-dark);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 15px;
    height: 15px;
}

.project-preview__meta-item strong,
.project-preview__meta-item small {
    display: block;
}

.project-preview__meta-item strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    font-size: 0.94rem;
    color: var(--ink);
    margin-bottom: 3px;
}

.project-preview__meta-item small {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink-soft);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-preview__actions {
    margin: 16px 0 0;
    padding-top: 0;
    display: flex;
    gap: 12px;
}

.project-preview__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 6px;
}

.btn-secondary {
    background: transparent;
    border-color: rgba(107, 69, 40, 0.5);
    color: var(--ink);
}

.btn-secondary:hover {
    background: rgba(107, 69, 40, 0.08);
    border-color: var(--wood-brown);
}

body.project-modal-open {
    overflow: hidden;
}

/* === Fix z-index conflictos: header y back-to-top debajo del modal === */
body.project-modal-open #siteHeader {
    z-index: 999;
    pointer-events: none;
}

body.project-modal-open #back-to-top-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Asegura que #our-work y #proceso no creen stacking context por encima del modal */
#our-work,
#proceso {
    isolation: auto;
}

#proceso {
    position: relative;
    z-index: 1;
}

#our-work {
    position: relative;
    z-index: 1;
}

.project-preview__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 14px;
}

.g-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.g-item:hover img {
    transform: scale(1.07);
}

.g-item .g-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(18, 11, 9, 0.72);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
}

.g-tall {
    grid-row: span 2;
}

.g-wide {
    grid-column: span 2;
}


.videos-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin-top: 40px;
    scrollbar-width: none;
}

.videos-row::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 clamp(240px, 30vw, 340px);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-soft);
}

.video-thumb img,
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    opacity: 0.88;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(107, 69, 40, 0.82);
    border-color: rgba(255, 255, 255, 0.8);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 9, 7, 0.8);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.video-info {
    padding: 16px 2px 0;
}

.video-info h4 {
    color: #fff;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.83rem;
}

#proceso {
    position: relative;
    overflow: hidden;
}

#proceso {
    position: relative;
    overflow: hidden;
}

#proceso::before,
#proceso::after {
    content: "";
    position: absolute;
    top: 20px;
    width: 420px;
    height: 420px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
    /* difumina los bordes de la imagen */
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

#proceso::before {
    left: -40px;
    background-image: url('assets/imgestrategia/casa-boceto-izquierda.webp');
    background-position: left top;
}

#proceso::after {
    right: -40px;
    background-image: url('assets/imgestrategia/herramientas-boceto-derecha.webp');
    background-position: right top;
}

#proceso>.wrap {
    position: relative;
    z-index: 1;
}

/* ← y acá, para celulares */
@media (max-width: 980px) {

    #proceso::before,
    #proceso::after {
        width: 280px;
        height: 280px;
        opacity: 0.07;
    }
}

@media (max-width: 640px) {

    #proceso::before,
    #proceso::after {
        display: none;
    }
}

.proceso-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Modulo para la lista de elementos dentro de las tarjetas de proceso y el color del texto de los items */
.proceso-card__list li {
    position: relative;
    padding-left: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.4;
}

.proceso-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--wood-brown);
}

.sistema-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}

.sistema-head .rule-center {
    width: 72px;
    height: 3px;
    background: var(--natural-sand);
    margin: 14px auto 20px;
    border-radius: 999px;
}

.sistema-head p {
    color: var(--ink-soft);
}

.sistema-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.2px solid rgba(28, 23, 19, 0.08);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
    text-align: left;
    width: 100%;
}

.step-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 11, 9, 0.04);
}

.step-item svg {
    width: 20px;
    height: 20px;
    color: var(--ink-soft);
    flex-shrink: 0;
    transition: color .2s ease;
}

.step-item .step-label b {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.step-item .step-label span {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
}

.step-item.active {
    background: rgba(251, 238, 224, 0.9);
    border-color: rgba(199, 165, 122, 0.5);
    box-shadow: 0 12px 26px rgba(199, 165, 122, 0.08);
}

.step-item.active svg {
    color: var(--wood-brown);
}

.step-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(28, 23, 19, 0.08);
    border-radius: 22px;
    padding: 34px 32px;
    min-height: 420px;
    box-shadow: var(--shadow-soft);
}

.step-panel-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.step-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wood-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(107, 69, 40, 0.2);
}

.step-panel-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.step-panel-head b {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--wood-brown);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.step-panel-head h3 {
    font-size: 1.32rem;
}

.step-panel-desc {
    color: var(--ink-soft);
    margin-bottom: 28px;
    max-width: 620px;
}

.step-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.step-fact {
    background: linear-gradient(180deg, rgba(248, 238, 229, 0.92), rgba(244, 232, 220, 0.9));
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(199, 165, 122, 0.18);
}

.step-fact .fact-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.86rem;
}

.step-fact .fact-head svg {
    width: 16px;
    height: 16px;
    color: var(--wood-brown);
}

.step-fact p {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.why-item {
    text-align: center;
    padding: 12px;
}

.why-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e5d2 0%, #eddcc7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.why-icon svg {
    width: 28px;
    height: 28px;
    color: var(--wood-brown);
}

.why-item h4 {
    font-size: 1.04rem;
    margin-bottom: 10px;
}

.why-item p {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* === TESTIMONIOS === */

.testi-section {
    position: relative;
    padding: 0 28px 28px;
}

.testi-head {
    position: relative;
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}

.testi-head h2 {
    font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem);
    color: var(--ink);
}

.testi-head h2 em {
    font-style: normal;
    color: var(--wood-brown);
}

.testi-head .rule-center {
    width: 60px;
    height: 3px;
    background: var(--natural-sand);
    margin: 8px auto 10px;
    border-radius: 999px;
}

.testi-head p {
    color: var(--ink-soft);
    font-size: 0.96rem;
    max-width: 480px;
    margin: 0 auto;
}

.testi-quote {
    position: absolute;
    top: 6px;
    width: 34px;
    height: 27px;
    color: rgba(107, 69, 40, 0.12);
    pointer-events: none;
}

.testi-quote svg {
    width: 100%;
    height: 100%;
}

.testi-quote--left {
    left: 0;
}

.testi-quote--right {
    right: 0;
}

@media (max-width: 860px) {
    .testi-quote {
        display: none;
    }
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.testi-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.testi-card__photo {
    position: relative;
    overflow: visible;
}

.testi-card__photo-inner {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.testi-card__photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.testi-avatar {
    position: absolute;
    left: 18px;
    bottom: -28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(18, 11, 9, 0.22);
    background: var(--beige);
}

.testi-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wood-brown);
}

.testi-avatar__initials {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.testi-avatar__badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wood-brown);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.testi-avatar__badge svg {
    width: 11px;
    height: 11px;
}

.testi-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 40px 22px 22px;
}

.testi-card .stars {
    display: flex;
    gap: 3px;
    color: var(--natural-sand);
    margin-bottom: 12px;
}

.testi-card .stars svg {
    width: 15px;
    height: 15px;
}

.testi-card .quote {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ink-soft);
    flex: 1 1 auto;
    margin-bottom: 18px;
}

.testi-divider {
    height: 1px;
    background: var(--line);
    margin-bottom: 14px;
}

.testi-who b {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.testi-who span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.testi-who span svg {
    width: 13px;
    height: 13px;
    color: var(--wood-brown);
    flex-shrink: 0;
}

/* Reveal de testimonios */
.testi-head .eyebrow,
.testi-head h2,
.testi-head .rule-center,
.testi-head p,
.testi-quote {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.testi-head.in-view .eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.testi-head.in-view h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.testi-head.in-view .rule-center {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .18s;
}

.testi-head.in-view p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .24s;
}

.testi-head.in-view .testi-quote {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .3s;
}

.testi-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}

.testi-grid.in-view .testi-card {
    opacity: 1;
    transform: translateY(0);
}

.testi-grid.in-view .testi-card:nth-child(1) {
    transition-delay: .05s;
}

.testi-grid.in-view .testi-card:nth-child(2) {
    transition-delay: .15s;
}

.testi-grid.in-view .testi-card:nth-child(3) {
    transition-delay: .25s;
}

.testi-grid.in-view .testi-card:nth-child(4) {
    transition-delay: .35s;
}

@media (prefers-reduced-motion: reduce) {

    .testi-head .eyebrow,
    .testi-head h2,
    .testi-head .rule-center,
    .testi-head p,
    .testi-quote,
    .testi-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Responsive */
@media (max-width: 980px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 640px) {
    .testi-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    .testi-card__body {
        padding: 36px 18px 20px;
    }
}

/* === FAQ === */

.faq-section {
    position: relative;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    margin-top: 44px;
}

/* Lista de preguntas */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(28, 23, 19, 0.06);
    box-shadow: 0 8px 20px rgba(18, 11, 9, 0.03);
    transition: box-shadow .2s ease, border-color .2s ease;
}

/* Fondos alternados - usando variables semánticas */
.faq-item--a {
    background: var(--surface);
}

.faq-item--b {
    background: var(--surface-soft);
}

.faq-item:hover {
    box-shadow: 0 14px 28px rgba(18, 11, 9, 0.06);
    border-color: rgba(107, 69, 40, 0.16);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
}

.faq-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(100, 82, 59, 0.18);
    color: var(--wood-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .2s ease, color .2s ease;
}

.faq-item.open .faq-icon {
    background: var(--wood-brown);
    color: #fff;
}

.faq-q-text {
    flex: 1 1 auto;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.faq-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(199, 165, 122, 0.18);
    color: var(--wood-brown-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s ease, background .2s ease, color .2s ease;
}

.faq-toggle svg {
    width: 15px;
    height: 15px;
}

.faq-item.open .faq-toggle {
    background: var(--wood-brown);
    color: #fff;
    transform: rotate(135deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.open .faq-a {
    max-height: 220px;
}

.faq-a-inner {
    padding: 0 20px 20px 78px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Panel lateral */
.faq-side {
    background: var(--surface);
    border: 1px solid var(--border-warm);
    border-radius: 22px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.faq-side__illustration {
    width: 120px;
    height: 100px;
    margin: 0 auto 12px;
}

.faq-side__illustration svg {
    width: 100%;
    height: 100%;
}

.faq-side__rule {
    width: 46px;
    height: 3px;
    background: var(--natural-sand);
    margin: 0 auto 16px;
    border-radius: 999px;
}

.faq-side h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.faq-side>p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.faq-side__btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.faq-side__btn svg {
    width: 16px;
    height: 16px;
}

.faq-side__btn:last-child {
    margin-bottom: 0;
}

/* Fila de sellos de confianza */
.faq-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 40px;
    padding: 30px 10px;
    background: var(--surface);
    border: 1px solid rgba(28, 23, 19, 0.06);
    border-radius: 18px;
}

.faq-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 20px;
    background: var(--surface);
    border-left: 1px solid rgba(28, 23, 19, 0.08);
}

.faq-badge:first-child {
    border-left: none;
}

.faq-badge__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(199, 165, 122, 0.16);
    color: var(--wood-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.faq-badge b {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}

.faq-badge span {
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 980px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-side {
        order: -1;
    }

    .faq-badges {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .faq-badge {
        border-left: none;
        padding: 0 10px;
    }
}

@media (max-width: 640px) {
    .faq-badges {
        grid-template-columns: 1fr;
    }

    .faq-a-inner {
        padding-left: 20px;
    }

    .faq-q-text {
        font-size: 0.88rem;
    }
}

.faq-cta h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.faq-cta p {
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    color: #fff;
    font-size: clamp(2rem, 1vw + 1.5rem, 2.8rem);
    margin-bottom: 18px;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-size: 0.98rem;
}

.contact-perk {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-perk .ci {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(199, 165, 122, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--natural-sand);
}

.contact-perk .ci svg {
    width: 18px;
    height: 18px;
}

.contact-perk b {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
    color: #fff;
}

.contact-perk span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.55);
}

.whatsapp-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.whatsapp-line svg {
    width: 18px;
    height: 18px;
    color: var(--natural-sand);
}

.whatsapp-line b {
    color: #fff;
}

.form-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 38px;
    box-shadow: var(--shadow-strong);
}

.form-card h3 {
    font-size: 1.2rem;
    margin-bottom: 22px;
    color: var(--ink);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.2px solid rgba(28, 23, 19, 0.12);
    border-radius: 10px;
    background: rgba(247, 241, 234, 0.9);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(107, 69, 40, 0.5);
    box-shadow: 0 0 0 4px rgba(107, 69, 40, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin: 6px 0 20px;
}

.form-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 0.9rem;
}

.form-note {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eaf7ee;
    color: #1d6135;
    font-size: 0.85rem;
}

.form-note.show {
    display: block;
}

footer {
    background: linear-gradient(180deg, #120b09 0%, #080605 100%);
    color: rgba(255, 255, 255, 0.66);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-grid h5 {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid ul a {
    font-size: 0.88rem;
    transition: color .2s ease;
}

.footer-grid ul a:hover {
    color: #fff;
}

.footer-grid .contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.footer-grid .contact-item svg {
    width: 15px;
    height: 15px;
    color: var(--natural-sand);
    flex-shrink: 0;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-about .brand {
    color: var(--wood-brown-brand) !important;
}

.amp-brand {
    color: var(--wood-brown-brand) !important;
    display: inline !important;
    font-size: 1.1rem !important;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.social-row a:hover {
    background: var(--wood-brown);
    transform: translateY(-2px);
}

.social-row a svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    text-align: center;
    font-size: 0.8rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 4, 0.92);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}


/* === NUESTRO PROCESO === */

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.proceso-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.proceso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(107, 69, 40, 0.24);
}

/* Reveal de las tarjetas de proceso al hacer scroll */
.proceso-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease;
}

.proceso-grid.in-view .proceso-card {
    opacity: 1;
    transform: translateY(0);
}

.proceso-grid.in-view .proceso-card:nth-child(1) {
    transition-delay: .05s;
}

.proceso-grid.in-view .proceso-card:nth-child(2) {
    transition-delay: .13s;
}

.proceso-grid.in-view .proceso-card:nth-child(3) {
    transition-delay: .21s;
}

.proceso-grid.in-view .proceso-card:nth-child(4) {
    transition-delay: .29s;
}

.proceso-grid.in-view .proceso-card:nth-child(5) {
    transition-delay: .37s;
}

@media (prefers-reduced-motion: reduce) {
    .proceso-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.proceso-grid.in-view .proceso-card:hover {
    transform: translateY(-4px);
}

.proceso-card__photo {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4/3;
}

.proceso-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.proceso-card__num {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wood-brown-dark);
    color: #fff;
    border: 3px solid #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(18, 11, 9, 0.25);
}

.proceso-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 140px;
    padding: 28px 18px 20px;
}

/* Modulo de las tarjetas, funcion de diseño y estilo de los encabezados */
.proceso-card__body h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-align: center;
}

/* Modulo de las tarjetas, funcion de diseño y estilo de los subtitulos */
.proceso-card__subtitle {
    display: block;
    font-family: 'Fraunces', serif;
    /*  cambiado de Inter a Fraunces */
    font-style: italic;
    /*  agregado, le da el toque elegante */
    font-weight: 500;
    color: var(--wood-brown);
    /*  cambiado, para que resalte más que el gris */
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
}

.proceso-card__body p {
    font-family: 'Inter', sans-serif;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Compact values banner — swap the background photo by changing this url() */
.proceso-values {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    margin-top: 56px;
    overflow: hidden;
    background: url('assets/img/nuevas.webp') center / cover no-repeat;
    color: #fff;
}

.proceso-values__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 9, 8, 0.6) 0%, rgba(10, 9, 8, 0.72) 100%);
}

.proceso-values__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 44px 32px;
    justify-content: center;
}

.proceso-values__head {
    flex: 0 0 340px;
    max-width: 340px;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.proceso-values__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #c99a5b;
}

.proceso-values__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(201, 154, 91, 0.5);
}

.proceso-values__title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.625rem, 1.4vw + 1rem, 2.25rem);
    line-height: 1.3;
    margin-top: 10px;
    color: #fff;
}

.proceso-values__grid {
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 180px));
    gap: 0 28px;
    text-align: left;
    justify-content: start;
}

.proceso-value {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
    /* ← agregado */
}

.proceso-value:first-child {
    padding-left: 0;
    border-left: none;
}

.proceso-value__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent;
    margin: 0 0 12px;
}

.proceso-value__icon svg {
    width: 45px;
    height: 45px;
    color: #c99a5b;
}

.proceso-value h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #fff;
}

.proceso-value p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 22ch;
    margin: 0 auto;
}

/* Scroll-triggered reveal, fires once via .in-view (see script.js) */
.proceso-values__eyebrow,
.proceso-values__title,
.proceso-value {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease-out, transform .55s ease-out;
}

.proceso-values.in-view .proceso-values__eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.proceso-values.in-view .proceso-values__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.proceso-values.in-view .proceso-value {
    opacity: 1;
    transform: translateY(0);
}

.proceso-values.in-view .proceso-value:nth-child(1) {
    transition-delay: .2s;
}

.proceso-values.in-view .proceso-value:nth-child(2) {
    transition-delay: .3s;
}

.proceso-values.in-view .proceso-value:nth-child(3) {
    transition-delay: .4s;
}

.proceso-values.in-view .proceso-value:nth-child(4) {
    transition-delay: .5s;
}


@media (max-width:1200px) {
    .proceso-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:980px) {
    nav.main-nav {
        display: none;
    }

    header .btn-primary {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 4vw + 0.5rem, 2.4rem);
    }

    .hero-features .wrap {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .hf-item {
        justify-content: flex-start;
    }

    .sistema-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
        column-gap: 20px;
    }

    .testi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
    }

    .g-wide {
        grid-column: span 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .project-preview {
        grid-template-columns: 1.1fr 0.9fr;
        width: min(760px, calc(100vw - 40px));
    }

    .car-btn--side-prev {
        left: -20px;
    }

    .car-btn--side-next {
        right: -20px;
    }

    .section-head.split {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width:640px) {
    .wrap {
        padding: 0 20px;
    }

    section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-features .wrap {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-facts {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head.split,
    .work-controls {
        align-items: flex-start;
    }

    .work-bg {
        display: none;
    }

    .work-controls {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .work-controls .btn {
        font-size: 0.76rem;
        padding: 11px 14px;
    }

    .project-card {
        flex-basis: 100%;
    }

    .car-btn--side {
        width: 36px;
        height: 36px;
    }

    .car-btn--side-prev {
        left: 8px;
    }

    .car-btn--side-next {
        right: 8px;
    }

    .project-preview {
        display: flex;
        flex-direction: column;
        width: min(460px, calc(100vw - 24px));
        height: min(720px, calc(100vh - 24px));
    }

    .project-preview__media {
        min-height: 235px;
        flex: 0 0 290px;
        grid-template-rows: minmax(0, 1fr) 54px;
        padding: 8px;
    }

    .project-preview__thumb {
        flex-basis: 54px;
    }

    .project-preview__content {
        padding: 22px 20px 20px;
    }

    .project-preview__content h3 {
        margin-top: 12px;
        font-size: 1.9rem;
    }

    .project-preview__meta {
        gap: 8px;
    }

    .project-preview__actions {
        flex-direction: column;
    }

    .project-preview__actions .btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    #our-work .section-head .eyebrow,
    #our-work .section-head h2,
    #our-work .section-head .work-intro,
    .work-badge,
    #our-work .project-carousel-shell,
    .proceso-values__eyebrow,
    .proceso-values__title,
    .proceso-value {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .project-card,
    .project-card .thumb img,
    .project-preview,
    .project-preview-backdrop {
        transition: none;
    }
}

@media (max-width: 860px) {
    .proceso-values__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 20px;
    }

    .proceso-values__head {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .proceso-values__grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    .proceso-value:nth-child(3) {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 480px) {
    .proceso-values__grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .proceso-value {
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .proceso-value:first-child {
        padding-top: 0;
        border-top: none;
    }
}

/* === Reveal FAQ hero (texto) === */
.faq-hero__text .eyebrow,
.faq-hero__text h2,
.faq-hero__rule,
.faq-hero__text p {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease-out, transform .55s ease-out;
}

.faq-hero__text.in-view .eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.faq-hero__text.in-view h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.faq-hero__text.in-view .faq-hero__rule {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .18s;
}

.faq-hero__text.in-view p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .26s;
}

/* La foto entra con un leve zoom-out + fade */
.faq-hero__img {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .7s ease-out, transform .7s ease-out;
}

.faq-hero.in-view .faq-hero__img {
    opacity: 1;
    transform: scale(1);
}

/* === Reveal de las preguntas (cascada) === */
.faq-list .faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.faq-list.in-view .faq-item {
    opacity: 1;
    transform: translateY(0);
}

.faq-list.in-view .faq-item:nth-child(1) {
    transition-delay: .05s;
}

.faq-list.in-view .faq-item:nth-child(2) {
    transition-delay: .12s;
}

.faq-list.in-view .faq-item:nth-child(3) {
    transition-delay: .19s;
}

.faq-list.in-view .faq-item:nth-child(4) {
    transition-delay: .26s;
}

.faq-list.in-view .faq-item:nth-child(5) {
    transition-delay: .33s;
}

.faq-list.in-view .faq-item:nth-child(6) {
    transition-delay: .40s;
}

/* === Reveal del panel lateral (entra desde la derecha) === */
.faq-side {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    transition-delay: .2s;
}

.faq-side.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* === Reveal de los sellos de confianza === */
.faq-badges .faq-badge {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.faq-badges.in-view .faq-badge {
    opacity: 1;
    transform: translateY(0);
}

.faq-badges.in-view .faq-badge:nth-child(1) {
    transition-delay: .05s;
}

.faq-badges.in-view .faq-badge:nth-child(2) {
    transition-delay: .13s;
}

.faq-badges.in-view .faq-badge:nth-child(3) {
    transition-delay: .21s;
}

.faq-badges.in-view .faq-badge:nth-child(4) {
    transition-delay: .29s;
}

@media (prefers-reduced-motion: reduce) {

    .faq-hero__text .eyebrow,
    .faq-hero__text h2,
    .faq-hero__rule,
    .faq-hero__text p,
    .faq-hero__img,
    .faq-list .faq-item,
    .faq-side,
    .faq-badges .faq-badge {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === MODO OSCURO - overrides con variables semánticas === */
[data-theme="dark"] body {
    background: linear-gradient(180deg, #0d0a09 0%, #120b09 100%);
    color: var(--text);
}

[data-theme="dark"] .bg-cream {
    background: #120b09;
}

[data-theme="dark"] .bg-beige {
    background: linear-gradient(180deg, #1b120f 0%, #120b09 100%);
}

[data-theme="dark"] .section-head h2,
[data-theme="dark"] .sistema-head h2,
[data-theme="dark"] .testi-head h2,
[data-theme="dark"] .services-heading h2 {
    color: #f7f1ea;
}

[data-theme="dark"] .section-head p,
[data-theme="dark"] .work-intro,
[data-theme="dark"] .sistema-head p,
[data-theme="dark"] .testi-head p {
    color: #c9b8a8;
}

[data-theme="dark"] .eyebrow {
    color: #d8ae67;
}

[data-theme="dark"] .testi-card,
[data-theme="dark"] .proceso-card,
[data-theme="dark"] .faq-item--a,
[data-theme="dark"] .faq-side,
[data-theme="dark"] .project-card,
[data-theme="dark"] .project-preview,
[data-theme="dark"] .project-preview__content,
[data-theme="dark"] .project-preview__media {
    background: #1e1410 !important;
    border-color: rgba(255, 255, 255, .08) !important;
    color: #f7f1ea;
}

[data-theme="dark"] .faq-item--b {
    background: #251915 !important;
    border-color: rgba(255, 255, 255, .06) !important;
}

[data-theme="dark"] .testi-card .quote,
[data-theme="dark"] .proceso-card__body p,
[data-theme="dark"] .faq-a-inner,
[data-theme="dark"] .faq-side p,
[data-theme="dark"] .project-preview__content p {
    color: #c9b8a8;
}

[data-theme="dark"] .proceso-card__body h3,
[data-theme="dark"] .testi-who b,
[data-theme="dark"] .faq-q-text,
[data-theme="dark"] .faq-side h3,
[data-theme="dark"] .project-body h3 {
    color: #f7f1ea;
}

[data-theme="dark"] .work-badge {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .1);
    color: #f7f1ea;
}

[data-theme="dark"] .faq-badge {
    border-color: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .faq-badge b {
    color: #f7f1ea;
}

[data-theme="dark"] .faq-badge span {
    color: #c9b8a8;
}

[data-theme="dark"] .form-card,
[data-theme="dark"] .contact-form {
    background: #1e1410;
    border-color: rgba(255, 255, 255, .08);
    color: #f7f1ea;
}

[data-theme="dark"] .field label,
[data-theme="dark"] .form-row label,
[data-theme="dark"] .contact-form label {
    color: #c9b8a8;
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background: #120b09;
    border-color: rgba(255, 255, 255, .12);
    color: #f7f1ea;
}

[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .contact-form input:focus {
    border-color: rgba(199, 165, 122, .6);
    box-shadow: 0 0 0 4px rgba(199, 165, 122, .14);
}

[data-theme="dark"] .btn-secondary {
    border-color: rgba(199, 165, 122, .4);
    color: #f7f1ea;
}

[data-theme="dark"] .btn-outline {
    border-color: rgba(255, 255, 255, .14);
    color: #f7f1ea;
}

/* Fichas de servicios en oscuro - papel oscuro */
[data-theme="dark"] .ficha__sheet {
    background: #1e1410;
    border-color: rgba(199, 165, 122, .22);
    box-shadow: 8px 8px 0 #0d0a09;
}

[data-theme="dark"] .ficha__head {
    border-color: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .ficha__desc,
[data-theme="dark"] .ficha__scope li {
    color: #c9b8a8;
}

[data-theme="dark"] .ficha__num {
    background: #120b09;
    color: #d8ae67;
    border-color: rgba(199, 165, 122, .3);
}

[data-theme="dark"] .ficha__photo {
    border-color: rgba(255, 255, 255, .1);
}

[data-theme="dark"] .work-card,
[data-theme="dark"] .video-card {
    background: #1e1410;
    border-color: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .video-info h4 {
    color: #f7f1ea;
}

[data-theme="dark"] .work-videos,
[data-theme="dark"] .work-featured-video,
[data-theme="dark"] .services-edition,
[data-theme="dark"] .services-cta {
    background: #120b09;
    border-color: rgba(255, 255, 255, .06);
}