/* ============================================================
   SecureHex · Service + landing pages on the home's rx- system.
   Loaded after styles.css and home.css. Palette = institutional only.
   ============================================================ */

/* Hero: navy gradient (the home's photo background is home-only) */
.rx-hero.svc-hero {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(79, 155, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #0b1830 0%, #122a52 60%, #0b1830 100%);
}
.svc-hero .rx-hero-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); padding-top: clamp(2.2rem, 5vw, 4rem); }
.svc-hero h1 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); max-width: 22ch; text-wrap: balance; }
.svc-hero .rx-lead { max-width: 54ch; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem); }
.svc-hero .rx-eyebrow { margin-bottom: 0.9rem; }
.svc-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; font-size: 0.88rem; color: rgba(232, 240, 253, 0.6); }
.svc-crumbs a { color: rgba(232, 240, 253, 0.85); text-decoration: none; }
.svc-crumbs a:hover { color: #fff; text-decoration: underline; }
.svc-crumbs [aria-current] { color: #fff; font-weight: 600; }
.svc-hero .button { min-height: 48px; }

/* Illustration: navy frame keeps the layout intact even if the image fails */
.svc-visual {
  margin: 0;
  aspect-ratio: 1536 / 1020;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(79, 155, 255, 0.18), transparent 70%),
    #0b1830;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(5, 14, 30, 0.55);
}
.svc-visual img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; }

/* Section kicker (replaces the old .section-label) */
.svc-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}
.svc .rx-head h2 { max-width: 24ch; }
.svc .rx-head p { max-width: 52ch; }

/* Problem / benefits pair */
.svc-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.svc-col h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--ink); }
.svc-col > p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1.3rem; }
.svc-col .rx-checks { margin: 0; }
.svc-detail + .svc-feature, .svc-detail { border-top: 0; }

/* Cards grid (includes, scenarios, what it solves) */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.svc-grid--2, .svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--clay);
  border-radius: 4px 4px 14px 14px;
  padding: clamp(1.3rem, 2.5vw, 1.7rem);
}
.svc-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.6rem; color: var(--ink); }
.svc-card p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 0.8rem; }
.svc-card p:last-child, .svc-card .rx-checks { margin-bottom: 0; }
.svc-card .rx-checks { gap: 0.5rem; font-size: 0.95rem; }
.svc-card .rx-checks svg { width: 18px; height: 18px; }

/* 3-step timeline */
.rx-timeline.svc-tl3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.rx-timeline.svc-tl3 .rx-tl::after { right: -2rem; }

/* Related pages: rows with arrow */
.svc-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.svc-rel:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-rel-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: start;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.svc-rel-card:hover, .svc-rel-card:focus-visible { border-color: var(--clay); background: var(--paper-2); }
.svc-rel-ico { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 10px; background: var(--clay-soft); color: var(--clay); display: grid; place-items: center; }
.svc-rel-ico svg { width: 24px; height: 24px; }
.svc-rel-card h3 { grid-column: 2; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: 0.1rem 0 0; color: var(--ink); }
.svc-rel-card p { grid-column: 2; color: var(--ink-soft); line-height: 1.55; margin: 0; font-size: 0.95rem; }
.svc-rel-go { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; color: var(--clay); transition: transform 200ms ease; }
.svc-rel-card:hover .svc-rel-go { transform: translateX(4px); }

/* "Ruta especializada" band */
.svc-route { background: var(--clay-soft); border-block: 1px solid var(--line); }
.svc-route-wrap { width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) 0; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 3rem; align-items: center; }
.svc-route h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6rem; color: var(--ink); }
.svc-route p:not(.svc-kicker) { color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 60ch; }
.svc-route-links { display: grid; gap: 0.8rem; }
.svc-route .rx-link, .svc-cta-links .rx-link { min-height: 44px; }

/* Final CTA extras */
.svc-cta-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.6rem; }
.rx-cta-band .svc-cta-links .rx-link { color: #fff; }
.rx-cta-band .svc-cta-links .rx-link svg { color: var(--blue-bright); }

.svc .rx-faq .rx-head p { color: var(--ink-soft); margin-top: 0.8rem; }

@media (max-width: 900px) {
  .svc-hero .rx-hero-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .svc-visual { max-width: 560px; }
  .svc-detail-grid, .svc-route-wrap { grid-template-columns: 1fr; }
  .svc-grid, .svc-grid--2, .svc-grid--4, .svc-rel, .svc-rel:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  .rx-timeline.svc-tl3 { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .svc-grid, .svc-grid--4, .svc-rel:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .svc-hero .rx-hero-actions .button { width: 100%; justify-content: center; }
}

/* spacing + tap targets */
.svc-detail { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.svc .rx-chips span { min-height: 44px; }
.svc .rx-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }

/* Enlace secundario bajo una grilla (p. ej. al informe de ejemplo) */
.svc-more { margin: 1.6rem 0 0; color: var(--ink-soft); }

/* Inline links inside the "Siguiente paso" band copy */
.svc-route p a { color: var(--clay); font-weight: 600; text-underline-offset: 3px; }
.svc-route p a:hover { color: var(--clay-deep); }

/* ============================================================
   "Qué recibes": deliverables list + illustrative document panel
   ============================================================ */
.svc-deliver { border-top: 1px solid var(--line); }
.svc-deliver-grid { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; isolation: isolate; }
.svc-deliver-copy h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--ink); max-width: 18ch; text-wrap: balance; }
.svc-deliver-lead { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1.6rem; max-width: 46ch; }
.svc-deliver-copy .rx-checks { margin: 0; gap: 1rem; }
.svc-deliver-copy .rx-checks span { color: var(--ink-soft); line-height: 1.55; }
.svc-deliver-copy .rx-checks strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.svc-deliver-copy .rx-link { margin-top: 1.6rem; min-height: 44px; }

/* Document-style panel (same visual language as the pentest report card) */
.svc-panel {
  margin: 0;
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.1rem, 2.5vw, 1.7rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(18, 33, 59, 0.04), 0 40px 80px -30px rgba(11, 24, 48, 0.35);
}
.svc-panel::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: 16px; background: var(--clay-soft); }
.svc-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.svc-panel-title { font-family: var(--serif); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.svc-panel-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 6px; padding: 0.2rem 0.5rem; white-space: nowrap; }
.svc-panel-meta { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.svc-panel-label { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.svc-panel-note { font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); padding-top: 0.9rem; border-top: 1px solid var(--line); }
.svc-panel code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; color: var(--clay-deep); overflow-wrap: anywhere; }

.svc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.svc-table th, .svc-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem 0.65rem 0; border-top: 1px solid var(--line); }
.svc-table th:last-child, .svc-table td:last-child { padding-right: 0; }
.svc-table thead th { border-top: 0; padding-top: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.svc-table tbody th { font-weight: 600; color: var(--ink); }
.svc-table td { color: var(--ink-soft); }
.svc-table .rx-sev { display: inline-block; min-width: 4.6rem; text-align: center; }

/* Status chips: always carry text, colour is reinforcement only */
.svc-chip { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid currentColor; font-size: 0.78rem; font-weight: 700; line-height: 1.4; color: var(--ink-soft); background: var(--paper-2); }
.svc-chip.is-bad { color: #b42318; background: rgba(211, 61, 61, 0.08); }
.svc-chip.is-warn { color: #7a5c0a; background: #fbf3dc; }
.svc-chip.is-ok { color: #10704f; background: #e7f5ef; }
.svc-chip.is-info { color: var(--clay-deep); background: var(--clay-soft); }

/* Ordered lists inside the panel: next steps, roadmap phases, agenda */
.svc-panel-list { list-style: none; margin: 0; padding: 0; display: grid; }
.svc-panel-list > li { padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.svc-panel-list > li:first-child { border-top: 0; padding-top: 0; }
.svc-panel-list > li:last-child { padding-bottom: 0; }
.svc-panel-list b { font-weight: 600; color: var(--ink); }
.svc-next { counter-reset: nx; }
.svc-next > li { counter-increment: nx; position: relative; padding: 0.55rem 0 0.55rem 1.9rem; color: var(--ink); }
.svc-next > li:first-child { padding-left: 1.9rem; }
.svc-next > li::before { content: counter(nx); position: absolute; left: 0; font-family: var(--serif); font-weight: 700; color: var(--clay); font-variant-numeric: tabular-nums; }
.svc-phases > li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.4rem 1.2rem; }
.svc-phases h3, .svc-agenda h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--ink); }
.svc-phases ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.svc-phases ul li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.3rem 0.8rem; color: var(--ink); }
.svc-agenda > li { display: grid; gap: 0.45rem; }
.svc-agenda-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.svc-agenda p { margin: 0; }

@media (max-width: 900px) {
  .svc-deliver-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-deliver-copy h2 { max-width: 22ch; }
}
@media (max-width: 560px) {
  .svc-panel::before { inset: 6px -6px -6px 6px; }
  /* Tables stack: one block per row, each cell labelled from data-label */
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; }
  .svc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .svc-table tr { padding: 0.8rem 0; border-top: 1px solid var(--line); }
  .svc-table tbody tr:first-child { border-top: 0; padding-top: 0; }
  .svc-table tbody tr:last-child { padding-bottom: 0; }
  .svc-table th, .svc-table td { border: 0; padding: 0; }
  .svc-table td { position: relative; padding-left: 6.2rem; margin-top: 0.45rem; min-height: 1.3rem; }
  .svc-table td::before { content: attr(data-label); position: absolute; left: 0; top: 0; width: 5.7rem; line-height: 1.3; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
  .svc-phases > li { grid-template-columns: minmax(0, 1fr); }
}
.svc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
