/* ═══════════════════════════════════════════════════════════
   Bryan Marc — hoja de estilos
   Base crema · acentos pastel · Roboto · formas orgánicas
   ═══════════════════════════════════════════════════════════ */

/* ── 1 · Tokens ────────────────────────────────────────────── */
:root {
    /* Superficies */
    --shell:        #FCF8F3;   /* crema base */
    --cream:        #F5EFE7;   /* crema profundo */
    --ink:          #26313C;   /* tinta — nunca negro puro */
    --ink-soft:     #5F6D7A;   /* texto secundario */
    --ink-faint:    #97A3AE;   /* texto terciario */
    --line:         #E6DDD2;   /* filetes */

    /* Pasteles */
    --mint:         #A8DDCB;
    --sky:          #BCDCF2;
    --lilac:        #D8CFF0;
    --peach:        #FFD2BE;
    --butter:       #FAE6A8;

    /* Pasteles diluidos — fondos de sección */
    --mint-tint:    #EAF6F1;
    --lilac-tint:   #F1EEFA;

    /* Tipografía */
    --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Formas */
    --leaf-a: 52px 12px 52px 12px;
    --leaf-b: 12px 52px 12px 52px;
    --soft:   28px;

    /* Ritmo */
    --gut: clamp(1.25rem, 4vw, 2.5rem);
    --sec: clamp(4.5rem, 10vw, 8.5rem);
    --max: 1180px;

    /* Sombra pastel — nunca gris */
    --lift: 0 18px 44px -24px rgba(38, 49, 60, .30);
    --lift-hi: 0 28px 60px -26px rgba(38, 49, 60, .38);
}

/* ── 2 · Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(1rem, .96rem + .22vw, 1.125rem);
    line-height: 1.65;
    color: var(--ink);
    background: var(--shell);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--ink);
    color: var(--shell);
    padding: .8rem 1.4rem;
    border-radius: 0 0 var(--soft) var(--soft);
    font-weight: 500;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ── 3 · Tipografía ────────────────────────────────────────── */
.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

.sec-title {
    font-size: clamp(1.9rem, 1.15rem + 3.4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.035em;
    max-width: 20ch;
    text-wrap: balance;
}

.sec-sub {
    margin-top: 1.1rem;
    max-width: 52ch;
    color: var(--ink-soft);
}

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ── 4 · Botones ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 500;
    line-height: 1;
    padding: .95rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .22s cubic-bezier(.2,.8,.3,1), background-color .22s ease,
                color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn { position: relative; overflow: hidden; }

/* Barrido de luz al pasar el cursor */
.btn-solid::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-18deg);
    transition: left .55s cubic-bezier(.3,.8,.3,1);
}
.btn-solid:hover::before { left: 115%; }

.btn-solid { background: var(--ink); color: var(--shell); box-shadow: var(--lift); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--shell); transform: translateY(-3px); }

/* Latido de atención en el CTA principal */
.pulse { animation: cta-beat 4.5s ease-in-out 2s infinite; }
.pulse:hover { animation-play-state: paused; }

@keyframes cta-beat {
    0%, 88%, 100% { box-shadow: var(--lift); }
    92%           { box-shadow: var(--lift), 0 0 0 0 rgba(168, 221, 203, .9); }
    99%           { box-shadow: var(--lift), 0 0 0 16px rgba(168, 221, 203, 0); }
}

.btn-sm  { padding: .68rem 1.25rem; font-size: .92rem; }
.btn-lg  { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.lnk {
    font-weight: 500;
    border-bottom: 2px solid var(--mint);
    padding-bottom: 2px;
    transition: border-color .2s ease, color .2s ease;
}
.lnk:hover { border-color: var(--ink); }

/* ── 5 · Navegación ────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--gut);
    background: rgba(252, 248, 243, 0);
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.stuck {
    background: rgba(252, 248, 243, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding-block: .7rem;
}

.nav-logo { display: flex; align-items: center; gap: .65rem; letter-spacing: -.02em; }
.nav-logo-mark { width: 36px; height: 36px; flex: none; }
.nav-logo-mark svg { width: 100%; height: 100%; overflow: visible; }

/* Dos pétalos enfrentados que se abren al pasar el cursor */
.logo-petal {
    transform-origin: 22px 22px;
    transition: transform .55s cubic-bezier(.34,1.4,.5,1);
}
.logo-petal-1 { fill: var(--mint); }
.logo-petal-2 { fill: var(--sky); transform: rotate(180deg); opacity: .9; }
.nav-logo:hover .logo-petal-1 { transform: rotate(-22deg) scale(1.06); }
.nav-logo:hover .logo-petal-2 { transform: rotate(202deg) scale(1.06); }

.nav-logo-mark text {
    fill: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.nav-logo-txt { display: inline-flex; align-items: baseline; gap: .3rem; font-weight: 300; }
.nav-logo-txt b { font-weight: 900; }
.logo-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mint);
    align-self: center;
    transition: transform .4s cubic-bezier(.34,1.4,.5,1), background-color .3s ease;
}
.nav-logo:hover .logo-dot { transform: scale(1.7); background: var(--peach); }

.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
    font-size: .95rem;
    font-weight: 400;
    position: relative;
    padding-block: .3rem;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--mint);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: .8rem; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: .38rem .8rem .38rem .42rem;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.lang-toggle:hover { border-color: var(--ink); background: var(--mint); }

.flag {
    width: 24px; height: 16px;
    flex: none;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(38, 49, 60, .18);
}
.flag svg { width: 100%; height: 100%; }
.flag svg[hidden] { display: none; }
.lang-toggle:hover .flag { animation: flag-wave .6s ease; }

@keyframes flag-wave {
    0%, 100% { transform: rotate(0deg); }
    30%      { transform: rotate(-7deg) scale(1.08); }
    65%      { transform: rotate(5deg) scale(1.08); }
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    width: 16px; height: 2px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ── 6 · Curvas divisorias (la cinta) ──────────────────────── */
.curve {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    line-height: 0;
    pointer-events: none;
}
.curve svg { width: 100%; height: clamp(52px, 7vw, 108px); }
.curve.flip { transform: scaleX(-1); }

.curve-mint  svg path { fill: var(--mint-tint); }
.curve-shell svg path { fill: var(--shell); }
.curve-cream svg path { fill: var(--cream); }
.curve-lilac svg path { fill: var(--lilac-tint); }
.curve-ink   svg path { fill: var(--ink); }

/* ── 7 · Portada ───────────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: clamp(7rem, 13vw, 10rem);
    padding-bottom: clamp(6rem, 11vw, 9rem);
    overflow: hidden;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; opacity: .55; }
.blob path { fill: currentColor; }
.blob-a { color: var(--mint);   width: 46vw; max-width: 620px; top: -14%;  right: -12%; animation: drift 26s ease-in-out infinite; }
.blob-b { color: var(--peach);  width: 34vw; max-width: 440px; bottom: 2%; left: -14%;  animation: drift 32s ease-in-out infinite reverse; }
.blob-c { color: var(--lilac);  width: 22vw; max-width: 280px; top: 44%;   right: 40%;  opacity: .38; animation: drift 38s ease-in-out infinite; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(2.5%, -4%) rotate(9deg); }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

/* Titular rotativo — cada línea es un cliente real */
.hero-lead {
    display: block;
    margin-bottom: .35rem;
    font-size: clamp(1.15rem, .95rem + .9vw, 1.7rem);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink-soft);
}

.rotator { display: grid; }
.rot {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.3,1);
}
.rot.on { visibility: visible; opacity: 1; transform: none; }
.rot.out { opacity: 0; transform: translateY(-.3em); }

.hero-sub {
    margin-top: 1.6rem;
    max-width: 46ch;
    font-size: clamp(1.02rem, .98rem + .3vw, 1.22rem);
    color: var(--ink-soft);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-note {
    margin-top: 1.4rem;
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--ink-faint);
}

.hero-visual { position: relative; }

.hero-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 58% 42% 47% 53% / 45% 39% 61% 55%;
    overflow: hidden;
    background: var(--sky);
    box-shadow: var(--lift-hi);
    animation: morph 18s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@keyframes morph {
    0%, 100% { border-radius: 58% 42% 47% 53% / 45% 39% 61% 55%; }
    33%      { border-radius: 44% 56% 62% 38% / 56% 47% 53% 44%; }
    66%      { border-radius: 51% 49% 38% 62% / 40% 58% 42% 60%; }
}

.hero-badge {
    position: absolute;
    left: -4%;
    bottom: 4%;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--shell);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: .6rem 1.1rem;
    font-size: .84rem;
    font-weight: 500;
    box-shadow: var(--lift);
}
.hero-badge-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #37B87F;
    box-shadow: 0 0 0 0 rgba(55, 184, 127, .55);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 11px rgba(55, 184, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 184, 127, 0); }
}


/* ── 8 · El problema ───────────────────────────────────────── */
.problema {
    position: relative;
    background: var(--mint-tint);
    padding-block: var(--sec) calc(var(--sec) + 3rem);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.pain {
    background: var(--shell);
    padding: clamp(1.8rem, 3vw, 2.4rem);
    transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease;
}
.pain.leaf-a { border-radius: var(--leaf-a); }
.pain.leaf-b { border-radius: var(--leaf-b); }
.pain:hover { transform: translateY(-6px); box-shadow: var(--lift); }

.pain-ico { display: block; width: 42px; height: 42px; color: var(--ink); margin-bottom: 1.2rem; }
.pain-ico svg { width: 100%; height: 100%; }

.pain h3 {
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin-bottom: .7rem;
}
.pain p { font-size: .97rem; color: var(--ink-soft); }

/* ── 9 · Servicios ─────────────────────────────────────────── */
.servicios {
    position: relative;
    background: var(--shell);
    padding-block: var(--sec) calc(var(--sec) + 3rem);
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.svc {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.8rem, 3vw, 2.6rem);
    border-radius: var(--leaf-a);
    transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease;
}
.svc:nth-child(even) { border-radius: var(--leaf-b); }
.svc:hover { transform: translateY(-7px); box-shadow: var(--lift-hi); }

.svc-wide { grid-column: span 4; }
.svc-wide h3 { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.2rem); max-width: 16ch; }
.svc-wide p  { max-width: 48ch; font-size: 1.05rem; }

.tone-mint   { background: var(--mint); }
.tone-sky    { background: var(--sky); }
.tone-lilac  { background: var(--lilac); }
.tone-peach  { background: var(--peach); }
.tone-butter { background: var(--butter); }

.svc-ico { width: 40px; height: 40px; color: var(--ink); margin-bottom: 1.4rem; }
.svc-ico svg { width: 100%; height: 100%; }

.svc h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
    text-wrap: balance;
}
.svc p { font-size: .98rem; color: rgba(38, 49, 60, .78); }

.svc-stack {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .06em;
    color: rgba(38, 49, 60, .58);
    margin-top: 1.2rem;
}

.svc-go {
    margin-top: 1.5rem;
    font-weight: 500;
    font-size: .93rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 2px;
    transition: gap .2s ease;
}
.svc-go::after { content: " →"; display: inline-block; transition: transform .25s ease; }
.svc:hover .svc-go::after { transform: translateX(4px); }

.svc-foot {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: var(--ink-soft);
}
.svc-foot a {
    font-weight: 500;
    color: var(--ink);
    border-bottom: 2px solid var(--peach);
    padding-bottom: 2px;
    margin-left: .4rem;
    transition: border-color .2s ease;
}
.svc-foot a:hover { border-color: var(--ink); }

/* ── 10 · Proceso ──────────────────────────────────────────── */
.proceso {
    position: relative;
    background: var(--cream);
    padding-block: var(--sec);
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.6rem);
    counter-reset: step;
}

.step { position: relative; padding-top: 3.4rem; }
.step::before {
    content: "";
    position: absolute;
    top: 1.55rem; left: 0; right: 0;
    height: 2px;
    background: var(--line);
}
.step-n {
    position: absolute;
    top: 0; left: 0;
    display: grid;
    place-items: center;
    width: 3.1rem; height: 3.1rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--shell);
    font-family: var(--mono);
    font-size: .84rem;
    font-weight: 500;
}
.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .6rem;
}
.step p { font-size: .96rem; color: var(--ink-soft); }
.step-tag {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--butter);
    border-radius: 999px;
    padding: .38rem .8rem;
}

/* ── 11 · Proyectos ────────────────────────────────────────── */
.proyectos {
    position: relative;
    background: var(--cream);
    padding-block: var(--sec) calc(var(--sec) + 3rem);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.4rem, 3vw, 2.2rem);
}

.work {
    display: flex;
    flex-direction: column;
    background: var(--shell);
    border-radius: var(--leaf-a);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease;
}
.work:nth-child(even) { border-radius: var(--leaf-b); }
.work:hover { transform: translateY(-7px); box-shadow: var(--lift-hi); }

.work-lead { grid-column: span 2; }
.work-lead .work-shot { aspect-ratio: 21 / 9; }
.work-lead h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.work-lead .work-desc { max-width: 54ch; font-size: 1.05rem; }

/* Cierre de la rejilla: tarjeta horizontal a todo el ancho */
.work-close {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
}
.work-close .work-shot { aspect-ratio: auto; height: 100%; min-height: 260px; }
.work-close .work-txt { display: flex; flex-direction: column; justify-content: center; }
.work-close h3 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.2rem); }

.work-shot {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sky);
}
.work-shot img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.work:hover .work-shot img { transform: scale(1.045); }

.work-txt { padding: clamp(1.5rem, 2.6vw, 2.2rem); }

.work-kind {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: .55rem;
}
.work h3 {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
}
.work-desc { font-size: .97rem; color: var(--ink-soft); }
.work-go {
    display: inline-block;
    margin-top: 1.2rem;
    font-weight: 500;
    font-size: .93rem;
    border-bottom: 2px solid var(--mint);
    padding-bottom: 2px;
}
.work:hover .work-go { border-color: var(--ink); }
.work-go.off { border-color: var(--line); color: var(--ink-faint); }
.work-soon { cursor: default; }

/* Lista desplegable de proyectos restantes */
.more { margin-top: clamp(2rem, 4vw, 3rem); }
.more summary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-weight: 500;
    background: var(--shell);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: .8rem 1.6rem;
    list-style: none;
    transition: background-color .22s ease, color .22s ease;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--ink); color: var(--shell); }
.more-chev { transition: transform .25s ease; }
.more[open] .more-chev { transform: rotate(180deg); }

.more-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: .5rem;
    margin-top: 1.6rem;
}
.more-list a, .more-list > li > span {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .85rem 1.1rem;
    background: var(--shell);
    border-radius: 14px 4px 14px 4px;
    transition: background-color .2s ease, transform .2s ease;
}
.more-list a:hover { background: var(--mint); transform: translateX(3px); }
.more-list strong { font-weight: 500; }
.more-list span { font-size: .85rem; color: var(--ink-faint); }
.more-list em { margin-left: auto; font-style: normal; color: var(--ink-faint); }
.more-list > li > span { color: inherit; opacity: .75; }

/* ── 12 · Confianza ────────────────────────────────────────── */
.confianza {
    position: relative;
    background: var(--lilac-tint);
    padding-block: var(--sec) calc(var(--sec) + 3rem);
}

.about {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-body { margin-top: 1.3rem; color: var(--ink-soft); max-width: 56ch; }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }

.about-card {
    background: var(--shell);
    border-radius: var(--leaf-b);
    padding: clamp(1.8rem, 3vw, 2.4rem);
    box-shadow: var(--lift);
}
.about-card-t {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.3rem;
}
.promises { list-style: none; display: grid; gap: .95rem; }
.promises li {
    position: relative;
    padding-left: 2rem;
    font-size: .97rem;
    line-height: 1.45;
}
.promises li::before {
    content: "";
    position: absolute;
    left: 0; top: .18em;
    width: 1.25rem; height: 1.25rem;
    border-radius: 50%;
    background: var(--mint);
}
.promises li::after {
    content: "";
    position: absolute;
    left: .38rem; top: .45em;
    width: .48rem; height: .26rem;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
}

.testis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-top: clamp(3rem, 6vw, 4.5rem);
}
.testi {
    background: var(--shell);
    border-radius: var(--leaf-a);
    padding: clamp(1.6rem, 2.8vw, 2.2rem);
}
.testi:nth-child(even) { border-radius: var(--leaf-b); }
.testi p { font-size: 1rem; line-height: 1.6; }
.testi footer { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .1rem; }
.testi strong { font-weight: 500; }
.testi footer span { font-size: .84rem; color: var(--ink-faint); }

/* ── 13 · Contacto ─────────────────────────────────────────── */
.contacto {
    background: var(--ink);
    color: var(--shell);
    padding-block: var(--sec);
}
.contacto .eyebrow { color: var(--mint); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact-title {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.04em;
    max-width: 16ch;
    text-wrap: balance;
}
.contact-sub { margin-top: 1.4rem; max-width: 46ch; color: rgba(252, 248, 243, .72); }

.contact-list { list-style: none; margin-top: 2.4rem; display: grid; gap: 0; }
.contact-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(252, 248, 243, .16);
}
.contact-list li > span:first-child {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(252, 248, 243, .5);
}
.contact-list a {
    font-weight: 500;
    border-bottom: 2px solid var(--mint);
    padding-bottom: 1px;
    transition: color .2s ease, border-color .2s ease;
}
.contact-list a:hover { color: var(--mint); }

.contact-form {
    background: var(--shell);
    color: var(--ink);
    border-radius: var(--leaf-b);
    padding: clamp(1.8rem, 3.4vw, 2.8rem);
    box-shadow: var(--lift-hi);
}
.form-t {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
}

.field { display: block; margin-bottom: 1.2rem; }
.field > span {
    display: block;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: .45rem;
}
.field input, .field textarea {
    width: 100%;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 16px 5px 16px 5px;
    padding: .85rem 1rem;
    font-size: .98rem;
    resize: vertical;
    transition: border-color .2s ease, background-color .2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    background: var(--shell);
    border-color: var(--ink);
}
.field textarea::placeholder { color: var(--ink-faint); }

.form-error {
    font-size: .9rem;
    color: #B4405C;
    background: var(--peach);
    border-radius: 12px 4px 12px 4px;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
}
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--ink-faint); text-align: center; }
.form-ok {
    margin-top: 1.2rem;
    background: var(--mint);
    border-radius: 16px 5px 16px 5px;
    padding: 1rem;
    font-weight: 500;
    text-align: center;
}

/* ── 14 · Pie ──────────────────────────────────────────────── */
.foot {
    background: var(--ink);
    color: rgba(252, 248, 243, .68);
    padding-block: 2.5rem 3rem;
    border-top: 1px solid rgba(252, 248, 243, .13);
}
.foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.foot-name { color: var(--shell); font-weight: 500; }
.foot-role { font-size: .88rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; }
.foot-links a { transition: color .2s ease; }
.foot-links a:hover { color: var(--mint); }
.foot-copy { font-family: var(--mono); font-size: .8rem; }

/* ── 15 · WhatsApp flotante ────────────────────────────────── */
.wa-float {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #37B87F;
    color: #fff;
    box-shadow: var(--lift-hi);
    opacity: 0;
    transform: scale(.6);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.3,1);
}
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.wa-float.on { opacity: 1; transform: scale(1); pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }

/* Anillo que late para llamar la atención */
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #37B87F;
    opacity: 0;
}
.wa-float.on::before { animation: wa-ring 2.8s ease-out infinite; }

@keyframes wa-ring {
    0%   { transform: scale(1); opacity: .7; }
    70%  { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* ── 16 · Aparición al hacer scroll ────────────────────────── */
.rise {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1);
}
.rise.seen { opacity: 1; transform: none; }

/* ── 17 · Adaptación a pantallas ───────────────────────────── */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 380px; margin-inline: auto; }
    .hero-badge { left: auto; right: 0; }
    .about { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .svc { grid-column: span 4; }
    .work-grid { grid-template-columns: 1fr; }
    .work-lead { grid-column: span 1; }
    .work-lead .work-shot { aspect-ratio: 16 / 10; }
    .work-close { grid-column: span 1; grid-template-columns: 1fr; }
    .work-close .work-shot { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed;
        inset: 0 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: var(--shell);
        padding: 5.5rem var(--gut) 2rem;
        border-radius: 0 0 var(--soft) var(--soft);
        box-shadow: var(--lift-hi);
        transform: translateY(-102%);
        transition: transform .35s cubic-bezier(.2,.8,.3,1);
    }
    .nav-links.open { transform: none; }
    .nav-links a { padding-block: .95rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-links a::after { display: none; }
    .nav .btn-sm { display: none; }

    .hero-cta .btn { flex: 1 1 100%; }
    .steps { gap: 2rem; }
    .step { padding-top: 0; padding-left: 4.2rem; }
    .step::before { display: none; }
    .step-n { top: -.15rem; }
}

@media (max-width: 460px) {
    :root { --leaf-a: 38px 10px 38px 10px; --leaf-b: 10px 38px 10px 38px; }
}

/* ── 18 · Movimiento reducido ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .rise { opacity: 1; transform: none; }
}

/* ── 19 · Impresión ────────────────────────────────────────── */
@media print {
    .nav, .wa-float, .curve, .hero-blobs { display: none; }
    body { background: #fff; }
    .contacto, .foot { background: #fff; color: #000; }
}
