/* ============================================================
   autosflow.online — hoja de estilos compartida
   Todas las páginas enlazan este archivo: si cambiás un color acá,
   cambia en todo el sitio.
   ============================================================ */

:root {
  --bone: #F7F6F2;
  --raise: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #16211C;
  --muted: #4E5F57;
  --soft: #3E4F47;
  --line: #E5E2DA;
  --chip: #F1EFE8;
  --green: #0E6B50;
  --green-dark: #0A5540;
  --green-soft: #E8F2ED;
  --green-line: #CDE3D9;
  --mint: #7FD4AE;
  --clay: #B4501F;
  --clay-soft: #F4EAE3;
  --clay-ink: #7A3A15;
  --sand: #E2A683;
  --night: #0E1512;
  --dim: #C7D2CB;
  --dimmer: #8A9A91;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(22, 33, 28, .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; color: var(--clay); text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
h1.display { font-size: clamp(36px, 5vw, 60px); }
h2.display { font-size: clamp(28px, 3.4vw, 44px); }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section--raise { background: var(--raise); }
.section--dark { background: var(--ink); color: #fff; border-top: 0; }
.section-head { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head > div:first-child { flex: 1 1 420px; }
.section-head p { flex: 0 1 380px; color: var(--muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-size: 16px; font-weight: 600; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: var(--surface); border-color: #D7D3C8; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; border-color: #47564F; color: #fff; }
.btn--full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; max-width: 100%;
  font-family: var(--mono); font-size: 12px; line-height: 1.1; white-space: nowrap;
  color: var(--muted); background: var(--chip); border: 1px solid transparent;
  padding: 8px 12px; border-radius: 9px;
}
.chip--sm { font-size: 11px; padding: 6px 10px; border-radius: 8px; }
/* color característico de cada herramienta, en versión clara y legible */
.chip--n8n      { background: #FDECF1; color: #A81F46; border-color: #F7CEDB; }
.chip--claude   { background: #FAEDE7; color: #8F4223; border-color: #F0D3C5; }
.chip--vapi     { background: #E4F4F2; color: #0B6259; border-color: #C7E7E3; }
.chip--whatsapp { background: #E4F7EC; color: #11663A; border-color: #C4EBD5; }
.chip--ghl      { background: #E9F0FD; color: #14509E; border-color: #CEDEFA; }
.chip--google   { background: #EAF1FE; color: #1A5DC8; border-color: #D2E1FC; }
.chip--gmail    { background: #FDEBE9; color: #AE2A1E; border-color: #F8D2CD; }
.chip--postgres { background: #E9EEF4; color: #2A567A; border-color: #D0DCE8; }
.chip--meta     { background: #FBEAF4; color: #8E2568; border-color: #F3D3E6; }
.chip--web      { background: #EDEBE4; color: #46564F; border-color: #DFDBD0; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--green-line);
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--green-dark);
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green); flex: none; }

/* ---------- nav ---------- */
.nav { background: var(--raise); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); display: grid; place-items: center; flex: none; }
.brand__name { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.nav__links { flex: 1; display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--soft); font-size: 15px; font-weight: 500; }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--raise); padding: 76px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero h1 { margin-top: 26px; }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero .btn-row { margin-top: 34px; }
.hero .chips { margin-top: 38px; }

/* ---------- tarjeta del asistente ---------- */
.assistant { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.assistant__head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid #EFEDE5; }
.assistant__avatar { width: 34px; height: 34px; border-radius: 11px; background: var(--green); display: grid; place-items: center; flex: none; }
.assistant__name { font-size: 14.5px; font-weight: 700; }
.assistant__meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--green-soft); font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--green-dark); }
.live .dot { width: 6px; height: 6px; }

.thread { display: flex; flex-direction: column; gap: 9px; padding: 16px 0; }
.bubble { max-width: 82%; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; }
.bubble--them { align-self: flex-start; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(22,33,28,.04); }
.assistant .thread .bubble--them { background: var(--bone); border-color: #EAE7DE; box-shadow: none; }
.bubble--me { align-self: flex-end; background: var(--green-soft); color: var(--green-dark); border-radius: 14px 14px 4px 14px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 13px 15px; background: var(--bone); border: 1px solid #EAE7DE; border-radius: 14px 14px 14px 4px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--dimmer); }

.actions { background: var(--ink); border-radius: 16px; padding: 15px 16px; }
.actions__title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.1px; color: var(--sand); }
.actions ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.actions li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: #fff; }
.actions li svg { flex: none; margin-top: 2px; }
.actions li.pending { color: var(--dim); }
.actions li.pending i { width: 15px; display: grid; place-items: center; }
.actions li.pending i::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--sand); display: block; }
.assistant__foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--green-soft); font-size: 13px; font-weight: 600; color: var(--green-dark); }

/* ---------- animación ---------- */
@keyframes af-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes af-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes af-seq-1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-2 { 0%, 9% { opacity: 0; transform: translateY(8px); } 11%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-3 { 0%, 16% { opacity: 0; transform: translateY(8px); } 18%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-4 { 0%, 23% { opacity: 0; transform: translateY(8px); } 25%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-5 { 0%, 30% { opacity: 0; transform: translateY(8px); } 32%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-6 { 0%, 37% { opacity: 0; transform: translateY(8px); } 39%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-7 { 0%, 44% { opacity: 0; transform: translateY(8px); } 46%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-8 { 0%, 51% { opacity: 0; transform: translateY(8px); } 53%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes af-seq-9 { 0%, 58% { opacity: 0; transform: translateY(8px); } 60%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
.seq-1 { animation: af-seq-1 13s ease-in-out infinite; }
.seq-2 { animation: af-seq-2 13s ease-in-out infinite; }
.seq-3 { animation: af-seq-3 13s ease-in-out infinite; }
.seq-4 { animation: af-seq-4 13s ease-in-out infinite; }
.seq-5 { animation: af-seq-5 13s ease-in-out infinite; }
.seq-6 { animation: af-seq-6 13s ease-in-out infinite; }
.seq-7 { animation: af-seq-7 13s ease-in-out infinite; }
.seq-8 { animation: af-seq-8 13s ease-in-out infinite; }
.seq-9 { animation: af-seq-9 13s ease-in-out infinite; }
.dot { animation: af-blink 2.2s ease-in-out infinite; }
.typing span { animation: af-dot 1.3s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .16s; }
.typing span:nth-child(3) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .anim, [class*="seq-"] { opacity: 1 !important; transform: none !important; }
}

/* ---------- franja de prueba social ---------- */
.band { background: var(--ink); color: #fff; padding: 32px 0; }
.band__inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: center; }
.band__lead { font-size: 15px; line-height: 1.5; color: var(--dim); }
.band__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.band__n { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; line-height: 1.15; white-space: nowrap; }
.band__l { font-family: var(--mono); font-size: 11.5px; line-height: 1.45; color: #9FB0A7; margin-top: 6px; }

/* ---------- grillas y tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--dark p { color: var(--dim); }
.card h3 { font-size: 20px; margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.card--dark h3 { color: #fff; }
.icon-box { width: 42px; height: 42px; border-radius: 12px; background: var(--chip); display: grid; place-items: center; }
.step { font-family: var(--mono); font-size: 11.5px; color: var(--clay); }

/* ---------- demos ---------- */
.demo { display: flex; flex-direction: column; padding: 28px; }
.demo__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo__tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted); flex: 1; }
.demo h3 { font-size: clamp(20px, 2vw, 24px); margin-top: 14px; line-height: 1.25; }
.demo__thread { margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--chip); display: flex; flex-direction: column; gap: 10px; }
.demo .chips { margin-top: 18px; }
.demo .btn { margin-top: auto; }
.demo .chips + .btn { margin-top: 22px; }

/* ---------- caso y testimonio ---------- */
.case__head { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 16px; }
.case__head > div:first-child { flex: 1 1 420px; }
.avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-weight: 600; flex: none; }
.quote { margin-top: 28px; background: var(--clay-soft); border-radius: var(--radius); padding: 30px 34px; display: flex; gap: 22px; }
.quote__mark { font-family: var(--serif); font-size: 58px; line-height: .8; color: var(--clay); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); line-height: 1.42; font-weight: 500; letter-spacing: -.02em; }
.quote figcaption { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; font-weight: 700; }
.quote figcaption span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--clay-ink); }
.quote .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }

/* ---------- números ---------- */
.stat__n { font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--green); }
.stat__l { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px; color: var(--clay); }
.stat p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 330px; }

/* ---------- pasos y servicios ---------- */
.num { font-family: var(--mono); font-size: 12px; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 8px; }
.service { display: flex; flex-direction: column; padding: 24px; color: var(--ink); }
.service:hover { text-decoration: none; border-color: var(--green); color: var(--ink); }
.service h3 { font-size: 18px; margin-top: 10px; }
.service p { font-size: 14.5px; }
.service__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { display: flex; gap: 64px; flex-wrap: wrap; }
.faq__intro { flex: 0 1 380px; }
.faq__list { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 720px; }

/* ---------- sobre mí ---------- */
.about { display: flex; gap: 64px; flex-wrap: wrap; }
.about__card { flex: 0 1 300px; }
.about__photo { width: 92px; height: 92px; border-radius: 26px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; font-weight: 600; }
.about__body { flex: 1 1 520px; }
.about__body p { margin-top: 14px; color: var(--muted); max-width: 780px; }

/* ---------- contacto ---------- */
.contact { background: var(--ink); color: #fff; padding: 72px 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact h2 { color: #fff; }
.contact__lead { margin-top: 16px; font-size: 16.5px; color: var(--dim); }
.contact .btn-row { margin-top: 28px; }
.form { background: var(--raise); border-radius: 20px; padding: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.row2 .field { margin-top: 0; }
.field label, .fieldset__legend { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  min-height: 48px; padding: 12px 14px; border-radius: 11px;
  border: 1px solid #D7D3C8; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 15px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills label {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border-radius: 11px; border: 1px solid #D7D3C8; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--soft); cursor: pointer;
}
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills input:checked + label { border: 1.5px solid var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.pills input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.form .btn { margin-top: 20px; }
.form__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--dim); padding: 44px 0; }
.footer__inner { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__brand { flex: 0 1 280px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 8px; font-size: 13px; color: var(--dimmer); }
.footer__cols { flex: 1; display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h2 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: #5E6E66; font-weight: 400; text-transform: uppercase; }
.footer__col a, .footer__col span { font-size: 13.5px; color: var(--dim); }
.footer__col a:hover { color: #fff; }
.footer__legal { font-family: var(--mono); font-size: 11px; color: #5E6E66; }

/* ---------- breadcrumb ---------- */
.crumbs { padding-top: 20px; padding-bottom: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: #C9C3B4; }
.crumbs li:last-child::after { content: ""; }

/* ---------- utilidades ---------- */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 44px; }
.center { text-align: center; }
.list-check { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--muted); }
.list-check svg { flex: none; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .nav__inner { min-height: 68px; flex-wrap: wrap; }
  .nav__links { order: 3; width: 100%; display: none; padding-bottom: 16px; flex-wrap: wrap; gap: 18px; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    border-radius: 11px; border: 1px solid #D7D3C8; background: #fff; cursor: pointer;
  }
  .nav__check:checked ~ .nav__links { display: flex; }
  .nav .btn { display: none; }
  .grid--3, .grid--2, .row2 { grid-template-columns: 1fr; }
  .band__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .faq, .about { gap: 32px; }
  .quote { flex-direction: column; gap: 10px; padding: 24px; }
  .section-head { gap: 20px; }
}

/* ---------- envío del formulario ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.form__status[hidden] { display: none; }
.form__status--ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green-line); }
.form__status--error { background: #FDEBE9; color: #8E1F14; border: 1px solid #F8D2CD; }
.form__status a { color: inherit; font-weight: 700; text-decoration: underline; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- alerta de envío ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  width: min(460px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px 18px 20px; border-radius: 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(22,33,28,.22);
  transform: translate(-50%, 24px); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s;
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; }
.toast__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--green); }
.toast--error .toast__icon { background: #B42318; }
.toast__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.toast__text { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.toast__text a { color: var(--green); font-weight: 700; text-decoration: underline; }
.toast__close {
  margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 9px;
  border: 0; background: var(--chip); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.toast__close:hover { background: var(--line); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- blog / artículos ---------- */
.article { max-width: 800px; margin: 0 auto; padding-top: 24px; padding-bottom: 72px; }
.article__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.article h1 { margin-top: 14px; }
.article .lead { margin-top: 18px; }
.prose { margin-top: 36px; font-size: 17.5px; line-height: 1.75; color: var(--soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3.2vw, 31px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.prose h3 { margin-top: 1.7em; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .84em; background: var(--chip); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.prose blockquote { margin-left: 0; padding: 18px 22px; border-left: 3px solid var(--clay); background: var(--clay-soft); border-radius: 0 12px 12px 0; color: var(--clay-ink); }
.callout { padding: 22px 24px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid var(--green-line); color: var(--ink); }
.callout p + p { margin-top: .6em; }
.callout__t { font-weight: 700; color: var(--green-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--raise); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.steps-list { list-style: none; padding-left: 0 !important; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--clay); background: var(--clay-soft); border-radius: 8px; padding: 3px 7px; }
.article__cta { margin-top: 48px; padding: 30px; border-radius: var(--radius); background: var(--night); color: #fff; }
.article__cta h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; color: #fff; }
.article__cta p { margin-top: 10px; color: var(--dim); line-height: 1.6; }
.article__cta .btn-row { margin-top: 20px; }
.posts { display: grid; gap: 18px; margin-top: 36px; }
.post-card { display: block; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--green-line); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.post-card h2 { margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.post-card p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.post-card__more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--green); }
@media (max-width: 640px) { .prose { font-size: 16.5px; } .article__cta { padding: 24px 20px; } .post-card { padding: 22px 20px; } }
