/* ==========================================================================
   AMK Lex · Despacho de extranjería · amklex.com
   Concepto: "el expediente" — la web se lee como una carpeta de trámite:
   pestañas, sellos de registro, marcador fosforito sobre los requisitos.
   ========================================================================== */

:root {
  /* Color */
  --paper: #f5f8f3;        /* fondo, blanco con sesgo verde */
  --card: #ffffff;
  --ink: #13241a;          /* texto principal */
  --muted: #53645a;        /* texto secundario */
  --line: #d3ddd4;         /* filetes y bordes */
  --brand: #0c3a1c;        /* verde AMK Lex (logo) */
  --brand-2: #185a2e;
  --on-brand: #f2f7f0;
  --brand-ink: #0f4a23;    /* enlaces y texto de marca */
  --tint: #e6efe4;         /* fondos suaves */
  --sello: #4a3d96;        /* tinta de sello de registro */
  --marker: #e5f3a6;       /* fosforito */
  --warn: #8a4b00;
  --warn-bg: #fff2d9;

  /* Tipografía */
  /* Sin tipografías de terceros: fuentes del sistema (rápidas y sin enviar datos a Google).
     Si se autoalojan Archivo / Public Sans en assets/fonts, se usan automáticamente. */
  --f-scripts: "Noto Sans Devanagari", "Noto Naskh Arabic", "Noto Sans Gurmukhi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Nirmala UI", "Segoe UI", Tahoma;
  --f-display: "Archivo", "Helvetica Neue", "Arial Nova", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, var(--f-scripts), sans-serif;
  --f-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--f-scripts), sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, var(--f-scripts), monospace;

  /* Escala */
  --t-xs: .78rem; --t-sm: .9rem; --t-md: 1rem; --t-lg: 1.2rem;
  --t-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --t-2xl: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  --t-3xl: clamp(2.3rem, 1.4rem + 4vw, 4.2rem);

  --r: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --logo-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1510; --card: #121e17; --ink: #e3ece4; --muted: #9db0a3;
    --line: #26372d; --brand: #2f7d4a; --brand-2: #3b9159; --on-brand: #f4faf3;
    --brand-ink: #8fd3a6; --tint: #16261c; --sello: #a99cf0; --marker: #3b4a12;
    --warn: #ffc56b; --warn-bg: #2f230c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1510; --card: #121e17; --ink: #e3ece4; --muted: #9db0a3;
  --line: #26372d; --brand: #2f7d4a; --brand-2: #3b9159; --on-brand: #f4faf3;
  --brand-ink: #8fd3a6; --tint: #16261c; --sello: #a99cf0; --marker: #3b4a12;
  --warn: #ffc56b; --warn-bg: #2f230c;
  color-scheme: dark;
}

/* Logos: versión clara en modo oscuro */
.logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-dark { display: none; }
  :root:not([data-theme="light"]) .logo-light { display: block; }
}
:root[data-theme="dark"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: block; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sello); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 {
  font-family: var(--f-display); line-height: 1.08; margin: 0;
  text-wrap: balance; letter-spacing: -.01em;
}
h1 { font-size: var(--t-3xl); font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--t-2xl); font-weight: 800; font-stretch: 108%; }
h3 { font-size: var(--t-lg); font-weight: 700; font-stretch: 100%; }
p { margin: 0; }
ul { margin: 0; padding-inline-start: 1.2em; }
mark { background: linear-gradient(transparent 38%, var(--marker) 38%, var(--marker) 88%, transparent 88%); color: inherit; padding: 0 .1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1rem; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); font-weight: 500;
}
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--brand); color: var(--on-brand); padding: .5rem 1rem; z-index: 100; }
.skip:focus { transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: .98rem;
  padding: .85rem 1.3rem; border-radius: var(--r); border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand-ink); background: var(--tint); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--brand); color: var(--on-brand); font-size: var(--t-xs); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar span { font-family: var(--f-mono); letter-spacing: .04em; }
.tb-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .35rem; }
.tb-langs svg { width: 15px; height: 15px; margin-inline-end: .2rem; opacity: .85; }
.tb-langs a { padding: .15rem .5rem; border-radius: 99px; font-size: .8rem; opacity: .85; }
.tb-langs a:hover { opacity: 1; background: color-mix(in srgb, var(--on-brand) 14%, transparent); }
.tb-langs a[aria-current="true"] { opacity: 1; background: var(--on-brand); color: var(--brand); font-weight: 700; }
@media (max-width: 700px) { .topbar .tb-contact { display: none; } }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark img { height: 30px; width: auto; }
.brand b { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .7rem; border-radius: var(--r); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--brand-ink); }
.nav .btn { margin-left: .5rem; padding: .6rem 1rem; color: var(--on-brand); }
.nav .btn:hover { background: var(--brand-2); color: var(--on-brand); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .7rem; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: none; }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.alt { background: var(--tint); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.4rem; max-width: 760px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--brand-ink); }
.hero .lead { margin-block: 1.3rem 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; font-size: var(--t-sm); color: var(--muted); }
.hero-facts li { list-style: none; display: flex; gap: .45rem; align-items: center; }
.hero-facts { padding: 0; }
.hero-facts svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Carpeta de expediente (ilustración del hero) */
.dossier { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.dossier .tab {
  display: inline-block; background: var(--brand); color: var(--on-brand);
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em;
  padding: .45rem 1rem; border-radius: 8px 8px 0 0; margin-inline-start: 1.2rem;
}
.dossier .sheet {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px 10px 10px 10px;
  padding: 1.5rem 1.4rem 1.3rem; box-shadow: 0 1px 0 var(--line), 8px 8px 0 -1px var(--tint), 8px 8px 0 0 var(--line), 16px 16px 0 -1px var(--tint), 16px 16px 0 0 var(--line);
  position: relative;
}
.dossier dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: var(--t-sm); }
.dossier dt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.dossier dd { margin: 0; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--t-sm); border-top: 1px dashed var(--line); padding-top: 1rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .box { width: 18px; height: 18px; border: 2px solid var(--brand-ink); border-radius: 3px; flex: none; margin-top: 2px; display: grid; place-items: center; }
.checklist .box.ok::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg) translate(1px, -1px); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.sheet-foot span { font-size: var(--t-xs); color: var(--muted); max-width: 16ch; line-height: 1.4; }
.stamp {
  flex: none; transform: rotate(-8deg); margin-inline-end: -.4rem;
  border: 3px double var(--sello); color: var(--sello); border-radius: 8px;
  padding: .4rem .8rem; font-family: var(--f-mono); font-weight: 500; text-align: center;
  font-size: .72rem; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  animation: stamp .5s cubic-bezier(.2,1.6,.4,1) .5s both;
}
.stamp b { display: block; font-size: 1rem; letter-spacing: .08em; }
@keyframes stamp { from { transform: rotate(-8deg) scale(1.35); opacity: .35; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* ---------- Actualidad (boletín) ---------- */
.bulletin { border-block: 1px solid var(--line); background: var(--card); }
.bulletin .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding-block: 1.6rem; }
.bulletin h2 { font-size: var(--t-lg); font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; }
.bulletin-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.bulletin-list article { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.bulletin-list time { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--sello); letter-spacing: .06em; }
.bulletin-list h3 { font-size: 1.02rem; }
.bulletin-list p { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 960px) { .bulletin .wrap { grid-template-columns: 1fr; } .bulletin-list { grid-template-columns: 1fr; } }

/* ---------- Diagnóstico ---------- */
.diag { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.diag-options { display: grid; gap: .55rem; }
.diag-options button {
  text-align: start; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: .85rem 1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.diag-options button:hover { border-color: var(--brand-ink); }
.diag-options button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.diag-options button span { font-family: var(--f-mono); font-size: var(--t-xs); opacity: .75; }
.diag-result { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem; display: grid; gap: 1rem; min-width: 0; }
.diag-result h3 { font-size: var(--t-xl); }
.diag-panel { display: grid; gap: 1rem; }
.diag-result .routes { display: grid; gap: .8rem; }
.route { border-inline-start: 3px solid var(--brand-ink); padding-block: .2rem; padding-inline-start: 1rem; display: grid; gap: .25rem; }
.route b { font-family: var(--f-display); font-stretch: 105%; }
.route p { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 860px) { .diag { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.service { background: var(--card); padding: 1.5rem 1.3rem; display: grid; gap: .7rem; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; transition: background .15s; }
.service:hover { background: var(--tint); }
.service svg { width: 34px; height: 34px; color: var(--brand-ink); }
.service p { font-size: var(--t-sm); color: var(--muted); }
.service .more { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--brand-ink); letter-spacing: .06em; margin-top: auto; }
.services.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .services, .services.three { grid-template-columns: repeat(2, 1fr); } .services.three > :last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .services, .services.three { grid-template-columns: 1fr; } }

/* ---------- Idiomas ---------- */
[lang="ar"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
[lang="ur"] { font-family: "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Geeza Pro", Tahoma, sans-serif; }
[lang="hi"] { font-family: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", sans-serif; }
[lang="pa"] { font-family: "Noto Sans Gurmukhi", "Nirmala UI", "Raavi", sans-serif; }
.langs { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.lang-tabs { display: grid; gap: .4rem; }
.lang-tabs button { font: inherit; font-weight: 600; font-size: 1.05rem; text-align: start; padding: .65rem 1rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.lang-tabs button:hover { border-color: var(--brand-ink); }
.lang-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.lang-panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; min-width: 0; min-height: 100%; }
.lang-panel h3 { font-family: inherit; font-size: var(--t-2xl); font-weight: 700; line-height: 1.3; }
.lang-panel p { font-size: var(--t-lg); color: var(--muted); max-width: 60ch; line-height: 1.75; }
.lang-panel[dir="rtl"] p { line-height: 1.9; }
.lang-panel .btn { font-family: inherit; }
@media (max-width: 760px) { .langs { grid-template-columns: 1fr; } .lang-tabs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* ---------- Proceso (secuencia real: numerado) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid var(--brand); position: relative; }
.steps li::before { content: attr(data-step); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--sello); }
.steps p { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.2rem, 3vw, 2rem); }
.calc-tabs { display: flex; flex-wrap: wrap; gap: .4rem; grid-column: 1 / -1; }
.calc-tabs button { font: inherit; font-weight: 600; font-size: var(--t-sm); padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.calc-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: .7rem .8rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 25%, transparent); }
.calc-form { display: grid; gap: 1rem; align-content: start; }
.calc-out { border-inline-start: 1px dashed var(--line); padding-inline-start: 2rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.calc-out .big { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: var(--t-2xl); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-out .note { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } .calc-out { border-inline-start: 0; padding-inline-start: 0; border-top: 1px dashed var(--line); padding-top: 1.2rem; } }

/* ---------- Despacho ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 10px; background: var(--brand); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { width: 62%; opacity: .95; }
.portrait figcaption { position: absolute; inset-inline: 1rem; bottom: .9rem; color: var(--on-brand); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: 1.5rem; }
.creds div { border-top: 1px solid var(--line); padding-top: .7rem; }
.creds dt { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.creds dd { margin: .2rem 0 0; font-weight: 600; }
.creds { margin-block: 1.5rem 0; }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 320px; } .creds { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--brand-ink); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--muted); display: grid; gap: .6rem; }

/* ---------- CTA ---------- */
.cta-band { background: var(--brand); color: var(--on-brand); }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band h2 { color: var(--on-brand); }
.cta-band p { opacity: .85; margin-top: .8rem; max-width: 55ch; }
.cta-band .btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.cta-band .btn.ghost { background: transparent; color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-h { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-logo { display: block; margin-bottom: 1rem; } .foot-logo img { width: 220px; height: auto; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: var(--t-xs); }
.foot-legal a { color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #1f8f4e; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Páginas interiores ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1rem; }
.crumbs { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.layout-side { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: .15rem; font-size: var(--t-sm); }
.toc b { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: .5rem; }
.toc a { color: var(--ink); text-decoration: none; padding: .35rem .6rem; border-inline-start: 2px solid var(--line); }
.toc a:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }

.proc { padding-block: 2.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 1.2rem; min-width: 0; }
.proc:first-child { padding-top: 0; }
.proc-head { display: flex; gap: 1rem; align-items: center; }
.proc-head svg { width: 40px; height: 40px; color: var(--brand-ink); flex: none; }
.proc h2 { font-size: var(--t-xl); }
.proc > p { max-width: 70ch; }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.ficha { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.ficha h3 { font-size: 1rem; }
.ficha ul { font-size: var(--t-sm); color: var(--muted); display: grid; gap: .3rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .04em; background: var(--tint); color: var(--brand-ink); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .7rem; }
.chip.sello { color: var(--sello); border-color: color-mix(in srgb, var(--sello) 40%, transparent); background: transparent; }
.notice { background: var(--warn-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--r); padding: 1rem 1.2rem; font-size: var(--t-sm); display: grid; gap: .3rem; }
.notice b { color: var(--warn); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); min-width: 640px; }
th, td { text-align: start; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }

/* Bilingüe (Ucrania) */
.bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bilingual > div { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; display: grid; gap: .8rem; align-content: start; }
.bilingual .lang { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--sello); text-transform: uppercase; }
@media (max-width: 820px) { .bilingual { grid-template-columns: 1fr; } }
.countdown { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; }
.countdown .big { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: var(--t-3xl); line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--brand); }
.contact-card { display: grid; gap: 1.2rem; }
.contact-card dl { display: grid; gap: 1rem; margin: 0; }
.contact-card dt { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card dd { margin: .15rem 0 0; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.form-msg { font-size: var(--t-sm); color: var(--brand-ink); font-weight: 600; }
@media (max-width: 820px) { .contact-grid, .two { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; display: grid; gap: 1rem; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tipografía por escritura ---------- */
:lang(ur), :lang(ar) { letter-spacing: 0 !important; }
:lang(ur) .eyebrow, :lang(ar) .eyebrow, :lang(ur) th, :lang(ur) .chip, :lang(ur) dt, :lang(hi) .eyebrow, :lang(hi) th, :lang(hi) dt { text-transform: none; letter-spacing: 0; }
html[lang="ur"] body { line-height: 1.95; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .eyebrow, html[lang="ar"] .chip, html[lang="ar"] th, html[lang="ar"] dt, html[lang="ar"] .more, html[lang="ar"] .crumbs { font-family: var(--f-body); font-size: .85rem; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.5; font-weight: 700; letter-spacing: 0; }
html[lang="ur"] .eyebrow, html[lang="ur"] .chip, html[lang="ur"] th, html[lang="ur"] dt, html[lang="ur"] .more { font-family: var(--f-body); font-size: .85rem; }
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; }
html[lang="hi"] .eyebrow, html[lang="hi"] .chip, html[lang="hi"] th, html[lang="hi"] dt { font-family: var(--f-body); font-size: .85rem; }
html[lang="uk"] h1 { font-stretch: 100%; }
[dir="rtl"] .hero-facts, [dir="rtl"] .btn-row { direction: rtl; }
[dir="rtl"] .wa-float { right: auto; left: 18px; }
html[lang="zh"] body { line-height: 1.8; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { line-height: 1.3; letter-spacing: .02em; }
html[lang="zh"] .eyebrow, html[lang="zh"] th, html[lang="zh"] dt, html[lang="zh"] .chip { font-family: var(--f-body); letter-spacing: .05em; }
/* Escrituras que no admiten espaciado entre letras ni fuente monoespaciada */
html[lang="ur"], html[lang="hi"], html[lang="ar"] { --f-mono: "Public Sans", var(--f-scripts), sans-serif; }
html[lang="ur"] *, html[lang="hi"] *, html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ur"] .stamp, html[lang="hi"] .stamp, html[lang="ar"] .stamp { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .1em !important; }
html[lang="zh"] .hero h1 span { display: block; }
html[lang="zh"] h1, html[lang="zh"] h2 { word-break: keep-all; overflow-wrap: anywhere; }

/* Foto del abogado */
.portrait.photo { background: var(--brand); }
.portrait.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 1; }
.portrait.photo::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(8, 30, 16, .85)); pointer-events: none; }
.portrait.photo figcaption { z-index: 1; color: #f2f7f0; }
.creds dd span[lang], .contact-card dd span[lang] { white-space: nowrap; }

/* ---------- Ilustraciones de procesos ---------- */
.service { padding-top: 0; }
.service-img { display: block; width: calc(100% + 2.6rem); max-width: none; margin-inline: -1.3rem; margin-bottom: .6rem; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .35s ease; }
.service { overflow: hidden; }
.service:hover .service-img { transform: scale(1.04); }
.proc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.proc-text { display: grid; gap: 1rem; min-width: 0; }
.proc-text h2 { font-size: var(--t-xl); }
.proc-img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
@media (max-width: 760px) { .proc-top { grid-template-columns: 1fr; } .proc-img { order: -1; } }
.head-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.head-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
@media (max-width: 820px) { .head-split { grid-template-columns: 1fr; } }
.cta-band { position: relative; overflow: hidden; }
.cta-band .skyline { display: block; width: 100%; height: clamp(46px, 7vw, 92px); color: var(--on-brand); opacity: .14; margin-bottom: -1.2rem; }
@media (prefers-reduced-motion: reduce) { .service:hover .service-img { transform: none; } }

/* ---------- Fotografía ---------- */
.hero-visual { position: relative; justify-self: stretch; padding-bottom: 3rem; }
.hero-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.hero-visual .dossier { position: absolute; inset-inline-start: -2.5rem; bottom: 0; width: min(380px, 85%); }
.hero-visual .dossier .sheet { padding: 1.1rem 1.1rem 1rem; }
.hero-visual .checklist { font-size: .82rem; gap: .35rem; }
.hero-visual .dossier dl { font-size: .82rem; margin-bottom: .7rem; }
@media (max-width: 880px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .dossier { position: relative; inset-inline-start: auto; width: 100%; max-width: 440px; margin: -3rem auto 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
}
.features { background: var(--card); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature { display: grid; grid-template-rows: auto 1fr; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.feature-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: .8rem; align-content: start; }
.feature-body h3 { font-size: var(--t-xl); }
.feature-body ul { color: var(--muted); display: grid; gap: .35rem; }
.feature-body .btn { justify-self: start; margin-top: .4rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.uge-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.uge-facts > div { background: var(--card); padding: 1.2rem 1.3rem; display: grid; gap: .3rem; }
.uge-facts b { font-family: var(--f-display); font-size: var(--t-xl); color: var(--brand-ink); line-height: 1.15; }
.uge-facts span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 900px) { .uge-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .uge-facts { grid-template-columns: 1fr; } }
.uge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.uge-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.uge-card.featured { border: 2px solid var(--brand); }
.uge-card h3 { font-size: 1.15rem; }
.uge-card .who { color: var(--brand-ink); font-weight: 600; font-size: var(--t-sm); }
.uge-card ul { font-size: var(--t-sm); color: var(--muted); display: grid; gap: .3rem; }
@media (max-width: 760px) { .uge-grid { grid-template-columns: 1fr; } }
.split-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; }
.split-photo > img { width: 100%; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.steps.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split-photo { grid-template-columns: 1fr; } .split-photo > img { aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .steps.two { grid-template-columns: 1fr; } }
.contact-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.proc-img { aspect-ratio: 16 / 10; object-fit: cover; }
.stack > *, .layout-side > *, .split-photo > * { min-width: 0; }

/* Franja de contacto con la silueta dorada de Valencia */
.cta-valencia { background: #1d3721 url("../img/fotos/valencia-skyline-1600.webp") center top / 100% auto no-repeat; }
.cta-valencia .wrap { padding-top: calc(22vw + 1.5rem); }
@media (min-width: 1600px) { .cta-valencia { background-size: 1600px auto; } .cta-valencia .wrap { padding-top: 370px; } }

/* ===================== Formulario de cita profesional ===================== */
.contact-form.pro { gap: 1.4rem; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.contact-form fieldset + fieldset { border-top: 1px dashed var(--line); padding-top: 1.3rem; }
.contact-form legend { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: .9rem; padding: 0; }
.contact-form legend .num { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: .9rem; flex: none; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.choice { position: relative; cursor: pointer; }
.choice input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: grid; gap: .3rem; height: 100%; padding: 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper, var(--card)); transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-box svg { width: 26px; height: 26px; color: var(--brand-ink); }
.choice-box b { font-size: 1rem; }
.choice-box small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.choice:hover .choice-box { border-color: var(--brand-ink); }
.choice input:checked + .choice-box { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + .choice-box, .pill input:focus-visible + span { outline: 3px solid var(--sello); outline-offset: 2px; }
.pills { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; gap: 3px; justify-self: start; }
.pill { position: relative; cursor: pointer; }
.pill span { display: block; padding: .45rem 1.1rem; border-radius: 99px; font-weight: 600; font-size: var(--t-sm); color: var(--muted); }
.pill input:checked + span { background: var(--brand); color: var(--on-brand); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.req { color: var(--sello); }
.field .invalid, .field input.invalid { border-color: #b3261e; box-shadow: 0 0 0 3px color-mix(in srgb, #b3261e 20%, transparent); }
.hp { display: none !important; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; }
.form-msg:empty { display: none; }
.form-msg { border-radius: 8px; padding: .9rem 1rem; border: 1px solid var(--line); }
.form-msg.ok { background: var(--tint); border-color: var(--brand); }
.form-msg.err { border-color: #b3261e; color: inherit; }
.form-msg.err > b { color: #b3261e; }
:root[data-theme="dark"] .form-msg.err > b { color: #ff8a80; }
.form-msg p { margin: .4rem 0 0; font-weight: 400; }
.direct { display: grid; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.direct h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.direct .btn { justify-content: flex-start; }
.map-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; }
.map-frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--card); }
.map-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
@media (max-width: 820px) { .choices, .three, .map-block { grid-template-columns: 1fr; } .choice-box { grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; } .choice-box svg { grid-row: span 2; } }

/* ===================== Actualidad ===================== */
.news-list { display: grid; gap: 1.2rem; }
.news-item { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: 10px; padding: clamp(1.1rem, 2.5vw, 1.6rem); display: grid; gap: .6rem; }
.news-item h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.news-item p { margin: 0; }
.news-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.impact { background: var(--tint); border-radius: 8px; padding: .8rem 1rem; }
.impact b { font-size: var(--t-sm); color: var(--brand-ink); }
.impact p { margin-top: .2rem; font-size: var(--t-sm); }
.src { font-size: var(--t-sm); font-weight: 600; color: var(--brand-ink); justify-self: start; }
.bulletin-more { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: var(--t-sm); color: var(--brand-ink); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.res { display: grid; gap: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.res:hover { border-color: var(--brand-ink); transform: translateY(-2px); }
.res b { color: var(--brand-ink); }
.res span { color: var(--muted); font-size: var(--t-sm); }

/* ===================== Por qué AMK Lex ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-item { border-top: 3px solid var(--brand); padding-top: 1rem; }
.why-item h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.why-item p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.cmp-title { margin: 2.5rem 0 1rem; font-size: 1.2rem; }
.cmp table { width: 100%; }
.cmp td.yes, .cmp td.no, .cmp td.mid { font-weight: 700; text-align: center; white-space: nowrap; }
.cmp th:not(:first-child) { text-align: center; }
.cmp td.yes { color: var(--brand-ink); }
.cmp td.yes::before { content: "✓ "; }
.cmp td.no { color: var(--muted); }
.cmp td.no::before { content: "✕ "; }
.cmp td.mid { color: var(--sello); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.f-hours { font-size: .85rem; opacity: .85; line-height: 1.5; margin-top: .3rem; }
.choice-box { align-content: start; padding: .9rem 1rem; }
.choice-box svg { width: 24px; height: 24px; }
.contact-form legend { margin-bottom: .5rem; }


/* ==========================================================================
   Versión definitiva (auditoría oct. 2026)
   ========================================================================== */
.small { font-size: var(--t-sm); }
.h-md { font-size: var(--t-xl); margin-bottom: 1rem; }
.h-sm { font-size: 1.05rem; margin-bottom: .7rem; }
.narrow { max-width: 820px; }
.foot-h { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: .8rem; }
.brand-mark { display: block; line-height: 0; }

/* Barra superior: urgencias */
.tb-contact { display: flex; gap: 1rem; align-items: center; }
.tb-urg { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; background: color-mix(in srgb, var(--on-brand) 14%, transparent); padding: .1rem .6rem; border-radius: 99px; }
.tb-urg svg { width: 14px; height: 14px; }
.urg-line { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.2rem; font-size: var(--t-sm); color: var(--warn); font-weight: 600; text-decoration: none; }
.urg-line a { color: var(--warn); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.urg-line svg { width: 18px; height: 18px; flex: none; }

/* Enlaces rápidos */
.quick { margin-top: 2.5rem; display: grid; gap: .8rem; }
.chip-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-link { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.chip-link:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

/* Tarjetas de noticias en portada */
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; display: grid; gap: .55rem; align-content: start; }
.news-card time { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--sello); }
.news-card .chip { justify-self: start; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand-ink); text-decoration: underline; }
.news-card p { color: var(--muted); font-size: var(--t-sm); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .news-cards { grid-template-columns: 1fr; } }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--brand-ink); }

/* Páginas de trámite */
.page-head .meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.proc-page { display: grid; gap: 2.5rem; max-width: 980px; }
.proc-sec { display: grid; gap: 1.2rem; min-width: 0; }
.proc-sec .routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.proc-sec .route { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .3rem; }
.proc-foot { display: grid; gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.notice.info { background: var(--tint); border-color: var(--line); color: var(--ink); }
.notice.info b:empty { display: none; }
.sources ul { display: grid; gap: .45rem; font-size: var(--t-sm); padding-inline-start: 1.1em; }
.sources a { color: #1f4e5f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sources a { color: #8cc7dc; } }
.reviewed { display: flex; gap: .5rem; align-items: center; font-size: var(--t-sm); color: var(--muted); }
.reviewed svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.print-row { margin: 0; }
.btn.small { padding: .5rem .9rem; font-size: .88rem; }

/* Ucrania: fecha en lugar de contador */
.date-block { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-inline-start: 6px solid #1f4e5f; border-radius: 12px; padding: 1.4rem 1.6rem; }
.date-block .big { font-family: var(--f-display); font-weight: 800; font-size: var(--t-2xl); color: var(--brand-ink); line-height: 1.1; margin-top: .3rem; }
@media (max-width: 700px) { .date-block { grid-template-columns: 1fr; } }

/* Artículo */
.byline { margin-top: .8rem; color: var(--muted); font-size: var(--t-sm); }
.h-article { font-size: var(--t-2xl); margin-top: .8rem; }
.article { display: grid; gap: 1.4rem; }
.more-news { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.more-news ul { display: grid; gap: .5rem; }

/* Herramientas */
.assume { font-size: .85rem; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: .8rem; }
.calc-out-wrap { display: grid; gap: .9rem; align-content: start; }
#calc-cta { justify-self: start; }

/* Despacho */
.verify { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.4rem; }
.verify svg { width: 20px; height: 20px; color: var(--brand-ink); flex: none; margin-top: .2rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { padding-inline-start: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-ink); font-weight: 800; }
.addr { font-weight: 700; margin-block: 1rem; }
.lang-panel .greet-h { font-size: var(--t-2xl); font-weight: 700; line-height: 1.3; font-family: inherit; }
.cmp th[scope="row"] { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: var(--t-sm); color: var(--ink); background: transparent; font-weight: 600; text-align: start; }

/* Urgencias */
.urg-head { background: var(--warn-bg); }
.urg-card { background: var(--card); border: 2px solid var(--warn); border-radius: 14px; padding: 1.5rem; display: grid; gap: .8rem; }
.urg-card .big { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); color: var(--warn); }
.ficha.warn { border-color: var(--warn); }
.num-list { display: grid; gap: .5rem; padding-inline-start: 1.3em; }

/* Mapa estático (sin incrustar Google Maps) */
.map-static { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.map-static img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map-pin { position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: inline-flex; gap: .4rem; align-items: center; background: var(--card); color: var(--brand-ink); padding: .5rem .9rem; border-radius: 99px; font-weight: 700; font-size: var(--t-sm); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.map-pin svg { width: 18px; height: 18px; }
.contact-card dd a { font-weight: 600; font-size: var(--t-sm); }
.field small { font-size: .8rem; }

/* Primera capa de privacidad */
.layer th[scope="row"] { width: 28%; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: var(--t-sm); color: var(--ink); font-weight: 700; vertical-align: top; }
.layer td { font-size: var(--t-sm); }
.prose h3 { margin-top: 1.6rem; }

/* Barra inferior móvil: Llamar · WhatsApp · Cita */
.bottom-bar { display: none; }
@media (max-width: 760px) {
  .bottom-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 70; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .bottom-bar a { display: grid; justify-items: center; gap: .15rem; padding: .55rem .3rem .5rem; color: var(--ink); text-decoration: none; font-size: .75rem; font-weight: 700; }
  .bottom-bar a.primary { background: var(--brand); color: var(--on-brand); }
  .bottom-bar svg { width: 22px; height: 22px; }
  .wa-float { display: none; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* Impresión (listas de documentos) */
@media print {
  .topbar, .site-header, .site-footer, .bottom-bar, .wa-float, .cta-band, .btn-row, .print-row, .head-img, .proc-foot .chip-links, .crumbs { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section, .page-head { padding-block: .6rem; border: 0; }
  .ficha { break-inside: avoid; border: 1px solid #999; }
  a { color: #000; }
}

/* Palabras largas (ruso, ucraniano, alemán…) en móvil */
h1, h2, h3, .lead { overflow-wrap: break-word; hyphens: auto; }
.page-head .wrap > *, .head-split > * { min-width: 0; }
@media (max-width: 600px) {
  .layer table, .layer tbody, .layer tr, .layer th, .layer td { display: block; width: auto !important; min-width: 0 !important; }
  .layer tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  .layer th[scope="row"] { border: 0; padding-bottom: .2rem; background: transparent; }
  .layer td { border: 0; padding-top: 0; }
}
[lang="ar"], [lang="ur"], [lang="he"] { unicode-bidi: isolate; }
