/* =========================================================
   CY Solutions Group S.A.S — hoja de estilos principal
   Colores y tipografía alineados con el logo y el portafolio
   ========================================================= */

:root {
  --red: #E1252F;
  --red-strong: #B3161F;
  --red-soft: #FDECEC;
  --ink: #1D2026;
  --text: #2E323A;
  --muted: #646a74;
  --line: #E2E4E8;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --surface: #FFFFFF;
  --dark: #1D2026;
  --dark-text: #E9EBEE;
  --ring-fill: #FFFFFF;

  --serif: "Libre Caslon Text", "Century Schoolbook", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #FF4A53;
    --red-strong: #FF6E75;
    --red-soft: #3A1C1F;
    --ink: #F2F3F5;
    --text: #D6D9DE;
    --muted: #9AA0AA;
    --line: #30343C;
    --bg: #15171B;
    --bg-alt: #1B1E23;
    --surface: #20242A;
    --dark: #0F1114;
    --ring-fill: #15171B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #FF4A53; --red-strong: #FF6E75; --red-soft: #3A1C1F;
  --ink: #F2F3F5; --text: #D6D9DE; --muted: #9AA0AA; --line: #30343C;
  --bg: #15171B; --bg-alt: #1B1E23; --surface: #20242A; --dark: #0F1114;
  --ring-fill: #15171B; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-strong); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
/* Barra roja vertical de los títulos: la misma que usan los volantes de la marca */
.section-head h2 { border-left: 6px solid var(--red); padding-left: .7em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 1rem/1 var(--sans);
  padding: .95rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-strong); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand-text strong { color: var(--red); font-size: 1.25rem; letter-spacing: .01em; }
.brand-text span { color: var(--muted); font-size: .92rem; margin-top: .2rem; letter-spacing: .04em; }

.logo-mark line { stroke: var(--red); }
.logo-mark .dot { fill: var(--red); }
.logo-mark .ring { fill: var(--ring-fill); stroke: var(--red); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .btn { padding: .7rem 1.1rem; color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.hero-tag { color: var(--red); font-weight: 600; font-size: 1.02rem; margin-bottom: 1rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.topology { width: 100%; height: auto; }
.topology .link { stroke: var(--line); stroke-width: 2.5; fill: none; }
.topology .link--sec { stroke: var(--red); }
.topology .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.topology .node--fw rect { stroke: var(--red); stroke-width: 2; }
.topology .node text { font-family: var(--sans); font-size: 15px; fill: var(--ink); font-weight: 500; }
.topology .node .sub { font-size: 12.5px; fill: var(--muted); font-weight: 400; }
.topology .node .ico { stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topology .packet { fill: var(--red); }
.topology .caption { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .topology .packet { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}

/* ---------- Credenciales ---------- */
.creds { border-block: 1px solid var(--line); background: var(--bg-alt); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds li { padding: 1.5rem 1.25rem; border-left: 1px solid var(--line); }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 1.15rem; }
.creds span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .creds ul { grid-template-columns: 1fr 1fr; }
  .creds li { padding: 1.1rem 1rem; border-left: 0; border-top: 1px solid var(--line); }
  .creds li:nth-child(-n+2) { border-top: 0; }
  .creds li:nth-child(odd) { padding-left: 0; }
}

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-text p { max-width: 62ch; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.why li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.why .ico { width: 48px; height: 48px; border-radius: var(--radius); background: var(--red); display: grid; place-items: center; }
.why .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 1.15rem; margin-bottom: .2em; }
.why p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Explorador de servicios (pestañas) ---------- */
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.svc-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-alt); }
.svc-tab {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: center;
  padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-weight: 500; color: var(--text); font-size: 1rem;
  border-left: 4px solid transparent;
}
.svc-tab:last-child { border-bottom: 0; }
.svc-tab svg { width: 30px; height: 30px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-tab:hover { color: var(--red); }
.svc-tab[aria-selected="true"] { background: var(--surface); border-left-color: var(--red); color: var(--ink); }
.svc-tab[aria-selected="true"] svg { stroke: var(--red); }
.svc-tab:focus-visible { outline-offset: -3px; }

.svc-panel { padding: clamp(1.5rem, 4vw, 2.75rem); }
.svc-panel[hidden] { display: none; }
.svc-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-panel > p { font-size: 1.125rem; max-width: 58ch; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.svc-cols h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 .75rem; }
.svc-cols ul { margin: 0; padding: 0; list-style: none; }
.svc-cols li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.svc-cols .acts li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 2px; background: var(--red); }
.svc-cols .bens li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 7px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}
.svc-note { margin-top: 1.75rem; font-size: .98rem; color: var(--muted); }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .svc-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; min-width: 132px; font-size: .9rem; padding: 1rem .75rem; border-left: 0; border-bottom: 4px solid transparent; border-right: 1px solid var(--line); }
  .svc-tab:last-child { border-bottom: 4px solid transparent; }
  .svc-tab[aria-selected="true"] { border-bottom-color: var(--red); }
  .svc-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Seguridad electrónica ---------- */
.esec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.esec article { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.esec article:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.esec svg { width: 40px; height: 40px; stroke: var(--red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.esec h3 { font-size: 1.2rem; }
.esec p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .esec { grid-template-columns: 1fr 1fr; }
  .esec article, .esec article:not(:nth-child(3n+1)) { padding: 1.5rem 1.25rem 1.5rem 0; border-left: 0; }
  .esec article:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .esec { grid-template-columns: 1fr; }
  .esec article:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Proceso (secuencia real) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); background: var(--bg);
  display: grid; place-items: center; font-weight: 600; font-family: var(--sans);
}
.steps li::after { content: ""; position: absolute; top: 1.2rem; left: 2.9rem; right: -1.5rem; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps li { padding: 0 0 0 3.6rem; }
  .steps li::after { top: 2.6rem; bottom: -1.5rem; left: 1.15rem; right: auto; width: 2px; height: auto; }
}

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.person { display: grid; grid-template-columns: 150px 1fr; gap: 1.75rem; align-items: start; }
.person img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--red); }
.person h3 { margin-bottom: .15em; }
.person .role { color: var(--red); font-weight: 500; margin-bottom: .75rem; }
.person p { color: var(--muted); font-size: 1rem; }
.badge { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--red); background: var(--red-soft); padding: .3rem .65rem; border-radius: 4px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person img { width: 120px; height: 120px; } }

/* ---------- Clientes y aliados ---------- */
.partners-group + .partners-group { margin-top: 2.75rem; }
.partners-group h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.logos { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: 220px; height: 120px; display: grid; place-items: center; padding: 1rem 1.25rem; }
.logos img { max-height: 88px; width: auto; object-fit: contain; }

/* ---------- Blog (tarjetas de artículos) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-item { display: flex; flex-direction: column; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.post-item .meta { display: flex; gap: .75rem; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.post-item .cat { color: var(--red); font-weight: 600; }
.post-item h3 { font-size: 1.3rem; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--red); }
.post-item p { color: var(--muted); font-size: 1rem; }
.post-item .more { margin-top: auto; font-weight: 500; }
.posts-empty { color: var(--muted); }
.blog-foot { margin-top: 2.5rem; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; gap: 2.25rem; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font: 500 .95rem var(--sans); padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.channels { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.channels li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.channels .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; }
.channels .ico svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.channels small { display: block; color: var(--muted); font-size: .88rem; }
.channels a { color: var(--ink); text-decoration: none; font-weight: 500; word-break: break-word; }
.channels a:hover { color: var(--red); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.hp { position: absolute; left: -5000px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: .3rem; accent-color: var(--red); }
.form .btn { margin-top: 1.25rem; width: 100%; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.ok { color: #1E8E4E; }
.form-status.err { color: var(--red); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand-text strong { color: #FF4A53; }
.site-footer .brand-text span { color: #A9AEB6; }
.site-footer .logo-mark .ring { fill: var(--dark); stroke: #FF4A53; }
.site-footer .logo-mark line { stroke: #FF4A53; }
.site-footer .logo-mark .dot { fill: #FF4A53; }
.site-footer h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer p { color: #A9AEB6; font-size: .95rem; max-width: 40ch; margin-top: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #343941; font-size: .88rem; color: #8D939C; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* =========================================================
   Páginas del blog y artículos
   ========================================================= */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

.article { padding: clamp(2.5rem, 6vw, 4rem) 0 5rem; }
.article .wrap { max-width: 760px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.article header .meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.article header .cat { color: var(--red); font-weight: 600; }
.article h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.65rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .35em; border-radius: 4px; }
.prose pre {
  font-family: var(--mono); font-size: .9rem; line-height: 1.6;
  background: #1D2026; color: #E6E8EB; padding: 1.25rem 1.4rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1.25rem 0 1.75rem;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose .code-label { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: -.75rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.callout { border-left: 4px solid var(--red); background: var(--red-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; }
.callout p:last-child { margin: 0; }
.article-cta { margin-top: 3.5rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.article-cta h2 { font-size: 1.4rem; margin-top: 0; }

.diagram { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram text { font-family: var(--sans); fill: var(--ink); font-size: 14px; }
.diagram .sub { fill: var(--muted); font-size: 12px; }
.diagram rect { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.5; }
.diagram .fw { stroke: var(--red); stroke-width: 2; }
.diagram line, .diagram path { stroke: var(--muted); stroke-width: 2; fill: none; }
.diagram .trunk { stroke: var(--red); stroke-width: 3; }

@media (max-width: 560px) {
  .logos li { width: calc(50% - .5rem); height: 100px; padding: .75rem; }
  .logos img { max-height: 72px; }
  .topology .node .sub { display: none; }
  .topology .node text { font-size: 17px; }
}

.person-ico { width: 150px; height: 150px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--red); border: 4px solid var(--surface); }
.person-ico svg { width: 64px; height: 64px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .person-ico { width: 120px; height: 120px; } }

/* ---------- Equipo: cifras y flujo de trabajo ---------- */
.team-stats { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.team-stats li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0; padding: 1.25rem 1.25rem 1.4rem; }
.team-stats span { display: block; color: var(--muted); font-size: .95rem; margin-bottom: .35rem; }
.team-stats strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 1.35rem; line-height: 1.25; }

.flow-title { font-size: 1.35rem; margin-bottom: 1.5rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.25rem; position: relative; }
.flow-node {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.35rem; transition: border-color .4s, box-shadow .4s;
}
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: -2.25rem; top: 3.1rem; width: 2.25rem; height: 2px;
  background: var(--line);
}
.flow-node + .flow-node::after {
  content: ""; position: absolute; left: -.75rem; top: calc(3.1rem - 5px); width: 8px; height: 8px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg);
}
.flow-node.is-active { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.flow-node.is-passed + .flow-node::before, .flow-node.is-active::before { background: var(--red); }
.flow-ico { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; margin-bottom: 1rem; background: var(--bg); }
.flow-node.is-active .flow-ico { background: var(--red); }
.flow-ico svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-node.is-active .flow-ico svg { stroke: #fff; }
.flow-node h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 0 0 .5rem; }
.flow-node p { color: var(--muted); font-size: .98rem; margin: 0; }

.tech { margin: 2.5rem 0 0; color: var(--text); }
.tech span { color: var(--muted); margin-right: .4rem; }

@media (max-width: 900px) {
  .team-stats { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .flow-node + .flow-node::before { left: 2.85rem; top: -1.75rem; width: 2px; height: 1.75rem; }
  .flow-node + .flow-node::after { left: calc(2.85rem - 4px); top: -.65rem; transform: rotate(135deg); }
}
@media (max-width: 560px) { .team-stats strong { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .flow-node, .flow-ico { transition: none; } }
.flow-node.is-passed + .flow-node::after, .flow-node.is-active::after { border-color: var(--red); }
.logos .logo-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .2rem; }
.logo-text strong { font-family: var(--serif); color: #203665; font-size: 1.05rem; line-height: 1.2; }
.logo-text span { color: #5a6478; font-size: .85rem; }
