/* Compatibilidad por modelo y WhatsApp · Lista de modelos compatibles plegada por marca (ficha de producto) */
.compat-list { margin: 12px 0 20px; padding: 18px; border: 1px solid #e3e1dc; border-radius: 10px; background: #fff; color: #1f1f1f; text-align: left; }
.compat-list *, .compat-list *::before, .compat-list *::after { box-sizing: border-box; }
.compat-list p, .compat-list label { text-align: left; }
.compat-list [hidden] { display: none !important; }

.compat-list-head { display: flex; flex-direction: column; gap: 12px; margin: 0 0 12px; }
.compat-list .compat-list-h { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.compat-list .compat-list-sub { margin: 2px 0 0; color: #5c5a55; font-size: 14px; }

.compat-list-filter { margin: 0; padding: 14px; border-radius: 8px; background: #f6f5f2; }
.compat-list .compat-list-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; text-align: left; }
.compat-list-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compat-list .compat-list-input {
  flex: 1 1 150px; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid #b9b6af; border-radius: 6px; background: #fff; color: #1f1f1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
}
.compat-list .compat-list-input::placeholder { color: #6b6963; text-transform: none; letter-spacing: 0; font-family: inherit; }
.compat-list .compat-list-input:focus { outline: 2px solid #1d6fb8; outline-offset: 1px; border-color: #1d6fb8; }
.compat-list .compat-list-clear { min-height: 46px; padding: 0 14px; border: 1px solid #b9b6af; border-radius: 6px; background: #fff; color: #1f1f1f; font: inherit; font-size: 14px; cursor: pointer; }
.compat-list .compat-list-clear:focus-visible { outline: 2px solid #1d6fb8; outline-offset: 1px; }
.compat-list .compat-list-help { margin: 8px 0 0; color: #5c5a55; font-size: 13px; }

.compat-list-result { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid #d9d6cf; border-radius: 6px; background: #fff; font-size: 14px; line-height: 1.45; }
.compat-list-result--ok { border-color: #8cc9a0; background: #e9f6ec; color: #14532d; }
.compat-list-result--maybe { border-color: #e2b866; background: #fff6e5; color: #5c3a00; }
.compat-list-result--none { border-color: #d9d6cf; background: #f3f1ec; color: #2b2a27; }
.compat-list-result-title { font-size: 15px; }
.compat-list a.compat-list-wa {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 8px 14px; border-radius: 6px;
  background: #1f8f4e; color: #fff; font-weight: 700; text-decoration: none;
}
.compat-list a.compat-list-wa:hover, .compat-list a.compat-list-wa:focus-visible { background: #17733e; color: #fff; }
.compat-list .compat-list-showing { margin: 0 0 10px; color: #5c5a55; font-size: 13px; }

.compat-list-groups { display: flex; flex-direction: column; gap: 6px; }
.compat-list-group { border: 1px solid #e3e1dc; border-radius: 8px; background: #fff; }
.compat-list-group--match { border-color: #8cc9a0; }
.compat-list .compat-list-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px;
  cursor: pointer; list-style: none;
}
.compat-list .compat-list-summary::-webkit-details-marker { display: none; }
.compat-list .compat-list-summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-left: 4px;
  border-right: 2px solid #5c5a55; border-bottom: 2px solid #5c5a55; transform: rotate(-45deg); transition: transform .15s;
}
.compat-list details[open] > .compat-list-summary::after { transform: rotate(45deg); }
.compat-list .compat-list-summary:focus-visible { outline: 2px solid #1d6fb8; outline-offset: -2px; border-radius: 8px; }
.compat-list .compat-list-summary > h2, .compat-list .compat-list-summary > h3, .compat-list .compat-list-summary > h4,
.compat-list .compat-list-summary > h5, .compat-list .compat-list-summary > h6, .compat-list .compat-list-summary > p, .compat-list .compat-list-summary > div {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0;
}
.compat-list .compat-list-count { flex: 0 0 auto; margin-left: auto; color: #5c5a55; font-size: 13px; white-space: nowrap; }
.compat-list-group--match .compat-list-count { color: #14532d; font-weight: 700; }

.compat-list-codes { padding: 0 14px 14px; }
.compat-list .compat-list-codes > p, .compat-list .compat-list-codes > ul, .compat-list .compat-list-codes > ol, .compat-list .compat-list-codes > div {
  margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: #3f3d39; overflow-wrap: anywhere;
}
/* Con JS, los códigos pasan a fichas al abrir la marca o al buscar. */
.compat-list .compat-list-codes--chips > p, .compat-list .compat-list-codes--chips > ul, .compat-list .compat-list-codes--chips > ol, .compat-list .compat-list-codes--chips > div {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; font-size: 13px; line-height: 1.2; color: #5c5a55;
}
.compat-list .compat-list-codes--chips li { display: contents; }
.compat-list .compat-chip {
  display: inline-block; padding: 4px 8px; border: 1px solid #e3e1dc; border-radius: 5px; background: #f6f5f2; color: #2b2a27;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap;
}
.compat-list .compat-chip a { color: inherit; }
.compat-list .compat-chip--ok { border-color: #8cc9a0; background: #ddf0e3; color: #14532d; font-weight: 700; }
.compat-list .compat-chip--maybe { border-color: #e2b866; background: #fff1d6; color: #6b4100; }
/* Los separadores (comas) se siguen leyendo con lector de pantalla, pero no se ven. */
.compat-list .compat-sep { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.compat-list .compat-list-foot { margin: 12px 0 0; color: #3f3d39; font-size: 14px; }
.compat-list .compat-list-foot a { font-weight: 700; }
.compat-list .compat-list-privacy { display: block; margin-top: 4px; color: #5c5a55; font-size: 12px; }

@media (max-width: 420px) {
  .compat-list { padding: 12px; }
  .compat-list-filter { padding: 12px; }
  .compat-list .compat-list-summary { padding: 8px 10px; }
  .compat-list-codes { padding: 0 10px 12px; }
}
