/* Segna Solutions — estilos del sitio */
:root {
  --ink: #0F1B29;
  --ink-2: #3A4654;
  --muted: #4A5663;
  --ground: #F3F5F7;
  --surface: #FFFFFF;
  --field: #F8FAFB;
  --line: #D8DEE4;
  --line-2: #C6CED6;
  --accent: #0A6CB0;
  --accent-hover: #08578F;
  --tint: #E3F1FB;
  --dark: #0F1B29;
  --dark-2: #18283A;
  --dark-line: #24364A;
  --on-dark: #F3F5F7;
  --on-dark-2: #C3CFDB;
  --on-dark-3: #9FB2C4;
  --sky: #5CC6F2;
  --sky-ink: #062A40;
  --brand-blue: #00ADEF;
  --brand-green: #04D540;
  --brand-orange: #FFB803;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --wrap: 1240px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px 96px; }
.section--tight { padding-block: 72px; }
@media (max-width: 720px) { .section { padding-block: 72px 64px; } .wrap { padding-inline: 16px; } }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.h1 { font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: 23px; letter-spacing: -0.01em; }
.lead { font-size: 20px; color: var(--muted); max-width: 600px; margin: 26px 0 0; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--tint); padding: 7px 14px; border-radius: 999px; }
.kicker { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: 0.08em; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22344A; color: #fff; }
.btn--sky { background: var(--sky); color: var(--sky-ink); }
.btn--sky:hover { background: #8AD7F7; color: var(--sky-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Cabecera */
.brandbar { height: 4px; display: grid; grid-template-columns: repeat(3, 1fr); }
.brandbar span:nth-child(1) { background: var(--brand-blue); }
.brandbar span:nth-child(2) { background: var(--brand-green); }
.brandbar span:nth-child(3) { background: var(--brand-orange); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,245,247,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { padding: 10px 20px; min-height: 44px; color: #fff; box-shadow: none; }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .logo img { height: 44px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}
.no-js .nav { display: flex; position: static; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 88px 72px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__visual { flex: 1 1 440px; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; font-size: 14px; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 8px; }

.inbox { background: var(--dark); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(15,27,41,.45); color: var(--on-dark); }
.inbox__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.inbox__head strong { font-family: var(--display); font-size: 17px; }
.inbox__head span { font-size: 12px; color: var(--on-dark-3); }
.inbox__list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.inbox__item { background: var(--dark-2); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.inbox__who { flex: 1; min-width: 0; }
.inbox__who b { display: block; font-size: 15px; }
.inbox__who span { display: block; color: var(--on-dark-3); font-size: 14px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; flex: none; background: #26384C; color: #D6DEE6; }
.tag--ok { background: var(--sky); color: var(--sky-ink); }
.inbox__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; color: #D6DEE6; font-size: 13px; }

/* Clientes */
.clients { border-block: 1px solid var(--line); background: var(--surface); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; padding-block: 30px; }
.clients__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.clients__name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-2); }

/* Cabeceras de sección */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head .h2 { max-width: 680px; }
.section-head p { margin: 0; color: var(--muted); max-width: 420px; }

/* Tarjetas */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.card__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }

/* Bloque oscuro */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-2); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { min-width: 0; }
.split__a { flex: 1 1 440px; }
.split__b { flex: 1 1 520px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.features > div { background: var(--dark); padding: 26px; }
.features h3 { font-family: var(--body); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.features p { margin: 0; color: #A8B8C8; font-size: 15px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); }
.steps h3 { margin: 10px 0 8px; font-size: 23px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Testimonios */
.quotes { background: var(--tint); }
.quotes .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; }
.quote figcaption { font-size: 15px; color: var(--muted); }

/* Contacto */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 360px; min-width: 0; }
.contact__info .lead { font-size: 18px; margin-bottom: 34px; }
.facts { margin: 40px 0 0; display: grid; gap: 18px; font-size: 16px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts a { color: var(--ink); text-decoration: none; }
.facts a:hover { color: var(--accent); text-decoration: underline; }
.form { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .form { padding: 22px; } }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.field--full, .form__full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; font-weight: 400; font-size: 16px; background: var(--field); color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 400; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }
.form .btn { justify-content: center; width: 100%; min-height: 52px; font-size: 16px; }
.form__status { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #E4F7EA; color: #145C2C; }
.form__status.is-error { background: #FDECEC; color: #8A1C1C; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.site-footer { background: var(--dark); color: var(--on-dark-2); font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-block: 64px 32px; }
.site-footer img { width: 220px; height: auto; margin-bottom: 16px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer .col-title { color: var(--on-dark); font-weight: 600; margin-bottom: 4px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 40px; font-size: 13px; color: var(--on-dark-3); }
.site-footer .legal nav { flex-direction: row; flex-wrap: wrap; gap: 18px; }
.site-footer .legal a { color: var(--on-dark-3); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -10px rgba(10,108,176,.6); transition: background-color .15s, transform .15s; }
.wa-float:hover { background: var(--accent-hover); color: #fff; transform: scale(1.05); }
@media (max-width: 520px) { .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; } }

/* Páginas interiores */
.page-hero { padding-block: 80px 56px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 720px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 720px; font-size: 18px; }
.prose h2 { font-size: 32px; line-height: 1.15; margin: 56px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose--legal { font-size: 16px; }
.prose--legal h2 { font-size: 24px; margin-top: 40px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.feature-list b { display: block; margin-bottom: 4px; }
.feature-list span { color: var(--muted); font-size: 16px; }

.cta-band { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 640px; }
.cta-band p { margin: 12px 0 0; color: var(--on-dark-2); }
@media (max-width: 520px) { .cta-band { padding: 32px 22px; } }

.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values div { border-top: 2px solid var(--ink); padding-top: 18px; }
.values h3 { font-size: 21px; margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); font-size: 16px; }

.pull { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.02em; margin: 0; max-width: 860px; }
.pull-by { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Blog */
.posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; }
.post-card:hover { border-color: var(--accent); color: var(--ink); }
.post-card h2 { font-size: 24px; line-height: 1.2; }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.meta { font-size: 14px; color: var(--muted); }
.cat { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--tint); padding: 4px 10px; border-radius: 999px; }

.notfound { padding-block: 120px; text-align: center; }
.notfound .actions { justify-content: center; }
