/* Blog ES 76 — Restitución internacional de menores
   Formulario de evaluación, formulario de defensa (landing) y bloque de agenda.
   Mismos tokens del tema: azul #0A66C2, marino #0f2438, Lato/Raleway, radios 9–16 px. */

.nl-rest {
  --nlr-blue: var(--clr-accent, #0A66C2);
  --nlr-blue-dk: #08519c;
  --nlr-navy: #0f2438;
  --nlr-ink: #111827;
  --nlr-text: #374151;
  --nlr-muted: #6b7280;
  --nlr-line: #d5dbe3;
  --nlr-soft: #f2f7fd;
  --nlr-err: #b3261e;
  --nlr-ok: #2e7d52;
  margin: 28px 0 36px;
  font-family: var(--ff-body, 'Raleway', sans-serif);
  color: var(--nlr-text);
  scroll-margin-top: 96px;
}
.nl-rest[hidden], .nl-rest [hidden] { display: none !important; }
.nl-rest *, .nl-rest *::before, .nl-rest *::after { box-sizing: border-box; }

.nl-rest-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--nlr-blue);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(15, 36, 56, .09);
  padding: 30px 30px 32px;
}

/* Textos: se anulan los márgenes de .sngl-article p */
.sngl-article .nl-rest p, .nl-rest p { margin: 0; line-height: 1.6; }
.nl-rest-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #eef0f4; }
.nl-rest .nl-rest-kicker { font-family: var(--ff-heading, 'Lato', sans-serif); font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--nlr-blue); margin-bottom: 6px; }
.nl-rest .nl-rest-title { font-family: var(--ff-heading, 'Lato', sans-serif); font-size: 1.3rem; font-weight: 800; color: var(--nlr-navy); line-height: 1.3; margin-bottom: 8px; }
.nl-rest .nl-rest-intro { font-size: .98rem; color: var(--nlr-muted); }

/* Campos */
.nl-rest-f { display: block; }
.nl-rest-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.nl-rest .nl-rest-label { display: block; font-family: var(--ff-heading, 'Lato', sans-serif); font-size: .95rem; font-weight: 700; color: #1f2937; margin: 0 0 8px; padding: 0; line-height: 1.4; }
.nl-rest-opt-tag { font-weight: 400; color: #94a3b8; font-size: .85rem; }
.nl-rest input[type=text], .nl-rest input[type=email], .nl-rest input[type=tel], .nl-rest input[type=date], .nl-rest textarea {
  display: block; width: 100%; max-width: 100%;
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--nlr-line); border-radius: 10px;
  font: inherit; font-size: 16px; /* ≥16 px: iOS no hace zoom */
  color: var(--nlr-ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.nl-rest input[type=date] { min-height: 48px; line-height: 1.3; }
.nl-rest textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.nl-rest input:focus, .nl-rest textarea:focus { outline: none; border-color: var(--nlr-blue); box-shadow: 0 0 0 3px rgba(10, 102, 194, .16); }
.nl-rest input::placeholder, .nl-rest textarea::placeholder { color: #9ca3af; }
.nl-rest .nl-rest-hint { font-size: .84rem; color: var(--nlr-muted); margin-top: 7px; }

/* Opciones tipo tarjeta */
.nl-rest-options { display: grid; gap: 8px; }
.nl-rest-opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border: 1.5px solid #dbe1ea; border-radius: 10px; background: #fff;
  cursor: pointer; color: var(--nlr-text); font-size: .97rem; line-height: 1.45;
  transition: border-color .15s, background .15s;
}
.nl-rest-opt:hover { border-color: #9cc0e6; }
.nl-rest-opt input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--nlr-blue); }
.nl-rest-opt.is-on, .nl-rest-opt:has(input:checked) { border-color: var(--nlr-blue); background: #eef4fb; color: var(--nlr-ink); font-weight: 600; }
.nl-rest-opt input:focus-visible { outline: 2px solid var(--nlr-blue); outline-offset: 2px; }
.nl-rest-agenda .nl-rest-options { grid-template-columns: 1fr; }
.nl-rest-agenda [data-field=idioma] .nl-rest-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Consentimiento */
.nl-rest-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: .92rem; line-height: 1.55; color: var(--nlr-text); }
.nl-rest-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--nlr-blue); }
.nl-rest-check a { color: var(--nlr-blue); text-decoration: underline; }

/* Errores */
.nl-rest .nl-rest-err { font-size: .86rem; color: var(--nlr-err); font-weight: 600; margin-top: 6px; }
.nl-rest .nl-rest-err:empty { display: none; }
.nl-rest-field.has-err input[type=text], .nl-rest-field.has-err input[type=email], .nl-rest-field.has-err input[type=tel], .nl-rest-field.has-err input[type=date], .nl-rest-field.has-err textarea { border-color: var(--nlr-err); }
.nl-rest-field.has-err .nl-rest-opt { border-color: #f0b4ae; }
.nl-rest-alert { background: #fdecea; border: 1px solid #f5c6c0; color: var(--nlr-err); border-radius: 10px; padding: 12px 14px; font-size: .93rem; line-height: 1.5; margin-bottom: 18px; }
.nl-rest-alert a { color: var(--nlr-err); font-weight: 700; text-decoration: underline; }

.nl-rest .nl-rest-fallback { margin-top: 12px; font-size: .92rem; color: var(--nlr-err); font-weight: 600; }
.nl-rest-fallback a { color: var(--nlr-blue); text-decoration: underline; }
.nl-rest-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Botones (misma familia que .btn del tema, en azul) */
.nl-rest-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 52px; padding: 14px 22px; margin-top: 6px;
  border: 2px solid var(--nlr-blue); border-radius: var(--radius, 6px);
  background: var(--nlr-blue); color: #fff;
  font-family: var(--ff-heading, 'Lato', sans-serif); font-size: .92rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, opacity .2s;
}
.nl-rest-btn:hover { background: var(--nlr-blue-dk); border-color: var(--nlr-blue-dk); }
.nl-rest-btn:focus-visible { outline: 3px solid rgba(10, 102, 194, .35); outline-offset: 2px; }
.nl-rest-btn:disabled { opacity: .55; cursor: default; }
.nl-rest-btn[aria-busy=true] { cursor: progress; }
.nl-rest-continue { background: var(--nlr-ok); border-color: var(--nlr-ok); }
.nl-rest-continue:hover { background: #256845; border-color: #256845; }
.nl-rest-back { background: none; border: 0; padding: 4px 0; margin: 0 0 12px; color: var(--nlr-blue); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.nl-rest-back:hover { text-decoration: underline; }

/* Confirmación */
.nl-rest-ok { padding: 6px 2px; outline: none; }
.nl-rest .nl-rest-ok p { margin: 0 0 12px; color: var(--nlr-text); line-height: 1.65; }
.nl-rest .nl-rest-ok .nl-rest-ok-title { font-family: var(--ff-heading, 'Lato', sans-serif); font-size: 1.25rem; font-weight: 800; color: var(--nlr-navy); display: flex; gap: 10px; align-items: center; }
.nl-rest-ok-title i { color: var(--nlr-ok); font-size: 1.4rem; }
.nl-rest .nl-rest-ok .nl-rest-ok-sign { font-weight: 700; color: var(--nlr-navy); margin-bottom: 0; }

/* Plegado (solo con JS) */
.nl-rest-form-wrap.is-collapsed { display: none; }

/* Agenda */
.nl-rest-price { background: var(--nlr-soft); border: 1px solid #cfe0f3; border-radius: 12px; padding: 16px 18px; margin: 4px 0 14px; }
.nl-rest .nl-rest-price-k { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nlr-blue); }
.nl-rest .nl-rest-price-v { font-family: var(--ff-heading, 'Lato', sans-serif); font-size: 1.85rem; font-weight: 900; color: var(--nlr-navy); line-height: 1.2; margin: 4px 0 6px; }
.nl-rest .nl-rest-price-scope { font-size: .92rem; color: var(--nlr-text); }
.nl-rest .nl-rest-notice { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: #5b4a12; background: #fdf9ec; border: 1px solid #efe1b3; border-radius: 10px; padding: 11px 13px; margin: 0 0 14px; }
.nl-rest-notice i { color: #b8993a; margin-top: 3px; }

.nl-rest-bank { background: var(--nlr-navy); color: #dbe4f0; border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.nl-rest .nl-rest-bank-k { color: #c9a24b; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; margin-bottom: 8px; }
.nl-rest-bank dl { margin: 0; display: grid; gap: 4px; }
.nl-rest-bank dl > div { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .95rem; line-height: 1.6; }
.nl-rest-bank dt { font-weight: 700; color: #fff; margin: 0; }
.nl-rest-bank dt::after { content: ':'; }
.nl-rest-bank dd { margin: 0; overflow-wrap: anywhere; }
.nl-rest-bank .nl-rest-bank-amount { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
.nl-rest-bank .nl-rest-bank-amount dd { color: #c9a24b; font-weight: 800; }

.nl-rest-file { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; min-height: 64px; border: 1.5px dashed #b9c5d3; border-radius: 12px; padding: 16px; background: #f9fafb; color: #4b5563; font-size: .95rem; cursor: pointer; transition: border-color .15s, background .15s; overflow-wrap: anywhere; }
.nl-rest-file:hover, .nl-rest-file:focus-within { border-color: var(--nlr-blue); background: var(--nlr-soft); }
.nl-rest-file i { color: var(--nlr-blue); }
.nl-rest-file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.nl-rest .nl-rest-status { margin-top: 12px; font-size: .93rem; font-weight: 600; color: var(--nlr-muted); }
.nl-rest .nl-rest-status.is-err { color: var(--nlr-err); }
.nl-rest .nl-rest-status.is-ok { color: var(--nlr-ok); }
.nl-rest-cal { width: auto; min-width: 0; min-height: 560px; overflow: auto; margin-top: 12px; border-radius: 12px; }
@media (max-width: 600px) { .nl-rest-cal { border-radius: 0; } } /* el JS lo extiende a todo el ancho de la pantalla (H-14) */

/* Listas dentro de .sngl-article: el tema ya las neutraliza en [class*="nl-"] */

/* ── Landing /consulta-restitucion-internacional/ ── */
.nl-rest-landing { background: #f5f6f8; }
.nl-rest-hero { background: var(--nlr-navy, #0f2438); background: #0f2438; color: #fff; padding: 150px 0 120px; position: relative; overflow: hidden; }
.nl-rest-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0, rgba(10, 102, 194, .35), transparent 55%); }
.nl-rest-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; position: relative; }
.nl-rest-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #cfe0f3; font-size: .8rem; font-weight: 600; letter-spacing: .03em; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.nl-rest-hero h1 { font-family: var(--ff-heading, 'Lato', sans-serif); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.22; margin: 0 0 16px; color: #fff; }
.nl-rest-hero p { font-size: 1.06rem; color: #c3d2e4; line-height: 1.65; margin: 0 0 10px; max-width: 720px; }
.nl-rest-body { max-width: 860px; margin: -80px auto 0; padding: 0 20px 70px; position: relative; z-index: 2; }
.nl-rest-body .nl-rest { margin-top: 0; }
.nl-rest-body .nl-rest-agenda { margin-top: 24px; }
.nl-rest-backlink { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin: 8px 0 0; font-size: .95rem; }
.nl-rest-backlink a { color: #0A66C2; font-weight: 700; text-decoration: none; }
.nl-rest-backlink a:hover { text-decoration: underline; }
.nl-rest-backlink .nl-rest-wa { color: #1e7d46; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nl-rest-card { padding: 22px 16px 24px; border-radius: 14px; }
  .nl-rest .nl-rest-title { font-size: 1.15rem; }
  .nl-rest-opt { padding: 11px 12px; font-size: .95rem; }
  .nl-rest .nl-rest-price-v { font-size: 1.6rem; }
  .nl-rest-hero { padding: 120px 0 100px; }
  .nl-rest-body { padding: 0 12px 56px; }
  .nl-rest-btn { font-size: .86rem; letter-spacing: .04em; padding: 13px 14px; }
  /* Dentro del artículo en móvil la tarjeta ocupa casi todo el ancho */
  .sngl-article .nl-rest-card { margin-left: -6px; margin-right: -6px; }
}
@media (max-width: 380px) {
  .nl-rest-agenda [data-field=idioma] .nl-rest-options { grid-template-columns: 1fr; }
}
