/* Estilos de las páginas comerciales nuevas (Fase 6 del pedido) y de
   /recursos: MarketingLayout, las 8 páginas de frontend/src/views/marketing/,
   /recursos y sus artículos, y la 404.

   Es un archivo PLANO en public/, servido tal cual por Vite (no pasa por el
   compilador de <style scoped> de Vue) A PROPÓSITO: estas páginas se sirven
   como HTML estático puro sin el bundle de la SPA (ver scripts/prerender.mjs
   y seo/pages.js, modo: 'estatica'), así que su CSS no puede depender de que
   el runtime de Vue lo inyecte -- tiene que ser un <link rel="stylesheet">
   de verdad, presente en el HTML antes de que se pinte nada. Por eso los
   .vue de esta carpeta NO tienen <style>: todo vive acá.

   Si mañana una de estas páginas entra a la SPA (bundle + router), este
   archivo se sigue pudiendo enlazar igual -- no hay nada específico de SSR. */

:root {
  --nu-blue: #16a34a;
  --nu-blue-dark: #15803d;
  --nu-blue-light: #e6f7ec;
  --nu-navy: #131316;
  --nu-navy-2: #1c1c1f;
  --nu-ink: #131316;
  --nu-ink-soft: #6b6c74;
  --nu-bg: #f6f6f7;
  --nu-white: #ffffff;
  --nu-line: #e7e7ea;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --container: 1160px;
}

/* ── Layout (header, nav, breadcrumb, cta band, footer) ─────────────────── */
.mkt { font-family: var(--font-body); color: var(--nu-ink); background: var(--nu-bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.mkt h1, .mkt h2, .mkt h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.mkt a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--nu-navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; display: block; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a { color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 600; }
.nav-links > a:hover { color: #fff; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 600; padding: 6px 0; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ' ▾'; font-size: 11px; }
.nav-drop[open] summary { color: #fff; }
.nav-drop-panel { position: absolute; top: 100%; left: -14px; margin-top: 8px; background: #fff; border-radius: 12px; padding: 10px; min-width: 220px; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.nav-drop-panel a { color: var(--nu-ink); font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 8px; }
.nav-drop-panel a:hover { background: var(--nu-blue-light); color: var(--nu-blue-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.login-link { color: rgba(255, 255, 255, .82); font-size: 14.5px; font-weight: 600; }
.login-link:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 12px; border: none; cursor: pointer; }
.btn-primary { background: var(--nu-blue); color: #fff; }
.btn-primary:hover { background: var(--nu-blue-dark); }

.breadcrumb { padding: 18px 20px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 13.5px; color: var(--nu-ink-soft); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--nu-line); }
.breadcrumb a { color: var(--nu-ink-soft); }
.breadcrumb a:hover { color: var(--nu-blue-dark); }
.breadcrumb [aria-current] { color: var(--nu-ink); font-weight: 600; }

.mkt-cta { background: var(--nu-navy); color: #fff; padding: 56px 0; text-align: center; margin-top: 64px; }
.mkt-cta h2 { font-size: clamp(24px, 4.5vw, 32px); margin-bottom: 12px; }
.mkt-cta p { color: rgba(255, 255, 255, .8); margin-bottom: 24px; }
.mkt-cta .btn-primary { background: #fff; color: var(--nu-blue-dark); }
.mkt-cta .btn-primary:hover { background: #eef2ff; }

footer { background: var(--nu-navy-2); color: rgba(255, 255, 255, .7); padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-brand p { margin-top: 12px; font-size: 14px; max-width: 32ch; }
.foot-col h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.foot-col a { color: rgba(255, 255, 255, .6); font-size: 14.5px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 13px; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Cuerpo del artículo (hero, secciones, lista, relacionados, FAQ) ─────── */
.mkt-page { max-width: var(--container); margin: 0 auto; padding: 40px 20px 0; }

.mkt-hero { max-width: 74ch; margin-bottom: 48px; }
.mkt-hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; margin-bottom: 14px; color: var(--nu-ink); }
.mkt-hero .lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--nu-ink-soft); max-width: 62ch; }

.mkt-section { max-width: 74ch; margin-bottom: 40px; }
.mkt-section h2 { font-size: clamp(21px, 3.2vw, 26px); margin-bottom: 12px; color: var(--nu-ink); }
.mkt-section p { color: var(--nu-ink-soft); font-size: 16px; margin-bottom: 12px; }
.mkt-section p:last-child { margin-bottom: 0; }

.mkt-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mkt-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--nu-ink); font-size: 15.5px; }
.mkt-list svg { flex-shrink: 0; margin-top: 3px; color: var(--nu-blue); width: 18px; height: 18px; }

.mkt-related { display: flex; flex-wrap: wrap; gap: 10px; }
.mkt-related a { background: var(--nu-white); border: 1px solid var(--nu-line); border-radius: 10px; padding: 10px 16px; font-size: 14.5px; font-weight: 600; color: var(--nu-blue-dark); }
.mkt-related a:hover { background: var(--nu-blue-light); }

.mkt-faq { max-width: 74ch; margin-bottom: 8px; }
.mkt-faq h2 { font-size: clamp(21px, 3.2vw, 26px); margin-bottom: 16px; color: var(--nu-ink); }
.mkt-faq-list { display: flex; flex-direction: column; gap: 10px; }
.mkt-faq-item { background: var(--nu-white); border: 1px solid var(--nu-line); border-radius: 14px; padding: 4px 20px; }
.mkt-faq-item summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 700; font-size: 15px; color: var(--nu-ink); }
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary::after { content: '+'; float: right; color: var(--nu-blue); font-weight: 700; font-size: 19px; }
.mkt-faq-item[open] summary::after { content: '−'; }
.mkt-faq-item p { color: var(--nu-ink-soft); font-size: 14.5px; padding-bottom: 16px; margin: 0; }
.mkt-faq-item summary:focus-visible { outline: 2px solid var(--nu-blue); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 640px) {
  .mkt-page { padding-top: 24px; }
}

/* ── /precios ─────────────────────────────────────────────────────────── */
.price-grid-wrap { max-width: none; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.price-card { position: relative; background: var(--nu-white); border: 1px solid var(--nu-line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--nu-blue); box-shadow: 0 16px 32px -16px rgba(22, 163, 74, .35); }
.badge { position: absolute; top: -12px; right: 18px; background: var(--nu-blue); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.price-promise { color: var(--nu-ink-soft); font-size: 13.5px; margin-bottom: 14px; }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.price-amt .n { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.price-amt .u { color: var(--nu-ink-soft); font-size: 13.5px; }
.price-inherits { font-size: 13.5px; color: var(--nu-ink-soft); margin-bottom: 10px; }
.price-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.price-list li { display: flex; gap: 8px; font-size: 13.5px; }
.price-list svg { flex-shrink: 0; margin-top: 3px; color: var(--nu-blue); width: 15px; height: 15px; }
.price-quotas { border-top: 1px solid var(--nu-line); padding-top: 12px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.price-quota { display: flex; justify-content: space-between; font-size: 13px; color: var(--nu-ink-soft); }
.price-quota .v { color: var(--nu-ink); font-weight: 600; }
.price-card .btn { margin-top: auto; }
.price-note { font-size: 13px; color: var(--nu-ink-soft); max-width: 74ch; }
.ai-credits-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ai-credits-table th, .ai-credits-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--nu-line); }

/* ── /recursos ────────────────────────────────────────────────────────── */
.recursos-grid { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.recurso-card { background: var(--nu-white); border: 1px solid var(--nu-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.recurso-card:hover { border-color: var(--nu-blue); }
.recurso-card h2 { font-size: 18px; margin: 0; }
.recurso-card p { color: var(--nu-ink-soft); font-size: 14.5px; margin: 0; }
.recurso-card time { color: var(--nu-ink-soft); font-size: 12.5px; margin-top: 4px; }

/* ── Artículos individuales ───────────────────────────────────────────── */
.articulo-meta { color: var(--nu-ink-soft); font-size: 13.5px; margin-top: 8px; }
.articulo .mkt-section { max-width: 68ch; }
.articulo h2 { margin-top: 8px; }
