/* ==========================================================
   FactorPyme — sitio público (versión azul, como las presentaciones)
   Azul marino #0F1E2B alternado con crema #FBF6EF, naranja de marca
   #F28C45 como acento, azul #2F6485 secundario, títulos en Source Serif 4.
   Versiones anteriores: _version-oscura/ y _version-clara/.

   Cada sección toma sus colores de las variables: las de :root son las
   del fondo crema; la clase .navy las cambia por las del azul marino.
   ========================================================== */
:root, .paper {
  --brand: #F28C45;
  --brand-hover: #F5A36A;
  --on-brand: #14202B;
  --brand-text: #B4510E;   /* naranja legible como texto */
  --brand-soft: #FDE9D8;
  --blue: #2F6485;
  --blue-text: #2F6485;
  --blue-soft: #DCEAF2;
  --ok: #2E7D4F;
  --ok-soft: #E3F1E8;

  --bg: #FBF6EF;
  --card: #FFFFFF;
  --card-soft: #F7F1E7;
  --line: #E6DCCD;
  --line-strong: #DCD3C4;

  --text: #14202B;
  --text-soft: #3E4B57;
  --text-faint: #6B7782;

  --shadow: 0 1px 2px rgba(15,30,43,.05), 0 12px 32px -14px rgba(15,30,43,.18);
  --shadow-lg: 0 2px 4px rgba(15,30,43,.04), 0 24px 60px -24px rgba(15,30,43,.28);
}
.navy {
  --brand-text: #F28C45;
  --brand-soft: rgba(242,140,69,.15);
  --blue-text: #7CC0E4;
  --blue-soft: rgba(124,192,228,.15);
  --ok: #7FD3A0;
  --ok-soft: rgba(127,211,160,.14);

  --bg: #0F1E2B;
  --card: #1C2D3B;
  --card-soft: #172735;
  --line: #2A3E50;
  --line-strong: #3A5164;

  --text: #F3F7FA;
  --text-soft: #B8C6D2;
  --text-faint: #8FA0AE;

  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px -22px rgba(0,0,0,.65);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.2), 0 30px 70px -30px rgba(0,0,0,.75);
}
:root {
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: 24px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 48px; }
.muted-sm { font-size: 12px; color: var(--text-faint); letter-spacing: .02em; }
.navy, .paper { color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #D9732C);
  color: var(--on-brand);
  box-shadow: 0 8px 22px -10px rgba(217,115,44,.75);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-hover), var(--brand)); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Encabezado (azul) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.topbar.scrolled {
  background: rgba(15,30,43,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 700;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav-cta-mobile { display: none; }
.topbar-cta { display: flex; gap: 10px; }
.menu-btn { display: none; }

/* ---------- Portada (azul, foto a la derecha como en las portadas de las presentaciones) ---------- */
.hero {
  position: relative; background: var(--bg);
  padding: 140px 0 96px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #0F1E2B 0%, rgba(15,30,43,.96) 40%, rgba(15,30,43,.62) 72%, rgba(15,30,43,.4) 100%),
    linear-gradient(0deg, #0F1E2B 0%, rgba(15,30,43,0) 30%),
    url(img/hero-pyme.jpg) right 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -240px; top: -280px;
  background: radial-gradient(circle, rgba(242,140,69,.16), transparent 65%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  font: 700 13px/1.3 var(--font); text-transform: uppercase; letter-spacing: .2em;
  color: var(--brand-text); margin-bottom: 18px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; line-height: 1.08; }
.hl { color: var(--brand); }
.lead { font-size: 19px; color: var(--text-soft); margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points {
  list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 14px; color: var(--text-soft);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
}

/* Tarjeta de acceso (clara, sobre la portada azul) */
.access {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 30px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  max-width: 420px; width: 100%; justify-self: end;
}
.access-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.access-title { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.access-sub { color: var(--text-soft); font-size: 15px; }
.access-list { list-style: none; padding: 16px 0; margin: 4px 0; display: grid; gap: 10px; border-block: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }
.access-list li { display: flex; align-items: center; gap: 10px; }

.access-actions { display: grid; gap: 10px; margin-top: 6px; }
.access-link { align-self: center; font-size: 14px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.access-link:hover { color: var(--brand-text); }
.board-tag { font: 600 11px/1 var(--mono); color: var(--text-faint); border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; }

/* ---------- Cifras (azul un tono más claro) ---------- */
.stats { background: #14202B; border-top: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-n { font-size: 30px; font-weight: 600; color: var(--brand); }
.stat-l { font-size: 14px; color: var(--text-soft); margin-top: 4px; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; background: var(--bg); color: var(--text); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; line-height: 1.1; }
.lead-sm { font-size: 18px; margin-top: 16px; color: var(--text-soft); }

/* Productos */
.num { display: block; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 22px; }
.num-blue { color: var(--blue-text); }
.prod-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 24px; }
.prod-nav a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); text-decoration: none; box-shadow: var(--shadow);
  font-weight: 700; font-size: 15px; color: var(--text); transition: border-color .15s, color .15s;
}
.prod-nav a:hover { border-color: var(--brand); color: var(--brand-text); }
.prod-nav .mono { font-size: 12px; color: var(--brand-text); }
.prod-row {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.prod-row:nth-of-type(even) .prod-copy { order: 2; }
.prod-copy { display: grid; gap: 14px; justify-items: start; }
.prod-copy .num { margin-bottom: 4px; }
.prod-copy h3 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 36px); font-weight: 700; }
.prod-ideal { color: var(--brand-text); font-weight: 700; }
.prod-copy > p:not(.prod-ideal) { color: var(--text-soft); max-width: 520px; }
.prod-copy .checks { margin-top: 6px; }

/* Tarjetas ilustrativas de cada producto */
.mock {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; justify-self: center;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.doc-chip {
  display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-text); white-space: nowrap;
}
.doc-chip-blue { background: var(--blue-soft); color: var(--blue-text); }
.mock-rows { margin: 0; display: grid; }
.mock-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-rows dt { color: var(--text-soft); }
.mock-rows dd { margin: 0; text-align: right; font-weight: 700; }
.ok { font-style: normal; font-weight: 700; color: var(--ok); font-size: 13px; }
.mock-rows .ok { margin-left: 6px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #14202B; font-size: 14px; color: #B8C6D2; }
.mock-foot b { color: #F28C45; font-weight: 600; text-align: right; }
.mock-title { font-weight: 900; font-size: 18px; margin-bottom: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-soft); }
.cmp-n { font-size: 20px; font-weight: 600; margin-top: 6px; color: var(--text-faint); text-decoration: line-through; text-decoration-color: rgba(107,119,130,.6); }
.cmp-win { border: 2px solid var(--brand) !important; background: var(--brand-soft) !important; }
.cmp-win .cmp-n { color: var(--text); text-decoration: none; }
.chain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chain li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--card-soft); font-size: 14px; }
.chain em { font-style: normal; font-size: 13px; color: var(--brand-text); font-weight: 700; }
.chain em.ok { color: var(--ok); }

.soon { margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .14em; padding: 7px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Inteligencia artificial (azul) ---------- */
.section.ia { position: relative; overflow: hidden; isolation: isolate; }
.section.ia::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 520px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(242,140,69,.16), transparent 65%);
}
.ia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ia-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ia-card h3 { font-size: 21px; font-weight: 900; }
.ia-card > p { font-size: 15px; color: var(--text-soft); }
.ia-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--brand-text);
  padding: 7px 11px; border-radius: 999px; background: var(--brand-soft);
}
.ia-tag::before { content: "✦"; font-size: 12px; }
.ia-mock { margin-top: auto; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.chat { display: grid; gap: 10px; }
.bubble { padding: 10px 13px; border-radius: 14px; line-height: 1.45; max-width: 92%; }
.bubble.me { justify-self: end; background: var(--brand-soft); color: var(--text); border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--card); color: var(--text-soft); border-bottom-left-radius: 4px; }
.bubble.bot b { color: var(--text); font-weight: 600; white-space: nowrap; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); }
.file-ic { font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 5px 7px; border-radius: 6px; }
.ia-arrow { text-align: center; color: var(--brand); margin: 6px 0; }
.ia-result { padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ia-result b { color: var(--text); font-size: 16px; }
.ia-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--text-soft); }
.ia-list li { display: flex; gap: 10px; align-items: baseline; }
.ia-list .pend { font-style: normal; color: var(--brand); font-size: 11px; }

/* Cómo funciona (círculos numerados como en "Cómo funciona" de las presentaciones) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step .num {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #14202B; color: #F28C45; font-size: 28px; margin-bottom: 22px;
}
.step:nth-child(2) .num { background: #F28C45; color: #14202B; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; right: -18px; width: 14px; height: 14px;
  border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg);
}
.step h3 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.step p { color: var(--text-soft); font-size: 16px; }

/* Para quién (solapas) */
.tabs { position: relative; display: flex; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font: 700 15px/1 var(--font); color: var(--text-soft); background: none; border: 0;
  padding: 12px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--brand), #D9732C); color: var(--on-brand); }
.panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-height: 400px; }
.panel[hidden] { display: none; }
.panel-img { background-size: cover; background-position: center; min-height: 260px; }
.panel-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; align-items: flex-start; }
.panel-copy h3 { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23E07A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Sectores */
.sectors { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; }
.sector {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.sector.tall { grid-row: span 2; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,30,43,.8), rgba(15,30,43,0) 55%); }
.sector figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 22px; }

/* Confianza (azul) */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 28px 26px; }
.trust-item:nth-child(even) { border-left-color: #7CC0E4; }
.trust-item svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.trust-item h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.trust-item p { font-size: 15px; color: var(--text-soft); }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 32px 22px 0; font-weight: 700; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 22px; color: var(--text-soft); }

/* Contacto (azul) */
.cta-final { position: relative; overflow: hidden; isolation: isolate; }
.cta-final::before {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -260px; bottom: -380px;
  background: radial-gradient(circle, rgba(242,140,69,.15), transparent 65%);
}
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list span { width: 96px; color: var(--text-soft); font-size: 14px; flex-shrink: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 22px; padding: 30px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--card-soft); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238FA0AE' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.form select option { color: #14202B; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form [aria-invalid="true"] { border-color: #E5664B; }
.form textarea { resize: vertical; }
.form-msg { font-size: 14px; min-height: 1em; color: var(--text-soft); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #F3937E; }

/* Pie */
.footer { background: #0A1520; color: #8FA0AE; padding: 44px 0; border-top: 1px solid #1E3040; }
.footer-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer .logo { height: 30px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.copy { margin-left: auto; font-size: 13px; }

/* Aviso flotante (modo vista previa) */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); width: max-content; padding: 14px 20px; border-radius: 14px;
  background: #14202B; color: #F3F7FA; border: 1px solid rgba(242,140,69,.6);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-size: 15px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar-cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(15,30,43,.98); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
  .nav-cta-mobile a { border-bottom: 0; padding: 14px; font-size: 15px; }
  .nav-cta-mobile .btn-primary { color: var(--on-brand); }
  .nav-cta-mobile .btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
  .topbar.menu-open { background: rgba(15,30,43,.98); }

  .hero { padding: 116px 0 72px; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(15,30,43,.78) 0%, rgba(15,30,43,.94) 45%, #0F1E2B 75%),
      url(img/hero-pyme.jpg) 70% 20% / cover no-repeat;
  }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .access { justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .prod-row { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .prod-row:nth-of-type(even) .prod-copy { order: 0; }
  .mock { justify-self: start; }
  .step:not(:last-child)::after { top: auto; bottom: -18px; right: auto; left: 44px; transform: rotate(135deg); }
  .ia-grid { grid-template-columns: 1fr; max-width: 560px; }
  .panel { grid-template-columns: 1fr; }
  .panel-img { min-height: 220px; }
  .panel-copy { padding: 30px 26px 34px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .sectors { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .sector.tall { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .logo { height: 28px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .access { padding: 26px 22px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prod-nav a { font-size: 14px; padding: 9px 13px; }
  .compare { grid-template-columns: 1fr; }
  .mock { padding: 18px; }
  .tabs { width: 100%; }
  .tabs button { padding: 11px 16px; font-size: 14px; }
  .panel-copy h3 { font-size: 24px; }
  .trust { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .sector.tall { grid-column: auto; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; }
  .copy { margin-left: 0; }
}

/* ---------- Íconos ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.prod-nav a .ic { width: 18px; height: 18px; color: var(--brand-text); }
.hero .prod-nav { margin: 34px 0 0; }
.section-head h2 .ic-title { width: .85em; height: .85em; vertical-align: -0.1em; margin-right: .3em; color: var(--brand); stroke-width: 1.7; }
.access-list .ic-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.access-list .ic { width: 16px; height: 16px; stroke-width: 2; }
.prod-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.prod-copy h3 .pill { font-size: 11px; }
.prod-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.prod-ic .ic { width: 27px; height: 27px; }
.prod-ic.blue { background: var(--blue-soft); color: var(--blue-text); }
.mock-rows + .compare { margin-top: 16px; }
.mock-rows + .chain { margin-top: 14px; }
.chain-tight li { padding: 9px 14px; }
@media (max-width: 640px) {
  .prod-ic { width: 44px; height: 44px; border-radius: 12px; }
  .prod-ic .ic { width: 23px; height: 23px; }
}

/* ---------- Sitio unificado: menú por perfil ---------- */
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); padding-bottom: 4px; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: #fff; }
@media (max-width: 960px) { .nav a[aria-current="page"] { box-shadow: none; color: var(--brand-text); } }

/* Escritorio al 90% (pedido 2026-11-10: se ve mejor así que al 100%) */
@media (min-width: 961px) { html { zoom: .9; } }
