/* Portada de cada idioma (/en/, /nl/…: language_home.html) y su contacto
   (language_contact.html) y su política de privacidad (language_privacy.html). Las piezas grandes son las de la landing editorial
   (page-landing-editorial.css: lp-ed-head, lp-ed-card, lp-ed-links, lp-ed-cta);
   aquí solo las tarjetas de guía, el bloque de cada destino y el formulario.
   Mismos tokens (--lt-*, --lp-ed-*), mismo breakpoint (768 px), sin sombras ni
   `!important`, y un solo botón rojo por pantalla. */

/* --- Cabecera: sin la tarjeta de caso de la landing, el índice va en el aparte --- */
.lh .lh-head { padding-bottom: var(--lt-s-12); }
.lh .lh-head--compact { display: block; padding-bottom: var(--lt-s-10); }
.lh .lh-head--compact .lp-ed-head__lead { max-width: 62ch; }

/* --- Un destino: titular serif, recuento y rejilla de guías --- */
.lh-guides { padding-bottom: var(--lt-s-10); }
.lh-dest {
  max-width: var(--lt-container);
  margin: 0 auto;
  padding: var(--lt-s-13) var(--lt-gutter) var(--lt-s-12);
  border-top: 1px solid var(--lt-border);
  scroll-margin-top: calc(var(--lt-header-h) + 24px);
}
.lh-dest__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--lt-s-7);
  margin-bottom: var(--lt-s-10);
}
.lh-dest__title {
  margin: 0;
  font-family: var(--lp-ed-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--lt-ink);
}
.lh-dest__count {
  flex: none;
  margin: 0;
  font-family: var(--lt-font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--lt-text-muted);
}

.lh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--lt-s-7);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Tarjeta blanca sobre la crema, borde 1px y radio 16 (la lp-ed-card). Toda la tarjeta
   se pulsa: el enlace del título la cubre con ::after. */
.lh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--lt-s-4);
  padding: var(--lt-s-10);
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-r-lg);
  transition: border-color .15s ease;
}
.lh-card:hover { border-color: var(--lt-primary-border); }
.lh-card__title {
  margin: 0;
  font-family: var(--lt-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lt-ink);
}
.lh a.lh-card__link { color: var(--lt-ink); }
.lh a.lh-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lh a.lh-card__link:focus-visible { outline: none; }
.lh-card:focus-within { outline: 2px solid var(--lt-primary); outline-offset: 2px; }
.lh-card__text {
  margin: 0;
  font-size: var(--lt-fs-body);
  line-height: 1.6;
  color: var(--lt-text-2);
}
.lh-card__more {
  margin: auto 0 0;
  padding-top: var(--lt-s-3);
  font-family: var(--lt-font-head);
  font-size: var(--lt-fs-sm);
  font-weight: 600;
  color: var(--lt-primary);
}

/* --- Confianza: cuántos despachos hablan el idioma, y los tres primeros del motor --- */
.lh-trust {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: var(--lt-s-12);
  align-items: start;
  margin-top: var(--lt-s-12);
  padding: var(--lt-s-11);
  border-radius: var(--lt-r-lg);
  background: var(--lp-ed-panel);
}
.lh-trust__text { display: flex; flex-direction: column; gap: var(--lt-s-4); }
.lh-trust__eyebrow {
  margin: 0;
  font-family: var(--lt-font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--lt-ink);
}
.lh-trust__line { margin: 0; font-size: 17px; line-height: 1.5; color: var(--lt-text-2); }
.lh-trust__n {
  display: block;
  font-family: var(--lp-ed-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--lt-ink);
}
.lh-trust__note { margin: 0; font-size: var(--lt-fs-sm); line-height: 1.55; color: var(--lt-text-muted); }
.lh-trust__firms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--lt-s-6);
}
/* Los «Contact» en contorno: el rojo lleno es solo el de la banda de contacto. */
.lh button.lh-contorno,
.lh .lh-contorno {
  background: var(--lt-surface);
  color: var(--lt-primary);
  border: 1px solid var(--lt-primary-border);
}
.lh button.lh-contorno:hover,
.lh .lh-contorno:hover { background: var(--lt-canvas); color: var(--lt-primary-hover); border-color: var(--lt-primary); }

/* --- Herramientas --- */
.lh .lh-tools { padding-block: var(--lt-s-13); }
.lh .lh-tools .lp-ed-links__title { margin-bottom: var(--lt-s-4); }
.lh-tools__note { margin: 0 0 var(--lt-s-10); max-width: 62ch; font-size: var(--lt-fs-body); color: var(--lt-text-muted); }
.lh .lh-tools .lp-ed-links__group { max-width: 820px; }

.lh .lh-note { max-width: var(--lt-container); margin: 0 auto var(--lt-s-13); padding: 0 var(--lt-gutter); }
.lh .lh-note a { color: var(--lt-primary); }

/* --- Contacto --- */
.lh-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--lt-s-13);
  max-width: var(--lt-container);
  margin: 0 auto;
  padding: 0 var(--lt-gutter) var(--lt-s-15);
}
.lh-contact__form {
  padding: var(--lt-s-11);
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-r-lg);
}
.lh-contact__title,
.lh-contact__box-title {
  margin: 0 0 var(--lt-s-9);
  font-family: var(--lp-ed-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--lt-ink);
}
.lh-contact__box-title { margin-bottom: var(--lt-s-4); font-family: var(--lt-font-head); font-size: 16px; font-weight: 600; }
.lh-contact__aside { display: flex; flex-direction: column; gap: var(--lt-s-7); }
.lh-contact__box {
  padding: var(--lt-s-10);
  border-radius: var(--lt-r-lg);
  background: var(--lp-ed-panel);
}
.lh-contact__box p { margin: 0; font-size: var(--lt-fs-body); line-height: 1.6; color: var(--lt-text-2); }
.lh-contact__box a { color: var(--lt-primary); font-weight: 600; }
.lh-contact__box--alert { background: var(--lt-surface); border: 1px solid var(--lt-border); border-left: 3px solid var(--lt-primary); }
.lh-contact .form-check-label a { color: var(--lt-primary); text-decoration: underline; text-underline-offset: 2px; }
.lh-contact button.lh-contact__submit { display: inline-flex; }
.lh-alert {
  margin-bottom: var(--lt-s-9);
  padding: var(--lt-s-6) var(--lt-s-8);
  border-radius: var(--lt-r-md);
  font-size: var(--lt-fs-body);
  line-height: 1.5;
}
.lh-alert--ok { background: #EAF4EE; border: 1px solid #BFDCCB; color: var(--lp-ed-yes); }
.lh-alert--error { background: #FBEDEA; border: 1px solid var(--lt-primary-border); color: #8C2F2F; }

/* --- El análisis del caso en el idioma (#analyse): explicación a la izquierda, formulario a la derecha --- */
.lh-analyse {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--lt-s-13);
  align-items: start;
  max-width: var(--lt-container);
  margin: 0 auto;
  padding: var(--lt-s-13) var(--lt-gutter);
  border-top: 1px solid var(--lt-border);
  scroll-margin-top: calc(var(--lt-header-h) + 24px);
}
.lh-analyse__intro { display: flex; flex-direction: column; gap: var(--lt-s-6); }
.lh-analyse__eyebrow {
  margin: 0;
  font-family: var(--lt-font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--lt-primary);
}
.lh-analyse__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lt-text-2); }
.lh-analyse__ai { margin: 0; font-size: var(--lt-fs-sm); line-height: 1.55; color: var(--lt-text-muted); }
.lh-analyse__form {
  display: flex;
  flex-direction: column;
  gap: var(--lt-s-8);
  padding: var(--lt-s-11);
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-r-lg);
}
.lh-analyse__field { display: flex; flex-direction: column; }
.lh-analyse__hint { margin: var(--lt-s-3) 0 0; font-size: var(--lt-fs-sm); line-height: 1.5; color: var(--lt-text-muted); }
.lh-analyse__consent .form-check-label { font-size: var(--lt-fs-sm); line-height: 1.55; color: var(--lt-text-2); }
.lh-analyse__consent a { color: var(--lt-primary); text-decoration: underline; text-underline-offset: 2px; }
.lh-analyse .lh-alert { margin: 0; }
.lh button.lh-analyse__submit { align-self: flex-start; }
.lh button.lh-analyse__submit[disabled] { opacity: .7; cursor: progress; }

/* --- El informe del análisis en el idioma (analysis_report_foreign.html) --- */
.lh-report__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lt-s-6);
  margin: var(--lt-s-9) 0 0;
  padding: 0;
  list-style: none;
}
.lh-report__signal {
  display: flex;
  flex-direction: column;
  gap: var(--lt-s-2);
  min-width: 180px;
  padding: var(--lt-s-7) var(--lt-s-8);
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-left: 3px solid var(--lt-border);
  border-radius: var(--lt-r-md);
}
.lh-report__signal--alta { border-left-color: var(--lt-primary); }
.lh-report__signal--media { border-left-color: #C98A2E; }
.lh-report__signal-k {
  font-family: var(--lt-font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lt-text-muted);
}
.lh-report__signal-v { font-family: var(--lt-font-head); font-size: 17px; color: var(--lt-ink); }
.lh-report__signal-r { font-size: var(--lt-fs-sm); line-height: 1.45; color: var(--lt-text-2); }
.lh-report {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--lt-s-12) var(--lt-gutter) var(--lt-s-13);
}
.lh-report__sec + .lh-report__sec { margin-top: var(--lt-s-11); }
.lh-report__h {
  margin: 0 0 var(--lt-s-5);
  font-family: var(--lp-ed-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--lt-ink);
}
.lh-report__p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--lt-text-2); }
.lh-report__steps,
.lh-report__waiting { margin: 0; padding-left: 1.25em; font-size: 17px; line-height: 1.6; color: var(--lt-text-2); }
.lh-report__steps li + li,
.lh-report__waiting li + li { margin-top: var(--lt-s-3); }
.lh-report__ai {
  margin: var(--lt-s-11) 0 0;
  padding-top: var(--lt-s-7);
  border-top: 1px solid var(--lt-border);
  font-size: var(--lt-fs-sm);
  line-height: 1.55;
  color: var(--lt-text-muted);
}
.lh-report__capture {
  margin-top: var(--lt-s-11);
  padding: var(--lt-s-10);
  border-radius: var(--lt-r-lg);
  background: var(--lp-ed-panel);
}
.lh-report__capture-title { margin: 0 0 var(--lt-s-3); font-family: var(--lt-font-head); font-size: 17px; font-weight: 600; color: var(--lt-ink); }
.lh-report__capture-sub { margin: 0 0 var(--lt-s-6); font-size: var(--lt-fs-body); line-height: 1.55; color: var(--lt-text-2); }
.lh-report__capture-row { display: flex; gap: var(--lt-s-5); }
.lh-report__capture-row .form-control { flex: 1 1 auto; min-height: 48px; }
.lh-report__capture .lp-captura__hecho { margin: 0; font-size: var(--lt-fs-body); color: var(--lp-ed-yes); }
.lh-report__capture .lp-captura__ayuda--error { color: #8C2F2F; }
.lh-report__note { margin: 0 0 var(--lt-s-9); max-width: 70ch; font-size: var(--lt-fs-body); line-height: 1.6; color: var(--lt-text-muted); }
.lh-report__note a { color: var(--lt-primary); font-weight: 600; }
.lh-report__firms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--lt-s-6);
}
/* La fila elástica de la tarjeta (la cuarta, 1fr) no estira la etiqueta ni el botón:
   la etiqueta arriba, el «Contact» abajo, tenga o no etiqueta la ficha. */
.lh-report__firms .lp-ed-card__tags { align-self: start; align-items: flex-start; }
.lh-report__firms .lp-ed-card__cta { align-self: end; }
/* --- Privacidad: la advertencia arriba y el texto legal a una columna de lectura --- */
.lh-legal__meta { margin: var(--lt-s-5) 0 0; font-size: var(--lt-fs-body); color: var(--lt-text-muted); }
.lh-legal__meta a { color: var(--lt-primary); }
.lh-legal__wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--lt-gutter) var(--lt-s-15); }
.lh-legal__notice { margin-bottom: var(--lt-s-13); }
.lh-legal__notice p + p { margin-top: var(--lt-s-4); }
.lh-legal__stale { font-weight: 600; color: var(--lt-ink); }
.lh-legal__body { font-size: 16px; line-height: 1.65; color: var(--lt-text); overflow-wrap: anywhere; }
.lh-legal__body h2 {
  margin: var(--lt-s-14) 0 var(--lt-s-7);
  font-family: var(--lp-ed-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--lt-ink);
}
.lh-legal__body h3 { margin: var(--lt-s-12) 0 var(--lt-s-5); font-family: var(--lt-font-head); font-size: 18px; font-weight: 600; color: var(--lt-ink); }
.lh-legal__body p, .lh-legal__body ul { margin: 0 0 var(--lt-s-7); }
.lh-legal__body li + li { margin-top: var(--lt-s-3); }
.lh-legal__body a { color: var(--lt-primary); text-decoration: underline; text-underline-offset: 2px; }
.lh-legal__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 0 0 var(--lt-s-10);
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.lh-legal__body th, .lh-legal__body td { padding: var(--lt-s-4) var(--lt-s-5); border: 1px solid var(--lt-border); text-align: left; vertical-align: top; }
.lh-legal__body th { background: var(--lp-ed-panel); font-weight: 600; }

@media (max-width: 768px) {
  .lh-dest { padding: var(--lt-s-12) var(--lt-gutter) var(--lt-s-11); }
  .lh-dest__head { flex-direction: column; gap: var(--lt-s-3); margin-bottom: var(--lt-s-9); }
  .lh-cards { grid-template-columns: minmax(0, 1fr); gap: var(--lt-s-5); }
  .lh-card { padding: var(--lt-s-9); }
  .lh-trust { grid-template-columns: minmax(0, 1fr); gap: var(--lt-s-10); padding: var(--lt-s-9); }
  .lh-trust__n { font-size: 44px; }
  .lh-trust__firms { grid-template-columns: minmax(0, 1fr); }
  .lh-contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--lt-s-10); }
  .lh-contact__form { padding: var(--lt-s-9); }
  .lh-analyse { grid-template-columns: minmax(0, 1fr); gap: var(--lt-s-10); padding: var(--lt-s-12) var(--lt-gutter); }
  .lh-analyse__form { padding: var(--lt-s-9); }
  .lh button.lh-analyse__submit { align-self: stretch; }
  .lh-report__signal { flex: 1 1 100%; }
  .lh-report__capture-row { flex-direction: column; }
  .lh-report__firms { grid-template-columns: minmax(0, 1fr); }
  .lh-legal__body table { font-size: 14px; }
  .lh-legal__body th, .lh-legal__body td { min-width: 9em; }
}

/* --- La home en otro idioma (26-10-2026): la española (page-home.css) con el
   análisis en el idioma dentro del buscador del hero. Solo lo que la española no
   tiene: la fila país + ciudad, la casilla, las notas y el botón de contacto de
   cada despacho. --- */
.lh .lh-search { gap: var(--lt-s-5); }
.lh-search__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lt-s-5);
  padding: 0 10px;
}
.lh-search__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lh-search__label { font-size: var(--lt-fs-xs); font-weight: 600; color: var(--lt-text-muted); }
.lh-search__consent { margin: 0 10px; font-size: var(--lt-fs-sm); line-height: 1.45; color: var(--lt-text); }
.lh .lh-search .lh-alert { margin: 0 10px; }
.lh .lh-search button[disabled] { opacity: .7; cursor: progress; }
.lh-hero-note {
  max-width: 640px;
  margin: 0 auto var(--lt-s-6);
  font-size: var(--lt-fs-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}
.lh-es-note {
  max-width: var(--lt-container);
  margin: 0 auto;
  padding: 0 var(--lt-gutter);
  font-size: var(--lt-fs-sm);
  color: var(--lt-text-muted);
}
.lh .lh-lawyer { display: flex; flex-direction: column; }
.lh .lh-lawyer .lt-lawyer-featured__body { flex: 1; }
.lh a.lh-lawyer__link { color: var(--lt-ink); text-decoration: none; }
.lh a.lh-lawyer__link:hover { color: var(--lt-primary); }
.lh .lh-lawyer__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 767.98px) {
  .lh-search__row { grid-template-columns: 1fr; padding: 0 4px; }
  .lh-search__consent { margin: 0 4px; }
}
/* «Ausländer- und Staatsangehörigkeitsrecht» no cabe en una columna de móvil:
   que se parta (con guion donde el idioma lo sepa) antes que ensanchar la página. */
.lh .home-tiles > .lt-tile { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
