/* Linkeia E-mail Checker — página pública y vista del informe (esquinas rectas, marca Linkeia) */
.lkec-wrap, .lkec-report {
  --lkec-accent: #17364D; --lkec-cta: #ff554a; --lkec-cta-h: #e8443a;
  --lkec-bg: #ffffff; --lkec-soft: #f3f5f7; --lkec-line: #e3e8ee; --lkec-text: #1f2a37; --lkec-muted: #5b6b7c;
  --lkec-ok: #1f8a4c; --lkec-warn: #b26a00; --lkec-err: #c0392b; --lkec-info: #3b6ea8;
}
html.lk-dark .lkec-wrap, html.lagom-dark-mode .lkec-wrap, html.lk-dark .lkec-report, html.lagom-dark-mode .lkec-report {
  --lkec-accent: #4bccfe; --lkec-bg: #132332; --lkec-soft: #17304a; --lkec-line: #223446; --lkec-text: #e7edf3; --lkec-muted: #9fb0c3;
  --lkec-ok: #4cc983; --lkec-warn: #f0b046; --lkec-err: #ff7b6e; --lkec-info: #7fb2ea;
}
.lkec-wrap { max-width: 980px; margin: 0 auto; padding: 8px 16px 56px; color: var(--lkec-text); font-size: 16px; line-height: 1.6; }
.lkec-wrap *, .lkec-report * { box-sizing: border-box; border-radius: 0; }
.lkec-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lkec-hero { text-align: center; padding: 26px 0 8px; }
.lkec-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lkec-cta); margin-bottom: 8px; }
.lkec-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.18; margin: 0 0 12px; color: var(--lkec-accent); font-weight: 800; }
.lkec-hero p { max-width: 720px; margin: 0 auto; color: var(--lkec-muted); font-size: 1.04rem; }

.lkec-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 26px 0 0; border: 1px solid var(--lkec-line); background: var(--lkec-bg); }
.lkec-tools a { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 11px; text-decoration: none !important; color: var(--lkec-text); border-right: 1px solid var(--lkec-line); border-bottom: 3px solid transparent; transition: background .15s; }
.lkec-tools a:last-child { border-right: 0; }
.lkec-tools a strong { font-size: .9rem; line-height: 1.25; }
.lkec-tools a span { font-size: .76rem; color: var(--lkec-muted); }
.lkec-tools a:hover { background: var(--lkec-soft); }
.lkec-tools a.is-active { border-bottom-color: var(--lkec-cta); background: var(--lkec-soft); }
.lkec-tools a.is-active strong { color: var(--lkec-accent); }

.lkec-panel { margin-top: 18px; background: var(--lkec-bg); border: 1px solid var(--lkec-line); padding: 24px; box-shadow: 0 8px 30px rgba(16, 32, 52, .06); }
.lkec-form { display: flex; gap: 10px; flex-wrap: wrap; }
.lkec-form input { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 16px; font-size: 1.05rem; border: 1px solid var(--lkec-line); background: var(--lkec-soft); color: var(--lkec-text); outline: none; }
.lkec-form input:focus { border-color: var(--lkec-accent); background: var(--lkec-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lkec-accent) 18%, transparent); }
.lkec-btn { height: 52px; padding: 0 28px; border: 0; cursor: pointer; background: var(--lkec-cta); color: #fff !important; font-size: 1.02rem; font-weight: 700; transition: background .2s, box-shadow .2s; }
.lkec-btn:hover { background: var(--lkec-cta-h); box-shadow: 0 0 22px rgba(255, 85, 74, .32); }
.lkec-btn[disabled] { opacity: .6; cursor: default; box-shadow: none; }
.lkec-btn-soft { height: 44px; padding: 0 18px; background: var(--lkec-accent); }
html.lk-dark .lkec-btn-soft, html.lagom-dark-mode .lkec-btn-soft { background: #24506f; }
.lkec-btn-soft:hover { background: var(--lkec-accent); filter: brightness(1.12); box-shadow: none; }
.lkec-link { border: 0; background: none; padding: 0; color: var(--lkec-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.lkec-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.lkec-steps > li { counter-increment: s; position: relative; padding-left: 52px; }
.lkec-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; background: var(--lkec-accent); color: #fff; font-weight: 800; }
html.lk-dark .lkec-steps > li::before, html.lagom-dark-mode .lkec-steps > li::before { background: #24506f; }
.lkec-steps h2 { font-size: 1.18rem; margin: 4px 0 6px; font-weight: 800; color: var(--lkec-text); }
.lkec-steps p { margin: 0 0 12px; color: var(--lkec-muted); font-size: .96rem; }
.lkec-addr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: var(--lkec-soft); border: 1px dashed color-mix(in srgb, var(--lkec-accent) 45%, transparent); }
.lkec-addr code { flex: 1 1 260px; min-width: 0; font: 700 clamp(1rem, 2.4vw, 1.25rem)/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--lkec-accent); word-break: break-all; background: none; padding: 0; user-select: all; }
.lkec-hint { margin-top: 10px !important; font-size: .86rem !important; }

.lkec-out { margin-top: 22px; }
.lkec-out.is-msg { padding: 16px 18px; border: 1px solid var(--lkec-line); background: var(--lkec-soft); color: var(--lkec-text); }
.lkec-out.is-warn { border-color: color-mix(in srgb, var(--lkec-warn) 45%, transparent); background: color-mix(in srgb, var(--lkec-warn) 9%, transparent); }
.lkec-spin { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border: 2px solid var(--lkec-line); border-top-color: var(--lkec-cta); border-radius: 50% !important; animation: lkecspin .8s linear infinite; }
@keyframes lkecspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lkec-spin { animation-duration: 2.4s; } }

.lkec-about { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--lkec-line); color: var(--lkec-muted); }
.lkec-about h2 { font-size: 1.2rem; color: var(--lkec-text); margin: 0 0 10px; font-weight: 800; }
.lkec-about ul { padding-left: 20px; margin: 0 0 12px; }
.lkec-about li { margin-bottom: 6px; }
.lkec-about strong { color: var(--lkec-text); }
.lkec-about a { color: var(--lkec-accent); font-weight: 600; }
.lkec-note { font-size: .85rem; }

/* ---------------- informe ---------------- */
.lkec-report { color: var(--lkec-text); font-size: 15px; line-height: 1.55; }
.lkec-score { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px 24px 26px; background: var(--lkec-bg); border: 1px solid var(--lkec-line); border-left: 6px solid var(--lkec-ok); overflow: hidden; }
.lkec-score.is-warn { border-left-color: var(--lkec-warn); }
.lkec-score.is-error { border-left-color: var(--lkec-err); }
.lkec-score-num { flex: none; display: flex; align-items: baseline; gap: 2px; color: var(--lkec-ok); }
.lkec-score.is-warn .lkec-score-num { color: var(--lkec-warn); }
.lkec-score.is-error .lkec-score-num { color: var(--lkec-err); }
.lkec-score-num strong { font-size: 3.4rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.lkec-score-num span { font-size: 1.1rem; font-weight: 700; opacity: .75; }
.lkec-score-icon strong { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; border: 3px solid currentColor; }
.lkec-score-txt { min-width: 0; }
.lkec-score-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lkec-muted); }
.lkec-score-txt h2 { margin: 2px 0 4px; font-size: 1.35rem; line-height: 1.25; font-weight: 800; color: var(--lkec-text); word-break: break-word; }
.lkec-score-txt p { margin: 0; color: var(--lkec-muted); word-break: break-word; }
.lkec-score-meta { font-size: .82rem; margin-top: 4px !important; }
.lkec-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--lkec-soft); }
.lkec-meter span { display: block; height: 100%; background: currentColor; color: var(--lkec-ok); }
.lkec-score.is-warn .lkec-meter span { color: var(--lkec-warn); }
.lkec-score.is-error .lkec-meter span { color: var(--lkec-err); }

.lkec-todo { margin-top: 14px; padding: 18px 22px; background: var(--lkec-bg); border: 1px solid var(--lkec-line); }
.lkec-todo h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; color: var(--lkec-text); }
.lkec-todo ol { margin: 0; padding-left: 22px; }
.lkec-todo li { margin: 0 0 8px; padding-left: 4px; }
.lkec-todo li::marker { font-weight: 800; color: var(--lkec-warn); }
.lkec-todo li.is-error::marker { color: var(--lkec-err); }
.lkec-todo-sec { display: inline-block; margin-right: 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lkec-muted); }

.lkec-sec { margin-top: 10px; background: var(--lkec-bg); border: 1px solid var(--lkec-line); }
.lkec-sec > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: center; padding: 14px 18px; }
.lkec-sec > summary::-webkit-details-marker { display: none; }
.lkec-sec > summary::after { content: "+"; grid-column: 4; font-weight: 700; color: var(--lkec-muted); }
.lkec-sec[open] > summary::after { content: "–"; }
.lkec-sec-t { font-weight: 800; font-size: 1.02rem; color: var(--lkec-text); }
.lkec-sec-sum { color: var(--lkec-muted); font-size: .93rem; min-width: 0; }
.lkec-sec-body { padding: 2px 18px 18px; border-top: 1px solid var(--lkec-line); }
.lkec-pill { display: inline-block; padding: 2px 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; border: 1px solid currentColor; }
.lkec-pill.is-ok { color: var(--lkec-ok); }
.lkec-pill.is-warn { color: var(--lkec-warn); }
.lkec-pill.is-error { color: var(--lkec-err); }
.lkec-pill.is-info { color: var(--lkec-info); }

.lkec-rows { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--lkec-line); }
.lkec-rows > div { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--lkec-line); min-width: 0; }
.lkec-rows dt { font-size: .8rem; font-weight: 700; color: var(--lkec-muted); word-break: break-all; }
.lkec-rows dd { margin: 0; word-break: break-word; }
.lkec-rec { margin: 14px 0 0; padding: 12px 14px; background: var(--lkec-soft); border: 1px solid var(--lkec-line); color: var(--lkec-text); font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }
.lkec-raw { max-height: 420px; }
.lkec-notes { list-style: none; margin: 14px 0 0; padding: 0; }
.lkec-notes li { position: relative; padding: 8px 12px 8px 30px; margin-bottom: 6px; background: var(--lkec-soft); border-left: 3px solid var(--lkec-info); }
.lkec-notes li::before { position: absolute; left: 10px; top: 8px; font-weight: 800; content: "i"; color: var(--lkec-info); }
.lkec-notes li.is-warn { border-left-color: var(--lkec-warn); }
.lkec-notes li.is-warn::before { content: "!"; color: var(--lkec-warn); }
.lkec-notes li.is-error { border-left-color: var(--lkec-err); }
.lkec-notes li.is-error::before { content: "✕"; color: var(--lkec-err); }

.lkec-bl { margin-top: 14px; }
.lkec-bl h4 { margin: 0 0 8px; font-size: .98rem; font-weight: 800; color: var(--lkec-text); }
.lkec-bl h4 span { font-weight: 600; color: var(--lkec-muted); font-size: .88rem; margin-left: 6px; }
.lkec-bl-hit { list-style: none; margin: 0 0 10px; padding: 0; }
.lkec-bl-hit li { padding: 8px 12px; margin-bottom: 6px; border-left: 3px solid var(--lkec-err); background: color-mix(in srgb, var(--lkec-err) 8%, transparent); }
.lkec-bl-hit a { color: var(--lkec-accent); font-weight: 600; white-space: nowrap; }
.lkec-bl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 1px solid var(--lkec-line); border-left: 1px solid var(--lkec-line); }
.lkec-bl-grid li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: .86rem; border-right: 1px solid var(--lkec-line); border-bottom: 1px solid var(--lkec-line); }
.lkec-bl-grid b { font-weight: 700; white-space: nowrap; }
.lkec-bl-grid .is-ok b { color: var(--lkec-ok); }
.lkec-bl-grid .is-bad { background: color-mix(in srgb, var(--lkec-err) 8%, transparent); }
.lkec-bl-grid .is-bad b { color: var(--lkec-err); }
.lkec-bl-grid .is-na b { color: var(--lkec-muted); font-weight: 600; }

.lkec-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: .88rem; }
.lkec-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--lkec-muted); padding: 6px 8px; border-bottom: 1px solid var(--lkec-line); }
.lkec-table td { padding: 7px 8px; border-bottom: 1px solid var(--lkec-line); vertical-align: top; }
.lkec-table td:first-child { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lkec-table code { font-size: .8rem; background: none; padding: 0; color: var(--lkec-text); }
.lkec-sa .is-bad td:first-child { color: var(--lkec-err); }
.lkec-sa .is-good td:first-child { color: var(--lkec-ok); }
.lkec-foot { margin: 14px 0 0; font-size: .82rem; color: var(--lkec-muted); }

@media (max-width: 860px) {
  .lkec-tools { grid-template-columns: repeat(3, 1fr); }
  .lkec-tools a:nth-child(3) { border-right: 0; }
  .lkec-tools a:nth-child(-n+3) { border-bottom: 1px solid var(--lkec-line); }
  .lkec-tools a.is-active { border-bottom: 3px solid var(--lkec-cta); }
  .lkec-steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .lkec-tools { grid-template-columns: repeat(2, 1fr); }
  .lkec-tools a { border-right: 1px solid var(--lkec-line) !important; border-bottom: 1px solid var(--lkec-line); }
  .lkec-tools a:nth-child(2n) { border-right: 0 !important; }
  .lkec-panel { padding: 16px; }
  .lkec-btn { width: 100%; }
  .lkec-score { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
  .lkec-rows { grid-template-columns: 1fr; }
  .lkec-sec > summary { grid-template-columns: 1fr auto; }
  .lkec-sec-sum { grid-column: 1 / -1; }
  .lkec-sec > summary::after { grid-column: 2; grid-row: 1; justify-self: end; }
  .lkec-sec > summary .lkec-pill { grid-row: 1; grid-column: 1; justify-self: end; margin-right: 22px; }
  .lkec-steps > li { padding-left: 46px; }
}
