/* Escobar Navarrete Abogados — estilo corporativo.
   Tipografía de la familia del logotipo (Frutiger → Hind), carbón y oro oliva, mucho blanco. */

@font-face { font-family: 'Hind'; src: url('fonts/hind-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hind'; src: url('fonts/hind-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hind'; src: url('fonts/hind-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hind'; src: url('fonts/hind-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hind'; src: url('fonts/hind-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --mist: #f4f3ef;
  --rule: #dedcd5;
  --ink: #1f1e1a;
  --ink-2: #47453d;
  --ink-3: #6b685e;
  --olive: #afa311; /* oliva del logotipo: solo filetes y subrayados */
  --olive-ink: #6b6320;
  --olive-pale: #d6cf95;
  --t-gestion: #867c2a;
  --t-planeamiento: #3f6475;
  --t-expropiacion: #9a4f36;
  --t-inmobiliario: #6c5878;
  --font: 'Hind', 'Frutiger', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 85px; scrollbar-color: #9d9a8f var(--mist); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--white); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Cabecera ---------- */
.util { background: var(--ink); color: #d9d7ce; font-size: 14px; }
.util .wrap { display: flex; align-items: center; gap: 28px; height: 40px; }
.util a { text-decoration: none; color: inherit; letter-spacing: .02em; }
.util a:hover { color: var(--white); }
.util .lang { margin-left: auto; display: flex; gap: 2px; }
.util .lang a, .util .lang span { padding: 4px 8px; font-weight: 500; letter-spacing: .06em; }
.util .lang span { color: var(--white); box-shadow: inset 0 -2px 0 var(--olive-pale); }

.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.head .wrap { display: flex; align-items: center; gap: 40px; height: 84px; }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 36px); margin-left: auto; }
.nav a { font-size: 17px; font-weight: 400; text-decoration: none; color: var(--ink-2); padding: 8px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; display: block; }

/* ---------- Carrusel de portada ---------- */
.hero { position: relative; height: clamp(480px, calc(100svh - 125px), 860px); background: var(--ink); color: var(--white); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.slide.on img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 24, 20, .74) 0%, rgba(25, 24, 20, .46) 45%, rgba(25, 24, 20, .08) 100%); }
.slide .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide .txt { max-width: 640px; }
.slide h1, .slide h2 { margin: 0 0 18px; font-weight: 300; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.01em; }
.slide p { margin: 0 0 30px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: #ecebe5; max-width: 52ch; }
.slide .more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; text-decoration: none; color: var(--white); padding-bottom: 4px; border-bottom: 1.5px solid var(--olive-pale); }
.slide .more svg { width: 18px; height: 12px; transition: transform .35s var(--ease); }
.slide .more:hover svg { transform: translateX(4px); }
.hero-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 18px; }
.dots { display: flex; gap: 10px; }
.dots button { width: 44px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, .38); }
.dots button[aria-current="true"]::before { background: var(--white); }
.arrows { display: flex; gap: 6px; margin-left: auto; }
.arrows button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid rgba(255, 255, 255, .45); color: var(--white); cursor: pointer; transition: background .25s, border-color .25s; }
.arrows button:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.arrows svg { width: 18px; height: 18px; }
.hero-ctrl .wrap { position: relative; }
.credit { position: absolute; right: var(--gutter); top: calc(100% + 10px); margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.credit a { color: inherit; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.mist { background: var(--mist); }
.sec h2 { margin: 0 0 28px; font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.12; color: var(--ink); letter-spacing: -.005em; }
.sec h2 b { font-weight: 600; }
.rule { width: 56px; height: 2px; background: var(--olive); border: 0; margin: 0 0 26px; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; font-weight: 300; color: var(--ink); margin: 0 0 1.1em; }
.cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.cols p { color: var(--ink-2); max-width: 62ch; }
.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* Áreas */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 12px; }
.area h3 { margin: 0 0 6px; font-size: 1.55rem; font-weight: 500; }
.area > p { margin: 0 0 20px; color: var(--ink-2); }
.area ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.area li { padding: 13px 0 12px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.note { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--ink-2); max-width: 70ch; }
.note b { font-weight: 600; color: var(--ink); }

/* Botón */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 13px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500; font-size: 16.5px; border: 1px solid var(--ink); transition: background .25s, color .25s; }
.btn:hover { background: var(--olive-ink); border-color: var(--olive-ink); }
.btn.light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn.light:hover { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 12px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); }
.dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dl dt { color: var(--ink-3); font-size: 15px; }
.dl dd { margin: 0; color: var(--ink); }
.dl dd a { text-decoration: none; }
.dl dd a:hover { color: var(--olive-ink); text-decoration: underline; }
.mapbox { position: relative; min-height: 380px; border: 1px solid var(--rule); }
.mapbox > div { position: absolute; inset: 0; }

/* Pie */
.foot { background: var(--ink); color: #c9c7be; font-size: 15px; }
.foot .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #3a3832; }
.foot .top img { height: 34px; width: auto; }
.foot h4 { margin: 0 0 10px; color: var(--white); font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.foot p { margin: 0; line-height: 1.7; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot .bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; font-size: 13.5px; color: #a4a297; }
.foot .bottom nav { display: flex; gap: 20px; margin-left: auto; }

/* ---------- Página de experiencia ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.crumbs { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--olive-ink); text-decoration: underline; }
.page-head h1 { margin: 0 0 18px; font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; }
.page-head .lead { max-width: 60ch; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.xp { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 460px); border-bottom: 1px solid var(--rule); }
.xp-map { position: sticky; top: 85px; height: calc(100svh - 85px); min-height: 480px; align-self: start; background: #eef0ee; }
#map { position: absolute; inset: 0; }
.xp-side { border-left: 1px solid var(--rule); min-width: 0; }
.xp-block { padding: 26px 28px 28px; border-bottom: 1px solid var(--rule); }
.xp-block h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 600; }
.filters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; background: none; border: 0; padding: 8px 6px 7px 0; cursor: pointer; text-align: left; color: var(--ink); font: 400 16.5px/1.3 var(--font); }
.filters button:hover { background: var(--mist); }
.filters .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--c); justify-self: center; }
.filters .n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 15px; }
.filters button[aria-pressed="false"] { color: var(--ink-3); }
.filters button[aria-pressed="false"] .dot { background: var(--white); }
.legend-term { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.legend-term i { width: 20px; height: 14px; background: rgba(134, 124, 42, .16); border: 1.5px solid #867c2a; }
.offsheet { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.offsheet button { background: none; border: 0; padding: 0; font: 500 15px var(--font); color: var(--olive-ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.filtro { display: none; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 12px; background: var(--mist); font-size: 15.5px; }
.filtro.on { display: flex; }
.filtro button { background: none; border: 0; color: var(--olive-ink); font: 500 15px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.group h3 { margin: 24px 0 8px; display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.group:first-of-type h3 { margin-top: 0; }
.group h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.group ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 10px 12px 0; cursor: pointer; color: var(--ink); font-family: var(--font); scroll-margin: 40vh 0; transition: background .2s; }
.row:hover { background: var(--mist); }
.row.on { background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); padding-left: 10px; }
.row .a { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.row .y { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row .m { font-size: 14.5px; color: var(--olive-ink); font-weight: 500; }
.row .d { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.vacio { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); margin: 18px 0 0; line-height: 1.55; }

.map-view { position: absolute; z-index: 3; top: 16px; right: 16px; display: flex; background: var(--white); border: 1px solid #b9b6ac; }
.map-view button { background: none; border: 0; padding: 9px 14px 8px; font: 500 15px var(--font); color: var(--ink-2); cursor: pointer; }
.map-view button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tlabel { font: 600 12.5px/1 var(--font); color: #34322b; white-space: nowrap; pointer-events: none; letter-spacing: .02em;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.tlabel:not(.p) { display: none; }
.z9 .tlabel:not(.p) { display: block; }
.tlabel.off { opacity: .35; }
.maplibregl-popup-content { background: var(--ink); color: var(--white); border-radius: 0; padding: 8px 11px 7px; font: 400 14.5px/1.3 var(--font); box-shadow: none; }
.maplibregl-popup-content b { display: block; font-weight: 600; color: var(--olive-pale); font-size: 13px; }
.maplibregl-popup-tip { border-top-color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.maplibregl-ctrl-group { border-radius: 0 !important; }
.maplibregl-ctrl-attrib { font: 11.5px/1.3 var(--font) !important; }
.maplibregl-cooperative-gesture-screen { font: 400 16px/1.4 var(--font) !important; }

/* Páginas legales */
.legal { max-width: 74ch; padding-top: clamp(40px, 5vw, 64px); padding-bottom: 72px; }
.legal h1 { font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.1; margin: 0 0 28px; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 34px 0 8px; }
.legal p { color: var(--ink-2); }
.legal mark { background: #f1e9a6; padding: 0 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cols, .contact { grid-template-columns: 1fr; }
  .foot .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .util .wrap > a:not(:first-child) { display: none; }
  .head .wrap { height: 70px; gap: 16px; }
  .brand img { height: 30px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .hero { height: 86svh; min-height: 520px; }
  .slide::after { background: linear-gradient(180deg, rgba(25, 24, 20, .35) 0%, rgba(25, 24, 20, .7) 55%, rgba(25, 24, 20, .82) 100%); }
  .slide .wrap { justify-content: flex-end; padding-bottom: 110px; }
  .areas { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .foot .top { grid-template-columns: 1fr; }
  .foot .bottom nav { margin-left: 0; }
  .xp { grid-template-columns: 1fr; }
  .xp-map { position: sticky; top: 70px; height: 48svh; min-height: 300px; z-index: 4; border-bottom: 1px solid var(--rule); }
  .xp-side { border-left: 0; }
  .xp-block { padding: 22px var(--gutter); }
  html { scroll-padding-top: 71px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .slide img { transform: none !important; }
}

/* Rótulos con posición propia para evitar solapes */
.tlabel.lr { margin-left: 4px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #b9b6ac; border: 3px solid var(--mist); }
@media (max-width: 860px) { .hero-ctrl { bottom: 46px; } .credit { right: var(--gutter); top: calc(100% + 12px); } }
