/* Baraona Burguett — sitio público
   Sistema: carmesí institucional para acción y riesgo, carbón para estructura,
   Archivo expandido (eco del logotipo) para títulos y Source Serif 4 para el texto. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --crimson: #8B1E24;
  --carbon: #2C3E50;
  --gray: #6E7378;
  --paper: #F8F9FA;
  --white: #FFFFFF;
  --rule: #DFE2E5;
  --rule-strong: #C4C9CF;
  --crimson-ink: color-mix(in srgb, var(--crimson) 80%, #000);
  --crimson-tint: color-mix(in srgb, var(--crimson) 7%, #fff);
  --carbon-soft: color-mix(in srgb, var(--carbon) 86%, #fff);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gut: clamp(20px, 4vw, 48px);
  --hdr: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--carbon);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.62; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1100px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--sans); font-stretch: 112%; font-weight: 620; line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 .6em; text-wrap: balance; color: var(--carbon); }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--carbon); color: #fff; padding: 10px 14px; font-family: var(--sans); }
.skip:focus { top: 12px; }
.muted { color: var(--gray); margin: 0; }

/* ── Botones y enlaces ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-stretch: 104%; font-weight: 600; font-size: .98rem; line-height: 1.2;
  padding: .95rem 1.4rem; border-radius: 3px; border: 1.5px solid transparent; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-ink); }
.btn--line { border-color: var(--carbon); color: var(--carbon); background: transparent; }
.btn--line:hover { background: var(--carbon); color: #fff; }
.btn--sm { padding: .68rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--carbon); color: #fff; width: 100%; }
.btn--wa:hover { background: color-mix(in srgb, var(--carbon) 82%, #000); }
.btn--google { width: 100%; background: #fff; border-color: var(--rule-strong); color: var(--carbon); }
.btn--google:hover { border-color: var(--carbon); }
.btn--google svg { width: 20px; height: 20px; }
.lnk { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--crimson); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lnk:hover { color: var(--crimson-ink); text-decoration-thickness: 2px; }

/* ── Encabezado ── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-stuck { border-bottom-color: var(--rule); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.hdr__brand { flex: none; display: block; }
.hdr__brand img { height: 58px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.hdr__nav a { font-family: var(--sans); font-stretch: 102%; font-weight: 500; font-size: .96rem; color: var(--carbon); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.hdr__nav a:hover { border-bottom-color: var(--crimson); }
.hdr__acct-m { display: none; }
.hdr__act { display: flex; align-items: center; gap: 18px; }
.hdr__acct { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--carbon); text-decoration: none; }
.hdr__acct svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hdr__acct:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hdr__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-strong); background: #fff; border-radius: 3px; position: relative; }
.hdr__menu-bars, .hdr__menu-bars::before, .hdr__menu-bars::after { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--carbon); content: ""; transition: transform .2s, opacity .2s; }
.hdr__menu-bars { top: 21px; }
.hdr__menu-bars::before { left: 0; right: 0; top: -6px; }
.hdr__menu-bars::after { left: 0; right: 0; top: 6px; }
.nav-open .hdr__menu-bars { background: transparent; }
.nav-open .hdr__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .hdr__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Portada ── */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 5.5vw, 88px); align-items: center; }
.hero__title { margin: 0 0 1.4rem; }
.hero__kicker { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, .95rem + .6vw, 1.5rem); letter-spacing: 0; color: var(--crimson); margin-bottom: .55rem; }
.hero__main { display: block; font-size: clamp(2.15rem, 1.15rem + 3.2vw, 3.85rem); font-stretch: 116%; font-weight: 650; line-height: 1.03; letter-spacing: -0.022em; }
.hero__sub { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.58; color: var(--carbon-soft); max-width: 36em; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 24px 20px; }
.hero__visual--image { padding: 0; overflow: hidden; aspect-ratio: 9 / 10; }
.hero__visual--image img { width: 100%; height: 100%; object-fit: cover; }
.hero__maptitle { font-family: var(--sans); font-weight: 600; font-size: .9rem; font-stretch: 104%; color: var(--carbon); padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.hero__mapnote { font-size: .9rem; line-height: 1.5; color: var(--gray); margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }

.map { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); }
.maprow { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 2 5; }
.maplabel { font-size: 11.5px; font-weight: 500; fill: var(--gray); }
.mapedge { fill: none; stroke: var(--carbon); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bbDraw .55s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: var(--d, 0s); }
.mapedge--alert { stroke: var(--crimson); stroke-dasharray: 1; }
.mapnode { opacity: 0; animation: bbNode .45s ease forwards; animation-delay: var(--d, 0s); transform-box: fill-box; }
.mapnode rect { fill: #fff; stroke: var(--carbon); stroke-width: 1.2; }
.mapnode__t { font-size: 12.5px; font-weight: 620; fill: var(--carbon); }
.mapnode--root rect { fill: var(--carbon); }
.mapnode--root .mapnode__t, .mapnode--final .mapnode__t { fill: #fff; text-anchor: middle; }
.mapnode--alert rect { stroke: var(--crimson); stroke-width: 1.6; fill: var(--crimson-tint); }
.mapnode--final rect { fill: var(--crimson); stroke: var(--crimson); }
.mapnode__st text { font-size: 10.5px; font-weight: 500; fill: var(--gray); }
.mapnode__ic { fill: var(--carbon); }
.mapnode--alert .mapnode__ic { fill: var(--crimson); }
.mapnode--alert .mapnode__st text { fill: var(--crimson); font-weight: 650; }
.mapnode__glyph { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bbDraw { to { stroke-dashoffset: 0; } }
@keyframes bbNode { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── Indicadores ── */
.record { background: var(--paper); border-block: 1px solid var(--rule); }
.record__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.record__item { padding: 30px 32px 28px; border-left: 1px solid var(--rule); display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 6px 20px; align-items: baseline; }
.record__item:first-child { border-left: 0; padding-left: 0; }
.record__fig { font-family: var(--sans); font-stretch: 122%; font-weight: 640; font-size: 2.1rem; line-height: 1; color: var(--crimson); margin: 0; letter-spacing: -0.02em; }
.record__txt { font-size: .98rem; line-height: 1.5; margin: 0; }

/* ── Secciones ── */
.sec { padding: clamp(64px, 9vw, 124px) 0; }
.sec__title { font-size: clamp(1.85rem, 1.2rem + 1.9vw, 2.75rem); font-stretch: 114%; max-width: 22ch; }
.sec__intro { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); color: var(--carbon-soft); max-width: 40em; margin: 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec__head .sec__title { margin: 0; }
.sub { font-family: var(--sans); font-stretch: 106%; font-weight: 650; font-size: 1.08rem; color: var(--carbon); margin: 2.4rem 0 1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.lead { font-size: clamp(1.12rem, 1.05rem + .3vw, 1.3rem); line-height: 1.55; }

/* Pilares */
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px); margin-top: clamp(28px, 3vw, 44px); }
.pillar { border-top: 2px solid var(--carbon); padding-top: 26px; display: flex; flex-direction: column; }
.pillar__mark { width: 26px; height: 36px; fill: none; stroke: var(--crimson); stroke-width: 1.7; stroke-linecap: round; margin-bottom: 18px; }
.pillar__mark circle { fill: var(--crimson); stroke: none; }
.pillar h3 { font-size: 1.3rem; font-stretch: 106%; }
.pillar p { flex: 1; }
.pillar .lnk { align-self: flex-start; }

/* Servicios */
.services { background: var(--paper); }
.tabs__list { display: flex; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { flex: none; font-family: var(--sans); font-stretch: 104%; font-weight: 600; font-size: 1rem; color: var(--gray); background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 4px; margin-right: 32px; margin-bottom: -1px; }
.tabs__tab:hover { color: var(--carbon); }
.tabs__tab[aria-selected="true"] { color: var(--carbon); border-bottom-color: var(--crimson); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 52px); }
.area__title { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-stretch: 108%; }
.area__intro { color: var(--carbon-soft); }
.area__img { margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--rule); }
.area__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.03); }
.acc { border-top: 1px solid var(--rule-strong); }
.acc:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 21px 0; cursor: pointer; font-family: var(--sans); font-stretch: 103%; font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--carbon); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover span { color: var(--crimson); }
.acc i { flex: none; width: 16px; height: 16px; position: relative; margin-top: 4px; }
.acc i::before, .acc i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.8px; background: var(--crimson); transition: transform .2s; }
.acc i::after { transform: rotate(90deg); }
.acc[open] i::after { transform: rotate(0); }
.acc p { margin: 0; padding: 0 36px 24px 0; max-width: 62ch; }
.area__cta { margin-top: 28px; }

/* Metodología */
.phases { list-style: none; margin: 0; padding: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); position: relative; }
.phases::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1.5px; background: var(--rule-strong); }
.phase { position: relative; }
.phase__dot { position: absolute; top: -34px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--crimson); }
.phase:last-child .phase__dot { background: var(--crimson); }
.phase__name { font-family: var(--sans); font-weight: 650; font-size: .88rem; color: var(--crimson); margin: 0 0 .5rem; }
.phase h3 { font-size: 1.18rem; font-stretch: 105%; }
.phase__txt { font-size: .98rem; color: var(--carbon-soft); margin: 0; }

/* Seguridad */
.security { position: relative; background: var(--carbon); color: #fff; overflow: hidden; isolation: isolate; }
.security__bg { position: absolute; inset: 0 0 0 42%; background-size: cover; background-position: center; opacity: .32; filter: grayscale(1); z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.security .sec__title { color: #fff; }
.security .sec__intro { color: rgba(255, 255, 255, .78); }
.safeguards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 52px); }
.safeguards li { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 26px; }
.safeguards svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.safeguards h3 { color: #fff; font-size: 1.15rem; font-stretch: 104%; }
.safeguards p { color: rgba(255, 255, 255, .8); font-size: 1rem; margin: 0; }

/* Liderazgo */
.leader__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(20px, 3vw, 40px); }
.portrait { aspect-ratio: 4 / 5; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; border-radius: 3px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--empty { display: grid; place-items: center; background: linear-gradient(180deg, var(--paper), #ECEEF1); position: relative; }
.portrait--empty::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--crimson); }
.portrait__ini { font-family: var(--sans); font-stretch: 125%; font-weight: 300; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); letter-spacing: .06em; color: var(--carbon); }
.roles { list-style: none; margin: 22px 0 0; padding: 0; }
.roles li { font-family: var(--sans); font-weight: 500; font-size: .93rem; line-height: 1.35; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.leader__name { font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.25rem); font-stretch: 112%; margin-bottom: 1.1rem; }
.leader__bio p { font-size: 1.08em; }
.creds { margin: 0; }
.creds div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.creds dt { font-family: var(--sans); font-weight: 600; font-size: .96rem; }
.creds dd { margin: 0; font-size: 1rem; }
.creds div:last-child { border-bottom: 0; }
.inst { list-style: none; margin: 0; padding: 0; }
.inst li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.inst__badge { align-self: start; text-align: center; font-family: var(--sans); font-stretch: 118%; font-weight: 700; font-size: .74rem; letter-spacing: .05em; color: var(--crimson); border: 1.5px solid currentColor; border-radius: 2px; padding: 7px 4px; }
.inst strong { display: block; font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1.35; margin-bottom: 4px; }
.inst p { margin: 0; font-size: 1rem; }

/* La firma */
.firm { background: var(--paper); }
.firm__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(16px, 2vw, 28px); }
.firm__top .sub:first-child { margin-top: 0; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.mv h4, .firm__places h4, .office h4 { font-family: var(--sans); font-weight: 650; font-size: .95rem; color: var(--crimson); margin: 0 0 .5rem; }
.mv p { font-size: 1rem; margin: 0; }
.firm__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--rule); }
.firm__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.04); }
.firm__team { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 88px); padding-top: 36px; border-top: 2px solid var(--carbon); }
.firm__team .sub { border: 0; padding: 0; margin-top: 0; }
.firm__fig { font-family: var(--sans); font-stretch: 125%; font-weight: 300; font-size: clamp(3.6rem, 2.4rem + 3vw, 5.6rem); line-height: .9; color: var(--crimson); margin: 0; }
.firm__cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); }
.tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--sans); font-weight: 500; font-size: .9rem; padding: 8px 13px; border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff; }
.firm__places { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 1.1rem; border-top: 1px solid var(--rule); margin-top: 2.4rem; }
.places { list-style: none; margin: 0; padding: 0; }
.places li { padding: 11px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.places strong { font-family: var(--sans); font-weight: 600; font-size: .98rem; }
.places span { font-size: .95rem; color: var(--gray); }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .sec__intro { margin-bottom: 32px; }
.form { display: grid; gap: 18px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld > span { font-family: var(--sans); font-weight: 600; font-size: .88rem; }
.fld input, .fld select, .fld textarea, .bot__form input {
  font-family: var(--sans); font-size: 1rem; color: var(--carbon); background: #fff; width: 100%;
  padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 3px; transition: border-color .15s;
}
.fld textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .bot__form input:focus { outline: 2px solid var(--crimson); outline-offset: 0; border-color: var(--crimson); }
.fld.is-err input, .fld.is-err textarea { border-color: var(--crimson); background: var(--crimson-tint); }
.fld__err { color: var(--crimson); font-family: var(--sans); font-size: .84rem; }
.fld__help { color: var(--gray); font-family: var(--sans); font-size: .84rem; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: .93rem; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--crimson); flex: none; }
.chk a { color: var(--carbon); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__msg { margin: 0; font-family: var(--sans); font-size: .95rem; }
.form__msg.is-ok { color: #24553A; }
.form__msg.is-err { color: var(--crimson); }
.office { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(24px, 3vw, 40px); position: sticky; top: calc(var(--hdr) + 24px); }
.office .sub { margin-top: 0; padding-top: 0; border: 0; }
.office__list { list-style: none; margin: 0 0 22px; padding: 0; }
.office__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.office__list span { font-family: var(--sans); font-size: .85rem; color: var(--gray); }
.office__list a { font-family: var(--sans); font-weight: 600; font-size: .98rem; text-decoration: none; text-align: right; overflow-wrap: anywhere; }
.office__list a:hover { color: var(--crimson); }
.office__addr { margin-top: 26px; }
.office__addr p { font-size: 1rem; margin-bottom: .5rem; }

/* Páginas legales y cuenta */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal__body h2 { font-size: 1.25rem; margin: 2em 0 .5em; }
.legal__body ul { padding-left: 1.2em; }
.acct { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); min-height: 70vh; }
.acct__wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 360px); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; }
.acct__card { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: clamp(24px, 4vw, 44px); }
.acct__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-stretch: 112%; margin-bottom: .4rem; }
.acct__intro { color: var(--carbon-soft); margin-bottom: 1.6rem; }
.acct__or { display: flex; align-items: center; gap: 12px; color: var(--gray); font-family: var(--sans); font-size: .85rem; margin: 20px 0; }
.acct__or::before, .acct__or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.acct__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; font-family: var(--sans); font-size: .93rem; }
.acct__aside { padding-top: 18px; }
.acct__aside h2 { font-size: 1.25rem; margin-top: 18px; }
.acct__aside p { font-size: 1rem; color: var(--carbon-soft); }
.acct__aside ul { padding-left: 1.1em; font-size: .98rem; color: var(--carbon-soft); }
.alert { padding: 12px 14px; border-radius: 3px; font-family: var(--sans); font-size: .93rem; margin: 0 0 18px; }
.alert--ok { background: #EEF5F0; color: #24553A; border: 1px solid #CFE3D6; }
.alert--err { background: var(--crimson-tint); color: var(--crimson-ink); border: 1px solid color-mix(in srgb, var(--crimson) 25%, #fff); }
.acct--dash .dash__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash__who { display: flex; align-items: center; gap: 16px; }
.dash__who img, .dash__ini { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dash__ini { display: grid; place-items: center; background: var(--carbon); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.4rem; }
.dash__who .acct__title { margin: 0; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: clamp(22px, 3vw, 32px); }
.panel h2 { font-size: 1.2rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel__head h2 { margin: 0; }
.panel__sep { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.empty { color: var(--gray); font-size: 1rem; }
.reqs { list-style: none; margin: 0; padding: 0; }
.reqs li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reqs strong { font-family: var(--sans); font-weight: 600; font-size: .98rem; }
.reqs p { margin: 2px 0 0; font-size: .95rem; color: var(--carbon-soft); }
.reqs__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: var(--sans); font-size: .82rem; color: var(--gray); flex: none; }
.pill { font-family: var(--sans); font-weight: 600; font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); }
.pill--nuevo { color: var(--crimson); }
.pill--atendido { color: #24553A; }
.soon { margin-top: 28px; padding: 18px 20px; background: var(--paper); border-left: 3px solid var(--crimson); }
.soon h3 { font-size: 1rem; margin-bottom: .3rem; }
.soon p { margin: 0; font-size: .98rem; }

/* ── Pie ── */
.ftr { background: var(--carbon); color: #fff; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(48px, 6vw, 72px) 0 40px; }
.ftr__brand img { height: 66px; width: auto; margin-bottom: 18px; }
.ftr__brand p { color: rgba(255, 255, 255, .72); font-size: .98rem; max-width: 34ch; }
.ftr h2 { font-family: var(--sans); font-weight: 600; font-size: .88rem; color: rgba(255, 255, 255, .6); margin: 6px 0 14px; letter-spacing: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { color: #fff; text-decoration: none; font-family: var(--sans); font-size: .94rem; overflow-wrap: anywhere; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .16); padding: 22px 0 28px; font-family: var(--sans); font-size: .85rem; color: rgba(255, 255, 255, .64); }
.ftr__base p { margin: 0; }

/* ── Asistente ── */
.bot__fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: var(--carbon); color: #fff; font-family: var(--sans); font-weight: 600; font-size: .95rem; box-shadow: 0 10px 28px rgba(44, 62, 80, .3); }
.bot__fab:hover { background: color-mix(in srgb, var(--carbon) 85%, #000); }
.bot__fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.bot__fab circle { fill: #fff; stroke: none; }
.bot__panel { position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(384px, calc(100vw - 24px)); height: min(580px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 28px 70px rgba(20, 30, 42, .28); overflow: hidden; }
.bot__panel[hidden] { display: none; }
.bot__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--carbon); color: #fff; }
.bot__head img { background: #fff; border-radius: 4px; padding: 3px; width: 32px; height: 36px; }
.bot__head div { flex: 1; min-width: 0; }
.bot__head strong { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.bot__head span { display: block; font-family: var(--sans); font-size: .78rem; opacity: .72; }
.bot__icon { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; flex: none; }
.bot__icon:hover { background: rgba(255, 255, 255, .12); }
.bot__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bot__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-family: var(--sans); font-size: .93rem; line-height: 1.45; white-space: pre-line; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--rule); border-bottom-left-radius: 3px; }
.msg--me { align-self: flex-end; background: var(--carbon); color: #fff; border-bottom-right-radius: 3px; }
.msg__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__acts a { font-size: .82rem; font-weight: 600; color: var(--crimson); border: 1px solid currentColor; border-radius: 3px; padding: 5px 9px; text-decoration: none; }
.msg--typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--gray); animation: bbDot 1s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bbDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bot__quick { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.bot__quick button { flex: none; font-family: var(--sans); font-size: .82rem; font-weight: 500; padding: 7px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: #fff; color: var(--carbon); }
.bot__quick button:hover { border-color: var(--carbon); }
.bot__form { display: flex; gap: 8px; padding: 10px 12px; }
.bot__form input { padding: 11px 12px; font-size: .95rem; }
.bot__form button { flex: none; width: 46px; border: 0; border-radius: 3px; background: var(--crimson); color: #fff; display: grid; place-items: center; }
.bot__form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bot__wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-top: 1px solid var(--rule); font-family: var(--sans); font-weight: 600; font-size: .86rem; color: var(--carbon); text-decoration: none; }
.bot__wa:hover { color: var(--crimson); }
.bot__wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ── Vista previa del editor ── */
.is-preview [data-bb] { cursor: pointer; }
.is-preview [data-bb]:hover { outline: 1.5px dashed var(--crimson); outline-offset: 3px; }
.is-preview .bb-focus { outline: 2px solid var(--crimson) !important; outline-offset: 3px; }
.is-preview .mapnode, .is-preview .mapedge { animation: none; opacity: 1; stroke-dashoffset: 0; }

/* ── Adaptable ── */
@media (max-width: 1120px) {
  :root { --hdr: 74px; }
  .hdr__brand img { height: 50px; }
  .hdr__menu { display: block; }
  .hdr__acct { display: none; }
  .hdr__nav { position: fixed; inset: var(--hdr) 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px var(--gut) 28px; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px rgba(20, 30, 42, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .nav-open .hdr__nav { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
  .hdr__nav a { font-size: 1.15rem; padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .hdr__acct-m { display: block; }
  .hdr__act { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero__grid, .sec__head, .area, .leader__grid, .firm__top, .firm__cover, .contact__grid, .acct__wrap, .dash__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; }
  .pillars__grid, .safeguards { grid-template-columns: minmax(0, 1fr); }
  .record__grid { grid-template-columns: minmax(0, 1fr); }
  .record__item { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0; }
  .record__item:first-child { border-top: 0; }
  .phases { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 34px; gap: 30px; }
  .phases::before { top: 6px; bottom: 6px; left: 7px; right: auto; width: 1.5px; height: auto; }
  .phase__dot { top: 4px; left: -34px; }
  .leader__aside { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
  .roles { margin-top: 0; }
  .security__bg { inset: 0; opacity: .16; -webkit-mask-image: none; mask-image: none; }
  .firm__img { aspect-ratio: 16 / 10; }
  .office { position: static; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --hdr: 66px; }
  .hdr__in { gap: 12px; }
  .hdr__brand img { height: 42px; }
  .hdr__act .btn { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__visual { padding: 16px 14px 14px; }
  .form__row, .mv, .firm__places, .firm__team { grid-template-columns: minmax(0, 1fr); }
  .creds div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .inst li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .leader__aside { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 260px; }
  .tabs__tab { margin-right: 22px; font-size: .95rem; }
  .acc p { padding-right: 0; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); }
  .bot__fab span { display: none; }
  .bot__fab { padding: 14px; }
  .bot__panel { right: 12px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mapnode, .mapedge { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .hdr, .bot, .ftr, .hero__cta, .contact__form { display: none; }
}
