/* ==========================================================
   FactorPyme para Avalistas — estilos propios de esta página.
   Usa styles.css (mismo diseño azul que el sitio principal) y
   suma los componentes de la presentación para SGR.
   ========================================================== */
.c-blue { color: var(--blue-text) !important; }
.c-orange { color: var(--brand-text) !important; }
.c-sky { color: #7CC0E4 !important; }
.muted { color: var(--text-faint); }
.foot-note { font-size: 13px; color: var(--text-faint); margin-top: 14px; }
.foot-note.on-dark { margin-top: 28px; }
.section-head.wide { max-width: 900px; }
.av-h2 { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; line-height: 1.1; }
.av-h1 { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; line-height: 1.06; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.split-copy { display: grid; gap: 20px; align-content: start; }
.split-copy .eyebrow { margin-bottom: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill-sky { background: rgba(124,192,228,.16); color: #7CC0E4; letter-spacing: .1em; }

/* Encabezado: un solo botón en el menú de celular */
.nav-cta-mobile.one { grid-template-columns: 1fr; }

/* ---------- Portada ---------- */
.av-hero-bg {
  background:
    linear-gradient(90deg, #0F1E2B 0%, rgba(15,30,43,.97) 45%, rgba(15,30,43,.6) 75%, rgba(15,30,43,.35) 100%),
    linear-gradient(0deg, #0F1E2B 0%, rgba(15,30,43,0) 30%),
    url(img/echeqs.jpg) right center / cover no-repeat;
}
.av-hero { position: relative; }
.av-hero h1 { max-width: 760px; }
.av-hero .lead { max-width: 640px; font-size: 20px; }
.av-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; max-width: 1000px; }
.pillar {
  display: grid; gap: 6px; align-content: start; padding: 20px 20px 22px; border-radius: 14px; text-decoration: none;
  background: rgba(28,45,59,.88); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  transition: transform .15s ease, border-color .15s ease;
}
.pillar:hover { transform: translateY(-2px); }
.pillar.blue { border-left-color: #7CC0E4; }
.pillar b { font-size: 19px; color: var(--text); }
.pillar span:last-child { font-size: 14px; color: var(--text-soft); line-height: 1.45; }
.pillar-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.pillar.blue .pillar-ic { background: rgba(124,192,228,.15); color: #7CC0E4; }

/* ---------- Ventana de la plataforma (mock) ---------- */
.win { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.navy .win:not(.paper) { box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #F1EADF; }
.navy .win:not(.paper) .win-bar { background: #172735; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9CFBF; }
.navy .win:not(.paper) .win-bar i { background: #3A5164; }
.win-bar span { font-size: 13px; color: var(--text-faint); margin-left: 8px; }
.win-body { padding: 20px 22px 22px; }
.win-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.win-title h3, .win-h { font-size: 19px; font-weight: 900; }
.win-title p { font-size: 13px; margin-top: 2px; }
.tag-blue { font-size: 12px; font-weight: 700; color: #fff; background: #477FA3; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.lines { display: grid; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }
.line .mono { color: var(--text); white-space: nowrap; }
.line.hl { background: var(--brand-soft); color: var(--brand-text); font-weight: 900; padding: 8px 12px; border-radius: 10px; border-bottom: 0; margin: 4px 0; }
.line.hl .mono { color: var(--brand-text); }
.total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #14202B; color: #B8C6D2; font-size: 14px; }
.total b { color: #F3F7FA; font-size: 19px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini { background: var(--card-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; font-size: 13px; }
.mini-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.line-s { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.line-s .mono { white-space: nowrap; }

/* Puntos con borde naranja (Monetización) */
.points { display: grid; gap: 14px; }
.points p { border-left: 4px solid var(--brand); padding-left: 16px; color: var(--text-soft); }
.points b { color: var(--text); }

/* ---------- Cadena de valor ---------- */
.av-cadena { background: linear-gradient(135deg, #0D1822, #17324A); }
.cadena-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.mail { background: #FFFDF9; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.mail-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #1E1915; font-size: 14px; }
.mail-top b { color: #F3EEE6; }
.mail-top span { color: #F28C45; font-weight: 700; }
.mail-body { background: #2A221C; padding: 16px 18px 20px; display: grid; gap: 10px; justify-items: start; }
.mail-img { width: 100%; height: 130px; border-radius: 10px; background: url(img/sector-mineria.jpg) center 35% / cover no-repeat; }
.mail-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #F28C45; }
.mail-title { font-size: 24px; font-weight: 900; line-height: 1.15; color: #fff; }
.mail-title span { color: #F28C45; }
.mail-text { font-size: 14px; color: #D9D0C8; }
.mail-btn { font-size: 14px; font-weight: 700; color: #14202B; background: #F28C45; padding: 8px 18px; border-radius: 8px; }
.mail-foot { font-size: 12px; color: #6B7782; padding: 8px 18px 10px; }
.cadena-right { display: grid; gap: 16px; }
.card-light { background: #FFFDF9; color: #14202B; border-radius: 18px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.card-light-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-light-head h3 { font-size: 18px; font-weight: 900; }
.card-light-head .muted { font-size: 13px; color: #6B7782; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--card-soft); font-size: 13px; color: var(--text-soft); }
.kpi b { font-size: 22px; font-weight: 900; color: var(--text); }
.card-light .kpi { background: #F7F1E7; color: #4B5864; }
.card-light .kpi b { color: #14202B; }
.card-light .kpi.blue { background: #EAF2F7; }
.card-light .kpi.blue b { color: #2F6485; }
.card-light .c-orange { color: #B4510E !important; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.card-light .chips-row { margin-top: 0; }
.chips-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B7782; }
.chip { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #F1EADF; color: #14202B; }
.chip.on { background: #F28C45; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { background: #1B364C; border: 1px solid #3F7396; border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.feat h3 { font-size: 17px; font-weight: 900; }
.feat p { font-size: 14px; color: #B7C9D6; }

/* ---------- Riesgo ---------- */
.moments { display: grid; gap: 18px; }
.moment-h { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 4px; }
.moments p:not(.moment-h) { color: var(--text-soft); }
.tbl { margin-top: 14px; display: grid; }
.tr { display: grid; grid-template-columns: 1fr 52px 110px 104px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tr.th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); border-bottom-width: 2px; }
.tr .r { text-align: right; white-space: nowrap; }
.tr small { display: block; font-size: 12px; color: var(--text-faint); }
.sem { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.sem.ok { background: #3C9A5A; }
.sem.warn { background: #E0A81C; }
.st { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-block; text-align: center; white-space: nowrap; }
.st.blue { background: #DCEAF2; color: #2F6485; }
.st.orange { background: #FDE9D8; color: #B4510E; }
.st.red { background: #F6DCDC; color: #8A2D2D; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #14202B; font-size: 13px; color: #F3F7FA; }
.flow-h { color: #B8C6D2; margin-right: 4px; }
.flow-step { font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid #8FA0AE; }
.flow-step.on { background: #F28C45; color: #14202B; border-color: #F28C45; }
.flow-arrow { color: #8FA0AE; }

/* ---------- Forward ---------- */
.fw-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fw-steps li { display: flex; gap: 14px; align-items: flex-start; }
.fw-steps span { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #F28C45; color: #14202B; font-weight: 900; }
.fw-steps p { color: var(--text-soft); }
.fw-steps b { color: var(--text); }
.rules { border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 18px; background: var(--card); }
.rules-h { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #7CC0E4; margin-bottom: 4px; }
.rules p:not(.rules-h) { font-size: 15px; color: var(--text-soft); }
.win.paper .chip { background: #F1EADF; }

/* ---------- Automatización e IA ---------- */
.escala-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auto { background: #14202B; color: #F3F7FA; border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.auto h3 { font-size: 17px; font-weight: 900; }
.auto p { font-size: 14px; color: #B8C6D2; }
.an-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; margin-top: 10px; font-size: 14px; }
.an-row.green { background: #EAF4EC; }
.an-row.blue { background: #EAF2F7; display: grid; }
.an-row.blue span { color: #4B5864; }
.an-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; }
.mini-btn { font-weight: 700; font-size: 13px; color: #14202B; background: #F28C45; padding: 6px 14px; border-radius: 8px; white-space: nowrap; }
.start { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-top: 28px; padding: 18px 24px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card); }
.start-h { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.start-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-soft); }
.start-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #14202B; color: #F28C45; font-size: 13px; margin-right: 6px; }

/* ---------- Cierre / contacto ---------- */
.av-cierre { position: relative; overflow: hidden; isolation: isolate; background: #14202B; }
.av-cierre-img {
  position: absolute; inset: 0 0 0 auto; width: 42%; z-index: -1;
  background: linear-gradient(90deg, #14202B 0%, rgba(20,32,43,.3) 45%, rgba(20,32,43,.2) 100%), url(img/echeqs.jpg) center / cover no-repeat;
}
.av-cierre-in { display: grid; gap: 22px; justify-items: start; }
.av-cierre-in .eyebrow { margin-bottom: 0; }
.av-cierre-in .av-h1, .av-cierre-in .lead { max-width: 680px; }
.av-cierre-in .lead { margin-top: 0; }
.cierre-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-card { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); min-width: min(520px, 100%); }
.contact-name { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-soft); }
.contact-card li { display: flex; align-items: center; gap: 12px; }
.contact-card .ic { color: var(--brand); }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--text); text-decoration: underline; }
.foot-tag { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .av-pillars { grid-template-columns: 1fr 1fr; }
  .split, .cadena-grid, .escala-grid { grid-template-columns: 1fr; gap: 36px; }
  .av-hero-bg {
    background:
      linear-gradient(180deg, rgba(15,30,43,.8) 0%, rgba(15,30,43,.95) 45%, #0F1E2B 75%),
      url(img/echeqs.jpg) 70% 20% / cover no-repeat;
  }
  .av-cierre-img { width: 100%; opacity: .25; }
}
@media (max-width: 640px) {
  .av-pillars { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
  .pillar { padding: 14px 14px 16px; }
  .pillar b { font-size: 16px; }
  .pillar span:last-child { font-size: 13px; }
  .pillar-ic { width: 30px; height: 30px; }
  .feat-grid, .auto-grid, .mini-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi { padding: 8px 10px; font-size: 12px; }
  .kpi b { font-size: 17px; }
  .win-body { padding: 16px; }
  .line { font-size: 13px; }
  .tr { grid-template-columns: 1fr auto auto; font-size: 13px; }
  .tr .r { white-space: nowrap; font-size: 12.5px; }
  .tr > :nth-child(2) { display: none; }
  .tr .st { font-size: 11px; padding: 3px 8px; }
  .cierre-actions .btn { flex: 1 1 100%; }
}
