/* ==========================================================================
   BEK Legal & Compliance — Hoja de estilos principal
   ========================================================================== */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/bodoni-moda.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/bodoni-moda-italic.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --navy-950: #060d1c;
    --navy-900: #0b162c;
    --navy-850: #0e1b35;
    --navy-800: #11213f;
    --navy-700: #182c50;
    --navy-600: #22396283;

    --silver-50: #f1f3f6;
    --silver-100: #dfe3e9;
    --silver-300: #b9c0cb;
    --silver-400: #9ea7b5;

    --gold: #c49c5e;
    --gold-light: #e2c28c;
    --gold-dark: #8c6a3b;
    --gold-soft: rgba(196, 156, 94, 0.14);

    --text: var(--silver-50);
    --text-2: #c3cad5;
    --text-3: #9aa3b2;

    --line: rgba(223, 227, 233, 0.10);
    --line-2: rgba(223, 227, 233, 0.18);
    --line-gold: rgba(196, 156, 94, 0.45);

    --f-serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
    --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 76px;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .65);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--navy-900);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
picture { display: block; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--silver-50); }

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--gold); color: var(--navy-950); font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 16px; color: var(--navy-950); }

.icon { flex-shrink: 0; }

/* ---------- Tipografía compartida ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow__line {
    width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--sm { font-size: 11px; }

.section__title {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--silver-50);
    text-wrap: balance;
}
.section__title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: -.01em;
}
.section__lead {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.7;
    color: var(--text-2);
    max-width: 620px;
}

/* ---------- Botones ---------- */
.btn {
    --btn-h: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--btn-h);
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[hidden] { display: none; }
.btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--gold {
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #b18a4f);
    color: var(--navy-950);
    box-shadow: 0 10px 30px -10px rgba(196, 156, 94, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--gold:hover {
    color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(196, 156, 94, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--gold .icon { transition: transform .25s var(--ease); }
.btn--gold:hover .icon:last-child { transform: translateX(3px); }

.btn--ghost {
    background: rgba(255, 255, 255, .03);
    color: var(--silver-50);
    border-color: var(--line-2);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--line-gold); color: var(--gold-light); background: rgba(196, 156, 94, .06); }
.btn--ghost[disabled]:hover { border-color: var(--line-2); color: var(--silver-50); background: rgba(255, 255, 255, .03); }

.btn__spinner {
    display: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(6, 13, 28, .25);
    border-top-color: var(--navy-950);
    animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .icon { display: none; }

/* ---------- Navegación ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background .35s, border-color .35s, backdrop-filter .35s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open,
.is-inner .nav {
    background: rgba(8, 16, 33, .82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--silver-50); }
.nav__brand img { width: 46px; height: auto; }
.nav__word { display: flex; flex-direction: column; line-height: 1.05; }
.nav__name { font-family: var(--f-serif); font-size: 21px; letter-spacing: .32em; font-weight: 500; }
.nav__sub { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu > a:not(.btn) {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 0;
}
.nav__menu > a:not(.btn)::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 2px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s var(--ease);
}
.nav__menu > a:not(.btn):hover,
.nav__menu > a.is-active { color: var(--silver-50); }
.nav__menu > a:not(.btn):hover::after,
.nav__menu > a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
    display: none;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--silver-50);
    cursor: pointer;
}
.nav__icon-close { display: none; }
.nav.is-open .nav__icon-open { display: none; }
.nav.is-open .nav__icon-close { display: block; }

@media (max-width: 960px) {
    .nav__toggle { display: inline-flex; }
    .nav__menu {
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px var(--gutter) 24px;
        background: rgba(8, 16, 33, .97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
    .nav__menu > a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
    .nav__menu > a:not(.btn)::after { display: none; }
    .nav__cta { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 56px));
    padding-bottom: clamp(48px, 8vh, 96px);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(46, 78, 132, .55), transparent 70%),
        radial-gradient(40% 50% at 10% 0%, rgba(32, 56, 100, .5), transparent 70%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .9;
    transform-origin: 60% 50%;
    animation: slowZoom 24s ease-out both;
}
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%);
    opacity: .45;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 70%, var(--navy-900) 100%),
        linear-gradient(90deg, rgba(8, 16, 33, .96) 0%, rgba(8, 16, 33, .88) 38%, rgba(11, 22, 44, .62) 70%, rgba(11, 22, 44, .45) 100%),
        radial-gradient(60% 70% at 78% 45%, rgba(46, 78, 132, .35), transparent 70%);
}
@media (max-width: 960px) {
    .hero__bg::after {
        background:
            linear-gradient(180deg, rgba(8, 16, 33, .55) 0%, rgba(8, 16, 33, .86) 40%, rgba(8, 16, 33, .94) 75%, var(--navy-900) 100%);
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
}

.hero__copy { display: flex; flex-direction: column; gap: 26px; }

.hero__title {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.04;
    letter-spacing: -.03em;
}
.hero__title-sans {
    display: block;
    background: linear-gradient(180deg, #fff 20%, var(--silver-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__rotator {
    display: block;
    position: relative;
    min-height: 1.18em;
    margin-top: .06em;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.06em;
    letter-spacing: -.015em;
    color: var(--gold-light);
    white-space: nowrap;
}
.hero__word { display: inline-block; }
.hero__word .ch {
    display: inline-block;
    white-space: pre;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 70%, var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .02em;
}
.hero__word.is-in .ch { animation: inkIn .9s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
.hero__word.is-out .ch { animation: inkOut .45s ease-in both; animation-delay: calc(var(--i) * 12ms); }
.hero__rotator::after {
    content: '';
    position: absolute;
    left: 0; bottom: -.04em;
    width: var(--underline, 0px);
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transition: width .9s var(--ease);
}

.hero__text { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.75; color: var(--text-2); max-width: 590px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .025);
    font-size: 13px;
    font-weight: 500;
    color: var(--silver-100);
    transition: border-color .25s, color .25s, background .25s;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.tag:hover { border-color: var(--line-gold); color: var(--gold-light); background: var(--gold-soft); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.trust {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    max-width: 590px;
}
.trust__stack { display: flex; }
.trust__badge {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, var(--navy-700), var(--navy-850));
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    box-shadow: 0 0 0 3px var(--navy-900);
}
.trust__badge + .trust__badge { margin-left: -10px; }
.trust__text { font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Escultura */
.hero__visual { position: relative; }
.sculpture {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    touch-action: pan-y;
}
.sculpture__halo {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 156, 94, .16), rgba(46, 78, 132, .18) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.sculpture__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}
.sculpture__canvas:active { cursor: grabbing; }
.sculpture.is-ready .sculpture__canvas { opacity: 1; }
.sculpture__fallback {
    position: absolute;
    inset: 22%;
    display: grid;
    place-items: center;
    transition: opacity .8s;
}
.sculpture__fallback img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.sculpture.is-ready .sculpture__fallback { opacity: 0; }
.sculpture__hint {
    position: absolute;
    left: 50%; bottom: 4%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 16, 33, .6);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--text-3);
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s;
}
.sculpture.is-ready .sculpture__hint { opacity: 1; }
.sculpture.is-touched .sculpture__hint { opacity: 0; }

@media (max-width: 960px) {
    .hero { min-height: auto; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .sculpture { max-width: 380px; margin-bottom: -24px; }
}
@media (max-width: 560px) {
    .hero__rotator { white-space: normal; }
    .hero__actions .btn { width: 100%; }
    .trust { align-items: flex-start; }
    .sculpture { max-width: 300px; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section--alt {
    background:
        radial-gradient(50% 60% at 50% 0%, rgba(34, 57, 98, .35), transparent 70%),
        var(--navy-950);
    border-block: 1px solid var(--line);
}
.section__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.service {
    --x: 50%; --y: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(400px circle at var(--x) var(--y), rgba(196, 156, 94, .10), transparent 45%),
        linear-gradient(180deg, var(--navy-800), var(--navy-850));
    overflow: hidden;
    transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.service::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--x) var(--y), var(--gold), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service:hover::before { opacity: 1; }

.service__media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-700), var(--navy-850));
}
.service__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.1s var(--ease), filter .6s;
    filter: saturate(.9) brightness(.85);
}
.service__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 22, 44, .05) 30%, rgba(17, 33, 63, .7) 75%, var(--navy-800) 100%),
        linear-gradient(0deg, rgba(196, 156, 94, .08), transparent 40%);
}
.service:hover .service__photo { transform: scale(1.08); filter: saturate(1) brightness(.95); }

.service__body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 28px 28px;
}
.service--cta .service__body { padding: 32px 28px; justify-content: center; align-items: flex-start; }

.service__top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -27px; margin-bottom: 6px; }
.service__icon { background-color: var(--navy-800); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.service__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(196, 156, 94, .2), rgba(196, 156, 94, .04));
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
}
.service__num { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--text-3); }
.service__title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--silver-50); }
.service__text { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.service__list { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.service__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--silver-100); }
.service__list .icon { margin-top: 3px; color: var(--gold); }

.service--cta {
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(196, 156, 94, .22), transparent 60%),
        linear-gradient(160deg, var(--navy-700), var(--navy-850));
    border-color: var(--line-gold);
}
.service--cta .service__title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 30px; color: var(--gold-light); }
.service--cta .btn { margin-top: 8px; }

@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .services { grid-template-columns: 1fr; } }

/* ---------- Proceso / timeline ---------- */
.section--photo { overflow: hidden; isolation: isolate; }
.section__photo { position: absolute; inset: 0; z-index: -1; }
.section__photo-img { width: 100%; height: 100%; object-fit: cover; opacity: .75; filter: saturate(.85); }
.section__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--navy-950) 0%, rgba(6, 13, 28, .72) 28%, rgba(6, 13, 28, .8) 72%, var(--navy-950) 100%),
        radial-gradient(50% 60% at 50% 0%, rgba(34, 57, 98, .35), transparent 70%);
}
.section--photo .timeline__text { color: var(--silver-100); }

.timeline {
    --progress: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}
.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 26px;
    right: calc((100% - 96px) / 5 - 26px);
    height: 1px;
    background: var(--line-2);
}
.timeline::after {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    transform: scaleX(var(--progress));
    transform-origin: left;
    transition: transform 1.6s var(--ease);
}
.timeline__item { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.timeline__dot {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--navy-950);
    border: 1px solid var(--line-gold);
    font-family: var(--f-serif);
    font-size: 20px;
    color: var(--gold-light);
    box-shadow: 0 0 0 6px var(--navy-950);
    transition: background .4s, color .4s;
}
.timeline__item.is-visible .timeline__dot { background: linear-gradient(145deg, var(--navy-700), var(--navy-850)); }
.timeline__title { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--silver-50); }
.timeline__text { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

@media (max-width: 960px) {
    .timeline { grid-template-columns: 1fr; gap: 32px; }
    .timeline::before, .timeline::after {
        top: 26px; bottom: 26px; left: 25px; right: auto;
        width: 1px; height: auto;
    }
    .timeline::after { transform: scaleY(var(--progress)); transform-origin: top; }
    .timeline__item { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; row-gap: 6px; }
    .timeline__dot { grid-row: span 2; }
    .timeline__title { margin-top: 12px; }
}

/* ---------- Por qué BEK ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__intro { display: flex; flex-direction: column; gap: 44px; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__figure { position: relative; margin: 0; padding: 0 14px 14px 0; }
.about__figure::before {
    content: '';
    position: absolute;
    inset: 14px 0 0 14px;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
}
.about__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-700), var(--navy-850));
    box-shadow: var(--shadow-lg);
}
.about__photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__figure:hover .about__photo { transform: scale(1.04); }
.about__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 13, 28, .75));
}
.about__caption {
    position: absolute;
    left: 20px; bottom: 34px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(8, 16, 33, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: var(--silver-50);
}
.about__caption-icon {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-light);
}
.pillars { display: grid; gap: 14px; }
.pillar {
    display: flex;
    gap: 20px;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .005));
    transition: border-color .3s, background .3s;
}
.pillar:hover { border-color: var(--line-gold); background: rgba(196, 156, 94, .04); }
.pillar__icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
}
.pillar__title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pillar__text { font-size: 15px; line-height: 1.65; color: var(--text-2); }

@media (max-width: 960px) {
    .about { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-light); }
.faq__sign { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__sign::before, .faq__sign::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 18px; height: 1.5px;
    background: var(--gold);
    transition: transform .3s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0); }
.faq__answer { padding: 0 40px 24px 4px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.faq__item[open] .faq__answer { animation: fadeDown .4s var(--ease); }

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

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 60% at 85% 40%, rgba(46, 78, 132, .4), transparent 70%);
    pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact__list { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 8px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 15px; }
.contact__list a { color: var(--silver-50); }
.contact__list a:hover { color: var(--gold-light); }
.contact__icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    color: var(--gold-light);
}

.form-card {
    position: relative;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(24, 44, 80, .7), rgba(14, 27, 53, .85));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--silver-100); }
.req { color: var(--gold); }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(6, 13, 28, .55);
    color: var(--silver-50);
    font-size: 15.5px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #7f899a; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(6, 13, 28, .8);
    box-shadow: 0 0 0 4px rgba(196, 156, 94, .15);
}
.field.has-error input, .field.has-error textarea { border-color: #e0846c; }
.field__error { font-size: 13px; color: #f0a38f; min-height: 0; }
.field__error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option { background: var(--navy-900); color: var(--silver-50); }
.select::after {
    content: '';
    position: absolute;
    right: 18px; top: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field--check input {
    appearance: none; -webkit-appearance: none;
    width: 22px; height: 22px; margin: 1px 0 0;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    background: rgba(6, 13, 28, .55);
    cursor: pointer;
    display: grid; place-items: center;
    transition: background .2s, border-color .2s;
}
.field--check input::after {
    content: '';
    width: 10px; height: 6px;
    border-left: 2px solid var(--navy-950);
    border-bottom: 2px solid var(--navy-950);
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .2s var(--ease-spring);
}
.field--check input:checked { background: var(--gold); border-color: var(--gold); }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check label { font-weight: 400; color: var(--text-2); font-size: 14px; line-height: 1.5; cursor: pointer; }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; }
.field--check.has-error input { border-color: #e0846c; }

.form__alert {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(224, 132, 108, .5);
    background: rgba(224, 132, 108, .1);
    color: #f6c1b3;
    font-size: 14px;
}
.form__alert[hidden] { display: none; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0; outline: none; }
.form-success[hidden] { display: none; }
.form-success__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    animation: pop .6s var(--ease-spring);
}
.form-success h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 32px; color: var(--gold-light); }
.form-success p { color: var(--text-2); }

@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Diálogo "Así trabajamos" ---------- */
.dialog {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text);
    overflow: visible;
}
.dialog::backdrop {
    background: rgba(4, 9, 20, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dialog[open] { animation: dialogIn .45s var(--ease); }
.dialog[open]::backdrop { animation: fadeIn .35s ease; }
.dialog.is-closing { animation: dialogOut .25s ease-in forwards; }
.dialog.is-closing::backdrop { animation: fadeOut .25s ease-in forwards; }

.dialog__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-height: calc(100dvh - 32px);
    padding: clamp(22px, 4vw, 36px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(196, 156, 94, .14), transparent 60%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
    overflow: auto;
}
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog__title { margin-top: 10px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.dialog__close {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--silver-100);
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.dialog__close:hover { border-color: var(--line-gold); color: var(--gold-light); transform: rotate(90deg); }

.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stepper__btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 4px 0;
    border: none;
    border-top: 2px solid var(--line-2);
    background: transparent;
    color: var(--text-3);
    text-align: left;
    cursor: pointer;
    transition: color .25s, border-color .25s;
}
.stepper__btn:hover { color: var(--silver-100); }
.stepper__btn.is-done { border-top-color: var(--gold-dark); color: var(--text-2); }
.stepper__btn[aria-selected="true"] { border-top-color: var(--gold-light); color: var(--silver-50); }
.stepper__num {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-family: var(--f-serif);
    font-size: 14px;
}
.stepper__btn[aria-selected="true"] .stepper__num,
.stepper__btn.is-done .stepper__num { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.stepper__label { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

.dialog__progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.dialog__progress-fill { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width .5s var(--ease); }

.dialog__body { position: relative; min-height: 200px; }
.step-panel { display: flex; flex-direction: column; gap: 12px; }
.step-panel[hidden] { display: none; }
.step-panel.is-active { animation: stepIn .5s var(--ease); }
.step-panel.is-active.from-left { animation-name: stepInLeft; }
.step-panel__count { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.step-panel__title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; color: var(--gold-light); }
.step-panel__text { font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 560px; }

.dialog__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
    .stepper__label { display: none; }
    .stepper__btn { align-items: center; }
    .dialog__progress { display: block; }
    .dialog__foot .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; white-space: normal; text-align: center; line-height: 1.2; }
    .dialog__foot .btn .icon { display: none; }
}

/* ---------- Páginas internas ---------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 120px; }
.legal__inner { max-width: 820px; }
.legal__title { margin: 18px 0 10px; font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.02em; }
.legal__meta { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; color: var(--silver-50); }
.legal p, .legal li { color: var(--text-2); line-height: 1.8; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal ul li::marker { color: var(--gold); }
.legal__back { margin-top: 56px; }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.notfound__code {
    font-family: var(--f-serif); font-style: italic;
    font-size: clamp(110px, 20vw, 200px); line-height: 1;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--navy-950); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { width: 120px; height: auto; }
.footer__brand p { color: var(--text-3); font-size: 14px; max-width: 280px; }
.footer__eco { color: var(--gold) !important; font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; }
.footer__title { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-100); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-3); font-size: 14.5px; }
.footer__col a:hover { color: var(--gold-light); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-3); font-size: 14.5px; }
.footer__contact .icon { margin-top: 3px; color: var(--gold); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px 32px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-3);
}
.footer__bottom a { color: var(--text-3); }
.footer__bottom a:hover { color: var(--gold-light); }

@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Banda de WhatsApp (antes del pie) ---------- */
.wa-band { padding-block: 0 clamp(64px, 8vw, 96px); }
.wa-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 48px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-gold);
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(196, 156, 94, .18), transparent 60%),
        linear-gradient(160deg, var(--navy-700), var(--navy-850));
    box-shadow: var(--shadow-lg);
}
.wa-band__copy { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; }
.wa-band__icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line-gold);
    background: var(--gold-soft);
    color: var(--gold-light);
}
.wa-band__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.wa-band__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold-light); }
.wa-band__text { margin-top: 6px; color: var(--text-2); font-size: 15px; }
@media (max-width: 560px) {
    .wa-band__copy { flex-direction: column; align-items: flex-start; }
    .wa-band__inner .btn { width: 100%; }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--navy-950);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6);
    transition: transform .25s var(--ease);
}
.whatsapp:hover { transform: scale(1.06); color: var(--navy-950); }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Animaciones ---------- */
@keyframes inkIn {
    0%   { opacity: 0; filter: blur(10px); transform: translateY(.35em) scale(.96); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes inkOut {
    to { opacity: 0; filter: blur(8px); transform: translateY(-.25em); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}
