/* CODEXMAX — hoja de estilos principal
   Paleta y tipografía en :root. Mobile first. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0b1324;
  --ink-2: #16213a;
  --text: #253041;
  --muted: #56617a;
  --line: #e2e6ee;
  --line-strong: #cfd6e2;
  --surface: #f5f7fa;
  --white: #ffffff;
  --brand: #2446e6;
  --brand-dark: #1a33b0;
  --brand-soft: #eef1ff;
  --on-dark: #e8ecf5;
  --on-dark-muted: #aab4c8;
  --ok: #0f7a4d;
  --error: #b42318;
  --warn-bg: #fff3c4;
  --warn-ink: #5c4200;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 8px 24px rgba(11, 19, 36, .06);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.7rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: var(--ink); font-weight: 650; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.bg-ink .eyebrow { color: #9fb2ff; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.bg-ink .lead { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .02em; font-size: 1.08rem; }
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 520; font-size: .98rem; }
.main-nav a:hover { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; font-size: .85rem; font-weight: 650; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--surface); }
.lang-switch [aria-current="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { border-top: 1px solid var(--line); padding: 10px 0 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: block; padding: 13px 4px; font-size: 1.08rem; font-weight: 560; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: 100%; margin-top: 16px; }
@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-actions .btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .96rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-visual { position: relative; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #fff); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-bottom: 26px; }

/* Browser mockup (ilustración) */
.mock { background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(11,19,36,.25), 0 2px 6px rgba(11,19,36,.06); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: .72rem; color: var(--muted); display: flex; align-items: center; padding-left: 10px; font-style: normal; }
.mock-phone { position: absolute; right: -6px; bottom: -28px; width: 32%; max-width: 170px; border: 1px solid var(--line-strong); border-radius: 24px; padding: 8px; background: var(--ink); box-shadow: 0 24px 50px -16px rgba(11,19,36,.45); }
.mock-phone svg { border-radius: 17px; }
@media (max-width: 520px) { .mock-phone { right: 4px; bottom: -22px; width: 36%; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { position: relative; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link :is(h2,h3) a { color: var(--ink); text-decoration: none; }
.card-link :is(h2,h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link :is(h2,h3) a:focus-visible { outline: none; }
.card-link:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.card-link .link-arrow { margin-top: auto; padding-top: 14px; }
.card p { color: var(--muted); }
.icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon-box svg { width: 24px; height: 24px; }
.bg-ink .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.bg-ink .card p { color: var(--on-dark-muted); }
.bg-ink .icon-box { background: rgba(159,178,255,.12); color: #b9c7ff; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; 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 24 24' fill='none' stroke='%232446e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.check-list.cols { gap: 12px 28px; }
@media (min-width: 720px) { .check-list.cols { grid-template-columns: 1fr 1fr; } }
.x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.x-list li { position: relative; padding-left: 32px; }
.x-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #fdeceb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag-cloud li { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 520; color: var(--ink); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--brand); font-size: .95rem; letter-spacing: .04em; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline > li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.timeline > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.timeline > li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline .step-title { font-size: 1.3rem; letter-spacing: -0.015em; margin-bottom: 6px; padding-top: 8px; }
.timeline p { color: var(--muted); }
.timeline .meta { font-size: .9rem; color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 620; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 40px solid rgba(159,178,255,.08); border-radius: 50%; pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 56ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { align-self: flex-start; }
.plan .plan-name { font-size: 1.35rem; letter-spacing: -0.015em; margin: 10px 0 6px; }
.plan .price { font-size: 1.9rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; margin: 12px 0 2px; line-height: 1.2; }
.plan .price small { font-size: .95rem; font-weight: 520; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.plan .check-list { margin-bottom: 24px; font-size: .98rem; }
.plan .btn { margin-top: auto; }
.badge { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.badge-muted { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.ph { background: var(--warn-bg); color: var(--warn-ink); border: 1.5px dashed #c99a00; border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: .85em; letter-spacing: 0; white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 650; background: var(--surface); }
tr:last-child td { border-bottom: 0; }

/* ---------- Portfolio concepts ---------- */
.concept { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.concept .thumb { aspect-ratio: 16 / 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.concept .thumb svg { width: 100%; height: 100%; }
.concept .body { padding: 22px 24px 26px; }
.concept .body p { color: var(--muted); margin-bottom: 12px; }
.concept .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.notice { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: 16px 20px; color: var(--text); font-size: .96rem; }
.notice strong { color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Article / prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose .callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.6em 0; color: var(--ink); }
.prose .callout p:last-child { margin-bottom: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .95rem; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--surface); margin: 8px 0 32px; }
.toc p { font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-card .meta { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .97rem; }
.field .opt { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36,70,230,.16); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.field .error-msg { font-size: .9rem; color: var(--error); margin-top: 6px; font-weight: 550; }
.field .error-msg:empty { display: none; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; min-height: 46px; cursor: pointer; margin: 0; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 550; }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdeceb; color: var(--error); border: 1px solid #f5c2bd; }
.form-status.success { background: #e7f6ee; color: var(--ok); border: 1px solid #b7e2c9; }
.form-status ul { margin: 8px 0 0; }
.form-status a { color: inherit; }
.privacy-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon-box { margin: 0; flex: none; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .96rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 6px 0; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .9rem; }
.footer-lang { display: flex; gap: 14px; }
.footer-lang [aria-current="true"] { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: .3em; }
.site-footer .lang-switch { border-color: rgba(255,255,255,.25); }
.site-footer .lang-switch a { color: var(--on-dark-muted); }
.site-footer .lang-switch a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.site-footer .lang-switch [aria-current="true"] { background: #fff; color: var(--ink); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(11,19,36,.4); transition: transform .15s, background-color .15s; }
.wa-float:hover { background: #17864a; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }

/* Utilidades */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

@media print { .site-header, .site-footer, .wa-float, .cta-band { display: none !important; } }

.plan .price .ph { font-size: 1.05rem; }

.hosting-banner { display: flex; gap: 18px; align-items: flex-start; background: var(--brand-soft); border: 1.5px solid #c9d3ff; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 28px; }
.hosting-banner .icon-box { background: #fff; margin: 0; flex: none; }
.hosting-banner h2 { font-size: 1.3rem; margin-bottom: 6px; }
.hosting-banner p { margin: 0; color: var(--text); }

/* ---- Página de producto: atención al cliente (mockup de chat) ---- */
.cs-hero .breadcrumbs { margin-bottom: 14px; }
.cs-mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 460px; margin-inline: auto; }
.cs-mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; }
.cs-mock-head .badge { margin-left: auto; }
.cs-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cs-avatar svg { width: 18px; height: 18px; }
.cs-mock-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); }
.cs-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.cs-in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.cs-out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.cs-event { display: flex; gap: 12px; align-items: center; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--line-strong); font-size: .9rem; }
.cs-event strong { display: block; color: var(--ink); font-size: .85rem; }
.cs-event span { color: var(--muted); }
.cs-event-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e7f6ee; color: var(--ok); flex: none; }
.cs-event-icon svg { width: 18px; height: 18px; }

/* ---- Correcciones (2026-10-07) ---- */
/* Los pasos son tarjetas blancas: dentro de secciones oscuras su título debe ser oscuro */
.bg-ink .steps h3 { color: var(--ink); }
/* El botón claro del pie heredaba el color de los enlaces del pie (texto invisible) */
.site-footer a.btn-light, .site-footer a.btn-light:hover { color: var(--ink); text-decoration: none; }
