/* ============================================================
   CSS PÚBLICO — capa de adquisición (sitio marketing, 17/08/2026)
   Reusa las variables del tema "Acero y latón" (assets/css/base.css):
   NO define colores propios, hereda --bg-page, --panel, --accent,
   --green, --line, --font... así el sitio público es coherente
   con la app sin duplicar la paleta.
   Prefijo de clases: pub- (nunca chocan con las de la app).
   ============================================================ */

.pub-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- NAV ---------- */
.pub-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pub-nav-in { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.pub-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--font-titulo); font-weight: 700; font-size: 17px; white-space: nowrap; }
.pub-logo img { width: 26px; height: 26px; }
.pub-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.pub-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 8px 11px; border-radius: 8px; }
.pub-links a:hover { color: var(--ink); background: var(--bg-page); }
.pub-nav-cta { margin-left: 6px; }
@media (max-width: 860px) { .pub-links { display: none; } }

/* ---------- BOTONES ---------- */
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 600; padding: 11px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.pub-btn:active { transform: translateY(1px); }
.pub-btn-primary { background: var(--green); color: #fff; }
.pub-btn-primary:hover { background: var(--green-hover); }
.pub-btn-accent { background: var(--accent); color: var(--accent-ink); }
.pub-btn-accent:hover { background: var(--accent-hover); }
.pub-btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.pub-btn-ghost:hover { background: var(--bg-page); }

/* ---------- HERO ---------- */
.pub-hero { padding: 64px 0 48px; }
.pub-hero h1 { font-family: var(--font-titulo); font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.01em; }
.pub-hero h1 em { font-style: normal; color: var(--accent); }
.pub-hero p.lede { font-size: 17.5px; color: var(--ink-soft); max-width: 640px; margin: 0 0 26px; }
.pub-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pub-hero-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- SECCIONES ---------- */
.pub-seccion { padding: 44px 0; }
.pub-seccion h2 { font-family: var(--font-titulo); font-size: clamp(23px, 3vw, 30px); margin: 0 0 10px; }
.pub-seccion .pub-sub { color: var(--ink-soft); font-size: 15.5px; max-width: 680px; margin: 0 0 26px; }

/* Grid de cards */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.pub-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pub-card h3 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.pub-card h3 .pub-ic { color: var(--green); display: inline-flex; }
.pub-card h3 .pub-ic svg { width: 18px; height: 18px; }
.pub-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.pub-card a { color: var(--ink); }

/* Lista de puntos (hero/beneficios) */
.pub-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-check li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; }
.pub-check li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Franja de integraciones */
.pub-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 15px; font-size: 14px; color: var(--ink); }
.pub-chip b { color: var(--accent); }

/* ---------- PRICING ---------- */
.pub-precios { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; align-items: start; }
.pub-plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pub-plan.destacado { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.pub-plan .nombre { font-family: var(--font-titulo); font-weight: 700; font-size: 17px; }
.pub-plan .precio { font-size: 28px; font-weight: 700; color: var(--ink); }
.pub-plan .precio small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.pub-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; flex: 1; }
.pub-plan ul li { display: flex; gap: 7px; align-items: flex-start; color: var(--ink-soft); }
.pub-plan ul li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pub-plan ul li.no::before { content: "—"; color: var(--line-strong); }
.pub-plan .tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); font-weight: 700; }

/* ---------- FAQ ---------- */
.pub-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.pub-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; }
.pub-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: "+"; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.pub-faq details[open] summary::after { content: "−"; }
.pub-faq details p, .pub-faq details li { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 0; }

/* ---------- CTA FINAL ---------- */
.pub-cta-final { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 26px; text-align: center; box-shadow: var(--shadow); }
.pub-cta-final h2 { margin: 0 0 8px; }
.pub-cta-final p { color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- FOOTER ---------- */
.pub-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0 44px; font-size: 13.5px; color: var(--ink-soft); }
.pub-footer-in { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.pub-footer-col { display: grid; gap: 7px; }
.pub-footer-col b { color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.pub-footer-col a { color: var(--ink-soft); text-decoration: none; }
.pub-footer-col a:hover { color: var(--ink); }
.pub-footer-bottom { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- PÁGINAS SIMPLES (404/500/contacto/registro) ---------- */
.pub-simple { max-width: 560px; margin: 60px auto; }
.pub-simple .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pub-simple h1 { font-family: var(--font-titulo); font-size: 26px; margin: 0 0 10px; }
.pub-simple label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 5px; }
.pub-simple input, .pub-simple select { width: 100%; padding: 11px 12px; font-size: 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-page); color: var(--ink); }
.pub-simple input:focus, .pub-simple select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.pub-simple .err { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 0 0 14px; }
.pub-simple .ok { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 0 0 14px; }
.pub-simple .mini { font-size: 13px; color: var(--ink-soft); margin-top: 12px; line-height: 1.55; }

/* ---------- BLOG ---------- */
.pub-post { max-width: 720px; margin: 0 auto; }
.pub-post h1 { font-family: var(--font-titulo); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 18px 0 8px; }
.pub-post .meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.pub-post article { font-size: 16px; line-height: 1.7; }
.pub-post article h2 { font-family: var(--font-titulo); font-size: 22px; margin: 30px 0 10px; }
.pub-post article p { margin: 0 0 16px; }
.pub-post article ul { padding-left: 22px; }
.pub-post article li { margin-bottom: 7px; }
.pub-post article a { color: var(--green); }
.pub-breadcrumb { font-size: 13px; color: var(--ink-soft); margin: 26px 0 0; }
.pub-breadcrumb a { color: var(--ink-soft); }

/* Responsive fino */
@media (max-width: 560px) {
  .pub-hero { padding: 42px 0 34px; }
  .pub-btn { width: 100%; }
  .pub-hero-ctas { flex-direction: column; }
}
