/* ── Artículo: mejor bombín de seguridad (post 7387) ── */

/* Variables */
:root {
  --bom-navy:   #1a3a52;
  --bom-orange: #f18500;
  --bom-og-lt:  #fff7ed;
  --bom-og-md:  #fde8c8;
  --bom-green:  #16a34a;
  --bom-red:    #dc2626;
  --bom-gray1:  #f8fafc;
  --bom-gray2:  #e2e8f0;
  --bom-gray-t: #4b5563;
  --bom-r:      10px;
}

/* Base del componente
   overflow-x:hidden + min-width:0 evita que un flex-child
   expanda el contenedor hasta el ancho de la tabla.
   Se aplica también a los wrappers de WPR para neutralizar
   el comportamiento por defecto min-width:auto en flex. */
.art-body,
.bom,
.wpr-blog-post-main,
.wpr-container,
.main-container,
.site-content,
.entry-content,
.post-content {
  min-width: 0;
}

.bom {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Stats — 1 columna en móvil, 3 a partir de 480 px */
.bom-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}
@media (min-width: 480px) {
  .bom-stats { grid-template-columns: repeat(3, 1fr); }
}
.bom-stat {
  background: var(--bom-navy);
  border-radius: var(--bom-r);
  padding: 24px 20px;
  text-align: center;
}
.bom-stat__num   { font-size: clamp(32px, 8vw, 44px); font-weight: 900; color: var(--bom-orange); line-height: 1; }
.bom-stat__label { font-size: 13px; color: #cbd5e1; margin-top: 10px; line-height: 1.5; }

/* Alerta */
.bom-alert { border-left: 4px solid var(--bom-orange); background: var(--bom-og-lt); border-radius: 0 var(--bom-r) var(--bom-r) 0; padding: 16px 20px; margin: 24px 0; }
.bom-alert strong { color: var(--bom-navy); }

/* Criterios numerados */
.bom-criteria { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.bom-criteria li { display: flex; gap: 14px; align-items: flex-start; background: var(--bom-gray1); border-radius: var(--bom-r); padding: 16px; }
.bom-criteria__num { background: var(--bom-navy); color: white; font-weight: 900; font-size: 17px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bom-criteria__text { min-width: 0; }
.bom-criteria__text strong { display: block; color: var(--bom-navy); font-size: 16px; margin-bottom: 4px; }
.bom-criteria__text span { font-size: 14px; color: var(--bom-gray-t); }

/* Leer también */
.bom-read-more { display: flex; align-items: flex-start; gap: 10px; background: var(--bom-gray1); border: 1px solid var(--bom-gray2); border-radius: var(--bom-r); padding: 12px 16px; margin: 20px 0; text-decoration: none; color: var(--bom-navy); font-weight: 600; font-size: 14px; transition: border-color .2s; }
.bom-read-more:hover { border-color: var(--bom-orange); color: var(--bom-orange); }
.bom-read-more::before { content: "\2192"; color: var(--bom-orange); font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Tabla — scroll contenido dentro del wrapper */
.bom-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: var(--bom-r);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}
.bom-table { border-collapse: collapse; min-width: 520px; font-size: 14px; }
.bom-table thead tr { background: var(--bom-navy); }
.bom-table thead th { background: var(--bom-navy); color: white !important; padding: 12px 14px; font-weight: 700; text-align: left; font-size: 13px; border: none; }
.bom-table tbody tr:nth-child(odd)  { background: var(--bom-gray1); }
.bom-table tbody tr:nth-child(even) { background: white; }
.bom-table tbody td { padding: 11px 14px; vertical-align: middle; font-size: 13px; }
.bom-table tbody td:first-child { font-weight: 700; color: var(--bom-navy); white-space: nowrap; }
.bom-table .price-cell { font-weight: 800; color: var(--bom-navy); white-space: nowrap; }
.bom-table .prot-cell  { color: #374151; line-height: 1.5; }
.bom-table .cert-cell  { font-weight: 700; color: var(--bom-navy); white-space: nowrap; }
.bom-table .winner-row { background: var(--bom-og-lt) !important; border-left: 4px solid var(--bom-orange); }
.bom-table .badge-winner { display: inline-block; background: var(--bom-orange); color: white; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-radius: 3px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* Anulación de color en enlaces dentro de .bom
   .art-body a en style.css tiene especificidad 0-1-1 y color naranja,
   que sobreescribe el color blanco de los botones CTA.
   Con .bom a.clase (0-2-1) ganamos la cascada sin !important. */
.bom a.bom-cta__btn    { color: white; text-decoration: none; }
.bom a.bom-verdict__btn { color: white; text-decoration: none; }
.bom a.bom-read-more   { color: var(--bom-navy); text-decoration: none; }
.bom a.bom-read-more:hover { color: var(--bom-orange); }

/* Cards de modelo */
.bom-cards { display: flex; flex-direction: column; gap: 24px; margin: 28px 0; }
.bom-card  { border: 2px solid var(--bom-gray2); border-radius: var(--bom-r); overflow: hidden; }
.bom-card--top { border-color: var(--bom-orange); }
.bom-card__head { background: var(--bom-navy); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 480px) { .bom-card__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.bom-card__head--top { background: linear-gradient(135deg, var(--bom-navy) 60%, #2d5a82); }
.bom-card__name  { color: white; font-size: 18px; font-weight: 800; min-width: 0; }
.bom-card__badge { display: inline-block; background: var(--bom-orange); color: white; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border-radius: 4px; padding: 4px 10px; }
.bom-card__score { color: var(--bom-orange); font-size: 26px; font-weight: 900; line-height: 1; flex-shrink: 0; }
.bom-card__score span { font-size: 12px; color: #94a3b8; font-weight: 400; }
.bom-card__body { padding: 20px; }
.bom-card__cert { display: inline-flex; align-items: center; gap: 6px; background: var(--bom-og-lt); border: 1px solid var(--bom-og-md); border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--bom-navy); margin-bottom: 16px; flex-wrap: wrap; }
.bom-card__cert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bom-green); flex-shrink: 0; }
.bom-card__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.bom-card__feat  { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #374151; min-width: 0; }
.bom-card__feat--ok::before { content: "\2713"; color: var(--bom-green); font-size: 14px; font-weight: 900; flex-shrink: 0; }
.bom-card__feat--no::before { content: "\2717"; color: var(--bom-red);   font-size: 14px; font-weight: 900; flex-shrink: 0; }
.bom-card__desc  { font-size: 14px; color: var(--bom-gray-t); line-height: 1.65; margin-bottom: 14px; border-top: 1px solid var(--bom-gray2); padding-top: 14px; }
.bom-card__foot  { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .bom-card__foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.bom-card__ideal { font-size: 12px; color: #6b7280; min-width: 0; }
.bom-card__ideal strong { display: block; color: var(--bom-navy); font-size: 13px; }
.bom-card__price { font-size: 20px; font-weight: 900; color: var(--bom-navy); flex-shrink: 0; }
.bom-card__price span { font-size: 12px; font-weight: 400; color: #6b7280; }

/* Checklist */
.bom-check { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.bom-check li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 10px 14px; background: var(--bom-gray1); border-radius: 8px; min-width: 0; }
.bom-check li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--bom-orange); flex-shrink: 0; margin-top: 3px; }

/* CTA central */
.bom-cta { background: var(--bom-navy); border-radius: var(--bom-r); padding: 28px 24px; margin: 36px 0; text-align: center; }
.bom-cta p { color: #e2e8f0; font-size: 16px; margin: 0 0 8px; }
.bom-cta__title { color: white; font-size: clamp(18px, 4vw, 22px); font-weight: 800; margin: 0 0 20px; }
.bom-cta__btn { display: inline-block; background: var(--bom-orange); color: white; font-weight: 800; font-size: 17px; padding: 14px 30px; border-radius: 8px; text-decoration: none; }
.bom-cta__btn:hover { background: #d97000; }

/* Veredicto */
.bom-verdict { border-radius: var(--bom-r); overflow: hidden; box-shadow: 0 6px 28px rgba(26, 58, 82, .2); margin: 40px 0; }
.bom-verdict__head { background: var(--bom-navy); padding: 22px 24px 16px; }
.bom-verdict__eyebrow { color: var(--bom-orange); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 8px; }
.bom-verdict__title { color: white; font-size: clamp(18px, 4vw, 24px); font-weight: 800; margin: 0; line-height: 1.3; }
.bom-verdict__body { background: var(--bom-og-lt); padding: 24px; }
.bom-verdict__name { font-size: clamp(20px, 5vw, 28px); font-weight: 900; color: var(--bom-navy); margin: 0 0 6px; }
.bom-verdict__sub  { font-size: 13px; color: #6b7280; margin: 0 0 18px; }
.bom-verdict__text { font-size: 15px; color: #374151; line-height: 1.75; margin: 0 0 20px; }
.bom-verdict__cols { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 480px) { .bom-verdict__cols { flex-direction: row; align-items: flex-start; } }
.bom-verdict__col-main  { flex: 1; min-width: 0; }
.bom-verdict__col-score { text-align: center; flex-shrink: 0; }
.bom-verdict__score       { font-size: 56px; font-weight: 900; color: var(--bom-orange); line-height: 1; display: block; }
.bom-verdict__score-label { font-size: 12px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.bom-verdict__btn { display: block; background: var(--bom-orange); color: white; font-weight: 800; font-size: 15px; padding: 13px 20px; border-radius: 8px; text-decoration: none; text-align: center; margin-top: 16px; }
/* Stats footer: grid 2 cols en móvil, 4 en desktop */
.bom-verdict__stats { background: #eaf0f7; padding: 14px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 480px) {
  .bom-verdict__stats { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 14px 24px; }
  .bom-verdict__stat  { padding: 6px 16px 6px 0; border-right: 1px solid #cbd5e1; }
  .bom-verdict__stat:last-child { border-right: none; }
}
.bom-verdict__stat { padding: 6px 4px; font-size: 13px; color: var(--bom-navy); font-weight: 700; }

/* CTA final */
.bom-final { background: var(--bom-og-lt); border-left: 4px solid var(--bom-orange); border-radius: 0 var(--bom-r) var(--bom-r) 0; padding: 22px 24px; margin: 32px 0; text-align: center; }
.bom-final p { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--bom-navy); }
.bom-final a { color: var(--bom-orange); font-weight: 700; }
