/* Compatibilidad por modelo y WhatsApp · Botón de la ficha (se carga en todas las páginas por la vista rápida) */

/*
 * Colores y forma del botón. Una plantilla puede cambiarlos sin tocar el módulo:
 *   :root { --compat-btn-bg: #0a7cff; --compat-btn-icon-filter: none; }
 */
:root {
  --compat-btn-bg: linear-gradient(90deg, #34d36b 0%, #2bbd61 100%);
  --compat-btn-bg-hover: linear-gradient(90deg, #2bbd61 0%, #23a855 100%);
  --compat-btn-color: #fff;
  --compat-btn-radius: 6px;
  --compat-btn-shadow: 0 2px 6px rgba(35, 168, 85, .28);
  /* Icono subido con «Mostrar el icono en blanco»: se pinta del color del texto. */
  --compat-btn-icon-filter: brightness(0) invert(1);
}

.compat-box { margin: 14px 0; }
.compat-box, .compat-box * { box-sizing: border-box; }
.compat-box .compat-btn {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--compat-btn-radius);
  background: #2fc666;
  background: var(--compat-btn-bg);
  color: var(--compat-btn-color);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .14);
  box-shadow: var(--compat-btn-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.compat-box .compat-btn:hover,
.compat-box .compat-btn:focus-visible,
.compat-box .compat-btn:active {
  background: #26b25a;
  background: var(--compat-btn-bg-hover);
  color: var(--compat-btn-color);
  text-decoration: none;
}
.compat-box .compat-btn:focus { color: var(--compat-btn-color); text-decoration: none; outline: 0; }
.compat-box .compat-btn:focus-visible { outline: 3px solid rgba(43, 189, 97, .45); outline-offset: 2px; }
.compat-box .compat-btn-text { display: block; min-width: 0; text-wrap: balance; }
.compat-box .compat-btn-tail { white-space: nowrap; }
.compat-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.compat-box .compat-btn .compat-ico { width: 1.15em; height: 1.15em; margin: -.2em 0 0 .5em; }
.compat-ico-img { object-fit: contain; }
.compat-ico-white { filter: var(--compat-btn-icon-filter); }
.compat-box .compat-ico-line path { fill: none; stroke: currentColor; }
/* Icono de la fuente de iconos de la plantilla (fto-…, fa-…): mismo tamaño y color que el texto */
.compat-box .compat-btn .compat-ico-font {
  width: auto;
  height: auto;
  margin: 0 0 0 .45em;
  color: inherit;
  font-size: 1.2em;
  font-style: normal;
  line-height: 1;
  vertical-align: -.08em;
}
.compat-box .compat-btn .compat-ico-font::before,
.compat-box .compat-btn .compat-ico-font::after { margin-left: 0; margin-right: 0; }

@media (max-width: 480px) {
  .compat-box .compat-btn { min-height: 52px; padding: 12px 14px; font-size: 17px; }
}
@media (max-width: 400px) {
  .compat-box .compat-btn { font-size: 16px; }
}
@media (max-width: 370px) {
  .compat-box .compat-btn { padding: 12px 10px; font-size: 15px; }
}

.compat-box .compat-guide-link {
  display: inline-block;
  margin-top: 8px;
  color: #128c4a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}
.compat-box .compat-guide-link:hover { color: #0b6b37; }

@media (prefers-reduced-motion: no-preference) {
  .compat-box .compat-btn { transition: box-shadow .15s ease, transform .15s ease; }
  .compat-box .compat-btn:active { transform: translateY(1px); }
}
