/*
 * Inxpector — portal público.
 * Paleta Grafito, tomada de los mismos valores que usa el panel de la
 * organización (backend/resources/css/app.css, html[data-theme='graphite'])
 * para que el producto se presente con el tema con el que se ve.
 */

:root {
    --canvas: #191c20;
    --surface: #22262c;
    --surface-raised: #2a3037;
    --surface-muted: #2b3138;
    --surface-hover: #2d343c;
    --text: #eef1f5;
    --text-secondary: #c6cdd6;
    --text-muted: #a4b0be;
    --border: #3c454f;
    --border-strong: #697887;
    --accent: #a6c9bf;
    --accent-hover: #c4e0d7;
    --accent-soft: #2b403b;
    --accent-text: #b5dcd0;
    --on-accent: #142c25;
    --focus: #b5dcd0;
    --warning-bg: #443a28;
    --warning-text: #efd096;
    --warning-border: #71603d;
    --danger-bg: #472d30;
    --danger-text: #f3b4b0;
    --danger-border: #77474c;
    --shadow: 0 2px 5px #00000024;
    --shadow-large: 0 20px 65px #00000040;
    --radius: 16px;
    --radius-small: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { font-family: var(--font); font-size: 16px; background: var(--canvas); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-text); }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; background: var(--surface-raised); padding: 12px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-small); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- cabecera ---------- */

header.site {
    position: sticky; top: 0; z-index: 30;
    background: #191c20e6; backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site .bar { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.3px; }
.mark {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(140deg, #b5dcd0, #4e8f81 60%, #2b403b);
    box-shadow: 0 6px 18px #00000059, inset 0 0 0 1px #ffffff26;
    position: relative;
}
.mark::after {
    content: ""; position: absolute; inset: 9px; border-radius: 50%;
    border: 2px solid #142c2580; border-right-color: transparent; border-bottom-color: transparent;
    transform: rotate(35deg);
}
nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a { padding: 9px 13px; border-radius: 999px; color: var(--text-secondary); font-size: 14.5px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--surface-muted); color: var(--text); }

/* ---------- botones ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15.5px; transition: background .16s, border-color .16s, transform .16s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--border-strong); color: var(--text); background: #ffffff08; }
.btn.ghost:hover { background: #ffffff12; border-color: var(--accent); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn .sub { font-weight: 450; color: #142c25b3; font-size: 13px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 78px 0 66px; border-bottom: 1px solid var(--border); }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(circle, #a6c9bf26, transparent 62%); pointer-events: none;
}
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(33px, 4.4vw, 51px); line-height: 1.1; letter-spacing: -1.6px; font-weight: 660; margin-top: 16px; }
.hero .lede { font-size: 18.5px; color: var(--text-secondary); margin-top: 20px; max-width: 54ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.facts div { min-width: 130px; }
.facts b { display: block; font-size: 21px; letter-spacing: -.5px; }
.facts span { font-size: 13.5px; color: var(--text-muted); }

/* ---------- teléfono ilustrado ---------- */

figure.stage { margin: 0; display: grid; justify-items: center; gap: 14px; }
.phone {
    width: 292px; padding: 14px; border-radius: 38px;
    background: linear-gradient(160deg, #2f363e, #1b1f24);
    box-shadow: var(--shadow-large), inset 0 0 0 1px #ffffff14;
}
.screen { background: #12151a; border-radius: 26px; padding: 16px 14px 20px; display: grid; gap: 11px; }
.screen .bar-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; }
.field { background: #1c2127; border: 1px solid #2d343c; border-radius: 12px; padding: 10px 12px; }
.field b { display: block; font-size: 12.5px; font-weight: 600; }
.field i { display: block; height: 7px; border-radius: 4px; background: #39424c; margin-top: 8px; }
.field i.short { width: 55%; }
.photo-row { display: flex; gap: 8px; }
.photo-row span { flex: 1; height: 52px; border-radius: 11px; background: linear-gradient(150deg, #33403c, #1f2a2b); border: 1px solid #2d343c; }
.step-pill { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--text-muted); }
.step-pill b { width: 17px; height: 17px; border-radius: 50%; background: #262c33; display: grid; place-items: center; font-size: 10px; }
.step-pill b.on { background: var(--accent); color: var(--on-accent); }
figcaption { font-size: 12.5px; color: var(--text-muted); text-align: center; max-width: 34ch; }

/* ---------- secciones ---------- */

section.band { padding: 72px 0; border-bottom: 1px solid var(--border); }
section.band:nth-of-type(even) { background: #1d2126; }
.kicker { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
h2 { font-size: clamp(24px, 2.9vw, 33px); letter-spacing: -1px; line-height: 1.2; margin-top: 10px; }
.section-lede { color: var(--text-secondary); margin-top: 14px; max-width: 62ch; font-size: 16.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 14.8px; }
.card .glyph { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 19px; margin-bottom: 15px; }

ol.steps { display: grid; gap: 14px; margin-top: 34px; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 15px; color: var(--accent-text); font-weight: 600; }
ol.steps b { display: block; font-size: 16px; }
ol.steps p { color: var(--text-secondary); font-size: 14.8px; margin-top: 4px; }

/* ---------- listas de límites ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 34px; }
.panel-box { border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); background: var(--surface); }
.panel-box.warn { background: var(--warning-bg); border-color: var(--warning-border); }
.panel-box.stop { background: var(--danger-bg); border-color: var(--danger-border); }
.panel-box h3 { font-size: 17px; margin-bottom: 12px; }
.panel-box ul { display: grid; gap: 9px; }
.panel-box li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14.8px; color: var(--text-secondary); }
.panel-box li::before { content: "—"; color: var(--text-muted); }
.panel-box.stop li::before { content: "×"; color: var(--danger-text); font-weight: 700; }
.panel-box.warn li::before { content: "!"; color: var(--warning-text); font-weight: 700; }

/* ---------- usos y ejemplos de formularios ---------- */

.card .who { font-size: 13px; color: var(--accent-text); letter-spacing: .01em; margin-bottom: 8px; }
.q-list { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.q-list li { font-size: 13.6px; color: var(--text-muted); display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.q-list li::before { content: "?"; color: var(--accent); font-weight: 700; }

.form-card { display: flex; flex-direction: column; }
.forms { display: grid; gap: 18px; margin-top: 34px; }
.form-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.form-card header .who { margin-bottom: 0; }
ol.q-form { display: grid; gap: 2px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); list-style: none; counter-reset: none; }
ol.q-form li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed #333b44; }
ol.q-form li:last-child { border-bottom: 0; }
ol.q-form .n { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); }
ol.q-form .q { font-size: 13.8px; color: var(--text-secondary); }
ol.q-form .req { display: inline-block; font-style: normal; font-size: 10.5px; color: var(--warning-text); border: 1px solid var(--warning-border); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
ol.q-form .opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
ol.q-form .opts i { font-style: normal; font-size: 11.8px; color: var(--text-muted); background: #1b1f24; border: 1px solid var(--border); border-radius: 7px; padding: 2px 8px; }
.q-type { font-family: var(--mono); font-size: 11px; color: var(--accent-text); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.chips span { font-family: var(--mono); font-size: 12.5px; color: var(--text-secondary); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 13px; }
.chips span.accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

/* ---------- descarga ---------- */

.download-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 26px; align-items: center; background: linear-gradient(150deg, #262b31, #1e2227); border: 1px solid var(--border-strong); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-large); margin-top: 34px; }
.download-card .size { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }
dl.specs { display: grid; grid-template-columns: minmax(140px, auto) minmax(0, 1fr); gap: 0; margin: 0; font-size: 14.5px; }
dl.specs dt { color: var(--text-muted); padding: 9px 18px 9px 0; border-top: 1px solid var(--border); }
dl.specs dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
dl.specs dt:first-of-type, dl.specs dd:first-of-type { border-top: 0; }
.copy { display: inline-flex; gap: 8px; align-items: center; background: none; border: 1px solid var(--border-strong); color: var(--text-secondary); border-radius: 8px; padding: 3px 9px; font-size: 12px; }
.copy:hover { border-color: var(--accent); color: var(--text); }
code.inline { font-family: var(--mono); font-size: 13px; background: #12161a; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
pre.block { background: #12161a; border: 1px solid var(--border); border-radius: var(--radius-small); padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; color: var(--text-secondary); }

.notice { border-left: 3px solid var(--accent); background: var(--surface-muted); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 16px 18px; font-size: 14.8px; color: var(--text-secondary); margin-top: 22px; }
.notice.warn { border-left-color: var(--warning-text); background: var(--warning-bg); color: var(--warning-text); }

/* ---------- pie ---------- */

footer.site { padding: 54px 0 40px; color: var(--text-muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
footer.site h3 { color: var(--text); font-size: 14.5px; margin-bottom: 10px; }
footer.site a:hover { color: var(--accent-text); }
footer.site .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero .grid, .download-card { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 52px 0; }
    figure.stage { order: -1; }
    section.band { padding: 56px 0; }
}
@media (max-width: 560px) {
    html { font-size: 15.5px; }
    .wrap, .narrow { width: calc(100% - 34px); }
    .site .bar { height: auto; padding: 12px 0; flex-wrap: wrap; }
    nav.main { width: 100%; margin-left: 0; }
    dl.specs { grid-template-columns: minmax(0, 1fr); }
    dl.specs dt { padding-bottom: 0; }
    .card { padding: 18px; }
    ol.q-form li { grid-template-columns: 20px minmax(0, 1fr); }
    ol.q-form .q-type { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
