/* Blog de videnteelche.com — mismos colores y tipografías que la portada */
:root {
  --gold: #D8BA62;
  --gold-dark: #C5B24B;
  --blue: #013B8A;
  --dark: #23282E;
  --text: #4A4A4A;
  --muted: #6b6b6b;
  --bg: #F9F9F9;
  --card: #FFFFFF;
  --line: #e6e1d3;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.blog-page { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--sys); -webkit-font-smoothing: antialiased; }
.blog-page *, .blog-page *::before, .blog-page *::after { box-sizing: border-box; }
.blog-page img { max-width: 100%; height: auto; display: block; }
.blog-page a { color: var(--blue); }
.b-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.b-skip { position: absolute; left: -9999px; }
.b-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Cabecera */
.b-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.b-header .b-wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.b-logo { display: flex; align-items: center; flex-shrink: 0; }
.b-logo img { width: 150px; height: auto; }
.b-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.b-nav a { color: #fff; text-decoration: none; font: 500 15px/1 "Jost", sans-serif; letter-spacing: .02em; }
.b-nav a:hover, .b-nav a[aria-current="page"] { color: var(--gold); }
.b-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #000 !important; text-decoration: none; font: 700 15px/1 "Jost", sans-serif; padding: 12px 20px; border-radius: 30px; white-space: nowrap; }
.b-btn:hover, .b-btn:focus-visible { background: var(--gold-dark); }
.b-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.b-btn--outline { background: transparent; color: #fff !important; border: 2px solid var(--gold); }
.b-btn--outline:hover { background: var(--gold); color: #000 !important; }
.b-menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.b-menu-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* Portada del blog / categoría */
.b-hero { background: linear-gradient(rgba(35,25,20,.72), rgba(35,25,20,.8)), url(../img/fondo-scaled.jpg) center/cover; color: #fff; text-align: center; padding: 64px 0 56px; }
.b-hero h1 { font: 600 clamp(32px, 5vw, 52px)/1.15 "Jost", sans-serif; margin: 0 0 14px; color: var(--gold); }
.b-hero p { max-width: 720px; margin: 0 auto; font-size: 18px; color: #f1ece2; }
.b-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 0; padding: 0; list-style: none; }
.b-cats a { display: inline-block; padding: 8px 16px; border: 1px solid rgba(216,186,98,.7); border-radius: 30px; color: #fff; text-decoration: none; font: 500 14px/1 "Jost", sans-serif; }
.b-cats a:hover, .b-cats a[aria-current="page"] { background: var(--gold); color: #000; }

.b-section { padding: 56px 0; }
.b-section h2.b-section-title { font: 600 30px/1.2 "Jost", sans-serif; color: var(--dark); margin: 0 0 8px; }
.b-section .b-section-sub { margin: 0 0 28px; color: var(--muted); }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.b-card { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.b-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.b-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.b-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card-cat { font: 600 12px/1 "Jost", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.b-card h2, .b-card h3 { font: 600 20px/1.3 "Jost", sans-serif; margin: 0; color: var(--dark); }
.b-card h2 a, .b-card h3 a { color: inherit; text-decoration: none; }
.b-card h2 a::after, .b-card h3 a::after { content: ""; position: absolute; inset: 0; }
.b-card { position: relative; }
.b-card-cat { position: relative; z-index: 1; }
.b-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.b-card-more { margin-top: auto; font: 600 14px/1 "Jost", sans-serif; color: #9a7b22; }

/* Artículo */
.b-post-hero { background: var(--dark); color: #fff; padding: 40px 0 0; }
.b-crumbs { font-size: 14px; color: #cfc8b8; margin: 0 0 16px; }
.b-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold); }
.b-crumbs a { color: #e8e1cf; text-decoration: none; }
.b-crumbs a:hover { color: var(--gold); }
.b-post-hero h1 { font: 600 clamp(30px, 4.4vw, 46px)/1.15 "Jost", sans-serif; color: #fff; margin: 0 0 14px; max-width: 900px; }
.b-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #cfc8b8; margin: 0 0 28px; }
.b-meta a { color: var(--gold); text-decoration: none; }
.b-post-img { margin: 0; border-radius: 10px 10px 0 0; overflow: hidden; max-width: 1140px; }
.b-post-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-height: 560px; }

.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 20px 64px; }
.b-content { background: var(--card); border-radius: 10px; padding: 40px 48px; box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.b-content > :first-child { margin-top: 0; }
.b-content .b-lead { font-size: 19px; color: #3d3d3d; }
.b-content h2 { font: 600 28px/1.25 "Jost", sans-serif; color: var(--dark); margin: 44px 0 14px; }
.b-content h3 { font: 600 21px/1.3 "Jost", sans-serif; color: var(--dark); margin: 30px 0 10px; }
.b-content p, .b-content ul, .b-content ol { margin: 0 0 18px; }
.b-content li { margin-bottom: 8px; }
.b-content strong { color: #2f2f2f; }
.b-content blockquote { margin: 26px 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: #fbf7ea; border-radius: 0 8px 8px 0; color: #3d3d3d; }
.b-content blockquote p:last-child { margin: 0; }
.b-content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.b-content th, .b-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.b-content th { background: #f6f1e2; font-family: "Jost", sans-serif; font-weight: 600; color: var(--dark); }
.b-table-wrap { overflow-x: auto; }
.b-toc { background: #f7f4ec; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin: 0 0 30px; }
.b-toc strong { font-family: "Jost", sans-serif; display: block; margin-bottom: 6px; color: var(--dark); }
.b-toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.b-toc li { margin: 4px 0; }
.b-toc a { text-decoration: none; }
.b-faq h3 { font-size: 19px; }
.b-cta { margin: 40px 0 0; padding: 30px; border-radius: 10px; background: linear-gradient(135deg, #2c2420, #23282E); color: #f1ece2; text-align: center; }
.b-cta h2 { color: var(--gold) !important; margin: 0 0 10px !important; font-size: 26px !important; }
.b-cta p { margin: 0 0 20px !important; }
.b-cta .b-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.b-note { font-size: 13px; color: var(--muted); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }

.b-aside { display: flex; flex-direction: column; gap: 24px; }
.b-aside-box { background: var(--card); border-radius: 10px; padding: 24px; box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.b-aside-box h2 { font: 600 19px/1.3 "Jost", sans-serif; color: var(--dark); margin: 0 0 12px; }
.b-aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.b-aside-box li { padding: 8px 0; border-bottom: 1px solid #f0ece2; }
.b-aside-box li:last-child { border: 0; }
.b-aside-box a { text-decoration: none; }
.b-aside-cta { background: var(--dark); color: #f1ece2; text-align: center; position: sticky; top: 92px; }
.b-aside-cta h2 { color: var(--gold); }
.b-aside-cta img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--gold); }
.b-aside-cta p { font-size: 15px; margin: 0 0 16px; }
.b-aside-cta .b-btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.b-aside-cta small { display: block; font-size: 11px; color: #a9a294; line-height: 1.4; }

.b-related { padding: 0 0 64px; }
.b-related h2 { font: 600 28px/1.2 "Jost", sans-serif; color: var(--dark); margin: 0 0 24px; }

/* Bloque en la portada */
.b-home-teaser { background: #fff; padding: 64px 0; }
.b-home-teaser .b-section-title { text-align: center; }
.b-home-teaser .b-section-sub { text-align: center; }
.b-home-teaser .b-more { text-align: center; margin-top: 32px; }
.b-home-teaser .b-btn { color: #000 !important; }

/* Pie */
.b-footer { background: var(--dark); color: #cfc8b8; padding: 44px 0 30px; font-size: 14px; }
.b-footer .b-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.b-footer h2 { font: 600 16px/1.3 "Jost", sans-serif; color: var(--gold); margin: 0 0 12px; }
.b-footer ul { list-style: none; margin: 0; padding: 0; }
.b-footer li { margin: 0 0 8px; }
.b-footer a { color: #f1ece2; text-decoration: none; }
.b-footer a:hover { color: var(--gold); }
.b-footer img { width: 160px; margin-bottom: 12px; }
.b-footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12px; text-align: center; color: #a9a294; }

/* Barra fija de llamada en móvil */
.b-callbar { display: none; }

@media (max-width: 1099px) {
  .b-menu-toggle { display: block; margin-left: auto; }
  .b-header .b-btn { margin-left: 4px; }
  .b-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); box-shadow: 0 10px 20px rgba(0,0,0,.3); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .b-nav.is-open { display: flex; }
  .b-nav a { padding: 12px 0; width: 100%; font-size: 17px; }
}
@media (max-width: 1024px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-layout { grid-template-columns: minmax(0, 1fr); }
  .b-aside-cta { position: static; }
  .b-footer .b-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .blog-page { font-size: 16px; padding-bottom: 64px; }
  .b-header .b-btn { display: none; }
  .b-logo img { width: 130px; }
  .b-grid { grid-template-columns: 1fr; gap: 22px; }
  .b-hero { padding: 44px 0 40px; }
  .b-content { padding: 26px 20px; }
  .b-content h2 { font-size: 24px; margin-top: 36px; }
  .b-layout { padding: 24px 12px 48px; gap: 28px; }
  .b-post-hero { padding-top: 26px; }
  .b-footer .b-wrap { grid-template-columns: 1fr; }
  .b-callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #000; padding: 10px; }
  .b-callbar a { display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--gold); color: #000; text-decoration: none; font: 700 13px/1 "Jost", sans-serif; padding: 12px 6px; border-radius: 10px; animation: bZoom .6s ease both; }
  .b-callbar svg { width: 14px; height: 14px; fill: currentColor; }
}
@keyframes bZoom { from { opacity: 0; transform: scale3d(.3,.3,.3); } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .b-callbar a { animation: none; } .b-card { transition: none; } }
