/* =====================================================================
   AdoptAI — Entregable de Hallazgos (Fase 0)
   Contexto visual: "Documento informativo" (paper-3, stamp shadows,
   Recoleta/Raleway, cinco hues de marca, negro en los contornos).
   See DESIGN_SYSTEM.md.
   ===================================================================== */
@import url("https://adoptai.lat/brand/fonts.css");

:root {
  --ink: #0B1524;
  --paper: #ffffff;
  --paper-2: #FAF9F6;
  --paper-3: #F3F1EC;
  --sky: #0D7EC0;
  --grass: #2A915E;
  --marigold: #E7B904;
  --clay: #F76A1B;
  --blossom: #FCB0B1;
  --blossom-soft: #FEECEC;
  --muted: #5A6170;
  --muted-2: #8A8F99;
  --rule: #D8D5CC;
  --font-d: "Recoleta", "Fraunces", Georgia, serif;
  --font-b: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;
  --stamp: 0 3px 0 0 var(--ink);
  --stamp-sm: 0 2px 0 0 var(--ink);
  --accent: var(--clay);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--paper-3);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* ===== Top nav ===== */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 12px 28px;
  background: rgba(243,241,236,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1.5px solid var(--ink);
  overflow-x: auto;
}
.topnav .nav-logo { height: 26px; width: auto; margin-right: 16px; flex: 0 0 auto; }
.topnav a {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); text-decoration: none;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: #fff; color: var(--ink); }
.topnav a.active { background: var(--ink); color: #fff; }
.topnav .nav-spacer { flex: 1; }
.topnav .nav-ref { flex: 0 0 auto; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; padding-right: 6px; }

/* ===== Sample flag ===== */
.sample-flag {
  max-width: 1080px; margin: 14px auto 0; padding: 9px 18px;
  background: var(--blossom-soft); border: 1.5px solid var(--ink);
  border-radius: 10px; box-shadow: var(--stamp-sm);
  font-size: 12.5px; color: var(--ink); display: flex; gap: 10px; align-items: center;
}
.sample-flag b { font-weight: 700; }
.sample-flag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); flex: 0 0 auto; }

/* ===== Layout ===== */
main { max-width: 1080px; margin: 0 auto; padding: 0 28px 80px; }
section { padding: 52px 0 8px; scroll-margin-top: 78px; }
section + section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--font-b); font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow .num { font-family: var(--font-d); font-weight: 900; font-size: 15px; color: var(--ink); }
.sec-title { font-family: var(--font-d); font-weight: 700; font-size: 30px; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 8px; }
.sec-underline { width: 56px; height: 3.5px; background: var(--accent); margin: 4px 0 18px; border-radius: 2px; }
.sec-lead { font-size: 16px; color: var(--muted); max-width: 760px; line-height: 1.6; margin-bottom: 24px; font-weight: 300; }
.sec-lead strong { color: var(--ink); font-weight: 600; }

/* ===== Cover / hero ===== */
.cover { padding: 56px 0 40px; }
.cover .kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.cover h1 { font-family: var(--font-d); font-weight: 900; font-size: 52px; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 16px; }
.cover .cover-sub { font-size: 19px; color: var(--muted); max-width: 680px; line-height: 1.5; font-weight: 300; margin-bottom: 30px; }
.cover-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.cover-meta > div { padding: 16px 18px 16px 0; border-right: 1px solid var(--rule); }
.cover-meta > div:last-child { border-right: none; }
.cover-meta .ml { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 6px; }
.cover-meta .mv { font-size: 14.5px; font-weight: 600; }
.cover-brandbar { display: flex; height: 6px; margin-top: 20px; border-radius: 3px; overflow: hidden; }
.cover-brandbar span { flex: 1; }

/* ===== Generic cards ===== */
.card { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 22px; box-shadow: var(--stamp); }
.card-soft { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.split-wide { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }

/* ===== Stat cards (resumen) ===== */
.stat { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px 20px; box-shadow: var(--stamp); }
.stat .sv { font-family: var(--font-d); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.stat .sl { font-size: 13px; font-weight: 600; margin-top: 6px; }
.stat .sd { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ===== Callout ===== */
.callout { background: var(--ink); color: #fff; border-radius: 12px; padding: 22px 24px; border-left: 5px solid var(--accent); }
.callout .co-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.callout p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.9); }
.callout strong { color: #fff; }

/* ===== Method: two columns ===== */
.method-col h4 { font-family: var(--font-d); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.method-col .mc-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.tick { list-style: none; }
.tick li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; margin-bottom: 9px; }
.tick li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 2px; background: var(--accent); }

/* ===== Process map (stepper) ===== */
.pmap { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; padding: 26px 22px; }
.pmap-track { display: flex; gap: 0; align-items: stretch; overflow-x: auto; padding-bottom: 6px; }
.pstep { flex: 1 0 0; min-width: 150px; position: relative; padding: 0 8px; }
.pstep:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 14px; color: var(--muted-2); font-size: 16px; z-index: 2; }
.pstep .pnum { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 900; font-size: 14px; margin-bottom: 10px; }
.pstep.flag .pnum { background: var(--ink); color: #fff; border-color: var(--ink); }
.pstep .ptitle { font-weight: 700; font-size: 13.5px; line-height: 1.2; margin-bottom: 4px; }
.pstep .pmeta { font-size: 11px; color: var(--muted); line-height: 1.35; margin-bottom: 8px; }
.pstep .pflag { display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1.3; padding: 4px 8px; border-radius: 7px; border: 1.5px solid var(--ink); box-shadow: var(--stamp-sm); margin-top: 2px; }
.pflag.sev-alta { background: var(--blossom-soft); }
.pflag.sev-media { background: #FFF7E0; }
.pflag.sev-baja { background: #EAF6EF; }
.pmap-legend { display: flex; gap: 18px; margin-top: 18px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.pmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pmap-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ink); display: inline-block; }

/* ===== Findings table (severidad) ===== */
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--stamp); }
.ftable th { text-align: left; padding: 12px 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.ftable td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }
.ftable tr:last-child td { border-bottom: none; }
.ftable .f-title { font-weight: 700; }
.ftable .f-desc { color: var(--muted); font-size: 13px; margin-top: 3px; }
.sev-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1.5px solid var(--ink); white-space: nowrap; }
.sev-pill.alta { background: var(--clay); color: #fff; }
.sev-pill.media { background: var(--marigold); color: var(--ink); }
.sev-pill.baja { background: var(--grass); color: #fff; }

/* ===== Dashboard ===== */
.dash { background: var(--ink); border-radius: 16px; padding: 26px; color: #fff; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.dash-head .dh-title { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.dash-head .dh-sub { font-size: 11.5px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 16px; }
.kpi .kv { font-family: var(--font-d); font-weight: 900; font-size: 26px; line-height: 1; }
.kpi .kl { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 6px; line-height: 1.3; }
.kpi .kt { font-size: 10.5px; font-weight: 700; margin-top: 6px; }
.kpi .kt.up { color: var(--grass); }
.kpi .kt.down { color: var(--blossom); }
.dash-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 16px 18px; }
.panel .pn-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 12px; letter-spacing: .02em; }
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar .bl { font-size: 11.5px; color: rgba(255,255,255,.7); min-width: 92px; }
.bar .bt { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.bar .bf { height: 100%; border-radius: 4px; }
.bar .bv { font-family: var(--font-d); font-weight: 700; font-size: 13px; min-width: 44px; text-align: right; }
.dash-note { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 14px; line-height: 1.5; }
.reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.reveal .rv { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px; box-shadow: var(--stamp); }
.reveal .rv .rv-eye { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.reveal .rv .rv-txt { font-size: 14px; line-height: 1.5; }
.reveal .rv .rv-txt strong { font-weight: 700; }

/* ===== Project mockup ===== */
.mock-frame { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--stamp); background: #fff; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.mock-bar .mb-url { font-size: 11px; color: var(--muted); margin-left: 8px; font-family: "SF Mono", ui-monospace, monospace; }
.mock-body { padding: 20px; display: grid; grid-template-columns: 168px 1fr; gap: 18px; }
.mock-side { border-right: 1px solid var(--rule); padding-right: 16px; }
.mock-side .ms-logo { font-family: var(--font-d); font-weight: 900; font-size: 16px; margin-bottom: 16px; }
.mock-side .ms-item { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; margin-bottom: 3px; }
.mock-side .ms-item.on { background: var(--ink); color: #fff; font-weight: 600; }
.mock-main .mm-row { display: grid; gap: 12px; }
.mock-card { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; background: #fff; }
.mock-card .mc-k { font-family: var(--font-d); font-weight: 900; font-size: 22px; line-height: 1; }
.mock-card .mc-l { font-size: 11px; color: var(--muted); margin-top: 5px; }
.mock-card .mc-l.accent { color: var(--accent); font-weight: 700; }
.mock-list { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.mock-list .mlh { display: grid; padding: 9px 14px; background: var(--paper-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.mock-list .mlr { display: grid; padding: 9px 14px; font-size: 12.5px; border-bottom: 1px solid var(--rule); align-items: center; }
.mock-list .mlr:last-child { border-bottom: none; }
.mbadge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; border: 1.5px solid var(--ink); }
.mbadge.ok { background: var(--grass); color: #fff; }
.mbadge.warn { background: var(--marigold); color: var(--ink); }
.mbadge.cold { background: var(--paper-2); color: var(--muted); }
.mock-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; font-style: italic; }

/* ===== Phased plan ===== */
.phase { display: grid; grid-template-columns: 1fr 188px; gap: 22px; border: 1.5px solid var(--ink); border-radius: 14px; padding: 22px 24px; background: #fff; box-shadow: var(--stamp); margin-bottom: 14px; }
.phase.hero { border-top: 6px solid var(--accent); background: linear-gradient(0deg, #fff, #fff); }
.phase.tentative { border-style: dashed; box-shadow: none; background: var(--paper-2); }
.phase .ph-eye { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.phase.tentative .ph-eye { color: var(--muted-2); }
.phase .ph-title { font-family: var(--font-d); font-weight: 700; font-size: 22px; line-height: 1.1; margin-bottom: 6px; }
.phase .ph-desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.phase .ph-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; }
.phase .ph-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.45; }
.phase .ph-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 1.5px; background: var(--accent); }
.phase.tentative .ph-list li::before { background: var(--muted-2); }
.phase .ph-meta { border-left: 1.5px solid var(--rule); padding-left: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.phase .ph-price { font-family: var(--font-d); font-weight: 900; font-size: 30px; line-height: 1; }
.phase .ph-dur { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phase .ph-tent { font-size: 12px; color: var(--muted); line-height: 1.4; }
.phase .ph-tent b { display: block; font-family: var(--font-d); font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.phase .ph-badge { display: inline-block; align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1.5px solid var(--ink); }
.phase .ph-badge.done { background: var(--grass); color: #fff; }
.phase .ph-badge.tent { background: var(--paper-2); color: var(--muted); }

/* ===== Detail CTA (derives to a full detail page) ===== */
.detail-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 18px; padding: 16px 22px;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 12px;
  box-shadow: var(--stamp); text-decoration: none; color: inherit;
  border-left: 5px solid var(--accent);
  transition: transform .12s, box-shadow .12s;
}
.detail-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 0 0 var(--ink); }
.detail-cta .dc-title { font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.15; }
.detail-cta .dc-sub { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.detail-cta .dc-arrow {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent); border: 1.5px solid var(--ink); border-radius: 9px;
  padding: 9px 15px; white-space: nowrap; box-shadow: var(--stamp-sm);
}
@media (max-width: 600px) { .detail-cta { flex-direction: column; align-items: flex-start; } }

/* ===== CTA close ===== */
.close { background: var(--ink); color: #fff; border-radius: 16px; padding: 40px; margin-top: 48px; text-align: center; }
.close h2 { font-family: var(--font-d); font-weight: 900; font-size: 32px; margin-bottom: 12px; }
.close p { font-size: 16px; color: rgba(255,255,255,.7); max-width: 620px; margin: 0 auto 22px; line-height: 1.55; }
.close .cta-price { display: inline-flex; gap: 12px; align-items: baseline; background: var(--accent); color: #fff; border-radius: 12px; padding: 14px 24px; font-family: var(--font-d); font-weight: 900; font-size: 24px; }
.close .cta-price small { font-family: var(--font-b); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* ===== Footer ===== */
.doc-footer { max-width: 1080px; margin: 0 auto; padding: 26px 28px 50px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }
.doc-footer img { height: 22px; width: auto; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cover h1 { font-size: 38px; }
  .cover-meta { grid-template-columns: 1fr 1fr; }
  .split, .split-wide, .g2, .g3, .g4, .dash-panels, .reveal, .kpi-row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
  .phase .ph-meta { border-left: none; border-top: 1.5px solid var(--rule); padding-left: 0; padding-top: 14px; }
  .phase .ph-list { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 12px; }
}
