/* Server Watch. Static site, no external resources. */

/* Noto Sans y Noto Sans Mono servidas desde la propia web (licencia OFL, ver fonts/OFL.txt), para que todos los
   visitantes vean la misma letra. Solo hay normal y negrita: los grosores 500 usan la normal y 600-900 la negrita,
   igual que hace el navegador con la Noto Sans instalada en el sistema. */
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-400.woff2") format("woff2"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-700.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-400-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans Mono"; src: url("fonts/noto-sans-mono-400.woff2") format("woff2"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Mono"; src: url("fonts/noto-sans-mono-700.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }


:root {
  --brand: #ff851b;
  --brand-strong: #e86f00;
  --brand-soft: rgba(255, 133, 27, 0.12);
  --bg: #ffffff;
  --bg-alt: #f6f5f3;
  --surface: #ffffff;
  --border: #e4e1dc;
  --text: #16130f;
  --text-muted: #5d5850;
  --code-bg: #14110e;
  --code-text: #ece6dd;
  --code-dim: #9a9086;
  --ok: #2f9e5b;
  --alert: #d9472b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 16, 10, 0.06), 0 8px 24px rgba(20, 16, 10, 0.06);
  --maxw: 1120px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d0b;
    --bg-alt: #17140f;
    --surface: #1c1813;
    --border: #2e2820;
    --text: #f3eee7;
    --text-muted: #b3aa9e;
    --brand-soft: rgba(255, 133, 27, 0.16);
    --code-bg: #0a0907;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f0d0b;
  --bg-alt: #17140f;
  --surface: #1c1813;
  --border: #2e2820;
  --text: #f3eee7;
  --text-muted: #b3aa9e;
  --brand-soft: rgba(255, 133, 27, 0.16);
  --code-bg: #0a0907;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-strong); }
/* :where() deja estas reglas con la prioridad de un simple «a», para que el menú y el logo conserven su color. */
:where(:root[data-theme="dark"]) a, :where(.on-dark) a { color: var(--brand); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) a { color: var(--brand); } }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: 0.08em; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-size: 1.05rem; }
.logo small { font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); font-size: 0.8rem; margin-left: 2px; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--brand-strong); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 8px 0 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 500; }
/* El menú completo necesita unos 1100 px con el botón de tema y el de idioma; por debajo, menú desplegable. */
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #1a0e02 !important; }
.btn-primary:hover { background: #ff9536; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--brand-soft), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; position: relative; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 4px rgba(217, 71, 43, 0.2); }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: 0.9rem; color: var(--text-muted); }

/* Terminal card */
.terminal {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); border: 1px solid #2b241c; overflow: hidden;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.65;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #2b241c; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3128; display: block; }
.terminal-bar span { margin-left: 8px; color: var(--code-dim); font-size: 0.75rem; }
.terminal pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; white-space: pre; }
.t-dim { color: var(--code-dim); }
.t-alert { color: #ff7a5c; font-weight: 700; }
.t-brand { color: var(--brand); font-weight: 700; }
.t-ok { color: #6fd39a; }
.t-key { color: #e9c58c; }
.caption { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; text-align: right; }

/* Sections */
section { padding: 80px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 10px; display: block; }

/* Stats strip */
.stats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; margin-bottom: 6px; }
.stat span { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem; color: var(--brand-strong);
  display: block; margin-bottom: 14px;
}
.step p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* Watch grid */
.watch { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .watch { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .watch { grid-template-columns: repeat(3, 1fr); } }
.watch-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.watch-item svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.watch-item strong { display: block; font-size: 0.98rem; }
.watch-item span { display: block; color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }

/* Split: report + safety */
.split { display: grid; gap: 40px; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; }
.checklist svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--ok); margin-top: 2px; }
.checklist strong { display: block; }
.checklist span { color: var(--text-muted); font-size: 0.96rem; }

/* Pricing */
.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #1a0e02; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--text-muted); font-size: 0.93rem; min-height: 3em; }
.price { margin: 14px 0 18px; }
.price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--text-muted); font-size: 0.95rem; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 0.95rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.pay-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.banner {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--alert); border-radius: 12px; padding: 20px 22px;
}
.banner p { margin: 0; }
.banner strong { display: block; font-size: 1.05rem; }
.banner span { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand-strong); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* Contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info p { color: var(--text-muted); }
.contact-info a { font-weight: 700; }
form.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
label { font-size: 0.88rem; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: 0.9rem; color: var(--text-muted); }
.foot { display: grid; gap: 18px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr auto; align-items: center; } }
.foot a { color: var(--text-muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Checkout dialog */
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 28px; max-width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 8, 6, 0.55); }
dialog h3 { margin-bottom: 8px; }
dialog p { color: var(--text-muted); }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Legal page */
.legal { padding: 56px 0 80px; max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.draft { background: var(--brand-soft); border: 1px dashed var(--brand); border-radius: 12px; padding: 14px 18px; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
.spaced { margin-top: 48px; }

/* Grid children must be allowed to shrink below their content width (the terminal <pre>). */
.hero-grid > *, .duo > *, .split > *, .contact > *, .plans > *, .steps > *, .watch > *, .stats > * { min-width: 0; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem !important; font-weight: 800 !important;
  letter-spacing: 0.06em; color: var(--text) !important; text-decoration: none;
}
.lang-switch:hover { border-color: var(--brand); }
.nav-mobile-tools { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1100px) { .nav-mobile-tools { display: none; } }

/* Sources line */
.sources { font-size: 0.85rem; color: var(--text-muted); margin: 14px 0 0; }

/* Automated vs human */
.duo { display: grid; gap: 18px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.4fr 1fr; } }
.duo-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 24px; }
.duo-card.human { border-top-color: var(--ok); }
.duo-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.duo-card li { padding-left: 26px; position: relative; }
.duo-card li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.duo-card.human li::before { background: var(--ok); }

/* Componentes para las webs corporativas: tarjetas de servicios, rejilla de cuatro y resaltado en títulos */
h2 em { font-style: normal; color: var(--brand); }
.watch.four { grid-template-columns: 1fr; }
@media (min-width: 640px) { .watch.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .watch.four { grid-template-columns: repeat(4, 1fr); } }
.offers { display: grid; gap: 18px; }
@media (min-width: 900px) { .offers.two { grid-template-columns: repeat(2, 1fr); } .offers.three { grid-template-columns: repeat(3, 1fr); } }
.offers > * { min-width: 0; }
.offer { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.offer h3 { font-size: 1.3rem; margin-bottom: 8px; }
.offer > p { color: var(--text-muted); font-size: 0.97rem; }
.offer ul { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; }
.offer li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.offer .btn { align-self: flex-start; }
.contact-lines { display: grid; gap: 4px; }
.terminal.compact { font-size: 0.74rem; }
.contact-lines .wa { display: inline-flex; align-items: center; gap: 6px; }
.contact-lines .wa svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Botón de tema: luna en tema claro (pasa a oscuro), sol en tema oscuro (pasa a claro) */
.theme-toggle { flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
