/* =========================================================
   DFR Labs — Data Forensics & Recovery
   Hoja de estilos principal
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #070b14;
  --bg-alt: #0a1020;
  --surface: #0f1729;
  --surface-2: #141f36;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #e6edf7;
  --text-soft: #c3cede;
  --muted: #8b9ab1;

  --cyan: #22d3ee;
  --cyan-strong: #67e8f9;
  --cyan-dim: rgba(34, 211, 238, 0.1);
  --cyan-line: rgba(34, 211, 238, 0.35);

  --amber: #f5b14c;
  --amber-strong: #ffc978;
  --amber-dim: rgba(245, 177, 76, 0.1);
  --amber-line: rgba(245, 177, 76, 0.4);

  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.09);
  --red-line: rgba(248, 113, 113, 0.35);

  --green: #4ade80;
  --whatsapp: #25d366;

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 116px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1100px) {
  :root { --header-h: 76px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}

h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-strong); }

code, pre { font-family: var(--f-mono); }

ul, ol { margin: 0; padding: 0; list-style: none; }

blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.hl   { color: var(--cyan); }
.warn { color: var(--amber); }

/* Código en línea (DELETE, UPDATE, NULL…) */
p code,
li code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan-strong);
  font-size: 0.86em;
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--cyan); color: #04131a; }
.btn-primary:hover { background: var(--cyan-strong); color: #04131a; }

.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-amber { background: var(--amber); color: #1a1204; }
.btn-amber:hover { background: var(--amber-strong); color: #1a1204; }

.btn-whatsapp {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.1);
  color: #d7fbe5;
}
.btn-whatsapp:hover { border-color: var(--whatsapp); background: rgba(37, 211, 102, 0.18); color: #fff; }
.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--whatsapp);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.btn-sm { padding: 9px 16px; font-size: 0.875rem; }

/* ---------- Insignias y chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.badge-amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-dim); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--surface);
}
.chips .chip-on { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-dim); }
.chips-center { justify-content: center; }

.list-title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Lista con marcas de verificación */
.ticks li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--cyan-dim);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.brand-mark .lens { stroke: var(--amber); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-name span { color: var(--cyan); }
.brand-sub {
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.main-nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav ul {
  display: flex;
  gap: 4px;
  width: max-content;
  padding-right: 32px;
}

.main-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-cta { display: none; white-space: nowrap; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  .site-header .container { max-width: 1360px; }
  .header-inner { flex-wrap: nowrap; }
  .header-cta { display: none; }
  .main-nav {
    order: 0;
    width: auto;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .main-nav ul { padding-right: 0; gap: 2px; }
}

@media (min-width: 1280px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 65% at 70% 25%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 70% 25%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 680px;
  right: -200px;
  top: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

.hero-brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 14px;
}
.hero-brand span { color: var(--cyan); }

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-soft);
  background: rgba(15, 23, 41, 0.7);
  margin-bottom: 28px;
}
.eyebrow i { font-style: normal; color: var(--cyan); opacity: 0.7; }
@media (max-width: 479px) {
  .eyebrow { border-radius: 12px; }
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 28px;
}
.hero h1 span {
  display: block;
  color: var(--cyan);
}

.hero-questions {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-questions li {
  position: relative;
  padding-left: 30px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.hero-questions li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

/* Terminal ilustrativa */
.terminal {
  margin: 0;
  min-width: 0;
  background: #060a12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(34, 211, 238, 0.05),
    0 0 60px -10px rgba(34, 211, 238, 0.15);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #4ade80; }
.terminal-bar p {
  margin: 0 0 0 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  margin: 0;
  padding: 20px;
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (min-width: 480px) {
  .terminal-body { font-size: 0.85rem; padding: 24px; white-space: pre; }
}

.t-prompt { color: var(--cyan); }
.t-key    { color: var(--muted); }
.t-ok     { color: var(--green); }
.t-warn   { color: var(--amber); }
.t-hl {
  color: #04131a;
  background: var(--amber);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal figcaption {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Introducción bajo el hero */
.hero-intro {
  display: grid;
  gap: 20px 40px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(15, 23, 41, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-intro p { margin: 0; font-size: 1.02rem; }
@media (min-width: 900px) {
  .hero-intro { grid-template-columns: 1fr 1.4fr; }
  .hero-intro .hero-quote { grid-column: 1 / -1; }
}
.hero-quote {
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem) !important;
  font-weight: 500;
  line-height: 1.4;
  color: var(--amber) !important;
}

/* ---------- Secciones ---------- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 800px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.kicker-warn { color: var(--amber); }
.kicker-warn::before { display: none; }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-lead { font-size: 1.08rem; }

/* Callout */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  margin-top: 32px;
  padding: clamp(20px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius);
}
.callout p { flex: 1 1 320px; margin: 0; font-size: 1.02rem; }
.callout-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-weight: 600;
}

/* ---------- Soluciones ---------- */
.solution-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.solution-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.solution-nav a span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--cyan); }
.solution-nav a:hover { border-color: var(--cyan-line); color: var(--text); }

.solutions {
  display: grid;
  gap: 20px;
}

.solution {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.25s;
}
.solution:hover { border-color: var(--cyan-line); }
@media (min-width: 920px) {
  .solution { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

.solution-main { display: flex; flex-direction: column; align-items: flex-start; }
.solution-main .btn { margin-top: auto; }
.solution-main > p:nth-last-of-type(1) { margin-bottom: 28px; }

.solution-num {
  font-family: var(--f-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  margin-bottom: 18px;
}
.solution-en {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 8px;
}
.solution h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.solution-hook {
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text) !important;
}

.solution-list {
  padding: clamp(18px, 3vw, 26px);
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.solution-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  font-size: 0.92rem;
}

/* ---------- Problemas ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.problem {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red-line);
  border-radius: var(--radius);
}
.problem h3 { font-size: 1.15rem; margin-bottom: 10px; }
.problem p { font-size: 0.95rem; }

.problem-tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 0.78rem;
}

.problem-answer {
  position: relative;
  margin-top: auto !important;
  padding: 14px 0 0 26px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text) !important;
}
.problem-answer::before {
  content: "↳";
  position: absolute;
  left: 2px;
  top: 13px;
  color: var(--cyan);
  font-family: var(--f-mono);
}

/* ---------- Tecnología ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.tech {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.tech:hover { border-color: var(--cyan-line); transform: translateY(-3px); }
.tech h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tech p { font-size: 0.95rem; }

.tech-code {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-dim);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.tech-accent { border-color: var(--amber-line); }
.tech-accent .tech-code { border-color: var(--amber-line); background: var(--amber-dim); color: var(--amber); }

.statement {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--cyan-line);
  background:
    radial-gradient(ellipse at 0% 0%, var(--cyan-dim), transparent 60%),
    var(--surface);
}
@media (min-width: 900px) {
  .statement { grid-template-columns: 1.3fr 1fr; gap: 48px; }
}
.statement-text {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}
.statement-text strong { color: var(--cyan); }

/* Ficha de evidencia */
.evidence-card {
  overflow: hidden;
  background: #060a12;
  border: 1px solid var(--amber-line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.evidence-tape {
  margin: 0;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #1a1204 !important;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 18px, #e9a03a 18px 36px);
}
.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 6px;
}
.evidence-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.evidence-list { margin: 0; padding: 4px 20px; }
.evidence-list div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-strong);
}
.evidence-list dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.evidence-list dd {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.evidence-list dd.warn { color: var(--amber); }
.evidence-foot {
  margin: 0;
  padding: 12px 20px 16px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- SQL Server ---------- */
.sql-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .sql-layout { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

.expansion {
  margin-top: 32px;
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.expansion p:not(.list-title) { font-size: 0.95rem; }
.expansion .chips { margin-top: 16px; }

.sql-panel {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.file-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 520px) {
  .file-row { grid-template-columns: repeat(4, 1fr); }
}
.file-row li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px 18px 10px 10px;
  background: #060a12;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}
.file-row li::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-radius: 0 18px 0 6px;
  background: var(--border-strong);
}
.file-row span {
  font-family: var(--f-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cyan);
}

.area-grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 560px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}
.area-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-soft);
}
.area-grid li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--cyan);
}

/* ---------- Metodología ---------- */
.method {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 680px) {
  .method { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .method { grid-template-columns: repeat(3, 1fr); }
}

.method li {
  position: relative;
  counter-increment: step;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.method li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
}
.method li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: calc(var(--p, 1) * 100% / 6);
  background: linear-gradient(90deg, var(--cyan), var(--cyan-strong));
}
.method li:nth-child(1) { --p: 1; }
.method li:nth-child(2) { --p: 2; }
.method li:nth-child(3) { --p: 3; }
.method li:nth-child(4) { --p: 4; }
.method li:nth-child(5) { --p: 5; }
.method li:nth-child(6) { --p: 6; }

.method h3 { font-size: 1.2rem; margin-bottom: 6px; }
.method-tag {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--amber) !important;
  margin-bottom: 10px !important;
}
.method p:not(.method-tag) { font-size: 0.95rem; }

/* ---------- Seguridad ---------- */
.security-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .security-layout { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

.pull-quote {
  margin-top: 32px;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--cyan);
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.security-panel {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.principles { display: grid; gap: 10px; }
.principles li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.principles li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 9.5-4-1.2-7-5-7-9.5V6l7-3z' fill='none' stroke='%2322d3ee' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-4' fill='none' stroke='%2322d3ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--cyan-dim);
}

/* ---------- Sectores ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.sector {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.sector:hover { border-color: var(--cyan-line); }
.sector h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sector p { font-size: 0.95rem; }

.sector-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 12px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-line);
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Por qué DFR Labs ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  counter-reset: why;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.why {
  counter-increment: why;
  padding: 30px 28px;
  background: var(--bg-alt);
}
.why::before {
  content: counter(why, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
}
.why h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why p { font-size: 0.95rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 0.75fr 1.5fr; gap: 64px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-head h2 { margin-bottom: 24px; }

.faq-list { display: grid; gap: 10px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.faq-list details[open] { border-color: var(--cyan-line); }

.faq-list summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cyan);
  transition: transform 0.2s, background-color 0.2s;
}
.faq-list details[open] summary::after {
  content: "−";
  background: var(--cyan-dim);
  border-color: var(--cyan-line);
}
.faq-list summary:hover { color: var(--cyan-strong); }
.faq-list summary:focus-visible { outline-offset: -2px; border-radius: 12px; }

.faq-body {
  padding: 0 22px 20px;
  font-size: 0.96rem;
}
.faq-body p { margin-bottom: 0.7em; }

/* ---------- Atención de incidentes ---------- */
.incident {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(245, 177, 76, 0.08), transparent 70%),
    var(--bg-alt);
}

.incident-box {
  display: grid;
  gap: 32px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(245, 177, 76, 0.03) 0 14px, transparent 14px 28px),
    var(--surface);
}
@media (min-width: 920px) {
  .incident-box { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
}
.incident-copy .btn { margin-top: 12px; }

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.6); opacity: 1; }
  to   { transform: scale(1.8); opacity: 0; }
}

.incident-warning {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border-strong);
}
.incident-warning p { font-size: 0.97rem; }
.warning-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber) !important;
}
.warning-title span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--amber);
  color: #1a1204;
}
.donts {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--red-dim);
  border: 1px solid var(--red-line);
}
.donts strong { color: #fecaca; }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(245, 177, 76, 0.07), transparent 70%);
}
.contact-inner { max-width: 1060px; }
.contact .kicker::before { display: none; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.contact-lead {
  max-width: 40em;
  margin: 0 auto 36px;
  font-size: 1.08rem;
}

/* Perfil del especialista */
.profile {
  display: grid;
  gap: 28px;
  margin-bottom: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  text-align: left;
  background:
    radial-gradient(ellipse at 0% 0%, var(--cyan-dim), transparent 55%),
    var(--surface);
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 780px) {
  .profile { grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
}
@media (min-width: 1000px) {
  .profile { grid-template-columns: 340px 1fr; gap: 48px; }
}

/* La foto se muestra tal cual: sin recorte, filtros ni cambio de proporción */
.profile-photo {
  margin: 0;
  max-width: 360px;
  padding: 8px;
  background: #060a12;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}
@media (min-width: 780px) {
  .profile-photo { position: sticky; top: calc(var(--header-h) + 24px); }
}
.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-body h3 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-role {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--cyan) !important;
  margin-bottom: 20px !important;
}
.profile-role span { color: var(--muted); }

.profile-summary { font-size: 1.02rem; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  margin: 22px 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.profile-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: #0b1222;
}
.profile-stats strong {
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--cyan);
}
.profile-stats span { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }

.profile-points { display: grid; gap: 8px; margin-bottom: 20px; }
.profile-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.profile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
}

.profile .chips { margin-bottom: 10px; }
.profile .chips li { font-size: 0.74rem; padding: 4px 10px; }
.profile-lang { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px !important; }

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 22px;
  border-top: 1px dashed var(--border-strong);
}
.profile-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.profile-contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-contact:hover { color: var(--cyan-strong); }
.profile-link { font-size: 0.9rem; font-weight: 500; }
@media (max-width: 479px) {
  .profile-actions .btn { width: 100%; }
}

.contact-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -35px rgba(34, 211, 238, 0.35);
}
.contact-brand {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}
.contact-brand span { color: var(--cyan); }
.contact-card .chips { margin-bottom: 30px; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 479px) {
  .contact-actions .btn { width: 100%; }
}

.contact-note {
  max-width: 40em;
  margin: 28px auto 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Pie ---------- */
.site-footer {
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  background: #05080f;
}

.footer-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, 1fr);
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
  .footer-brand { grid-column: auto; }
}

.footer-logo {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.footer-logo span { color: var(--cyan); }
.footer-sub {
  margin: 2px 0 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-slogan {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 10px;
}
.footer-desc {
  max-width: 30em;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom p:last-child { font-family: var(--f-mono); font-size: 0.75rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
