/* ============================================================
   SecureHex · Home redesign (warm / editorial / human)
   Scoped to the home: new rx- components + a few overrides of
   the shared header/footer. Loaded AFTER styles.css on the home.
   ============================================================ */
:root {
  --paper: #ffffff;
  --paper-2: #f2f7fd;
  --card: #ffffff;
  --ink: #12213b;
  --ink-soft: #55637a;
  --clay: #0b57d0;
  --clay-deep: #083f9c;
  --clay-soft: #e5eefb;
  --line: rgba(18, 33, 59, 0.12);
  --line-2: rgba(18, 33, 59, 0.22);
  --ink-dark: #0b1830;
  --navy: #0b1830;
  --navy-2: #122a52;
  --blue-bright: #4f9bff;
  --serif: "Sora", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --wrap: min(1120px, calc(100% - 3rem));
}

/* ---- base ---- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
::selection { background: var(--clay); color: #fff; }
html { scrollbar-color: var(--clay) var(--paper-2); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
a { color: var(--clay-deep); }

/* ---- shared header / footer, warmed ---- */
.site-header {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover, .site-nav a.is-current { color: var(--ink); }
.site-nav a::after { background: var(--clay); }
.brand span { color: var(--ink); }
.brand small { color: var(--ink-soft); }
.header-cta .button.button-primary,
.button.button-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
}
.button.button-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.button.button-secondary {
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
}
.button.button-secondary:hover { border-color: var(--ink); background: transparent; }
.site-footer { background: var(--ink-dark); }

/* ============================================================
   HERO
   ============================================================ */
.rx-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(130% 100% at 82% 12%, rgba(79, 155, 255, 0.24), transparent 55%),
    linear-gradient(160deg, #0b1830 0%, #102449 58%, #0b1830 100%);
}
.rx-hero-wrap {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5.5rem);
}
.rx-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.rx-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 15ch;
}
.rx-hero h1 em { font-style: normal; color: var(--blue-bright); }
.rx-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(232, 240, 253, 0.78);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.rx-hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.rx-signature {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  color: rgba(232, 240, 253, 0.72);
  max-width: 46ch;
}
.rx-signature strong { color: #fff; font-weight: 700; }

/* shield visual */
.rx-shield { justify-self: center; width: 100%; max-width: 540px; }
.rx-shield img {
  width: 100%; height: auto; display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 70px rgba(5, 14, 30, 0.55);
}

/* botones sobre el hero oscuro */
.rx-hero .button.button-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.rx-hero .button.button-secondary:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* trust strip (honest: métodos y estándares, no clientes falsos) */
.rx-trust { background: #0b1830; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rx-trust-wrap { width: var(--wrap); margin: 0 auto; padding: 1.5rem 0 2.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.8rem; }
.rx-trust-label { color: rgba(232, 240, 253, 0.55); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.rx-trust-items { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rx-trust-items span {
  color: #e9f0fc; font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0.4rem 0.95rem;
}

/* ============================================================
   SERVICES — editorial index (no card wall)
   ============================================================ */
.rx-section { width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.rx-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 3rem;
  margin-bottom: 2.8rem;
}
.rx-head h2 {
  flex: 1 1 380px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
}
.rx-head p { flex: 1 1 340px; color: var(--ink-soft); line-height: 1.6; max-width: 48ch; margin: 0; }
.rx-faq .rx-head h2 { max-width: none; }

.rx-index { border-top: 1px solid var(--line); }
.rx-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, background 180ms ease;
}
.rx-row:hover { transform: translateX(10px); background: linear-gradient(90deg, var(--clay-soft), transparent 70%); }
.rx-row-n {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.rx-row-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.rx-row-body p { color: var(--ink-soft); margin: 0; line-height: 1.55; max-width: 60ch; }
.rx-row-go {
  color: var(--clay);
  font-weight: 600;
  font-size: 1.4rem;
  transition: transform 180ms ease;
  align-self: center;
}
.rx-row:hover .rx-row-go { transform: translateX(5px); }

/* ============================================================
   APPROACH — warm vertical sequence
   ============================================================ */
.rx-approach { background: var(--paper-2); border-block: 1px solid var(--line); }
.rx-steps { display: grid; gap: 0; max-width: 760px; }
.rx-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.rx-step:first-child { border-top: 0; }
.rx-step-n {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--clay);
  font-weight: 500;
}
.rx-step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.4rem; }
.rx-step p { color: var(--ink-soft); margin: 0; line-height: 1.6; max-width: 56ch; }

/* ============================================================
   WHY — statements
   ============================================================ */
.rx-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.rx-why-item { border-top: 2px solid var(--clay); padding-top: 1.1rem; }
.rx-why-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 0 0 0.5rem; }
.rx-why-item p { color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.rx-faq { max-width: 820px; }
.rx-faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.rx-faq summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary::after { content: "+"; color: var(--clay); font-size: 1.5rem; line-height: 1; }
.rx-faq details[open] summary::after { content: "–"; }
.rx-faq details p { color: var(--ink-soft); line-height: 1.65; margin: 0.9rem 0 0; max-width: 64ch; }
.rx-faq a { color: var(--clay-deep); }

/* ============================================================
   CTA
   ============================================================ */
.rx-cta-band { background: var(--ink-dark); color: #fff; }
.rx-cta-wrap { width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: end; }
.rx-cta-wrap h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.015em; }
.rx-cta-wrap p { color: rgba(246, 239, 226, 0.72); line-height: 1.6; margin: 0; max-width: 50ch; }
.rx-cta-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.rx-cta-band .button.button-secondary { color: var(--paper); border-color: rgba(246, 239, 226, 0.3); }
.rx-cta-band .button.button-secondary:hover { border-color: var(--paper); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .rx-hero-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .rx-emblem { max-width: 300px; order: -1; justify-self: start; }
  .rx-why-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .rx-cta-wrap { grid-template-columns: 1fr; align-items: start; }
  .rx-row { grid-template-columns: auto 1fr auto; gap: 1rem; }
}

/* ============================================================
   SKELETON v2 — feature-rich (referencias: Hackmetrix / Redicom)
   ============================================================ */

/* Franja-statement entre hero y features */
.rx-statement { background: var(--paper); }
.rx-statement-wrap { width: var(--wrap); margin: 0 auto; padding: clamp(3rem,6vw,5rem) 0; max-width: 940px; }
.rx-statement p { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem,1.1rem+1.8vw,2.4rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.rx-statement p b { color: var(--clay); font-weight: 700; }

/* Filas zigzag */
.rx-feature { width: var(--wrap); margin: 0 auto; padding: clamp(3rem,6vw,5.5rem) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; border-top: 1px solid var(--line); }
.rx-feature--rev .rx-feature-copy { order: 2; }
.rx-feature-copy h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem,1.2rem+1.8vw,2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--ink); }
.rx-feature-copy > p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1.4rem; font-size: 1.05rem; }
.rx-checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.7rem; }
.rx-checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: var(--ink); line-height: 1.5; }
.rx-checks svg { width: 22px; height: 22px; color: var(--clay); margin-top: 1px; }
.rx-link { color: var(--clay); font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.rx-link:hover { gap: 0.7rem; }

/* Mockup realista (reporte / terminal) */
.rx-mock { background: var(--navy); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(11,24,48,0.25); border: 1px solid rgba(255,255,255,0.06); }
.rx-mock-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); }
.rx-mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.rx-mock-bar i:nth-child(1){ background:#ff5f57 } .rx-mock-bar i:nth-child(2){ background:#febc2e } .rx-mock-bar i:nth-child(3){ background:#28c840 }
.rx-mock-bar span { margin-left: 0.6rem; color: rgba(232,240,253,0.55); font-size: 0.82rem; font-family: ui-monospace, Menlo, monospace; }
.rx-mock-body { padding: 1.1rem; display: grid; gap: 0.8rem; }
.rx-finding { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.85rem 1rem; }
.rx-finding-top { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.4rem; }
.rx-sev { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.2rem 0.55rem; border-radius: 6px; color: #fff; }
.rx-sev.crit { background: #d33d3d } .rx-sev.high { background: #e07a1f } .rx-sev.med { background: #c99a12 }
.rx-finding-top strong { color: #fff; font-size: 0.98rem; font-family: ui-monospace, Menlo, monospace; }
.rx-finding p { color: rgba(232,240,253,0.7); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.rx-finding code { color: var(--blue-bright); font-family: ui-monospace, Menlo, monospace; }

/* Grid de servicios con íconos */
.rx-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.rx-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: inherit; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; display: flex; flex-direction: column; gap: 0.6rem; }
.rx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,24,48,0.10); border-color: var(--clay); }
.rx-card-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--clay-soft); color: var(--clay); display: grid; place-items: center; }
.rx-card-ico svg { width: 24px; height: 24px; }
.rx-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0.2rem 0 0; color: var(--ink); }
.rx-card p { color: var(--ink-soft); line-height: 1.55; margin: 0; font-size: 0.95rem; flex: 1; }
.rx-card-go { color: var(--clay); font-weight: 700; font-size: 0.9rem; }

/* Timeline horizontal */
.rx-timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; counter-reset: step; }
.rx-tl { position: relative; padding-top: 2.6rem; }
.rx-tl::before { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--clay); width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; }
.rx-tl::after { content: ""; position: absolute; top: 1rem; left: 2.4rem; right: -1.5rem; height: 2px; background: var(--line); }
.rx-tl:last-child::after { display: none; }
.rx-tl h3 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--ink); }
.rx-tl p { color: var(--ink-soft); line-height: 1.55; margin: 0; font-size: 0.93rem; }

/* Banda de credibilidad (oscura, honesta) */
.rx-cred { background: var(--navy); color: #fff; }
.rx-cred-wrap { width: var(--wrap); margin: 0 auto; padding: clamp(3rem,6vw,5rem) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.rx-cred h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem,1.2rem+1.6vw,2.3rem); line-height: 1.12; margin: 0 0 1rem; color: #fff; }
.rx-cred p { color: rgba(232,240,253,0.75); line-height: 1.65; margin: 0 0 1.2rem; }
.rx-cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.rx-cred-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; color: #fff; align-items: start; }
.rx-cred-list svg { width: 22px; height: 22px; color: var(--blue-bright); margin-top: 1px; }
.rx-cred-list strong { font-weight: 700; } .rx-cred-list span { color: rgba(232,240,253,0.7); }

@media (max-width: 900px) {
  .rx-feature { grid-template-columns: 1fr; gap: 2rem; }
  .rx-feature--rev .rx-feature-copy { order: 0; }
  .rx-cards { grid-template-columns: 1fr; }
  .rx-timeline { grid-template-columns: 1fr; gap: 1.6rem; }
  .rx-tl { padding-top: 0; padding-left: 3rem; }
  .rx-tl::after { display: none; }
  .rx-cred-wrap { grid-template-columns: 1fr; }
}

/* Terminal del hero (sin foto, sustancia real) */
.rx-term { width: 100%; max-width: 540px; justify-self: center; background: #0a1526; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(5,14,30,0.55); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.rx-term-body { padding: 1.15rem 1.25rem; display: grid; gap: 0.5rem; font-size: 0.92rem; line-height: 1.5; }
.rx-term-body p { margin: 0; color: #cdd9ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-term .pr { color: var(--blue-bright); }
.rx-term .dim { color: rgba(205,217,236,0.5); }
.rx-term .crit { color: #ff6b6b; font-weight: 700; }
.rx-term .high { color: #ffa64d; font-weight: 700; }
.rx-term .med { color: #ffd84d; font-weight: 700; }
.rx-term .cur { color: var(--blue-bright); animation: rxblink 1.1s steps(2) infinite; }
@keyframes rxblink { 50% { opacity: 0; } }

/* Páginas de servicio/landing sin imagen stock: hero y summary a una columna */
.service-hero-grid, .service-summary-grid { grid-template-columns: 1fr !important; }
.service-hero-copy, .service-summary { max-width: 880px; }
