.estado-main { padding: 64px 0 80px; background: #fbfcfd; }
.estado-wrap { max-width: 1040px; }
.estado-intro { max-width: 720px; margin-bottom: 30px; }
.estado-intro h1 { margin: 0 0 14px; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.estado-card, .estado-empty, .estado-boundary, .estado-loading { background: #fff; border: 1px solid var(--border-hairline); border-radius: 16px; }
.estado-card { padding: clamp(24px, 4vw, 42px); box-shadow: 0 18px 48px -30px rgba(21,37,47,.38); }
.estado-empty, .estado-boundary, .estado-loading { padding: 26px; }
.estado-empty { margin-bottom: 24px; }
.estado-lookup { display: grid; gap: 10px; max-width: 760px; margin-top: 22px; }
.estado-lookup label { font-weight: 800; }
.estado-lookup input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--border-hairline); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; letter-spacing: .02em; }
.estado-lookup input:focus-visible { outline: 3px solid var(--caribe-tinte); border-color: var(--caribe); }
.estado-help, .estado-error { margin: 0; font-size: .86rem; }
.estado-help { color: var(--ink-secondary); }
.estado-error { min-height: 1.3em; color: #8a2f1f; font-weight: 700; }
.estado-lookup__actions, .estado-report-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.estado-loading { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.estado-loading[hidden] { display: none; }
.estado-loading h2, .estado-loading p { margin: 0; }
.estado-loading h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.estado-loading p:last-child { margin-top: 4px; color: var(--ink-secondary); }
.estado-loading__mark { width: 42px; height: 42px; flex: none; border: 4px solid var(--caribe-tinte); border-top-color: var(--caribe); border-radius: 50%; animation: estado-spin .8s linear infinite; }
@keyframes estado-spin { to { transform: rotate(360deg); } }
.estado-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.estado-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.05; }
.estado-chip { display: inline-block; padding: 6px 10px; border-radius: 7px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.estado-chip[data-tone="success"] { color: #fff; background: #0e6b44; }
.estado-chip[data-tone="info"] { color: #fff; background: var(--caribe); }
.estado-chip[data-tone="attention"] { color: var(--ink); background: var(--miel-tinte); border: 1px solid var(--miel); }
.estado-chip[data-tone="neutral"] { color: var(--ink-secondary); background: var(--surface-card); border: 1px solid var(--border-hairline); }
.estado-journey { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 38px 0; padding: 0; list-style: none; }
.estado-journey li { position: relative; padding-top: 42px; color: var(--ink-secondary); font-size: .82rem; font-weight: 800; }
.estado-journey li::before { content: ""; position: absolute; top: 15px; left: 34px; right: -8px; height: 2px; background: var(--border-hairline); }
.estado-journey li:last-child::before { display: none; }
.estado-journey span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--border-hairline); border-radius: 50%; background: #fff; }
.estado-journey li[data-state="complete"] span { color: #fff; border-color: var(--caribe); background: var(--caribe); }
.estado-journey li[data-state="complete"]::before { background: var(--caribe); }
.estado-journey li[data-state="current"] span { border-color: var(--caribe); box-shadow: 0 0 0 4px var(--caribe-tinte); }
.estado-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 34px; }
.estado-consequence { font-size: 1.25rem; line-height: 1.5; }
.estado-notice { margin: 22px 0; padding: 17px 19px; border-left: 4px solid var(--caribe); background: var(--caribe-tinte); }
.estado-notice[data-tone="success"] { border-color: var(--verde); background: var(--verde-tinte); }
.estado-notice[data-tone="attention"] { border-color: var(--miel); background: var(--miel-tinte); }
.estado-notice[data-tone="neutral"] { border-color: var(--ink-secondary); background: var(--grafito-tinte); }
.estado-report-actions { margin: 0 0 22px; padding: 18px; border: 1px solid #acd5c4; border-radius: 12px; background: var(--verde-tinte); }
.estado-report-actions[hidden] { display: none; }
.estado-report-actions p { margin: 0 0 14px; }
.estado-feedback { min-height: 1.4em; margin: 10px 0 0; color: var(--ink-secondary); font-size: .86rem; }
.estado-facts { margin: 0; padding: 20px; border-radius: 14px; background: #f3f6f8; }
.estado-facts div + div { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border-hairline); }
.estado-facts dt { color: var(--ink-secondary); font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.estado-facts dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.estado-facts code { display: block; font: 700 .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .025em; overflow-wrap: anywhere; }
.estado-facts small { display: block; margin-top: 8px; color: var(--ink-secondary); font-weight: 500; line-height: 1.45; }
.estado-copy { min-height: 40px; margin-top: 10px; padding: 7px 11px; border: 1px solid var(--caribe); border-radius: 8px; color: var(--caribe); background: #fff; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.estado-boundary { margin-top: 24px; }
.estado-boundary h2 { font-size: 1.25rem; }
.estado-boundary p { margin-bottom: 0; color: var(--ink-secondary); }
@media (max-width: 700px) {
  .estado-main { padding: 38px 0 56px; }
  .estado-head { display: block; }
  .estado-chip { margin-top: 14px; }
  .estado-grid { grid-template-columns: 1fr; gap: 24px; }
  .estado-journey { grid-template-columns: 1fr; gap: 10px; margin: 30px 0; }
  .estado-journey li { min-height: 34px; padding: 6px 0 0 44px; }
  .estado-journey li::before { top: 29px; bottom: -12px; left: 15px; width: 2px; height: auto; }
  .estado-lookup__actions > *, .estado-report-actions > div > * { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .estado-loading__mark { animation: none; border-color: var(--caribe); }
}
