/* ==========================================================================
   Entradas del blog (plantilla single.php)
   Ruta: wp-content/themes/concesionarios/css/blog-v2.css
   Tiro al Marketing · 26/11/2026
   Todo va bajo .ab y con prefijo "ab-" para no pisar Bootstrap ni main.css.
   ========================================================================== */

.ab {
  --ab-dorado: #dcad3d;
  --ab-dorado-h: #c99a2c;
  --ab-dorado-soft: #f7efd9;
  --ab-dark: #16181b;
  --ab-dark-2: #212529;
  --ab-ink: #1d1f22;
  --ab-muted: #5f6670;
  --ab-line: #e6e6e3;
  --ab-soft: #f6f5f1;
  --ab-wa: #25d366;
  --ab-r: 14px;
  color: var(--ab-ink);
  background: #fff;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
.ab *, .ab *:before, .ab *:after { box-sizing: border-box; }
.ab img { max-width: 100%; height: auto; }
.ab a { text-decoration: none; }
.ab-wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.ab-dot { color: var(--ab-dorado); }
.ab-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ab-dorado-h); margin-bottom: 8px; }
.ab-kicker:before { content: ""; width: 24px; height: 2px; background: var(--ab-dorado); }
.ab-small { font-size: 13px; color: var(--ab-muted); }

/* Botones */
.ab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 10px; padding: 13px 20px; font-size: 15px; border: 2px solid transparent; transition: .15s; line-height: 1.2; }
.ab-btn-gold { background: var(--ab-dorado); color: var(--ab-dark-2) !important; }
.ab-btn-gold:hover { background: var(--ab-dorado-h); }
.ab-btn-line { border-color: var(--ab-ink); color: var(--ab-ink) !important; background: #fff; }
.ab-btn-line:hover { background: var(--ab-ink); color: #fff !important; }
.ab-btn-ghost { border-color: rgba(255,255,255,.35); color: #fff !important; background: rgba(255,255,255,.04); }
.ab-btn-ghost:hover { border-color: #fff; }
.ab-btn-wa { background: var(--ab-wa); color: #fff !important; }
.ab-block { width: 100%; margin-top: 10px; }
.ab-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ab-ink) !important; border-bottom: 2px solid var(--ab-dorado); }
.ab-link:after { content: " →"; }

/* 1. Cabecera */
.ab-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: #111 center / cover no-repeat; padding: 110px 0 44px; }
.ab-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,16,.35) 0%, rgba(13,14,16,.55) 45%, rgba(13,14,16,.94) 100%); }
.ab-hero .ab-wrap { position: relative; width: 100%; }
.ab-crumbs { font-size: 13px; color: #cfcfcf; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-crumbs a { color: #cfcfcf; }
.ab-crumbs a:hover { color: var(--ab-dorado); }
.ab-pill { display: inline-block; background: var(--ab-dorado); color: var(--ab-dark-2) !important; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 30px; margin-bottom: 14px; }
.ab-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; max-width: 900px; margin: 0 0 18px; }
.ab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; color: #ddd; }
.ab-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.ab-avatar img { width: 36px; height: 36px; border-radius: 50%; display: block; border: 2px solid var(--ab-dorado); }
.ab-avatar-l img { width: 72px; height: 72px; }

/* Barra de categorías */
.ab-catbar { background: var(--ab-soft); border-bottom: 1px solid var(--ab-line); }
.ab-catbar .ab-wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.ab-catbar a { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ab-ink); padding: 7px 14px; border-radius: 30px; border: 1px solid var(--ab-line); background: #fff; }
.ab-catbar a:hover, .ab-catbar a.on { border-color: var(--ab-dorado); background: var(--ab-dorado-soft); }

/* 2. Cuerpo */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 36px; padding-bottom: 70px; align-items: start; }
.ab-main { max-width: 780px; }
.ab-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ab-muted) !important; margin-bottom: 20px; }
.ab-back:hover { color: var(--ab-dorado-h) !important; }
.ab-lead { font-size: 20px; line-height: 1.6; font-style: italic; font-weight: 600; color: var(--ab-ink); margin: 0 0 28px; }

/* Índice */
.ab-toc { background: var(--ab-soft); border: 1px solid var(--ab-line); border-left: 4px solid var(--ab-dorado); border-radius: var(--ab-r); padding: 18px 22px; margin: 0 0 36px; }
.ab-toc summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.ab-toc summary::-webkit-details-marker { display: none; }
.ab-toc summary:after { content: "–"; color: var(--ab-dorado-h); font-weight: 800; }
.ab-toc:not([open]) summary:after { content: "+"; }
.ab-toc ol { margin: 12px 0 0; padding-left: 22px; }
.ab-toc li { margin: 6px 0; font-size: 15.5px; line-height: 1.45; }
.ab-toc li::marker { color: var(--ab-dorado-h); font-weight: 700; }
.ab-toc a { color: var(--ab-ink); }
.ab-toc a:hover { color: var(--ab-dorado-h); text-decoration: underline; }

/* Texto del artículo */
.ab-content > *:first-child { margin-top: 0; }
.ab-content p { margin: 0 0 1.2em; }
.ab-content h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ab-ink); margin: 1.9em 0 .6em; padding-top: 4px; scroll-margin-top: 100px; }
.ab-content h2:before { content: ""; display: block; width: 44px; height: 3px; background: var(--ab-dorado); margin-bottom: 14px; }
.ab-content h3 { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 1.6em 0 .5em; scroll-margin-top: 100px; }
.ab-content h4 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .4em; }
.ab-content a { color: var(--ab-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ab-dorado); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ab-content a:hover { color: var(--ab-dorado-h); }
.ab-content strong, .ab-content b { font-weight: 700; color: #000; }
.ab-content ul, .ab-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.ab-content li { margin: .35em 0; }
.ab-content ul li::marker { color: var(--ab-dorado-h); }
.ab-content img { border-radius: 10px; display: block; margin: 1.6em auto .5em; }
.ab-content figure { margin: 1.6em 0; }
.ab-content figcaption, .ab-content .wp-caption-text, .ab-content .wp-element-caption { text-align: center; font-size: 13.5px; color: var(--ab-muted); margin-top: 6px; }
.ab-content blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--ab-dorado-soft); border-left: 4px solid var(--ab-dorado); border-radius: 0 10px 10px 0; font-size: 17px; }
.ab-content blockquote p:last-child { margin-bottom: 0; }
.ab-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.ab-content thead th, .ab-content table tr:first-child th { background: var(--ab-dark-2); color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.ab-content th, .ab-content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--ab-line); }
.ab-content tbody tr:nth-child(even) { background: var(--ab-soft); }
.ab-content iframe { max-width: 100%; border-radius: 10px; }
.ab-content .wp-block-embed__wrapper iframe, .ab-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Bloque comercial */
.ab-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ab-dark); color: #fff; border-radius: var(--ab-r); padding: 30px 32px; margin: 48px 0 32px; position: relative; overflow: hidden; }
.ab-cta:after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(220,173,61,.25), transparent 70%); }
.ab-cta h2 { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.ab-cta p { margin: 0; color: #cfcfcf; font-size: 15.5px; }
.ab-cta-btns { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.ab-cta .ab-btn-line { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.ab-cta .ab-btn-line:hover { background: #fff; color: var(--ab-ink) !important; }

/* Autor */
.ab-authorbox { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--ab-line); border-radius: var(--ab-r); padding: 22px; margin: 0 0 24px; }
.ab-authorbox strong { display: block; font-size: 18px; margin: 2px 0 4px; }
.ab-authorbox p { margin: 0; font-size: 15px; color: var(--ab-muted); line-height: 1.6; }

/* Compartir */
.ab-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 32px; font-weight: 700; font-size: 15px; }
.ab-share a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ab-soft); color: var(--ab-ink) !important; border: 1px solid var(--ab-line); transition: .15s; }
.ab-share a:hover { background: var(--ab-dorado); border-color: var(--ab-dorado); }

/* Anterior / siguiente */
.ab-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--ab-line); padding-top: 24px; }
.ab-prevnext a { display: block; color: var(--ab-ink) !important; font-weight: 700; font-size: 15.5px; line-height: 1.4; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--ab-line); }
.ab-prevnext a:hover { border-color: var(--ab-dorado); background: var(--ab-dorado-soft); }
.ab-prevnext small { display: block; color: var(--ab-dorado-h); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ab-next { text-align: right; grid-column: 2; }

/* 3. Barra lateral */
.ab-side { display: flex; flex-direction: column; gap: 22px; }
/* La barra lateral solo se queda fija si cabe entera en pantalla */
@media (min-width: 1081px) and (min-height: 1100px) { .ab-side { position: sticky; top: 100px; } }
.ab-box { border: 1px solid var(--ab-line); border-radius: var(--ab-r); padding: 22px; background: #fff; }
.ab-box-dark { background: var(--ab-dark); border-color: var(--ab-dark); color: #fff; }
.ab-box-dark h3 { color: #fff; font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
.ab-box-dark p { color: #bdbdbd; font-size: 13.5px; line-height: 1.5; margin: 0 0 6px; }
.ab-box-dark .ab-kicker { color: var(--ab-dorado); }
.ab-box-t { font-size: 18px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ab-dorado); display: inline-block; }
.ab-car { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ab-line); color: var(--ab-ink) !important; }
.ab-car:hover strong { color: var(--ab-dorado-h); }
.ab-car img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; flex: 0 0 110px; }
.ab-car span { display: flex; flex-direction: column; line-height: 1.3; }
.ab-car strong { font-size: 15px; }
.ab-car small { font-size: 13px; color: var(--ab-muted); margin: 2px 0; }
.ab-car b { font-size: 16px; }
.ab-list { list-style: none; margin: 0; padding: 0; }
.ab-list li { padding: 10px 0; border-bottom: 1px solid var(--ab-line); line-height: 1.35; }
.ab-list li:last-child { border-bottom: 0; }
.ab-list a { color: var(--ab-ink); font-weight: 600; font-size: 15px; display: block; }
.ab-list a:hover { color: var(--ab-dorado-h); }
.ab-list small { font-size: 12.5px; color: var(--ab-muted); }

/* 4. Relacionados */
.ab-related { background: var(--ab-soft); padding: 64px 0; }
.ab-related h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 0 0 26px; }
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--ab-r); overflow: hidden; color: var(--ab-ink) !important; border: 1px solid var(--ab-line); transition: .2s; }
.ab-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.ab-card-img { display: block; aspect-ratio: 16 / 10; background: #ddd; overflow: hidden; }
.ab-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-card-bd { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.ab-card-bd small { color: var(--ab-muted); font-size: 13px; }
.ab-card-bd strong, .ab-card-bd h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--ab-ink); }
.ab-more { color: var(--ab-dorado-h); font-weight: 700; font-size: 14.5px; margin-top: 4px; }

/* Franja final (mismo margen negativo que la plantilla antigua para unir con el pie) */
.ab-end { background: var(--ab-dark-2); color: #fff; text-align: center; padding: 64px 0 110px; margin-bottom: -50px; }
.ab-end h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 0 0 8px; }
.ab-end p { color: #cfcfcf; margin: 0 0 24px; }
.ab-center { flex-direction: row; justify-content: center; flex-wrap: wrap; }

/* Barra fija en móvil: mismo diseño que .vtc-sticky de la landing Vende tu coche */
.ab .vtc-sticky { display: none; }
@media (max-width: 991.98px) {
  .ab .vtc-sticky {
    display: grid; grid-template-columns: 1fr 1.3fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    background: #fff; border-top: 1px solid #e4e6e9; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .ab .vtc-sticky a { padding: 13px 6px; text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ab-ink) !important; }
  .ab .vtc-sticky .vtc-sticky-cta { background: var(--ab-dorado); color: var(--ab-dark-2) !important; }

  /* Hueco para la barra en el pie y burbujas por encima */
  body:has(.ab) footer { padding-bottom: 90px; }
  body:has(.ab) #ase-chat { bottom: 70px !important; }
  body:has(.ab) .cky-btn-revisit-wrapper { bottom: 70px !important; }
}


/* Tablet */
@media (max-width: 1080px) {
  .ab-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-main { max-width: none; }
  .ab-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .ab-side .ab-box-dark { grid-column: 1 / -1; }
}

/* Móvil */
@media (max-width: 760px) {
  .ab { font-size: 16.5px; }
  .ab-wrap { padding: 0 16px; }
  .ab-hero { min-height: 360px; padding: 80px 0 28px; }
  .ab-meta { font-size: 13px; gap: 6px 14px; }
  .ab-lead { font-size: 18px; }
  .ab-grid { padding-top: 24px; padding-bottom: 50px; }
  .ab-cta { grid-template-columns: 1fr; padding: 24px 20px; }
  .ab-side { grid-template-columns: 1fr; }
  .ab-prevnext { grid-template-columns: 1fr; }
  .ab-next { grid-column: 1; }
  .ab-cards { grid-template-columns: 1fr; }
  .ab-related { padding: 44px 0; }
  .ab-end { padding-bottom: 130px; }
}