/* Pulso Supply Chain · hoja de estilos del sitio
   Concepto: firma de expertos sobria; azul marino dominante, mucho aire y
   la ruta con nodos del logotipo como único motivo gráfico. */

@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-semibold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-bold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("../fonts/manrope-extrabold.woff2") format("woff2"); }

:root {
  --navy: #0B2447;
  --navy-deep: #081B36;
  --teal: #00A99D;
  --teal-dark: #00796F;
  --teal-light: #9FE0D9;
  --ink: #0B2447;
  --ink-soft: #4A5568;
  --line: #E6E9EC;
  --paper: #FFFFFF;
  --paper-soft: #F4F6F8;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C9D3E0;

  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);

  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 10px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--soft { background: var(--paper-soft); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); }
.section--navy .eyebrow { color: var(--teal-light); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.section-head p.eyebrow { color: var(--teal-dark); font-size: var(--step--1); }
.section--navy .section-head p.eyebrow { color: var(--teal-light); }
.section--navy .section-head p { color: var(--on-navy-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: 14px 24px; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--teal-dark); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.section--navy .btn--primary:hover, .hero .btn--primary:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Encabezado */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--teal-dark); }
.nav .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Portada */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 128px); position: relative; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero-lead { font-size: var(--step-1); color: var(--on-navy-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-note { font-size: var(--step--1); color: var(--on-navy-soft); }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; }

/* Síntomas */
.symptoms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.symptom { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.symptom p { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.node { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 4px solid var(--teal); background: var(--navy); flex: none; }
.cause { margin-top: 28px; padding: 22px 26px; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cause p { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); max-width: 44rem; }
.cause p span { color: var(--teal-light); }

/* Servicios */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.service { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; min-width: 0; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-num { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: #fff; background: var(--navy); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.chip { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--teal-dark); background: #E6F6F4; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.service h3 { font-size: 1.3rem; font-weight: 800; }
.service dl { margin: 0; display: grid; gap: 12px; }
.service dt { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.service dd { margin: 2px 0 0; font-size: .97rem; line-height: 1.5; }
.service dd.result { font-weight: 600; color: var(--teal-dark); }
.service--featured { border-color: var(--navy); box-shadow: 0 10px 30px rgba(11,36,71,.10); }
.service--featured .badge { position: absolute; top: -12px; left: 22px; background: var(--teal-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.ladder-note { margin-top: 22px; color: var(--ink-soft); }
.fronts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.fronts li { font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.glossary { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.glossary p { font-size: .95rem; color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--teal); }
.glossary b { color: var(--navy); font-family: var(--font-display); }

/* Método */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; list-style: none; }
.method::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 56px) / 3 - 25px); height: 4px; background: var(--teal); border-radius: 2px; }
.method li { position: relative; display: grid; gap: 12px; min-width: 0; }
.method .dot { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); border: 6px solid var(--paper); box-shadow: 0 0 0 4px var(--teal); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; position: relative; }
.method h3 { font-size: var(--step-2); font-weight: 800; }
.method p { color: var(--ink-soft); }
.tools { margin-top: 40px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--paper-soft); border-radius: var(--radius); }
.tools p { color: var(--ink); }

/* Caso */
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.case-meta span { font-size: .85rem; color: var(--teal-light); border: 1px solid rgba(159,224,217,.45); border-radius: 999px; padding: 3px 12px; }
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.case > div { background: var(--navy-deep); padding: 28px 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.case h3 { font-size: 1.15rem; font-weight: 800; color: var(--teal-light); }
.case p, .case li { color: var(--on-navy); font-size: .98rem; }
.case ul { list-style: none; display: grid; gap: 9px; }
.case li { padding-left: 18px; position: relative; }
.case li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.case-foot { margin-top: 22px; color: var(--on-navy-soft); font-size: var(--step--1); }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background: var(--paper-soft); border: 1px dashed #B8C2CE; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: .9rem; padding: 20px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.portrait .initials { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.about-copy { display: grid; gap: 18px; min-width: 0; }
.about-copy h2 { font-size: var(--step-3); font-weight: 800; }
.about-copy > p { font-size: 1.05rem; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 8px; list-style: none; }
.creds li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--paper-soft); border-radius: var(--radius); }
.creds b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.creds span { font-size: .93rem; color: var(--ink-soft); line-height: 1.45; }

/* Preguntas */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.07rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--teal-dark); border-bottom: 3px solid var(--teal-dark); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); display: grid; gap: 10px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: stretch; }
.contact-main { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.contact-main h2 { font-size: var(--step-3); font-weight: 800; }
.contact-main p { color: var(--on-navy-soft); }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: baseline; color: var(--on-navy); }
.steps-mini li::before { content: counter(s); font-family: var(--font-display); font-weight: 800; color: var(--navy); background: var(--teal-light); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }
.contact-data { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.contact-data dl { margin: 0; display: grid; gap: 16px; }
.contact-data dt { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-data dd { margin: 3px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.prep { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.prep h3 { font-size: 1.05rem; font-weight: 800; }
.prep ul { list-style: none; display: grid; gap: 8px; }
.prep li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-soft); font-size: .97rem; }
.prep li .node { width: 14px; height: 14px; border-width: 3px; margin-top: 5px; }
.contact-data dd a { color: var(--navy); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: 3px; }

/* Pie */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); padding-block: 48px 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin-top: 12px; font-size: .95rem; }
.site-footer h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); text-decoration: underline; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* Botón flotante (celular) */
.wa-float { display: none; position: fixed; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 70; background: var(--teal-dark); color: #fff; border-radius: 999px; padding: 13px 18px; box-shadow: 0 8px 24px rgba(8,27,54,.35); text-decoration: none; font-family: var(--font-display); font-weight: 700; align-items: center; gap: 8px; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { color: #fff; background: var(--navy); }

/* Páginas simples (privacidad, 404) */
.page { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 46rem; display: grid; gap: 16px; }
.prose h1 { font-size: var(--step-3); font-weight: 800; }
.prose h2 { font-size: var(--step-1); font-weight: 800; margin-top: 16px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .updated { color: var(--ink-soft); font-size: var(--step--1); }

/* Adaptación */
@media (max-width: 1060px) {
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .brand img { height: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 420px; }
  .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: 1fr; gap: 26px; }
  .method::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 4px; height: auto; }
  .method li { grid-template-columns: 50px 1fr; column-gap: 18px; }
  .method li h3, .method li p { grid-column: 2; }
  .method .dot { grid-row: 1 / span 2; }
  .case { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .wa-float { display: inline-flex; }
}
@media (max-width: 620px) {
  .symptoms, .ladder, .creds, .glossary { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cause { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
