/* Notaría 97 de la Ciudad de México — hoja de estilos (sitio público)
   Identidad visual inspirada en @notaria97cdmx:
   púrpura profundo (#532476), turquesa/aguamarina (#1FB5A3), malva (#83738D) y verde olivo (#74823E)
   sobre blanco limpio, con tipografía geométrica/humanista moderna (Jost + Libre Franklin). */

@font-face { font-family: "Franklin"; src: url("../fonts/franklin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --ink: #2B1A3B;
  --ink-2: #4B335E;
  --muted: #756582;
  --plum: #532476;
  --plum-2: #6B3296;
  --plum-deep: #241136;
  --mauve: #83738D;
  --olive: #74823E;
  --olive-2: #5B672F;
  --olive-soft: #F1F4E6;
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --mist: #F7F5FA;
  --line: #E6DFEE;
  --line-2: #D2C6DF;
  --teal: #1FB5A3;
  --teal-2: #148577;
  --teal-soft: #E3F7F4;
  --warn: #8E5B0C;
  --warn-soft: #FBF0DC;
  --bad: #9F3434;
  --bad-soft: #F8E5E5;
  --info: #3F4F8C;
  --info-soft: #E8EBF7;

  --display: "Jost", "Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Franklin", "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-d: var(--display);
  --serif: var(--sans);

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --focus: 0 0 0 3px rgba(31, 181, 163, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); font-feature-settings: "lnum" 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-2); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; background: var(--mist); padding: .1em .35em; border-radius: var(--r-sm); }
.ico { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; }
.is-bad { color: var(--bad); }
.lead { font: 400 1.15rem/1.6 var(--sans); color: var(--ink-2); max-width: 62ch; }
.print-only { display: none; }

/* ---------- Marca ---------- */
.ig-ribbon { height: 4px; background: linear-gradient(90deg, var(--plum) 0%, var(--mauve) 46%, var(--olive) 76%, var(--teal) 100%); }
.brand-emblem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0; }
.brand-logo-svg { height: 50px; width: auto; display: block; }
.wordmark { font: 300 1.45rem/1 var(--display); letter-spacing: .12em; color: var(--plum); margin: 0; white-space: nowrap; }
.wm-dot { display: inline-block; width: .28em; height: .28em; border-radius: 50%; background: var(--teal); vertical-align: .22em; margin: 0 .1em; }
.wordmark-sm { font-size: 1.2rem; }
.wordmark-inv { color: #F5EFFA; }
.wordmark-inv .wm-dot, .foot .wm-dot { background: #3FE0CB; }
.foot-logo-card { display: inline-block; background: #FFFFFF; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.foot-logo-card img { height: 48px; width: auto; display: block; }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.15em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); color: var(--ink); font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--plum); color: var(--plum); }
.btn-primary { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-2); border-color: var(--plum-2); color: var(--white); }
.btn-sm { min-height: 34px; padding: .35em .8em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); padding: .6em .75em; min-height: 44px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--plum); margin: 0; flex: none; }
.input-sm { min-height: 34px; padding: .3em .6em; font-size: .85rem; width: 160px; }
.big-input { font-size: 1.35rem; letter-spacing: .04em; }
.code-input { letter-spacing: .5em; font-variant-numeric: tabular-nums; max-width: 260px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.check input { margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid-2, .grid-3 { display: grid; gap: 14px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > legend { float: left; font: 400 1.35rem/1.2 var(--serif); color: var(--ink); padding: 0; margin-bottom: 14px; width: 100%; }
.block > legend ~ * { clear: both; }
.block > legend small { font: .85rem var(--sans); color: var(--muted); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices-col { flex-direction: column; }
.choice { position: relative; display: flex; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; flex-direction: column; gap: 2px; padding: .7em 1em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; min-height: 44px; justify-content: center; font-weight: 500; transition: border-color .15s, background-color .15s; }
.choice > span small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.choice:hover > span { border-color: var(--plum); }
.choice input:checked + span { border-color: var(--plum); background: var(--mist); box-shadow: inset 0 0 0 1px var(--plum); }
.choice input:focus-visible + span { box-shadow: var(--focus); }

.alert { padding: 12px 16px; border-radius: var(--r); border-left: 3px solid; margin: 0 0 10px; font-size: .95rem; }
.alert-ok { background: var(--teal-soft); border-color: var(--teal); }
.alert-bad { background: var(--bad-soft); border-color: var(--bad); }
.alert-warn { background: var(--warn-soft); border-color: var(--warn); }
.flashes { margin-top: 16px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: .12em .6em; border-radius: 999px; font: 600 .75rem/1.6 var(--sans); white-space: nowrap; vertical-align: middle; }
.tag-ok { background: var(--teal-soft); color: var(--teal-2); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-neutral { background: var(--mist); color: var(--ink-2); }

.demo-bar { background: var(--plum-deep); color: #E6DCEE; font-size: .82rem; padding: 7px var(--gut); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.demo-bar a { color: #9ED9D3; }
.demo-note { background: var(--warn-soft); border: 1px dashed #D9B672; padding: 12px 16px; border-radius: var(--r); font-size: .9rem; margin: 18px 0; }

/* ---------- Encabezado público ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.brand-sub { font: 500 .76rem/1 var(--sans); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-desk { display: flex; align-items: center; gap: 28px; }
.nav-desk a:not(.btn), .menu nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-desk a:not(.btn):hover, .nav-desk a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--plum); }
.menu { display: none; }
@media (max-width: 900px) {
  .nav-desk { display: none; }
  .menu { display: block; }
  .menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; cursor: pointer; list-style: none; align-items: center; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; box-shadow: 0 12px 24px rgba(36, 27, 44, .08); }
  .menu nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu nav a[aria-current="page"] { color: var(--plum); }
  .menu nav .btn { margin-top: 16px; }
}

/* ---------- Portada ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; } }
.hero-q { font: 400 clamp(1rem, 1.4vw, 1.1rem)/1.3 var(--sans); color: var(--teal-2); margin: 0 0 18px; font-weight: 600; letter-spacing: .01em; }
.intents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.intents li { border-bottom: 1px solid var(--line-2); }
.intents a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(12px, 1.6vw, 18px) 4px; text-decoration: none; color: var(--ink); }
.intent-text { font: 400 clamp(1.7rem, 3.6vw, 2.85rem)/1.1 var(--serif-d); letter-spacing: -.005em; transition: color .2s, transform .25s; }
.intent-go { color: var(--line-2); transition: color .2s, transform .25s; }
.intents a:hover .intent-text, .intents a:focus-visible .intent-text { color: var(--plum); }
.intents a:hover .intent-go, .intents a:focus-visible .intent-go { color: var(--teal); transform: translateX(4px); }
.intents a:focus-visible { box-shadow: none; outline: 2px solid var(--teal); outline-offset: -2px; }
.hero-more { margin-top: 22px; color: var(--muted); max-width: 60ch; }

.status-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.status-card p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.status-h { font: 400 1.6rem/1.1 var(--serif); margin: 0; }
.facts { margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { display: flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0 0 0 26px; font-size: .95rem; }
.facts-lg dd { font-size: 1rem; }

.band { background: var(--mist); padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-h { font: 400 clamp(1.35rem, 2.2vw, 1.75rem)/1.2 var(--serif); margin: 1.6em 0 .6em; }
.band .section-h, .split .section-h:first-child, .page-head + * .section-h:first-child { margin-top: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--plum); color: var(--plum); display: grid; place-items: center; font: 400 1.15rem/1 var(--serif); background: var(--paper); }
.steps li::after { content: ""; position: absolute; top: 18px; left: 44px; right: -20px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
@media (max-width: 759px) { .steps li::after { display: none; } }
.steps h3 { font: 600 1.05rem/1.3 var(--sans); margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; }
.steps a { font-weight: 600; font-size: .92rem; }

.split { display: grid; gap: 32px; padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.assurances { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.assurances li { display: flex; gap: 16px; color: var(--ink-2); }
.assurances .ico { color: var(--teal); margin-top: 2px; }
.assurances strong { color: var(--ink); }

/* ---------- Pie ---------- */
.foot { background: var(--plum-deep); color: #D9CEE2; margin-top: 64px; padding-top: 52px; font-size: .92rem; }
.foot a { color: #F2ECF6; }
.foot .wordmark { color: #EFE7F5; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.foot-grid .wordmark { margin-bottom: 14px; }
.foot-h { font: 600 .85rem/1.2 var(--sans); color: #F2ECF6; margin-bottom: 10px; }
.foot-note { color: #B8A9C4; font-size: .85rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 22px; font-size: .8rem; color: #A797B4; }

/* ---------- Páginas internas ---------- */
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 12px; }
.page-head h1, .ficha h1, .prep-q h1, .narrow h1, .tracker h1 { font: 400 clamp(2.1rem, 4.4vw, 3.3rem)/1.05 var(--serif-d); letter-spacing: -.01em; }
.crumbs { padding-top: 22px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.catalog { display: grid; gap: 40px; padding-top: 16px; }
.cat-h { font: 600 .9rem/1.2 var(--sans); color: var(--teal-2); margin-bottom: 10px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .cat-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: flex; gap: 18px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.cat-list strong { display: block; font: 400 1.4rem/1.2 var(--serif); margin-bottom: 4px; }
.cat-list a:hover strong { color: var(--plum); }
.cat-ico { color: var(--plum); padding-top: 3px; }
.cat-sum { color: var(--ink-2); font-size: .93rem; }
.tags-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags-list li { border: 1px solid var(--line-2); border-radius: 999px; padding: .3em .9em; font-size: .88rem; background: var(--white); }

.ficha { display: grid; gap: 40px; padding-top: 8px; }
@media (min-width: 960px) { .ficha { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } .ficha-side { position: sticky; top: 100px; align-self: start; } }
.ficha-facts { display: grid; gap: 0; margin: 28px 0 8px; border-top: 1px solid var(--line); }
.ficha-facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .ficha-facts div { grid-template-columns: 200px 1fr; gap: 16px; } }
.ficha-facts dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.ficha-facts dd { margin: 0; }
.req-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; gap: 12px; align-items: flex-start; }
.req-list .ico { color: var(--plum); margin-top: 3px; }
.req-notaria .ico { color: var(--teal); }
.cond { font: italic .85rem var(--serif); color: var(--muted); }
.flow { margin: 0; padding: 0; list-style: none; counter-reset: f; border-left: 1px solid var(--line-2); margin-left: 12px; }
.flow li { counter-increment: f; position: relative; padding: 0 0 18px 28px; display: flex; flex-direction: column; }
.flow li::before { content: counter(f); position: absolute; left: -13px; top: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); font: 600 .75rem/23px var(--sans); text-align: center; color: var(--plum); }
.flow strong { font-weight: 600; }
.flow span { color: var(--ink-2); font-size: .93rem; }
.plain { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { font: 400 1.4rem/1.15 var(--serif); margin: 0; }
.side-card p { margin: 0; }
.side-quiet { background: var(--mist); border-color: transparent; }
.side-quiet h2 { display: flex; gap: 8px; align-items: center; font: 600 1rem/1.2 var(--sans); }

.pick { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pick { grid-template-columns: 1fr 1fr; } }
.pick a { display: flex; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); text-decoration: none; color: var(--ink); font: 400 1.35rem/1.2 var(--serif); }
.pick a:hover { border-color: var(--plum); color: var(--plum); }
.pick .ico { color: var(--teal); }

/* Asistente */
.prep { display: grid; gap: 40px; padding-top: 8px; }
@media (min-width: 1000px) { .prep { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } .prep-out { position: sticky; top: 100px; } }
.prep-q { display: flex; flex-direction: column; gap: 22px; }
.prep-q h1 { margin-bottom: 0; }
.q legend { font-weight: 600; margin-bottom: 10px; }
.prep-empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 48px 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.checklist { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.checklist-h { font: 400 1.8rem/1.15 var(--serif); }
.cl-group { font: 600 .9rem/1.2 var(--sans); color: var(--teal-2); margin: 22px 0 8px; }
.cl { list-style: none; margin: 0; padding: 0; }
.cl li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cl li:last-child { border-bottom: 0; }
.box { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; flex: none; margin-top: 3px; display: inline-block; }
.cl-notaria .ico { color: var(--teal); margin-top: 3px; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Cita */
.cita { display: grid; gap: 32px; padding-top: 8px; }
@media (min-width: 960px) { .cita { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } .cita-side { position: sticky; top: 100px; } }
.picked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.picked .ico { color: var(--plum); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.day { position: relative; flex: none; scroll-snap-align: start; }
.day input { position: absolute; opacity: 0; }
.day { display: flex; flex-direction: column; align-items: center; width: 68px; padding: 10px 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; }
.day-w, .day-m { font-size: .75rem; color: var(--muted); text-transform: capitalize; }
.day-n { font: 400 1.6rem/1.1 var(--serif); }
.day:has(input:checked) { border-color: var(--plum); background: var(--plum); color: var(--white); }
.day:has(input:checked) .day-w, .day:has(input:checked) .day-m { color: #E4D8EC; }
.day:has(input:focus-visible) { box-shadow: var(--focus); }
.day.is-full { opacity: .45; cursor: not-allowed; }
.slots { margin-top: 14px; }
.js .slots[data-hidden] { display: none; }
.js .slots .slots-h { display: none; }
.slots-h { font-weight: 600; margin-bottom: 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: .6em 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 500; }
.slot input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.slot input:focus-visible + span { box-shadow: var(--focus); }
.slot.is-full span { color: var(--line-2); text-decoration: line-through; cursor: not-allowed; background: transparent; }

.done { padding-top: clamp(40px, 6vw, 80px); }
.seal { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--teal-soft); }
.receipt { margin: 28px 0; border-top: 1px solid var(--line); }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; }
.folio { font: 400 1.35rem/1 var(--serif) !important; letter-spacing: .04em; color: var(--plum); }
.next { background: var(--mist); border-radius: var(--r-lg); padding: 26px; }
.next h2 { font: 400 1.5rem/1.2 var(--serif); }

/* Pre-registro */
.progress-pills { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.progress-pills li { display: inline-flex; gap: 6px; align-items: center; padding: .35em .9em; border-radius: 999px; background: var(--mist); font-size: .88rem; font-weight: 500; }
.progress-pills li.is-done { background: var(--teal-soft); color: var(--teal-2); }
.pre { display: grid; gap: 32px; }
@media (min-width: 1000px) { .pre { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } .pre-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; } }
.pre-main > .section-h:first-child { margin-top: 12px; }
.people { list-style: none; padding: 0; margin: 0 0 16px; }
.people li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people .ico { color: var(--teal); }
.add-person { margin-top: 8px; }
.add-person > summary { list-style: none; width: max-content; }
.add-person > summary::-webkit-details-marker { display: none; }
.add-person[open] > summary { margin-bottom: 18px; }
.person-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 6px; }
.person-form > .field { max-width: 320px; margin-bottom: 14px; }
.consent { background: var(--mist); padding: 14px; border-radius: var(--r); margin: 10px 0; }
.person-form > .btn { align-self: flex-start; }
.uploads { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.up { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.up-txt { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 320px; }
.up-txt p { margin: 0; }
.up-state { color: var(--teal); margin-top: 2px; }
.up.is-rechazado .up-state { color: var(--bad); }
.up-form { margin: 0; }
.file { position: relative; display: inline-flex; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file span { display: inline-flex; gap: 6px; align-items: center; padding: .45em .95em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font-weight: 600; font-size: .88rem; min-height: 40px; }
.file:hover span { border-color: var(--plum); color: var(--plum); }
.file input:focus-visible + span { box-shadow: var(--focus); }

/* Consulta y seguimiento */
.consulta { padding-top: clamp(36px, 6vw, 72px); }
.otp-form { display: flex; flex-direction: column; gap: 16px; max-width: 420px; margin-top: 12px; }
.otp-form .btn { align-self: flex-start; }
.reassure { display: flex; gap: 8px; align-items: flex-start; margin-top: 28px; }
.reassure .ico { margin-top: 3px; color: var(--teal); }
.consulta .inline-form { margin-top: 14px; }

.tracker { padding-top: clamp(28px, 4vw, 52px); }
.tracker-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.tracker-head .lead { margin: 0; }
.tracker-head p.muted { margin-bottom: 6px; letter-spacing: .03em; }
.now { margin: 28px 0; display: grid; gap: 24px; background: var(--plum-deep); color: #EDE5F3; border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); }
@media (min-width: 860px) { .now { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; } }
.now-label { font-size: .85rem; color: #B9AAC6; margin: 0 0 6px; }
.now-stage { font: 400 clamp(1.9rem, 3.6vw, 2.6rem)/1.1 var(--serif-d); color: var(--white); margin: 0 0 10px; }
.now-main p:last-child { margin: 0; color: #D7CBE0; }
.now-facts { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.now-facts dt { font-size: .8rem; color: #B9AAC6; }
.now-facts dd { margin: 2px 0 0; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.meter { display: inline-block; width: 160px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--p); background: #5CC2BA; border-radius: 3px; }
.todo { border: 1px solid #E6C98F; background: var(--warn-soft); border-radius: var(--r-lg); padding: 22px; margin-bottom: 28px; }
.todo h2 { font: 600 1.05rem/1.2 var(--sans); display: flex; gap: 8px; align-items: center; color: var(--warn); }
.todo-form { display: grid; gap: 12px; align-items: end; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 760px) { .todo-form { grid-template-columns: 1.4fr 1fr auto; } }
.tracker-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .tracker-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.tracker-grid .section-h:first-child { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.tl-done::before { background: var(--plum); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); position: relative; z-index: 1; }
.tl-done .tl-dot { background: var(--plum); border-color: var(--plum); }
.tl-done .tl-dot::after { content: ""; position: absolute; left: 8px; top: 5px; width: 7px; height: 11px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tl-current .tl-dot { border-color: var(--teal); background: var(--white); }
.tl-current .tl-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--teal); }
.tl-current .tl-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.tl-name { font-weight: 600; margin: 2px 0 2px; }
.tl-todo .tl-name { color: var(--muted); font-weight: 500; }
.tl-desc { font-size: .9rem; color: var(--ink-2); margin: 0; }
.tl-todo .tl-desc { color: var(--muted); }
.tl-date { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.feed { list-style: none; padding: 0; margin: 0 0 24px; }
.feed li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed li p { margin: 0; }
.feed-date { font-size: .8rem; color: var(--muted); margin-bottom: 4px !important; }
.feed li.is-internal { background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--mist) 8px 9px); padding-left: 10px; }
.feed-compact li { padding: 9px 0; font-size: .92rem; }
.doclist { list-style: none; padding: 0; margin: 0; }
.doclist li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.doclist li span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.session-note { display: flex; gap: 8px; align-items: center; margin-top: 32px; }
.session-note > span { display: inline; }
.answer { background: var(--mist); border-radius: var(--r); padding: 16px 18px; white-space: normal; }

/* Aviso de privacidad */
.legal { display: grid; gap: 32px; padding-top: 12px; }
@media (min-width: 960px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } .legal-toc { position: sticky; top: 100px; align-self: start; } }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--muted); }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--plum); text-decoration: underline; }
.prose { max-width: 68ch; }
.prose h2 { font: 400 1.5rem/1.2 var(--serif); margin: 1.6em 0 .5em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; margin: 0 0 1em; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.team { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.team li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team strong { font: 400 1.2rem/1.3 var(--serif); }
.team span { color: var(--ink-2); font-size: .93rem; }
.photo-slot { margin-top: 28px; aspect-ratio: 16 / 10; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--mist), var(--paper)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-align: center; padding: 20px; }
.photo-slot span { font: italic 1.1rem var(--serif); color: var(--ink-2); }

/* ========== PANEL INTERNO ========== */
.admin-body { background: #F7F5F9; }
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 980px) { .shell { grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(to right, var(--plum-deep) 248px, transparent 248px); } }
.rail { background: var(--plum-deep); color: #D9CEE2; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 980px) { .rail { position: sticky; top: 0; height: 100vh; } }
.rail-brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 0 10px; }
.rail-brand .wordmark { font-size: 1.25rem; }
.rail-sub { font: italic .82rem var(--serif); color: #A797B4; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 979px) { .rail nav { flex-direction: row; overflow-x: auto; gap: 4px; } .rail nav a span { white-space: nowrap; } .rail { padding: 14px; gap: 12px; } }
.rail nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: #D9CEE2; text-decoration: none; font-size: .92rem; font-weight: 500; }
.rail nav a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.rail nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 2px 0 0 #5CC2BA; }
.count { margin-left: auto; background: #5CC2BA; color: var(--plum-deep); font-size: .72rem; border-radius: 999px; padding: 0 7px; line-height: 1.6; }
.rail-user { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.rail-user p { margin: 0 0 6px; display: flex; flex-direction: column; }
.rail-user span { color: #A797B4; }
.rail-user .link-btn { color: #9ED9D3; }
@media (max-width: 979px) { .rail-user { display: flex; justify-content: space-between; align-items: center; } }
.work { min-width: 0; }
.demo-bar-admin { justify-content: flex-start; }
.work .flashes { padding: 0 clamp(16px, 3vw, 36px); }
.work-main { padding: clamp(18px, 3vw, 36px); max-width: 1320px; }
.page-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-top h1 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); margin-bottom: 4px; }
.page-top p { margin: 0; }
.top-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.tabs { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--plum); color: var(--white); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2vw, 24px); min-width: 0; }
.panel-accent { border-top: 3px solid var(--teal); }
.panel-h { font: 600 1rem/1.3 var(--sans); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.panel-h .ico { color: var(--plum); }
.narrow-panel { max-width: 560px; }
.cols { display: grid; gap: 20px; margin-bottom: 20px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .cols { grid-template-columns: 1fr 1fr; } .cols-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.ledger { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden; }
@media (min-width: 1000px) { .ledger { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ledger > div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger > div:first-child { background: var(--plum-deep); color: #EDE5F3; border-color: var(--plum-deep); }
.ledger > div:first-child .l-lbl { color: #EDE5F3; }
.ledger > div:first-child .l-hint { color: #B9AAC6; }
.l-num { font: 400 2.6rem/1 var(--serif-d); margin: 0 0 6px; font-variant-numeric: lining-nums; }
.l-lbl { font-weight: 600; margin: 0 0 4px; font-size: .92rem; }
.l-hint { font-size: .82rem; color: var(--muted); margin: 0; }
.l-hint.is-bad { color: var(--bad); font-weight: 600; }

.rows { list-style: none; padding: 0; margin: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.row-link { display: flex; gap: 14px; align-items: center; padding: 11px 4px; text-decoration: none; color: var(--ink); }
.row-link:hover { background: var(--mist); }
.row-time { font: 400 1.2rem/1 var(--serif); color: var(--plum); width: 52px; flex: none; font-variant-numeric: tabular-nums; }
.row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-main .muted { font-size: .85rem; }
.sem { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--line-2); }
.sem-ok { background: var(--teal); }
.sem-warn { background: #D29A2E; }
.sem-bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 28px; gap: 12px; align-items: center; font-size: .9rem; }
.bar { height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--plum); border-radius: 5px; }
.bar-n { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAFC; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #FBFAFC; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-dense td { padding: 8px 14px; }
.steps-mini { display: inline-flex; gap: 3px; margin-bottom: 4px; }
.steps-mini i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.steps-mini i.d { background: var(--plum); }
.steps-mini i.c { background: var(--teal); }

.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: .8rem; color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; padding-top: 12px; }
.person { border-top: 1px solid var(--line); padding: 12px 0; }
.person summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.checkrows { list-style: none; padding: 0; margin: 12px 0 0; }
.checkrows li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cr-state { color: var(--teal); margin-top: 2px; width: 18px; flex: none; }
.cr-main { flex: 1; min-width: 0; }
.cr-main p { margin: 0 0 4px; }
.doc-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .88rem; }
.doc-line a { display: inline-flex; gap: 6px; align-items: center; }
.note-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.note-form input[name="nota"] { flex: 1 1 260px; min-height: 38px; }

.stepper { list-style: none; padding: 18px 20px; margin: 0 0 20px; display: flex; gap: 0; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stepper li { flex: 1 0 110px; display: flex; flex-direction: column; gap: 8px; position: relative; padding-right: 10px; }
.stepper li::after { content: ""; position: absolute; top: 7px; left: 20px; right: 4px; height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.is-done::after { background: var(--plum); }
.st-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); position: relative; z-index: 1; }
.stepper .is-done .st-dot { background: var(--plum); border-color: var(--plum); }
.stepper .is-current .st-dot { border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--white); background: var(--teal); }
.st-name { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.stepper .is-current .st-name { color: var(--ink); font-weight: 600; }

.outbox { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; margin-bottom: 6px; }
.msg-whatsapp .msg-head .ico { color: #25A35A; }
.msg-sms .msg-head .ico { color: var(--info); }
.msg-subj { font-weight: 600; margin-bottom: 6px; }
.msg-body { color: var(--ink-2); font-size: .92rem; margin: 0; }
.msg-whatsapp .msg-body { background: #E9F7EE; padding: 10px 14px; border-radius: 4px 12px 12px 12px; max-width: 520px; }

/* Acceso y instalador */
.login-body { background: var(--plum-deep); min-height: 100vh; }
.login { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.login-card { background: var(--paper); border-radius: var(--r-lg); padding: 36px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { font: 400 1.9rem/1.1 var(--serif); margin: 0; }
.login-card p { margin: 0; }
.login-demo { color: #D9CEE2; max-width: 380px; font-size: .9rem; }
.login-demo h2 { font: 400 1.3rem var(--serif); color: var(--white); }
.login-demo code { background: rgba(255, 255, 255, .1); color: var(--white); }
.login-demo ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.login-demo li { display: flex; flex-direction: column; gap: 2px; }
.login-demo li span { color: #A797B4; font-size: .85rem; }
.install { max-width: 620px; margin: 48px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
.install h1 { font: 400 2rem var(--serif); }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.checks .is-ok { color: var(--teal-2); }
.checks .is-bad { color: var(--bad); }
.checks small { display: block; color: var(--muted); margin-left: 18px; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Impresión: el checklist sale como hoja membretada */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 11pt; }
  .top, .foot, .demo-bar, .no-print, .flashes, .skip, .crumbs { display: none !important; }
  .print-only { display: block; }
  .prep { display: block; }
  .checklist { border: 0; padding: 0; }
  .print-head { border-bottom: 1px solid #999; padding-bottom: 8px; margin-bottom: 16px; font-size: 9pt; }
  .print-head .wordmark { font-size: 16pt; margin-bottom: 4px; }
  .cl li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ===================== v2: identidad Notaría 97 (@notaria97cdmx) ===================== */
:root { --gold: #22C3AD; --gold-2: #63E2D2; --night: #211033; }
.btn-gold, .btn-teal { background: var(--teal); border-color: var(--teal); color: #160A22; }
.btn-gold:hover, .btn-teal:hover { background: #32D4BF; border-color: #32D4BF; color: #160A22; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #3FE0CB; color: #fff; background: rgba(31, 181, 163, .12); }
.sello { display: block; color: currentColor; }
.sello .sello-dot { fill: var(--teal); }
.sello-hero { color: rgba(255, 255, 255, .82); }
.sello-hero .sello-dot { fill: #3FE0CB; }
.sello-foot { color: #CDBFD8; margin-bottom: 16px; }
.sello-foot .sello-dot { fill: #3FE0CB; }
.logo-hero { filter: drop-shadow(0 16px 38px rgba(31, 181, 163, .28)); }
.center { justify-content: center; }

/* Portada */
.hero2 { position: relative; color: #fff; background: var(--night); background-image: linear-gradient(102deg, rgba(33, 16, 51, .96) 0%, rgba(56, 26, 84, .86) 46%, rgba(33, 16, 51, .45) 100%), var(--hero, none); background-size: cover; background-position: center right; border-bottom: 3px solid var(--olive); }
.hero2-in { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 108px); }
@media (min-width: 960px) { .hero2-in { grid-template-columns: minmax(0, 1fr) 260px; } }
.hero2-kicker { font: 600 .88rem/1.3 var(--sans); color: #63E2D2; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.hero2 h1 { font: 300 clamp(2.2rem, 4.8vw, 3.85rem)/1.08 var(--display); letter-spacing: -.015em; max-width: 18ch; margin-bottom: 22px; }
.hero2-lead { font: 400 clamp(1.02rem, 1.45vw, 1.18rem)/1.6 var(--sans); color: #E8DFF1; max-width: 56ch; margin-bottom: 32px; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-seal { justify-self: center; }
@media (max-width: 959px) { .hero2-seal { display: none; } }

.sec { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); }
.sec-head { margin-bottom: 28px; max-width: 70ch; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; max-width: none; }
.sec-head-row > div { max-width: 60ch; }
.sec-h { font: 300 clamp(1.8rem, 3.1vw, 2.5rem)/1.12 var(--display); color: var(--plum); margin: 0 0 10px; letter-spacing: -.01em; }
.sec-head .muted { margin: 0; font-size: 1.02rem; }
.sec-more { margin-top: 24px; color: var(--muted); }

/* Tarjetas de trámite con foto */
.tcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tcards { grid-template-columns: repeat(3, 1fr); } .tcards-2 { grid-template-columns: repeat(2, 1fr); } }
.tcard { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tcard:hover { border-color: var(--teal); box-shadow: 0 14px 34px rgba(83, 36, 118, .1); color: var(--ink); transform: translateY(-2px); }
.tcard-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--mist); color: var(--plum); overflow: hidden; }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tcard:hover .tcard-img img { transform: scale(1.04); }
.tcard-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.tcard-grupo { font: 600 .76rem/1.2 var(--sans); color: var(--olive-2); letter-spacing: .04em; text-transform: uppercase; }
.tcard strong { font: 600 1.25rem/1.25 var(--sans); color: var(--plum); }
.tcard-sum { color: var(--ink-2); font-size: .93rem; flex: 1; }
.tcard-go { display: inline-flex; gap: 6px; align-items: center; color: var(--teal-2); font-weight: 600; font-size: .9rem; margin-top: 8px; }

/* Banda del notario */
.notario-band { position: relative; color: #EFE7F6; background: var(--night); background-image: linear-gradient(95deg, rgba(33, 16, 51, .97) 30%, rgba(56, 26, 84, .88)), var(--bg, none); background-size: cover; background-position: center; margin-top: clamp(40px, 6vw, 72px); }
.nb-in { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; padding-top: clamp(52px, 7vw, 96px); padding-bottom: clamp(52px, 7vw, 96px); }
@media (min-width: 900px) { .nb-in { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; } }
.portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; max-width: 340px; width: 100%; justify-self: center; }
.portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--teal); border-radius: 6px; }
.portrait img, .portrait-ph { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.portrait-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(120% 90% at 30% 20%, #532476 0%, #2D1544 60%, #211033 100%); color: #63E2D2; }
.ph-mono { font: 300 3rem/1 var(--display); letter-spacing: .14em; border-top: 1px solid rgba(31, 181, 163, .55); border-bottom: 1px solid rgba(31, 181, 163, .55); padding: 14px 6px; }
.portrait-ph small { font: 400 .88rem var(--sans); color: #C5B6D4; }
.nb-kicker { font: 600 .85rem/1.3 var(--sans); color: #63E2D2; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.nb-text h2 { font: 300 clamp(1.95rem, 3.5vw, 2.8rem)/1.1 var(--display); color: #fff; margin-bottom: 18px; }
.nb-quote { margin: 0 0 28px; padding-left: 20px; border-left: 2.5px solid var(--teal); font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.6 var(--sans); color: #E8DFF1; max-width: 58ch; }
.creds { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; max-width: 620px; }
.creds li { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.creds strong { font: 600 1.05rem/1.3 var(--sans); color: #fff; }
.creds span { font-size: .85rem; color: #C5B6D4; }

/* Guías */
.gcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gcards { grid-template-columns: repeat(3, 1fr); } .gcards-lg { grid-template-columns: repeat(2, 1fr); } }
.gcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.gcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 8px; transition: opacity .2s; }
.gcard:hover img { opacity: .9; }
.gcard strong { font: 600 1.2rem/1.3 var(--sans); color: var(--plum); }
.gcard:hover strong { color: var(--plum-2); }
.gcard .muted { font-size: .93rem; }
.gcard-meta { font: 600 .76rem/1.2 var(--sans); color: var(--olive-2); text-transform: uppercase; letter-spacing: .04em; }
.split-tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 56px); }

/* Visítanos */
.visit { background: var(--night); background-image: linear-gradient(0deg, rgba(33, 16, 51, .28), rgba(33, 16, 51, .1)), var(--bg, none); background-size: cover; background-position: center 40%; }
.visit-in { padding-top: clamp(80px, 14vw, 180px); padding-bottom: clamp(32px, 5vw, 56px); }
.visit-card { background: var(--paper); border-top: 4px solid var(--teal); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); max-width: 520px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.visit-card h2 { font: 300 1.85rem/1.15 var(--display); color: var(--plum); margin-bottom: 18px; }
.visit-card .facts { margin: 0 0 22px; }
.visit, .quote-band { margin-bottom: -64px; }

/* Encabezado de trámite / contacto */
.thero { color: #fff; background: var(--night); background-image: linear-gradient(95deg, rgba(33, 16, 51, .95) 0%, rgba(56, 26, 84, .8) 55%, rgba(33, 16, 51, .45) 100%), var(--bg, none); background-size: cover; background-position: center; border-bottom: 3px solid var(--olive); }
.thero-in { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(48px, 7vw, 88px); }
.thero-short .thero-in { padding-top: clamp(56px, 8vw, 96px); }
.thero h1 { font: 300 clamp(2.1rem, 4.6vw, 3.5rem)/1.08 var(--display); max-width: 20ch; margin: 26px 0 16px; }
.thero-short h1 { margin-top: 0; }
.thero-lead { font: 400 1.15rem/1.6 var(--sans); color: #E8DFF1; max-width: 60ch; margin: 0; }
.crumbs-inv { padding-top: 0; color: #C5B6D4; }
.crumbs-inv a { color: #E8DFF1; }
.ficha { padding-top: clamp(32px, 5vw, 56px); }
.ficha-facts { margin-top: 0; }

/* Página del notario */
.nhero { color: #EFE7F6; background: var(--night); background-image: linear-gradient(95deg, rgba(33, 16, 51, .97) 25%, rgba(56, 26, 84, .85)), var(--bg, none); background-size: cover; background-position: center; border-bottom: 3px solid var(--olive); }
.nhero-in { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
@media (min-width: 900px) { .nhero-in { grid-template-columns: 380px minmax(0, 1fr); gap: 80px; } }
.portrait-lg { max-width: 380px; }
.nhero h1 { font: 300 clamp(2.2rem, 4.4vw, 3.5rem)/1.08 var(--display); color: #fff; margin-bottom: 20px; }
.nhero-lead { font: 400 1.15rem/1.65 var(--sans); color: #E8DFF1; max-width: 58ch; }
.langs { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.langs li { border: 1px solid rgba(31, 181, 163, .6); color: #63E2D2; border-radius: 999px; padding: .3em 1em; font-size: .88rem; }
.bio { display: grid; gap: 40px; padding-top: clamp(48px, 7vw, 88px); }
@media (min-width: 1000px) { .bio { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } .bio-toc { position: sticky; top: 110px; align-self: start; } }
.bio-toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line-2); }
@media (max-width: 999px) { .bio-toc { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 8px; } .bio-toc a { border: 1px solid var(--line-2) !important; border-radius: 999px; } }
.bio-toc a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); font-size: .93rem; border-left: 2px solid transparent; margin-left: -1px; }
.bio-toc a:hover { color: var(--plum); border-left-color: var(--teal); }
.bio-body { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.bio-sec { scroll-margin-top: 110px; }
.bio-sec > p { font: 400 1.08rem/1.65 var(--sans); color: var(--ink-2); max-width: 64ch; }
.bio-cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 760px) { .bio-cards { grid-template-columns: 1fr 1fr; } }
.bio-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.bio-card .ico { color: var(--teal); margin-bottom: 14px; }
.bio-card h3 { font: 600 1.2rem/1.25 var(--sans); color: var(--plum); margin-bottom: 8px; }
.bio-card p { color: var(--ink-2); margin: 0; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--olive-soft); color: var(--olive-2); border-radius: 999px; padding: .25em .85em; font-size: .82rem; font-weight: 600; }
.path { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 0; }
.path li { display: grid; grid-template-columns: 76px 1fr; gap: 22px; position: relative; padding-bottom: 28px; }
.path li::before { content: ""; position: absolute; left: 37px; top: 76px; bottom: 0; width: 1px; background: var(--line-2); }
.path li:last-child::before { display: none; }
.path-n { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 300 1.9rem/1 var(--display); color: var(--muted); background: var(--paper); }
.path .is-now .path-n { border-color: var(--teal); background: var(--plum); color: #fff; box-shadow: 0 0 0 6px var(--teal-soft); }
.path h3 { font: 600 1.2rem/1.25 var(--sans); color: var(--plum); margin: 10px 0 6px; }
.path p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.bio-photo { margin: 0; }
.bio-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); }
.bio-photo figcaption, .article-img figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; text-align: right; }
.quote-band { background: var(--night); color: #fff; padding: clamp(56px, 8vw, 104px) 0; margin-top: clamp(48px, 7vw, 88px); text-align: center; }
.quote-band blockquote { margin: 0 auto 32px; max-width: 900px; }
.quote-band blockquote p { font: 300 clamp(1.5rem, 3vw, 2.3rem)/1.35 var(--display); margin-bottom: 18px; }
.quote-band footer { font: 600 .92rem var(--sans); color: #63E2D2; }

/* Artículo */
.article { padding-top: 12px; }
.article-head { max-width: 820px; padding: 8px 0 28px; }
.article-head h1 { font: 300 clamp(2rem, 4vw, 3rem)/1.1 var(--display); color: var(--plum); margin: 8px 0 14px; }
.article-img { margin: 0 0 40px; }
.article-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); }
.article-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } .article-side { position: sticky; top: 110px; align-self: start; } }
.article-side { display: flex; flex-direction: column; gap: 16px; }
.article .prose p, .article .prose li { font: 400 1.05rem/1.75 var(--sans); }
.tip { display: flex; gap: 12px; background: var(--teal-soft); border-radius: var(--r); padding: 16px 18px; margin: 8px 0 24px; }
.tip .ico { color: var(--teal-2); margin-top: 3px; }
.tip p { margin: 0; color: var(--ink) !important; }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; gap: 36px; max-width: 900px; padding-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font: 600 1.15rem/1.35 var(--sans); color: var(--plum); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--teal-2); transition: transform .2s; flex: none; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); margin: 0 0 20px; max-width: 70ch; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--mist); border-left: 4px solid var(--teal); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.cta-panel h2 { font: 600 1.45rem/1.25 var(--sans); color: var(--plum); margin-bottom: 4px; }
.cta-panel p { margin: 0; color: var(--ink-2); }

/* Pie */
.foot { border-top: 3px solid var(--teal); }
.foot-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1.2fr; } }
.foot-brand p { color: #CDBFD8; }
.gcards-text .gcard { border-top: 2.5px solid var(--olive); padding-top: 18px; }
.gcards-text .gcard strong { font-size: 1.25rem; }
