:root {
    --ink: #0a1d31;
    --ink-2: #102b47;
    --navy: #0c2944;
    --navy-2: #174c77;
    --navy-3: #2f668f;
    --moody: #1a1d29;
    --charcoal: #3d3f4a;
    --slate: #7d8491;
    --silver: #b1b2b5;
    --accent: #9fb8ce;
    --accent-strong: #6f94b4;
    --accent-soft: #dbe5ed;
    --paper: #ffffff;
    --soft: #f4f5f6;
    --cream: #f5f3ef;
    --line: rgba(10, 29, 49, .13);
    --line-light: rgba(255, 255, 255, .18);
    --text: #24384a;
    --muted: #65778a;
    --shadow-sm: 0 12px 28px rgba(7, 30, 51, .08);
    --shadow-md: 0 24px 60px rgba(7, 30, 51, .13);
    --shadow-lg: 0 34px 90px rgba(4, 22, 39, .24);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --container: 1280px;
    --header-height: 82px;
    --font-display: 'Prata', Georgia, serif;
    --font-body: 'Manrope', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
    color: var(--ink);
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
}
p { margin-bottom: 1.25rem; }
strong, em, i { font-style: normal; }
::selection { color: #fff; background: var(--navy-2); }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--soft); }
.section--dark { color: rgba(255,255,255,.82); background: var(--ink); }
.section--dark h2, .section--dark h3 { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 16px; border-radius: 999px; color: #fff; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--navy-2);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}
.eyebrow::before { width: 30px; height: 1px; content: ''; background: currentColor; opacity: .75; }
.eyebrow--light { color: rgba(255,255,255,.82); }
.eyebrow--accent { color: var(--accent); }
.section-heading { max-width: 920px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(2.35rem, 4.8vw, 4.6rem); }
.section-heading > p { max-width: 740px; color: var(--muted); }
.section-heading--row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: end; gap: 70px; max-width: none; }
.section-heading--row > p, .section-heading--row > .text-link { margin: 0 0 8px; }
.section-heading--light p { color: rgba(255,255,255,.68); }

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: var(--navy);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(5, 35, 62, .13);
    transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(5, 35, 62, .20); }
.button--small { min-height: 44px; padding-inline: 21px; font-size: .7rem; }
.button--accent { color: var(--ink); background: var(--accent); }
.button--accent:hover, .button--accent:focus-visible { background: #bfd0dd; }
.button--dark { background: var(--ink); }
.button--dark:hover, .button--dark:focus-visible { background: var(--navy-2); }
.button--ghost-light { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.04); box-shadow: none; backdrop-filter: blur(8px); }
.button--ghost-light:hover, .button--ghost-light:focus-visible { border-color: #fff; background: rgba(255,255,255,.11); }
.button--outline { border-color: var(--ink); color: var(--ink); background: transparent; box-shadow: none; }
.button--full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-2); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(5px); }
.pill-label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 21px; border-radius: 999px; color: #fff; background: var(--navy-2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Header */
.site-header { position: relative; z-index: 1000; width: 100%; }
.utility-bar { color: rgba(255,255,255,.78); background: var(--moody); font-size: .69rem; }
.utility-bar__inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar__links { display: flex; gap: 22px; }
.utility-bar a:hover { color: #fff; }
.main-nav-wrap { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(5, 25, 43, .05); backdrop-filter: blur(16px); }
.main-nav { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand__mark { display: grid; width: 46px; height: 46px; grid-template-columns: 1fr auto 1fr; place-items: center; border: 1px solid var(--accent-strong); border-radius: 14px; color: var(--ink); background: linear-gradient(145deg, #fff, var(--accent-soft)); font-family: var(--font-display); box-shadow: var(--shadow-sm); }
.brand__mark i { color: var(--accent-strong); font-family: var(--font-body); font-size: .72rem; }
.brand__text { display: grid; line-height: 1; }
.brand__text strong { color: var(--ink); font-family: var(--font-display); font-size: 1.38rem; font-weight: 400; letter-spacing: .02em; }
.brand__text small { margin-top: 5px; color: var(--slate); font-size: .56rem; font-weight: 700; letter-spacing: .24em; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; padding: 30px 0; border: 0; color: var(--ink); background: transparent; font-size: .76rem; font-weight: 600; }
.nav-link::after { position: absolute; right: 0; bottom: 21px; left: 0; height: 2px; border-radius: 999px; content: ''; background: var(--accent-strong); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.menu-toggle span:not(.sr-only) { display: block; width: 21px; height: 2px; margin: 4px auto; border-radius: 99px; background: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { display: flex; align-items: center; gap: 7px; }
.nav-dropdown__panel { position: absolute; top: calc(100% + 1px); right: -220px; display: grid; width: min(860px, 92vw); grid-template-columns: 290px 1fr; padding: 30px; border: 1px solid var(--line); border-radius: 0 0 22px 22px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .2s ease; }
.nav-dropdown.is-open .nav-dropdown__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__intro { padding: 8px 30px 8px 8px; border-right: 1px solid var(--line); }
.nav-dropdown__intro strong { display: block; margin-bottom: 18px; color: var(--ink); font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.25; }
.nav-dropdown__intro > a { color: var(--navy-2); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.nav-dropdown__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; padding-left: 24px; }
.nav-dropdown__links a { padding: 13px 15px; border-radius: 14px; transition: background .2s ease; }
.nav-dropdown__links a:hover { background: var(--soft); }
.nav-dropdown__links span { display: block; color: var(--ink); font-weight: 700; }
.nav-dropdown__links small { display: block; margin-top: 4px; color: var(--muted); font-size: .69rem; line-height: 1.45; }

/* Home hero */
.hero-slider { position: relative; height: min(720px, calc(100vh - 80px)); min-height: 620px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-slider__track { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; display: grid; place-items: center; background-color: var(--ink); background-image: var(--hero-image), url('../img/abstract/firm.svg'); background-position: center; background-size: cover; opacity: 0; visibility: hidden; transform: scale(1.035); transition: opacity .8s ease, visibility .8s ease, transform 7s ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,22,39,.88), rgba(7,32,55,.68) 46%, rgba(13,42,66,.48)), linear-gradient(0deg, rgba(6,28,48,.56), rgba(6,28,48,.12)); }
.hero-slide__overlay::after { position: absolute; inset: 0; content: ''; background: radial-gradient(circle at 50% 36%, rgba(159,184,206,.16), transparent 34%), linear-gradient(120deg, transparent 0 50%, rgba(255,255,255,.08) 50.1% 51%, transparent 51.1%); }
.hero-slide__content { position: relative; z-index: 2; display: flex; max-width: 1040px; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.hero-slide__content .eyebrow { margin-bottom: 25px; }
.hero-slide h1, .hero-slide h2 { max-width: 1000px; margin-bottom: 24px; color: #fff; font-size: clamp(3.1rem, 6vw, 5.7rem); text-wrap: balance; text-shadow: 0 12px 42px rgba(0,0,0,.28); }
.hero-slide p { max-width: 820px; margin-bottom: 34px; color: rgba(255,255,255,.83); font-size: clamp(1rem, 1.6vw, 1.24rem); line-height: 1.75; }
.hero-slide__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-slider__arrow { position: absolute; top: 50%; z-index: 5; display: grid; width: 56px; height: 56px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; color: #fff; background: rgba(6,29,50,.42); font-size: 1.35rem; backdrop-filter: blur(12px); transform: translateY(-50%); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.hero-slider__arrow:hover, .hero-slider__arrow:focus-visible { border-color: #fff; background: rgba(255,255,255,.16); transform: translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev { left: clamp(16px, 3vw, 48px); }
.hero-slider__arrow--next { right: clamp(16px, 3vw, 48px); }
.hero-slider__dots { position: absolute; bottom: 28px; left: 50%; z-index: 5; display: flex; gap: 9px; padding: 8px 11px; border-radius: 999px; background: rgba(5,26,45,.38); backdrop-filter: blur(10px); transform: translateX(-50%); }
.hero-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.48); transition: width .2s ease, background .2s ease; }
.hero-slider__dots button.is-active { width: 30px; background: var(--accent); }

/* Intro */
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 90px; }
.split-heading h2 { max-width: 790px; margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.9rem); }
.split-heading__copy p { color: var(--muted); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric-card { min-height: 180px; padding: 36px; border-right: 1px solid var(--line); background: #fff; }
.metric-card:last-child { border-right: 0; }
.metric-card strong { display: block; margin-bottom: 20px; color: var(--ink); font-family: var(--font-display); font-size: 2.7rem; font-weight: 400; }
.metric-card span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Robalino-inspired practice showcase */
.practice-showcase { overflow: hidden; background: #fff; }
.practice-showcase__header { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 60px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.practice-showcase__header h2 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.4rem); }
.practice-showcase__meta { display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.practice-showcase__meta p { max-width: 520px; margin: 0; color: var(--muted); font-size: .93rem; }
.practice-carousel { position: relative; margin-top: 42px; }
.practice-carousel__viewport { overflow: hidden; }
.practice-carousel__track { display: flex; gap: 18px; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.practice-tile { position: relative; min-width: calc((100% - 54px) / 4); aspect-ratio: .82; overflow: hidden; border-radius: 22px; background: var(--navy); box-shadow: var(--shadow-sm); }
.practice-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .55s ease, filter .4s ease; }
.practice-tile__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,27,48,.08), rgba(5,27,48,.78)); transition: background .3s ease; }
.practice-tile__content { position: absolute; inset: auto 26px 25px; z-index: 2; color: #fff; }
.practice-tile__content small { display: block; max-height: 0; margin-bottom: 0; overflow: hidden; color: rgba(255,255,255,.74); font-size: .78rem; line-height: 1.55; opacity: 0; transition: .3s ease; }
.practice-tile__content strong { display: block; color: #fff; font-family: var(--font-display); font-size: clamp(1.55rem, 2.1vw, 2.15rem); font-weight: 400; line-height: 1.18; }
.practice-tile__content i { display: block; margin-top: 12px; color: var(--accent-soft); font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.practice-tile:hover img, .practice-tile:focus-visible img { transform: scale(1.08); filter: saturate(1.08); }
.practice-tile:hover .practice-tile__overlay, .practice-tile:focus-visible .practice-tile__overlay { background: linear-gradient(180deg, rgba(5,27,48,.06), rgba(5,27,48,.91)); }
.practice-tile:hover small, .practice-tile:focus-visible small { max-height: 90px; margin-bottom: 12px; opacity: 1; }
.practice-tile:hover i, .practice-tile:focus-visible i { opacity: 1; transform: translateY(0); }
.practice-carousel__arrow { position: absolute; top: 50%; z-index: 4; display: grid; width: 50px; height: 50px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); transform: translateY(-50%); transition: .2s ease; }
.practice-carousel__arrow:hover { color: #fff; background: var(--navy-2); }
.practice-carousel__arrow--prev { left: max(12px, calc((100vw - var(--container)) / 2 - 26px)); }
.practice-carousel__arrow--next { right: max(12px, calc((100vw - var(--container)) / 2 - 26px)); }

/* Expertise */
.expertise-section { background: var(--soft); }
.expertise-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 100px; }
.expertise-visual { position: relative; display: grid; width: min(100%, 540px); aspect-ratio: 1; place-items: center; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #dce6ee 46%, #9fb8ce 100%); box-shadow: inset 0 0 0 1px rgba(10,29,49,.08), var(--shadow-md); }
.expertise-visual__ring { position: absolute; border: 1px solid rgba(10,29,49,.18); border-radius: 50%; }
.expertise-visual__ring--one { inset: 10%; }
.expertise-visual__ring--two { inset: 22%; }
.expertise-visual__ring--three { inset: 34%; }
.expertise-visual__core { position: relative; display: grid; width: 34%; aspect-ratio: 1; place-items: center; align-content: center; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: var(--shadow-md); text-align: center; }
.expertise-visual__core strong { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.expertise-visual__core span { max-width: 110px; font-size: .68rem; text-transform: uppercase; }
.expertise-copy h2 { font-size: clamp(2.5rem, 4.5vw, 4.6rem); }
.expertise-copy > p { color: var(--muted); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 30px 0 36px; list-style: none; }
.check-list li { position: relative; padding-left: 31px; }
.check-list li::before { position: absolute; top: .72em; left: 0; width: 15px; height: 15px; border: 1px solid var(--accent-strong); border-radius: 50%; content: ''; background: radial-gradient(circle, var(--accent-strong) 0 3px, transparent 4px); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.055); transition: transform .3s ease, background .3s ease; }
.team-card:hover { background: rgba(255,255,255,.085); transform: translateY(-6px); }
.team-card__image, .profile__image { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-2), var(--accent)); }
.team-card__image { aspect-ratio: 4 / 4.5; }
.team-card__image img, .profile__image img { width: 100%; height: 100%; object-fit: cover; filter: none; transform: scale(1.001); transition: transform .5s ease; }
.team-card:hover img, .team-card:focus-within img { transform: scale(1.035); }
.image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.74); font-family: var(--font-display); font-size: 4rem; }
.team-card__image img + .image-fallback, .profile__image img + .image-fallback { display: none; }
.image-missing .image-fallback { display: grid; }
.team-card__body { padding: 28px; }
.team-card__body > span { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.team-card__body h3 { margin: 10px 0 12px; color: #fff; font-size: 1.75rem; }
.team-card__body p { min-height: 54px; color: rgba(255,255,255,.64); font-size: .86rem; }
.team-card__body a { color: var(--accent-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; }

/* Coverage */
.coverage-section { background: #fff; }
.coverage-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.coverage-copy h2 { font-size: clamp(2.45rem, 4.6vw, 4.65rem); }
.coverage-copy > p { color: var(--muted); }
.coverage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 35px 0; }
.coverage-stats div { padding-top: 18px; border-top: 1px solid var(--line); }
.coverage-stats strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.coverage-stats span { display: block; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.coverage-disclaimer { margin-top: 24px; font-size: .68rem; line-height: 1.55; }
.coverage-map { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--cream); box-shadow: var(--shadow-sm); }
.coverage-map img { width: 100%; }

/* Automatic logo marquee */
.clients-section { overflow: hidden; }
.clients-section .section-heading { margin-inline: auto; text-align: center; }
.logo-marquee { position: relative; width: 100%; overflow: hidden; padding: 8px 0 20px; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logo-marquee__track { display: flex; width: max-content; animation: logo-marquee 34s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__group { display: flex; }
.client-logo-slide { width: 280px; padding: 10px; flex: 0 0 auto; }
.client-logo-slide__inner { display: grid; height: 150px; place-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(7,30,51,.045); }
.client-logo-slide img { max-width: 100%; max-height: 85px; filter: grayscale(1); opacity: .76; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.client-logo-slide:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@keyframes logo-marquee { to { transform: translateX(-50%); } }

/* News / events */
.insights-section { background: #fff; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(7,30,51,.05); transition: transform .3s ease, box-shadow .3s ease; }
.insight-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.insight-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .35s ease; }
.insight-card:hover .insight-card__media img { transform: scale(1.055); filter: saturate(1.08); }
.insight-card__body { padding: 30px; }
.insight-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.insight-card__meta span, .insight-card__body > span { color: var(--navy-2); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.insight-card__meta time { color: var(--slate); font-size: .67rem; }
.insight-card h3 { margin-bottom: 15px; font-size: clamp(1.6rem, 2.2vw, 2.05rem); }
.insight-card p { color: var(--muted); font-size: .88rem; }
.insight-card a { color: var(--navy-2); font-size: .7rem; font-weight: 700; text-transform: uppercase; }

/* CTA and floating button */
.cta-band { padding: 90px 0; color: #fff; background: linear-gradient(115deg, var(--moody), var(--ink-2)); }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.cta-band h2 { max-width: 860px; margin: 0; color: #fff; font-size: clamp(2.2rem, 4vw, 4rem); }
.floating-contact { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: inline-flex; min-height: 52px; align-items: center; gap: 10px; padding: 0 22px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: var(--navy-2); box-shadow: 0 16px 44px rgba(5,31,54,.3); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.floating-contact:hover { background: var(--ink); transform: translateY(-3px); }

/* Generic interior hero */
.page-hero { position: relative; min-height: 480px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; }
.page-hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.page-hero::after { position: absolute; inset: 0; z-index: 1; content: ''; background: linear-gradient(90deg, rgba(5,25,43,.91), rgba(8,40,66,.60) 58%, rgba(8,40,66,.34)); }
.page-hero__art { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.page-hero__art span { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.page-hero__art span:nth-child(1) { top: -45%; right: -4%; width: 520px; height: 520px; }
.page-hero__art span:nth-child(2) { right: 24%; bottom: -90%; width: 700px; height: 700px; }
.page-hero__art span:nth-child(3) { top: 16%; right: -18%; width: 430px; height: 430px; }
.page-hero__content { position: relative; z-index: 2; max-width: 900px; padding-block: 90px; }
.page-hero h1 { margin-bottom: 22px; color: #fff; font-size: clamp(3rem, 6vw, 5.6rem); }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.page-hero .button { margin-top: 14px; }

/* About */
.story-layout, .area-overview__layout { display: grid; grid-template-columns: .38fr .62fr; gap: 90px; }
.story-layout__aside, .area-overview__aside { align-self: start; padding: 26px; border-left: 2px solid var(--accent-strong); border-radius: 0 16px 16px 0; background: var(--soft); }
.story-layout__aside strong, .area-overview__aside strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; line-height: 1.35; }
.story-layout__body h2, .area-overview__content h2 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }
.story-layout__body p, .area-overview__content p { color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { min-height: 280px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.value-card > span { color: var(--accent-strong); font-family: var(--font-display); font-size: 1.1rem; }
.value-card h2 { margin: 70px 0 15px; font-size: 1.85rem; }
.value-card p { color: var(--muted); font-size: .85rem; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 115px; width: 1px; content: ''; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 110px 1fr; gap: 55px; padding: 34px 0; }
.timeline__item > strong { color: var(--accent-strong); font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; }
.timeline__item div { position: relative; padding-left: 25px; }
.timeline__item div::before { position: absolute; top: 10px; left: -61px; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; content: ''; background: var(--navy-2); box-shadow: 0 0 0 1px var(--navy-2); }
.timeline__item h3 { margin-bottom: 8px; font-size: 1.55rem; }
.timeline__item p { margin: 0; color: var(--muted); }
.profile-list { display: grid; gap: 48px; }
.profile { display: grid; grid-template-columns: .42fr .58fr; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.045); }
.profile--reverse { grid-template-columns: .58fr .42fr; }
.profile--reverse .profile__image { order: 2; }
.profile__image { min-height: 500px; }
.profile__content { padding: clamp(34px, 5vw, 70px); align-self: center; }
.profile__content > span { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.profile__content h3 { margin: 12px 0 20px; color: #fff; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.profile__content p { color: rgba(255,255,255,.70); }
.profile__content ul { padding-left: 18px; color: rgba(255,255,255,.72); }
.profile__content a { color: var(--accent-soft); }
.page-nosotros .profile__image img { filter: none !important; }
.page-nosotros .profile:hover .profile__image img { transform: scale(1.025); }
.team-photo-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.team-photo-layout h2 { font-size: clamp(2.4rem, 4.4vw, 4.3rem); }
.team-photo-layout p { color: var(--muted); }
.team-photo-placeholder { display: grid; min-height: 410px; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--accent-strong); border-radius: 24px; color: var(--ink); background: linear-gradient(135deg, var(--accent-soft), #fff); text-align: center; }
.team-photo-placeholder span { font-family: var(--font-display); font-size: 5rem; }
.team-photo-placeholder strong { font-size: .78rem; letter-spacing: .08em; }
.team-photo-placeholder small { color: var(--muted); }
.methodology-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.methodology-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.methodology-grid article > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-2); }
.methodology-grid h3 { margin: 45px 0 12px; font-size: 1.55rem; }
.methodology-grid p { color: var(--muted); font-size: .84rem; }

/* Area pages */
.service-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-list-card { min-height: 280px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.service-list-card > span { color: var(--accent-strong); font-family: var(--font-display); }
.service-list-card h3 { margin: 65px 0 12px; font-size: 1.75rem; }
.service-list-card p { color: var(--muted); font-size: .86rem; }
.area-process { background: #fff; }
.area-process__layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.area-process__layout > div h2 { font-size: clamp(2.4rem, 4.4vw, 4.25rem); }
.area-process__layout > div p { color: var(--muted); }
.area-process__steps { padding: 0; margin: 0; list-style: none; }
.area-process__steps li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.area-process__steps li > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-2); }
.area-process__steps h3 { margin-bottom: 6px; font-size: 1.55rem; }
.area-process__steps p { margin: 0; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-grid a { position: relative; display: grid; padding: 25px 60px 25px 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; transition: background .2s ease, transform .2s ease; }
.related-grid a:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.related-grid span { color: #fff; font-family: var(--font-display); font-size: 1.55rem; }
.related-grid small { color: rgba(255,255,255,.62); }
.related-grid i { position: absolute; top: 50%; right: 26px; color: var(--accent); transform: translateY(-50%); }
.accordion { max-width: 940px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; padding: 24px 50px 24px 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { position: absolute; top: 50%; right: 8px; content: '+'; color: var(--navy-2); font-size: 1.4rem; transform: translateY(-50%); }
.accordion details[open] summary::after { content: '−'; }
.accordion details p { padding: 0 60px 22px 0; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.contact-info h2 { font-size: clamp(2.4rem, 4vw, 4.15rem); }
.contact-info > p { color: var(--muted); }
.contact-info__list { display: grid; gap: 0; margin-top: 38px; }
.contact-info__list article { display: grid; gap: 3px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info__list article > span { color: var(--navy-2); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-info__list strong, .contact-info__list a { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.contact-info__list small { color: var(--muted); }
.contact-form-card { padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: 26px; background: var(--soft); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .73rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(10,29,49,.18); border-radius: 13px; color: var(--ink); background: #fff; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(111,148,180,.15); }
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea { border-color: #b54141; }
.consent-field { display: flex; align-items: flex-start; gap: 11px; margin: 24px 0; color: var(--muted); font-size: .74rem; }
.consent-field input { margin-top: 5px; }
.consent-field a { color: var(--navy-2); text-decoration: underline; }
.form-privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }
.honeypot { position: absolute; left: -9999px; }
.form-alert { margin-bottom: 22px; padding: 15px 17px; border-radius: 13px; font-size: .82rem; }
.form-alert--success { color: #225c3c; background: #e7f6ed; }
.form-alert--error { color: #8d2e2e; background: #fdeaea; }
.map-section { padding: 0 0 110px; }
.map-section__header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.map-section__header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); }
.map-frame { width: min(calc(100% - 48px), var(--container)); height: 480px; margin-inline: auto; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-md); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: none; }

/* Legal / 404 */
.legal-hero { padding: 90px 0; color: #fff; background: linear-gradient(120deg, var(--moody), var(--navy)); }
.legal-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(2.7rem, 5vw, 5rem); }
.legal-hero p { margin: 0; color: rgba(255,255,255,.7); }
.legal-content__inner { max-width: 880px; }
.legal-content h2 { margin-top: 45px; font-size: 1.7rem; }
.legal-content p { color: var(--muted); }
.legal-content a { color: var(--navy-2); text-decoration: underline; }
.error-page { min-height: 65vh; display: grid; place-items: center; padding: 90px 0; }
.error-page__inner { max-width: 700px; text-align: center; }
.error-page__inner h1 { font-size: clamp(5rem, 14vw, 11rem); margin-bottom: 10px; color: var(--accent-strong); }
.error-page__inner h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

/* Footer */
.site-footer { color: rgba(255,255,255,.68); background: #0b1724; }
.site-footer__top { display: grid; grid-template-columns: 1.25fr .7fr .9fr 1.05fr; gap: 55px; padding: 75px 0 60px; }
.brand--footer .brand__text strong, .brand--footer .brand__mark { color: #fff; }
.brand--footer .brand__mark { background: rgba(255,255,255,.05); box-shadow: none; }
.site-footer__brand p { max-width: 330px; margin-top: 22px; }
.site-footer__column { display: grid; align-content: start; gap: 9px; }
.site-footer__column h2 { margin-bottom: 14px; color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__column a:hover { color: #fff; }
.site-footer__address p { margin: 0; }
.site-footer__address .text-link { margin-top: 12px; color: var(--accent); }
.site-footer__bottom { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .66rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1180px) {
    .primary-nav { gap: 20px; }
    .practice-tile { min-width: calc((100% - 36px) / 3); }
    .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
    .site-footer__address { grid-column: 2 / 4; }
}

@media (max-width: 980px) {
    :root { --header-height: 72px; }
    .container { width: min(calc(100% - 36px), var(--container)); }
    .section { padding: 88px 0; }
    .utility-bar { display: none; }
    .menu-toggle { display: block; }
    .primary-nav { position: fixed; inset: var(--header-height) 0 0; z-index: 999; display: none; align-content: start; align-items: stretch; gap: 0; padding: 20px; background: #fff; overflow-y: auto; }
    .primary-nav.is-open { display: grid; }
    .nav-link { display: flex; justify-content: space-between; padding: 17px 4px; border-bottom: 1px solid var(--line); }
    .nav-link::after { display: none; }
    .primary-nav > .button { margin-top: 18px; }
    .nav-dropdown__panel { position: static; width: auto; grid-template-columns: 1fr; padding: 10px 0 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
    .nav-dropdown.is-open .nav-dropdown__panel { display: grid; }
    .nav-dropdown__intro { display: none; }
    .nav-dropdown__links { grid-template-columns: 1fr; padding: 0; }
    .nav-dropdown__links a { padding: 13px 15px; background: var(--soft); }
    .hero-slider { min-height: 590px; height: 72vh; }
    .hero-slide h1, .hero-slide h2 { font-size: clamp(2.8rem, 8vw, 4.7rem); }
    .hero-slider__arrow { width: 48px; height: 48px; }
    .split-heading, .section-heading--row, .expertise-layout, .coverage-layout, .story-layout, .area-overview__layout, .area-process__layout, .contact-layout, .team-photo-layout { grid-template-columns: 1fr; gap: 48px; }
    .section-heading--row { align-items: start; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-card:nth-child(2) { border-right: 0; }
    .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .practice-showcase__header { grid-template-columns: 1fr; gap: 26px; }
    .practice-showcase__meta { justify-content: flex-start; }
    .practice-tile { min-width: calc((100% - 18px) / 2); }
    .team-grid, .insights-grid { grid-template-columns: 1fr 1fr; }
    .team-grid .team-card:last-child, .insights-grid .insight-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); }
    .values-grid, .methodology-grid { grid-template-columns: repeat(2, 1fr); }
    .profile, .profile--reverse { grid-template-columns: 1fr; }
    .profile--reverse .profile__image { order: 0; }
    .profile__image { min-height: 520px; }
    .service-list-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .site-footer__address { grid-column: auto; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 72px 0; }
    .main-nav { min-height: 68px; }
    .brand__mark { width: 42px; height: 42px; }
    .brand__text strong { font-size: 1.2rem; }
    .hero-slider { min-height: 610px; height: calc(100svh - 68px); }
    .hero-slide__content { padding: 80px 58px 70px; }
    .hero-slide h1, .hero-slide h2 { font-size: clamp(2.35rem, 12vw, 3.55rem); }
    .hero-slide p { font-size: .94rem; line-height: 1.65; }
    .hero-slide__actions { width: 100%; }
    .hero-slide__actions .button { width: 100%; }
    .hero-slider__arrow { width: 42px; height: 42px; font-size: 1.05rem; }
    .hero-slider__arrow--prev { left: 9px; }
    .hero-slider__arrow--next { right: 9px; }
    .section-heading h2, .split-heading h2, .coverage-copy h2, .expertise-copy h2 { font-size: clamp(2.15rem, 10vw, 3.4rem); }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
    .metric-card:last-child { border-bottom: 0; }
    .practice-showcase__meta { display: grid; justify-items: start; }
    .practice-tile { min-width: 86%; }
    .practice-carousel__arrow { width: 44px; height: 44px; }
    .practice-carousel__arrow--prev { left: 4px; }
    .practice-carousel__arrow--next { right: 4px; }
    .team-grid, .insights-grid, .values-grid, .methodology-grid, .service-list-grid, .related-grid { grid-template-columns: 1fr; }
    .team-grid .team-card:last-child, .insights-grid .insight-card:last-child { grid-column: auto; width: auto; }
    .coverage-stats { grid-template-columns: 1fr; }
    .coverage-stats div { padding-bottom: 8px; }
    .client-logo-slide { width: 220px; }
    .client-logo-slide__inner { height: 125px; }
    .cta-band__inner { grid-template-columns: 1fr; }
    .cta-band__inner .button { width: 100%; }
    .floating-contact { right: 14px; bottom: 14px; min-height: 48px; padding: 0 17px; }
    .page-hero { min-height: 430px; }
    .page-hero__content { padding-block: 70px; }
    .page-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .timeline::before { left: 18px; }
    .timeline__item { grid-template-columns: 1fr; gap: 8px; padding-left: 48px; }
    .timeline__item div { padding-left: 0; }
    .timeline__item div::before { left: -35px; }
    .profile__image { min-height: 430px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field--full { grid-column: auto; }
    .map-section__header { align-items: flex-start; flex-direction: column; }
    .map-frame { width: min(calc(100% - 28px), var(--container)); height: 400px; }
    .site-footer__top { grid-template-columns: 1fr; gap: 38px; }
    .site-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}

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

@media (max-width: 700px) {
    .floating-contact {
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .floating-contact span:last-child { display: none; }
}

/* =========================================================
   REORGANIZACIÓN COMERCIAL v3 — componentes nuevos.
   Usan los mismos tokens (navy, accent, Prata/Manrope, radios).
   ========================================================= */

/* Puntos de dolor / triage */
.triage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.triage-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.triage-card:hover, .triage-card:focus-visible { transform: translateY(-6px); border-color: var(--navy-2); background: var(--ink); }
.triage-card strong { color: var(--ink); font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; letter-spacing: -.02em; }
.triage-card p { flex: 1; margin: 0; color: var(--muted); font-size: .9rem; }
.triage-card i { color: var(--navy-2); font-size: .72rem; font-weight: 700; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.triage-card:hover strong, .triage-card:hover p { color: #fff; }
.triage-card:hover i { color: var(--accent); }

/* Clientes estáticos (grid grande, reemplazo del marquee) */
.client-static-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-static-grid .client-logo-slide { width: auto; padding: 0; }
.client-static-grid .client-logo-slide__inner { height: 168px; padding: 30px; }
.client-static-grid .client-logo-slide img { max-height: 96px; }

/* Tarjeta CTA dentro del equipo (sección oscura) */
.team-card--cta { display: flex; align-items: center; background: rgba(159, 184, 206, .1); }
.team-card--cta .team-card__body { padding: 34px; }
.team-card--cta .team-card__body p { min-height: 0; }

/* Foto de "Quiénes somos" */
.story-photo { margin: 60px auto 0; padding: 0; }
.story-photo img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Botón flotante en versión WhatsApp */
.floating-contact--wa { border-color: rgba(255,255,255,.25); background: #25d366; color: #fff; }
.floating-contact--wa:hover { background: #1ebe57; }
.floating-contact--wa svg { display: block; }

@media (max-width: 900px) {
    .triage-grid { grid-template-columns: 1fr 1fr; }
    .client-static-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .triage-grid { grid-template-columns: 1fr; }
    .client-static-grid { grid-template-columns: 1fr 1fr; }
    .client-static-grid .client-logo-slide__inner { height: 130px; padding: 22px; }
    .story-photo img { max-height: 300px; }
}
