/**
 * Estilos globales de PRUEBA (19-oct-2026). Solo se activan en preprod/local
 * con ?estilo=iwa-emil | suave-emil | emil (ver html.html.twig).
 * TODO va bajo html[data-estilo="…"]: sin el atributo nada de esto aplica.
 *
 * Paleta de la web (style.css :root): verde #3FBF53, azul #049EC5,
 * azul oscuro #037693, negro #131313, #333, #BBB, #E9E9E9; Poppins / Inter.
 */

/* Selector flotante de estilo (solo preprod/local, lo crea el JS).
 * 21-oct-2026: panel con atajos a las versiones finales, se puede cerrar (×)
 * y cerrado queda la pestañita «Estilos». En móvil sale plegado y arriba a la
 * izquierda, bajo la cabecera (y bajo el banner fijo cuando sube), para no tapar la barra inferior ni los CTA. */
.wa-estilo-sel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(19, 19, 19, .92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  color: #fff;
  font: 600 12px/1 Inter, system-ui, sans-serif;
}

.wa-estilo-sel[hidden],
.wa-estilo-tab[hidden] {
  display: none;
}

.wa-estilo-sel__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 0 6px;
}

.wa-estilo-sel__cab strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
}

html body .wa-estilo-sel__cerrar,
html body .wa-estilo-tab {
  margin: 0;
  border: 0;
  cursor: pointer;
  font: 600 12px/1 Inter, system-ui, sans-serif;
}

html body .wa-estilo-sel__cerrar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 18px;
}

.wa-estilo-sel__atajos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html body .wa-estilo-sel a.wa-estilo-sel__atajo {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
}

html body .wa-estilo-sel a.wa-estilo-sel__atajo--actual {
  border-style: dashed;
}

.wa-estilo-sel__filas {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.wa-estilo-sel__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.wa-estilo-sel__fila span {
  min-width: 72px;
  padding: 0 6px;
  color: #bbb;
}

html body .wa-estilo-sel a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

html body .wa-estilo-sel a[aria-current] {
  background: #3fbf53;
  border-color: #3fbf53;
  color: #131313;
}

html body .wa-estilo-sel a:focus-visible,
html body .wa-estilo-sel__cerrar:focus-visible,
html body .wa-estilo-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  html body .wa-estilo-sel a:not([aria-current]):hover,
  html body .wa-estilo-sel__cerrar:hover {
    background: rgba(255, 255, 255, .18);
  }
}

/* Pestañita mínima para reabrir. */
.wa-estilo-tab {
  position: fixed;
  left: 0;
  bottom: 12px;
  z-index: 2147483000;
  padding: 8px 10px 8px 8px;
  border-radius: 0 999px 999px 0 !important;
  background: rgba(19, 19, 19, .88) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

@media (max-width: 767.98px) {
  .wa-estilo-sel {
    top: 96px;
    bottom: auto;
    left: 8px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 170px);
  }

  .wa-estilo-tab {
    top: 96px;
    bottom: auto;
    padding: 6px 8px 6px 6px;
    font-size: 11px !important;
    opacity: .85;
  }
}
