/* ============================================================
   Repostando — páginas de contenido (sobre, contacto, legales)
   Usa los tokens definidos en styles.css
   ============================================================ */

body.doc { padding-bottom: 0; }

/* Cabecera con navegación */
.doc-top {
  position: static;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 0;
}
.doc-top .brand { margin-bottom: 0; text-decoration: none; color: inherit; }
.doc-top .brand h1 { font-size: 18px; }
.dot-static {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--fuel), var(--fuel-ink));
  display: grid; place-items: center;
}
.dot-static svg { width: 18px; height: 18px; }

.mainnav { display: flex; gap: 4px; }
.mainnav a {
  color: #C4CDD7; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 9px; transition: background .15s, color .15s;
}

/* MENU */
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.top-bar .brand { margin-bottom: 0; }
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.mainnav a.on { color: #fff; background: var(--fuel); }

/* Columna de lectura */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 10px;
}

.page h2 {
  font-size: 27px; line-height: 1.15; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.page .lead {
  font-size: 17px; color: var(--muted); margin: 0 0 8px; line-height: 1.55;
}
.page .updated { font-size: 12.5px; color: var(--muted-2); margin: 0 0 26px; }

.page article h3 {
  font-size: 19px; margin: 30px 0 8px; letter-spacing: -.01em;
  padding-top: 6px;
}
.page article h4 { font-size: 15.5px; margin: 20px 0 6px; color: var(--ink-soft); }
.page article p { font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; color: #2A323C; }
.page article ul, .page article ol { margin: 0 0 16px; padding-left: 22px; }
.page article li { font-size: 15.5px; line-height: 1.6; margin-bottom: 7px; color: #2A323C; }
.page article a { color: var(--fuel-ink); text-decoration: underline; text-underline-offset: 2px; }
.page article strong { font-weight: 700; color: var(--ink); }

.callout {
  background: color-mix(in srgb, var(--fuel) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--fuel) 22%, var(--line));
  border-radius: 12px; padding: 14px 16px; margin: 0 0 18px;
}
.callout p { margin: 0; font-size: 14.5px; color: var(--fuel-ink); }

.placeholder {
  background: #FDF4E3; border: 1px dashed var(--mid);
  color: #7A3E00; border-radius: 8px; padding: 2px 6px; font-weight: 700;
}

/* Tabla (cookies) */
.tabla { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 13.5px; }
.tabla th, .tabla td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { background: var(--bg); font-weight: 700; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }

/* Formulario de contacto */
.form { margin: 6px 0 10px; }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .send {
  appearance: none; border: 0; cursor: pointer;
  background: var(--fuel); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
}
.form .send:active { transform: translateY(1px); }

.flash { border-radius: 12px; padding: 12px 15px; margin: 0 0 18px; font-size: 14.5px; }
.flash.ok { background: #E7F6EC; color: var(--fuel-ink); border: 1px solid #C6EAD2; }
.flash.err { background: #FBE9E9; color: #8A3A3A; border: 1px solid #F2CFCF; }

.contact-direct {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; margin-bottom: 8px;
}

/* Pie del sitio */
.site-foot {
  margin-top: 40px; background: var(--ink); color: #9BA7B4;
  padding: 26px 20px 34px;
}
.foot-links {
  max-width: 760px; margin: 0 auto 14px;
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center;
}
.foot-links a { color: #C4CDD7; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  max-width: 680px; margin: 0 auto; text-align: center;
  font-size: 12px; line-height: 1.6; color: #77828F;
}

/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lift);
}
.cookie-banner[hidden] { display: none; }
.cb-inner {
  max-width: 820px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cb-text { margin: 0; font-size: 13.5px; color: var(--text); flex: 1 1 300px; line-height: 1.5; }
.cb-text a { color: var(--fuel-ink); }
.cb-actions { display: flex; gap: 8px; margin-left: auto; }
.cb-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 10px;
}
.cb-btn.ghost { background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.cb-btn.solid { background: var(--fuel); border: 1px solid var(--fuel); color: #fff; }

@media (max-width: 480px) {
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; }
}

/* ---------- Blog / guías ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin: 10px 0 20px;
}
.post-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.post-cover {
  position: relative; height: 116px; display: grid; place-items: center;
}
.post-cover svg { width: 42px; height: 42px; opacity: .9; }
.post-cover.big { height: 150px; border-radius: 16px; margin: 8px 0 18px; }
.post-cover.big svg { width: 56px; height: 56px; }
.post-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(2px);
  text-transform: uppercase; letter-spacing: .04em;
}
.post-body { padding: 13px 14px 15px; }
.post-body h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.25; letter-spacing: -.01em; }
.post-body p { font-size: 13.5px; color: var(--muted); margin: 0 0 9px; line-height: 1.5; }
.post-meta { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.lead-meta { margin: 0 0 20px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--fuel-ink); text-decoration: none; }
.crumbs span { color: var(--muted-2); }
.rel-title { margin-top: 34px; font-size: 18px; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Compartir en redes ---------- */
.share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 26px 0 6px; padding: 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card);
}
.share-title { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: transform .12s, filter .12s;
}
.sh-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sh-btn svg { width: 21px; height: 21px; }
.sh-wa { background: #25D366; }
.sh-tg { background: #229ED9; }
.sh-x { background: #0F1419; }
.sh-fb { background: #1877F2; }
.sh-native { background: var(--fuel); }
.sh-copy { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.share-copied { font-size: 13px; font-weight: 600; color: var(--fuel-ink); }
.share-copied[hidden] { display: none; }

/* ---------- Barra de navegación inferior (móvil) ---------- */
.tabbar { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600;
  padding: 5px 4px;
}
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--fuel); }

@media (max-width: 640px) {
  .mainnav { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(16, 24, 40, .07);
  }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important; }
  .cookie-banner { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
/* Nombre de marca (antes era <h1>) */
.brand .brand-name { display:block; font-size:17px; font-weight:700; letter-spacing:-.01em; color:#fff; }

/* Contenido SEO de la home */
.seo { padding: 6px 16px 30px; }
.seo h1 { font-size: 22px; line-height:1.22; letter-spacing:-.01em; margin: 16px 0 10px; color: var(--ink); }
.seo h2 { font-size: 17px; margin: 26px 0 10px; letter-spacing:-.01em; }
.seo p  { font-size: 14.5px; line-height: 1.62; color:#2A323C; margin: 0 0 12px; }
.seo strong { color: var(--ink); font-weight: 700; }
.seo .steps { margin: 0 0 8px; padding-left: 20px; }
.seo .steps li { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; color:#2A323C; }

.faq details { border:1px solid var(--line); border-radius:12px; background:var(--card); margin-bottom:8px; }
.faq summary { cursor:pointer; padding:13px 14px; font-weight:600; font-size:14.5px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:22px; line-height:1; color:var(--muted-2); font-weight:400; }
.faq details[open] summary { color: var(--fuel-ink); }
.faq details[open] summary::after { content:"–"; }
.faq .a { padding: 0 14px 14px; font-size:14px; line-height:1.6; color: var(--muted); }

.guias-links { display:flex; flex-wrap:wrap; gap:8px; }
.guias-links a { font-size:13.5px; font-weight:600; color:var(--fuel-ink); text-decoration:none; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:7px 13px; }
.guias-links a:hover { border-color: var(--fuel); }