/* ============================================================
   HermesOS — landing pública SEO (apex hermesapp.mx)
   Mismos design tokens + estilos que la landing de la app
   (apps/web/web/src/saas/saas.css + global.css). Estático.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-elev: #0f172a;
  --bg-elev-2: #1e293b;
  --bg-hover: #334155;
  --border: #334155;
  --border-strong: #475569;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand: #06b6d4;
  --brand-2: #3b82f6;
  --brand-hover: #22d3ee;
  --brand-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #a855f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; }

/* ── Landing shell ─────────────────────────────────────────── */
.lp {
  --lp-max: 1140px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6, 182, 212, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(59, 130, 246, 0.10), transparent 55%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
.lp-container { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(2, 6, 23, 0.72); border-bottom: 1px solid var(--border); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.lp-brand img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(6,182,212,0.45)); }
.lp-nav-links { display: flex; align-items: center; gap: 8px; }
.lp-nav-links a { color: var(--text-secondary); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.lp-nav-links a:hover { color: var(--text); background: var(--bg-elev-2); }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 12px; transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease; }
.lp-btn-primary { background: var(--brand-gradient); color: #04121a; box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35); }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 182, 212, 0.5); color: #04121a; }
.lp-btn-ghost { background: var(--bg-elev-2); color: var(--text); border: 1px solid var(--border-strong); }
.lp-btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.lp-btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.lp-btn-block { width: 100%; }
.lp-nav-cta { padding: 9px 16px; font-size: 14px; }

/* Hero */
.lp-hero { padding: 72px 0 48px; text-align: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-elev-2); border: 1px solid var(--border-strong); color: var(--text-secondary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.lp-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.lp-h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.04; font-weight: 850; letter-spacing: -0.03em; margin: 0 auto 20px; max-width: 16ch; }
.lp-h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-secondary); max-width: 60ch; margin: 0 auto 32px; line-height: 1.55; }
.lp-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-cta-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* Section scaffolding */
.lp-section { padding: 64px 0; }
.lp-eyebrow { color: var(--brand-hover); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.lp-h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 820; letter-spacing: -0.02em; text-align: center; margin: 10px auto 14px; max-width: 20ch; }
.lp-section-sub { color: var(--text-secondary); text-align: center; max-width: 56ch; margin: 0 auto 44px; font-size: 16px; line-height: 1.55; }

/* Feature rows */
.lp-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.lp-feature.reverse .lp-feature-media { order: 2; }
.lp-feature-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-hover); margin-bottom: 14px; }
.lp-feature h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.lp-feature p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.lp-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.lp-check-list li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-top: 1px; }

/* Mockup card */
.mk { background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%); border: 1px solid var(--border-strong); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); position: relative; overflow: hidden; }
.mk::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.04) 50%, transparent 70%); transform: translateX(-100%); animation: mk-sheen 6s ease-in-out infinite; }
@keyframes mk-sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.mk-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.mk-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mk-title { margin-left: 8px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.mk-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 8px; }
.mk-sku { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.mk-price { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.mk-old { color: var(--text-dim); text-decoration: line-through; font-size: 12px; }
.mk-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.mk-badge.win { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.mk-badge.keep { background: rgba(148, 163, 184, 0.16); color: var(--text-muted); }
.mk-badge.up { background: rgba(6, 182, 212, 0.16); color: var(--brand-hover); }
.mk-row.flash { animation: mk-flash 2.6s ease-in-out infinite; }
.mk-row.flash.d1 { animation-delay: 0.6s; }
.mk-row.flash.d2 { animation-delay: 1.2s; }
@keyframes mk-flash { 0%, 92%, 100% { border-color: var(--border); } 4%, 10% { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18); } }
.mk-cascade { display: grid; gap: 7px; }
.mk-line { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--bg); }
.mk-line .lbl { color: var(--text-secondary); }
.mk-line .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.mk-line.neg .val { color: var(--red); }
.mk-line.pos { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25); }
.mk-line.pos .val { color: #4ade80; font-weight: 800; }
.mk-bar-track { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 4px; }
.mk-bar-fill { height: 100%; background: var(--brand-gradient); width: 0; animation: mk-fill 3s ease-in-out infinite alternate; }
@keyframes mk-fill { from { width: 18%; } to { width: 74%; } }
.mk-chat { display: grid; gap: 10px; }
.mk-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.mk-msg.in { background: var(--bg); border: 1px solid var(--border); justify-self: start; border-bottom-left-radius: 4px; }
.mk-msg.out { background: var(--brand-gradient); color: #04121a; justify-self: end; border-bottom-right-radius: 4px; font-weight: 500; }

/* Pricing */
.lp-band-toggle { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 36px; max-width: 720px; }
.lp-band-toggle span { background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text-secondary); padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.lp-band-toggle span.active { background: var(--brand-gradient); color: #04121a; border-color: transparent; }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.lp-plan { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.lp-plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 50px -24px rgba(6, 182, 212, 0.5); }
.lp-plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-gradient); color: #04121a; font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.lp-plan-name { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-hover); }
.lp-plan-tag { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 16px; min-height: 38px; }
.lp-plan-price { font-size: 40px; font-weight: 850; letter-spacing: -0.02em; }
.lp-plan-price small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.lp-plan-feats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.lp-plan-feats li { display: flex; gap: 9px; font-size: 14px; color: var(--text-secondary); align-items: flex-start; }
.lp-plan-feats li::before { content: "\2713"; color: var(--green); font-weight: 800; }

/* FAQ */
.lp-faq { max-width: 760px; margin: 32px auto 0; display: grid; gap: 12px; }
.lp-faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand-hover); font-size: 20px; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq p { color: var(--text-secondary); margin: 12px 0 0; line-height: 1.6; font-size: 14.5px; }

/* Prose (páginas SEO de texto) */
.lp-prose { max-width: 760px; margin: 0 auto; }
.lp-prose h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 820; letter-spacing: -0.02em; margin: 40px 0 14px; text-align: left; max-width: none; }
.lp-prose h3 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.lp-prose p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.lp-prose ul { color: var(--text-secondary); font-size: 16px; line-height: 1.7; padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.lp-prose ul li { display: flex; gap: 10px; align-items: flex-start; }
.lp-prose ul li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-top: 1px; }
.lp-prose strong { color: var(--text); }

/* Artículos / Guías */
.art-kicker { color: var(--brand-hover); font-weight: 700; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 12px; }
.art-h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; }
.art-h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-secondary); line-height: 1.55; margin: 0 0 16px; }
.art-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.art-hero { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 18px; border: 1px solid var(--border-strong); margin: 0 0 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.art-cta { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.12)); border: 1px solid var(--border-strong); border-radius: 18px; padding: 26px; margin: 36px 0; }
.art-rels { display: grid; gap: 10px; margin: 6px 0 8px; }
.art-rel { display: flex; gap: 10px; align-items: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; color: var(--text); font-weight: 600; font-size: 15px; }
.art-rel:hover { border-color: var(--brand); color: var(--text); background: var(--bg-elev-2); }
.art-rel span { color: var(--brand-hover); }
.art-author { display: flex; gap: 12px; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.art-author img { border-radius: 50%; filter: drop-shadow(0 3px 8px rgba(6,182,212,0.45)); flex-shrink: 0; }
.art-author strong { color: var(--text); }

/* Hub /guias */
.hub-cluster { font-size: clamp(20px, 3vw, 26px); font-weight: 820; letter-spacing: -0.02em; margin: 40px 0 16px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hub-card { display: block; background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%); border: 1px solid var(--border-strong); border-radius: 16px; padding: 20px; color: inherit; transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 22px 46px -26px rgba(6,182,212,0.5); color: inherit; }
.hub-card-kicker { color: var(--brand-hover); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.hub-card-title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; }
.hub-card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 0.82fr; gap: 24px; align-items: start; }
.calc-card { background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%); border: 1px solid var(--border-strong); border-radius: 18px; padding: 24px; box-shadow: 0 18px 40px -26px rgba(0,0,0,0.8); }
.calc-field { margin-bottom: 16px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.calc-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 16px; font-family: inherit; }
.calc-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6,182,212,0.25); }
.calc-hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.45; }
.calc-result { position: sticky; top: 80px; }
.calc-neto { font-size: 38px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.calc-out { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; }
.calc-out .lbl { color: var(--text-secondary); }
.calc-out .val { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* Glosario */
.gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin: 0; }
.gloss-item { background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%); border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px 20px; }
.gloss-item dt { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 6px; }
.gloss-item dd { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.gloss-item dd a { font-weight: 600; white-space: nowrap; }

/* Breadcrumb visible (guías) */
.art-crumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.art-crumb a { color: var(--text-muted); }
.art-crumb a:hover { color: var(--brand-hover); }
.art-crumb span { color: var(--text-dim); margin: 0 6px; }

/* Final CTA + footer */
.lp-final { text-align: center; background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.12)); border: 1px solid var(--border-strong); border-radius: 24px; padding: 56px 28px; margin: 24px 0; }
.lp-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.lp-footer-links a { color: var(--text-muted); }
.lp-footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .lp-feature { grid-template-columns: 1fr; gap: 24px; }
  .lp-feature.reverse .lp-feature-media { order: 0; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-nav-links a:not(.lp-nav-cta) { display: none; }
}
