/* plenio.mx: claro y sobrio. Colores tomados del logotipo. */
:root {
  --navy: #1E2F4A;
  --navy-2: #2A3F61;
  --accent: #4168AB;
  --accent-ink: #34558f;
  --accent-soft: #EEF2FA;
  --ink: #1B2533;
  --muted: #5B6676;
  --line: #E3E7EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --ok: #1F7A4D;
  --err: #B42318;
  --radius: 12px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--accent-ink); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; padding: .7em 1.2em; font-size: 1rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn-sm { padding: .5em .9em; font-size: .92rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
}
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* Secciones */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 48rem; margin-bottom: 36px; }
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-proof { font-size: .92rem; color: var(--muted); margin: 0; }
.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); }
.page-hero h1 { max-width: 22ch; }

/* Rejillas y tarjetas */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-size: .88rem; color: var(--muted); }
.service-card { display: flex; flex-direction: column; }
.service-card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.service-card ul { padding-left: 1.1em; color: var(--muted); margin: 0 0 1.2em; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: .55em; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 62px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps strong { color: var(--navy); }
.stat { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }

/* Clientes */
.clients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.clients img { height: 44px; width: auto; opacity: .75; filter: grayscale(1); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); }

/* Banda de cierre */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 40rem; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Formulario */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.lead-form label { display: block; font-weight: 500; font-size: .93rem; color: var(--ink); margin-bottom: 14px; }
.lead-form label > span[aria-hidden] { color: var(--err); margin-left: 2px; }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #CBD3DF; border-radius: 10px; padding: .65em .8em; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(65,104,171,.18); }
.lead-form [aria-invalid=true] { border-color: var(--err) !important; }
.consents { border: 0; padding: 0; margin: 6px 0 18px; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.check em { font-style: normal; color: #8A94A3; }
.lead-form .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.err { color: var(--err); }
.form-status.ok { color: var(--ok); }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 4px 0 0; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--navy); }

/* Artículo y textos largos */
.article { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.article header { margin-bottom: 28px; }
.article .meta { color: var(--muted); font-size: .92rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 64px; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.legal .toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }

/* Pie */
.site-footer { background: #0F1A2B; color: #C3CCD9; padding: 56px 0 24px; font-size: .94rem; }
.site-footer a { color: #E4E9F1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer img { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 12px; height: 34px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .86rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 40; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
