/* solx-a11y */
/**
 * SOLΞ Accessibility Standard — portable CSS
 * Light chrome by default (Hub parity). Page scale via body zoom on classic themes;
 * Divi/Elementor use typography scale only (data-solx-builder) to preserve layout.
 */

@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://quietluxurymenorca.estate/wp-content/plugins/optimizador-pro-notoriusvision/assets/a11y/fonts/opendyslexic-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://quietluxurymenorca.estate/wp-content/plugins/optimizador-pro-notoriusvision/assets/a11y/fonts/opendyslexic-latin-700.woff2') format('woff2');
}

:root {
  --solx-a11y-surface: #ffffff;
  --solx-a11y-surface-2: #f1f5f9;
  --solx-a11y-white: #0f172a;
  --solx-a11y-muted: #475569;
  --solx-a11y-line: rgba(15, 23, 42, 0.14);
  --solx-a11y-amber: #d97706;
  --solx-font-scale: 1;
  --solx-font-family: Figtree, system-ui, sans-serif;
}

/* Hide accessibility FAB while editing in Divi VB / Elementor */
body.et-fb .solx-a11y-mount,
body.et-fb .solx-a11y-root,
body.et-fb .solx-a11y-fab,
body.et_fb .solx-a11y-mount,
html.et-fb-preview .solx-a11y-mount,
body.elementor-editor-active .solx-a11y-mount,
body.elementor-editor-active .solx-a11y-root,
body.elementor-editor-active .solx-a11y-fab,
body.elementor-editor-preview .solx-a11y-mount {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Chrome must stay optically constant when body { zoom } is applied */
.solx-a11y-root,
.solx-a11y-panel {
  font-size: 16px !important;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

.solx-a11y-root {
  position: fixed;
  /* Margen configurable del botón (evita pisar menús móviles). Var la fija el estado
     del usuario (fabOffset) o el host vía data-offset; por defecto 20px. */
  right: var(--solx-fab-offset, 16px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7.2px;
  font-family: Figtree, system-ui, sans-serif;
  color: var(--solex-white, var(--solx-a11y-white));
}

.solx-a11y-fab {
  width: var(--solx-fab-size, 56px);
  height: var(--solx-fab-size, 56px);
  border-radius: 50%;
  border: 2px solid var(--solx-fab-fg, var(--solex-amber, var(--solx-a11y-amber)));
  background: var(--solx-fab-bg, var(--solex-surface, var(--solx-a11y-surface)));
  color: var(--solx-fab-fg, var(--solex-amber, var(--solx-a11y-amber)));
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.solx-a11y-fab svg {
  width: 1.45em;
  height: 1.45em;
  display: block;
  flex-shrink: 0;
}

.solx-a11y-fab--isa svg,
.solx-a11y-fab--universal svg,
.solx-a11y-fab--highvis svg {
  width: 62%;
  height: 62%;
}

.solx-a11y-fab__label {
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.solx-a11y-fab--eaa {
  width: auto;
  height: auto;
  min-height: var(--solx-fab-size, 56px);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.solx-a11y-fab--tab {
  width: auto;
  height: auto;
  min-height: var(--solx-fab-size, 56px);
  padding: 10px 12px;
  border-radius: 14px 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.solx-a11y-fab--eaa .solx-a11y-fab__img,
.solx-a11y-fab--tab .solx-a11y-fab__img {
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.solx-a11y-fab--isa,
.solx-a11y-fab--universal,
.solx-a11y-fab--highvis,
.solx-a11y-fab--menu {
  padding: 0;
  overflow: hidden;
  background: #111;
  border: 0;
}

.solx-a11y-fab--custom {
  padding: 10%;
  overflow: hidden;
  border: 2px solid #fff;
  background: var(--solx-fab-bg, #002B5B);
  box-sizing: border-box;
}

.solx-a11y-fab--isa .solx-a11y-fab__img,
.solx-a11y-fab--universal .solx-a11y-fab__img,
.solx-a11y-fab--highvis .solx-a11y-fab__img,
.solx-a11y-fab--menu .solx-a11y-fab__img,
.solx-a11y-fab--custom .solx-a11y-fab__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solx-a11y-fab--custom .solx-a11y-fab__img {
  object-fit: contain;
}

/* Botón de voz independiente: altavoz + micrófono, con acento propio para
   distinguirlo del menú visual de accesibilidad. */
.solx-a11y-fab--voice {
  background: var(--solx-fab-bg, var(--solex-amber, var(--solx-a11y-amber)));
  color: var(--solx-fab-fg, #ffffff);
  border-color: rgba(0, 0, 0, 0.12);
}

.solx-a11y-fab--voice svg {
  width: 58%;
  height: 58%;
}

/* Variantes del botón de voz (juego propio, paralelo al de accesibilidad). */
.solx-a11y-fab--voice-mic,
.solx-a11y-fab--voice-speak,
.solx-a11y-fab--voice-wave,
.solx-a11y-fab--voice-search,
.solx-a11y-fab--voice-xi {
  padding: 0;
}
.solx-a11y-fab__xi {
  font: 700 calc(var(--solx-fab-size, 56px) * 0.5) / 1 "Figtree", "Inter", system-ui, sans-serif;
  color: currentColor;
}
/* Avatar del asistente: ocupa todo el círculo. */
.solx-a11y-fab--voice-avatar {
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.solx-a11y-fab--voice-avatar .solx-a11y-fab__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.solx-a11y-fab--voice-pill {
  width: auto;
  height: auto;
  min-height: var(--solx-fab-size, 56px);
  padding: 8px 16px;
  border-radius: 999px;
}
.solx-a11y-fab--voice-pill svg {
  width: 1.35em;
  height: 1.35em;
}

.solx-a11y-fab--voice-custom {
  padding: 10%;
  overflow: hidden;
  border: 2px solid #fff;
  background: var(--solx-fab-bg, var(--solex-amber, var(--solx-a11y-amber)));
  box-sizing: border-box;
}
.solx-a11y-fab--voice-custom .solx-a11y-fab__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.solx-a11y-fab--voice.is-listening {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.45), 0 0 18px rgba(124, 58, 237, 0.35);
}

/*
 * Widget unificado mic + accesibilidad (2 fases por CSS):
 *  Estado 0 → icono de Acceso universal visible junto al mic (width ~86px)
 *  Hover/foco en la pastilla → expande comandos (width amplio)
 *  Clic icono → panel de opciones; clic mic → nostromo/voz
 */
.solx-a11y-root--unified {
  align-items: center;
  justify-content: flex-end;
}

.solx-a11y-root--unified .solx-a11y-fab--voice {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.solx-a11y-root--unified .solx-a11y-access-pill {
  position: absolute;
  /* Ancla al centro del mic: la pastilla nace debajo y crece a la izquierda. */
  right: calc(var(--solx-fab-size, 56px) / 2);
  /* Centrada con el botón (no con la raíz, que mide más: botón + hueco del
     panel), y del mismo alto que el botón. */
  top: calc(var(--solx-fab-size, 56px) / 2);
  transform: translateY(-50%);
  z-index: 5;
  box-sizing: border-box;
  height: var(--solx-fab-size, 56px);
  /* Colores de Accesibilidad → «Color del botón» / «Color del icono». */
  background: var(--solx-access-bg, #1e293b);
  color: var(--solx-access-fg, #f8fafc);
  border-radius: 999px 0 0 999px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

/* Botón «Accesibilidad y voz»: el icono de accesibilidad se ve SIEMPRE junto
   al micrófono (en móvil no hay hover que lo descubra). Incluye solape bajo el mic. */
.solx-a11y-root--unified:not(.is-panel-open) .solx-a11y-access-pill {
  /* Icono + solape bajo el botón de voz; lo mide el script (Pastilla EAA lleva texto). */
  width: var(--solx-pill-rest, 86px);
  opacity: 1;
  pointer-events: auto;
}

/* Hover 2: sobre la pastilla → comandos. */
.solx-a11y-root--unified:not(.is-panel-open) .solx-a11y-access-pill:hover,
.solx-a11y-root--unified:not(.is-panel-open) .solx-a11y-access-pill:focus-within {
  /* Ancho real del contenido (lo mide el script): así los botones de lectura
     no quedan tapados por el botón de voz. */
  width: min(var(--solx-pill-open, 380px), var(--solx-pill-max, calc(100vw - 24px))) !important;
}

/* Con la barra desplegada, el botón unido pasa por encima de los demás
   flotantes (el de privacidad usa z-index 2147483001). */
.solx-a11y-root--unified.is-pill-open,
.solx-a11y-root--unified:has(.solx-a11y-access-pill:hover),
.solx-a11y-root--unified:has(.solx-a11y-access-pill:focus-within) {
  z-index: 2147483002 !important;
}

/* Si no cabe todo (móvil estrecho leyendo), los comandos se desplazan en
   horizontal dentro de la barra en vez de salirse de la pantalla. */
.solx-a11y-root--unified .solx-a11y-access-content {
  max-width: var(--solx-pill-max, none);
  overflow-x: auto;
  scrollbar-width: none;
}

.solx-a11y-root--unified .solx-a11y-access-content::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .solx-a11y-access-commands {
    gap: 4px;
    margin-left: 4px;
  }
  .solx-a11y-access-commands .solx-a11y-quick__btn {
    min-width: 34px;
    height: 32px;
    padding: 0 6px;
  }
  .solx-a11y-access-commands .solx-a11y-quick__voice {
    gap: 4px;
  }
  .solx-a11y-access-commands .solx-a11y-quick__voice .solx-a11y-quick__btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}

.solx-a11y-root--unified.is-panel-open .solx-a11y-access-pill {
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.solx-a11y-access-content {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  padding-left: 10px;
  padding-right: calc(var(--solx-fab-size, 56px) / 2 + 4px);
  white-space: nowrap;
  box-sizing: border-box;
}

.solx-a11y-access-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.solx-a11y-access-icon:hover,
.solx-a11y-access-icon:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.solx-a11y-access-icon .solx-a11y-fab__img,
.solx-a11y-access-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Icono según «Aspecto del botón». Acceso universal (trazo oscuro sobre
   transparente) va sobre un círculo blanco para verse en cualquier color. */
.solx-a11y-access-pill--universal .solx-a11y-access-icon,
.solx-a11y-access-pill--eaa .solx-a11y-access-icon .solx-a11y-fab__img,
.solx-a11y-access-pill--tab .solx-a11y-access-icon .solx-a11y-fab__img {
  background: #fff;
  border-radius: 50%;
}

.solx-a11y-access-pill--universal .solx-a11y-access-icon {
  padding: 4px;
}

.solx-a11y-access-pill--universal .solx-a11y-access-icon:hover,
.solx-a11y-access-pill--universal .solx-a11y-access-icon:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.solx-a11y-access-icon--label {
  width: auto;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
}

.solx-a11y-access-icon--label .solx-a11y-fab__img {
  width: 28px;
  height: 28px;
  padding: 2px;
  flex-shrink: 0;
}

.solx-a11y-access-icon__text {
  font-weight: 700;
  font-size: 14px !important;
  line-height: 1;
  white-space: nowrap;
}

.solx-a11y-access-commands {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s 0.15s ease, transform 0.3s 0.15s ease;
  pointer-events: none;
}

.solx-a11y-root--unified .solx-a11y-access-pill:hover .solx-a11y-access-commands,
.solx-a11y-root--unified .solx-a11y-access-pill:focus-within .solx-a11y-access-commands {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.solx-a11y-access-commands .solx-a11y-quick__btn {
  min-width: 40px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  box-shadow: none;
}

/* Grupo de lectura dentro de la pastilla: sin la caja clara de la barra
   clásica (se veía como un hueco blanco). */
.solx-a11y-access-commands .solx-a11y-quick__voice {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 8px;
}

.solx-a11y-access-commands .solx-a11y-quick__btn:hover,
.solx-a11y-access-commands .solx-a11y-quick__btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

/* En borde izquierdo: la pastilla crece hacia la derecha (no se sale de pantalla). */
.solx-a11y-mount[data-position*="left"] .solx-a11y-root--unified .solx-a11y-access-pill {
  right: auto;
  left: calc(var(--solx-fab-size, 56px) / 2);
  border-radius: 0 999px 999px 0;
}

.solx-a11y-mount[data-position*="left"] .solx-a11y-root--unified .solx-a11y-access-content {
  padding-left: calc(var(--solx-fab-size, 56px) / 2 + 4px);
  padding-right: 10px;
  flex-direction: row-reverse;
}

.solx-a11y-mount[data-position*="left"] .solx-a11y-root--unified .solx-a11y-access-commands {
  margin-left: 0;
  margin-right: 8px;
  flex-direction: row-reverse;
}

/* Pantalla central tipo nostromo: voz + texto tras pulsar el mic. */
.solx-a11y-nostromo {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.55);
  backdrop-filter: blur(2px);
}

.solx-a11y-nostromo[hidden] {
  display: none !important;
}

.solx-a11y-nostromo__deck {
  position: relative;
  width: min(92vw, 520px);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(160deg, #0b1624 0%, #071018 55%, #0a1a14 100%);
  color: #e8f4ff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.solx-a11y-nostromo__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f4ff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.solx-a11y-nostromo__close:hover,
.solx-a11y-nostromo__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.solx-a11y-nostromo__orb {
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.55);
  background: radial-gradient(circle at 40% 35%, #7dd3fc, #0ea5e9 45%, #082f49 80%);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.45);
}

.solx-a11y-nostromo.is-listening .solx-a11y-nostromo__orb {
  animation: solx-nostromo-pulse 1.2s ease-in-out infinite;
}

@keyframes solx-nostromo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(14, 165, 233, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 0 36px rgba(56, 189, 248, 0.7); }
}

.solx-a11y-nostromo__status {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  min-height: 1.5em;
}

.solx-a11y-nostromo__body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(232, 244, 255, 0.92);
}

.solx-a11y-nostromo__body .solx-a11y-qa-results,
.solx-a11y-nostromo__body ul {
  margin: 0.6em 0 0;
  padding-left: 1.15em;
}

.solx-a11y-nostromo__body a {
  color: #7dd3fc;
}

.solx-a11y-mount[data-position="bottom"] .solx-a11y-root,
.solx-a11y-mount[data-position="bottom-right"] .solx-a11y-root {
  top: auto;
  bottom: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
  right: var(--solx-fab-offset, 20px);
  left: auto;
  transform: none;
}

.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-root {
  top: auto;
  bottom: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
  left: var(--solx-fab-offset, 20px);
  right: auto;
  transform: none;
}

.solx-a11y-mount[data-position="top"] .solx-a11y-root,
.solx-a11y-mount[data-position="top-right"] .solx-a11y-root {
  top: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
  bottom: auto;
  right: var(--solx-fab-offset, 20px);
  left: auto;
  transform: none;
}

.solx-a11y-mount[data-position="top-left"] .solx-a11y-root {
  top: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
  bottom: auto;
  left: var(--solx-fab-offset, 20px);
  right: auto;
  transform: none;
}

.solx-a11y-mount[data-position="middle-right"] .solx-a11y-root,
.solx-a11y-mount[data-position="right"] .solx-a11y-root {
  top: 50%;
  bottom: auto;
  right: var(--solx-fab-offset, 16px);
  left: auto;
  transform: translateY(-50%);
}

.solx-a11y-mount[data-position="middle-left"] .solx-a11y-root,
.solx-a11y-mount[data-position="left"] .solx-a11y-root {
  top: 50%;
  bottom: auto;
  left: var(--solx-fab-offset, 16px);
  right: auto;
  transform: translateY(-50%);
  align-items: flex-start;
}

.solx-a11y-mount[data-position="left"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="middle-left"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-fab--tab {
  border-radius: 0 14px 14px 0;
}

.solx-a11y-mount[data-position="left"] .solx-a11y-panel,
.solx-a11y-mount[data-position="middle-left"] .solx-a11y-panel,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-panel {
  left: 80px;
  right: auto;
}

.solx-a11y-mount[data-position="right"] .solx-a11y-root {
  /* legacy alias handled above with middle-right */
}

.solx-a11y-root--tab {
  right: 0;
}

.solx-a11y-mount[data-position="left"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="middle-left"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-root--tab {
  left: 0;
  right: auto;
}

.solx-a11y-mount[data-position="bottom"] .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-right"] .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-panel {
  top: auto;
  bottom: 20px;
  transform: none;
}

.solx-a11y-mount[data-position="top"] .solx-a11y-panel,
.solx-a11y-mount[data-position="top-right"] .solx-a11y-panel,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-panel {
  top: 20px;
  bottom: auto;
  transform: none;
}

.solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-root--tab .solx-a11y-panel {
  right: 16px;
}

.solx-a11y-mount[data-position="left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="left"] .solx-a11y-root--tab .solx-a11y-panel,
.solx-a11y-mount[data-position="middle-left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="middle-left"] .solx-a11y-root--tab .solx-a11y-panel,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="top-left"] .solx-a11y-root--tab .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-left"] .solx-a11y-root--tab .solx-a11y-panel {
  left: 16px;
  right: auto;
}

.solx-a11y-fab:focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 3px;
}

.solx-a11y-quick {
  /* Fuera del flujo: si la barra rápida participa en el layout del contenedor
     (columna flex centrada), su altura (~254px) desplaza el FAB ~127px por
     debajo del centro real de la ventana. Absoluta → el contenedor mide solo el
     FAB y `top:50% + translateY(-50%)` lo centra. Dispara igual al hover/focus. */
  position: absolute;
  right: 0;
  bottom: calc(100% + 7.2px);
  display: flex;
  flex-direction: column;
  gap: 5.6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.solx-a11y-quick.is-open,
.solx-a11y-root:not(.is-panel-open):hover .solx-a11y-quick,
.solx-a11y-root:not(.is-panel-open):focus-within .solx-a11y-quick {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Con el panel abierto la barra rápida se oculta y deja de capturar el ratón,
   para no tapar el menú principal del sitio. */
.solx-a11y-root.is-panel-open .solx-a11y-quick {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(8px) !important;
}

.solx-a11y-quick__btn {
  min-width: 44px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  background: var(--solex-surface, var(--solx-a11y-surface));
  color: var(--solex-white, var(--solx-a11y-white));
  font-weight: 700;
  font-size: 13px !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.solx-a11y-quick__btn:focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 2px;
}

/* Grupo de voz de la barra rápida (leer / pausa / stop): en fila y alineado.
   Sin esto los tres botones quedaban sueltos y desalineados. */
.solx-a11y-quick__voice {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5.6px;
  padding: 4px;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 10px;
  background: var(--solex-surface-2, var(--solx-a11y-surface-2));
}

.solx-a11y-quick__voice .solx-a11y-quick__btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  font-size: 15px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.solx-a11y-quick__voice .solx-a11y-quick__btn[hidden],
.solx-a11y-quick__voice[hidden] {
  display: none !important;
}

.solx-a11y-quick__voice .solx-a11y-quick__btn.is-active {
  border-color: var(--solex-amber, var(--solx-a11y-amber));
  background: var(--solex-amber, var(--solx-a11y-amber));
  color: #fff;
}

/* Acciones rápidas dentro del panel (A+/A−/tema/contraste/engranaje): visibles
   también en modo anclado footer/menu/inline, donde la barra flotante
   .solx-a11y-quick se oculta por diseño.
   Una sola fila, siempre. Con flex-wrap:wrap el engranaje caía a una segunda
   línea (y el overflow:hidden del contenedor lo ocultaba) en cuanto el panel
   estrechaba por la barra de scroll vertical: clientWidth del panel 318→303px,
   la fila quedaba en 247px y los cinco botones de 44px con gaps de 8px
   necesitaban 252px. Medido en Chromium con el panel real. */
.solx-a11y-inlinequick .solx-a11y-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* El selector lleva el prefijo de la fila para ganar en cascada a
   `.solx-a11y-btn { flex: 0 0 auto }`, declarado más abajo: con `0 1 auto` los
   botones no cedían ancho y la fila desbordaba (y el engranaje se iba). */
.solx-a11y-inlinequick .solx-a11y-btn--quick {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  font-size: 16px !important;
  font-weight: 700;
  justify-content: center;
}

/* Rueda dentada «Más opciones»: misma caja que el resto de la fila rápida, pero
   marcada como navegación (borde discontinuo) para que no parezca un ajuste más
   que cambia el aspecto al pulsarlo. En la fila del panel reparte ancho como los
   demás (el `flex: 1 1 0` de arriba ya la cubre). */
.solx-a11y-btn--more,
.solx-a11y-quick__btn--more {
  border-style: dashed;
  opacity: 0.92;
}

.solx-a11y-panel {
  position: fixed;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  width: min(320px, calc(100vw - 100px));
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--solex-surface, var(--solx-a11y-surface));
  color: var(--solex-white, var(--solx-a11y-white));
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}

.solx-a11y-panel *,
.solx-a11y-panel *::before,
.solx-a11y-panel *::after {
  box-sizing: border-box;
}

.solx-a11y-panel h2 {
  margin: 0 0 12px;
  font-size: 18px !important;
  color: inherit;
}

/* Los temas (p. ej. Divi) colorean los h2 con su acento, que puede no tener
   contraste suficiente sobre el fondo del panel. */
.solx-a11y-root .solx-a11y-panel h2,
.solx-a11y-panel .solx-a11y-panel__headtext h2 {
  color: var(--solex-white, var(--solx-a11y-white)) !important;
}

/* Cabecera con «X» de cierre. El panel es largo y desplazable (el de voz pasa
   de 900px con «Más opciones» abierto), así que la X va fija arriba con
   position:sticky: si no, al bajar se marcharía con el contenido y volveríamos
   al problema del botón «Cerrar» del pie, que quedaba fuera de vista.
   El panel tiene 16px de padding, de ahí el -16px para que el fondo pegado
   cubra el borde superior al hacer scroll. */
.solx-a11y-panel__head {
  position: sticky;
  top: -16px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  /* flex-end, no space-between: el panel de voz no tiene título, y con un solo
     hijo space-between lo pegaría a la izquierda. */
  justify-content: flex-end;
  gap: 8px;
  margin: -16px -16px 0;
  padding: 16px 16px 4px;
  background: var(--solex-surface, var(--solx-a11y-surface));
  border-radius: 14px 14px 0 0;
}

.solx-a11y-panel__headtext {
  min-width: 0;
  flex: 1 1 auto;
}

.solx-a11y-panel__head h2 {
  margin: 0 0 4px;
}

.solx-a11y-panel__sub {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--solex-muted, var(--solx-a11y-muted));
}

.solx-a11y-panel__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -2px -2px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}

.solx-a11y-panel__close:hover {
  opacity: 1;
  border-color: var(--solex-line, var(--solx-a11y-line));
}

.solx-a11y-panel__close:focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 2px;
  opacity: 1;
}

.solx-a11y-panel fieldset {
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 11.2px;
  background: var(--solex-surface-2, var(--solx-a11y-surface-2));
  min-width: 0;
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
}

/* Section titles live inside the rounded fieldset (no <legend> — themes push those out) */
.solx-a11y-panel .solx-a11y-section-title {
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 8.8px !important;
  padding: 6.4px 10.4px !important;
  border-radius: 8px !important;
  border: 1px solid var(--solex-line, var(--solx-a11y-line)) !important;
  background: var(--solex-surface, var(--solx-a11y-surface)) !important;
  color: var(--solex-white, var(--solx-a11y-white)) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em;
  opacity: 1 !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  overflow: visible !important;
}

.solx-a11y-panel label {
  display: flex;
  align-items: center;
  gap: 7.2px;
  font-size: 14px !important;
  margin: 4px 0;
  cursor: pointer;
  color: inherit;
  max-width: 100%;
}

.solx-a11y-panel label small {
  display: block;
  margin-top: 1.6px;
  color: var(--solex-muted, var(--solx-a11y-muted));
  font-size: 11px !important;
  font-weight: 400;
}

.solx-a11y-preset {
  align-items: flex-start !important;
}

.solx-a11y-choice {
  align-items: flex-start !important;
}

.solx-a11y-preset span {
  display: flex;
  flex-direction: column;
  gap: 2.4px;
  min-width: 0;
}

.solx-a11y-preset small {
  color: var(--solex-muted, var(--solx-a11y-muted));
  font-size: 11px !important;
  font-weight: 400;
}

.solx-a11y-advanced {
  margin: 8px 0 12px;
}

.solx-a11y-advanced summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
  color: inherit;
  font-size: 14px !important;
}

.solx-a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5.6px;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  background: var(--solex-surface, var(--solx-a11y-surface));
  color: inherit;
  border-radius: 10px;
  padding: 6.4px 11.2px;
  font-size: 13px !important;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}

.solx-a11y-btn:hover {
  border-color: var(--solex-amber, var(--solx-a11y-amber));
}

.solx-a11y-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Voz (Web Speech API) */
.solx-a11y-select {
  flex: 1 1 160px;
  min-width: 0;
  padding: 6.4px 8.8px;
  border: 1px solid var(--solx-a11y-line);
  border-radius: 8px;
  background: var(--solx-a11y-surface);
  color: inherit;
  font: inherit;
}
.solx-a11y-range {
  flex: 1 1 120px;
  min-width: 0;
  accent-color: var(--solex-amber, var(--solx-a11y-amber));
}

.solx-a11y-voice-hint {
  margin: 0 0 8px;
  font-size: 11.52px;
  line-height: 1.35;
  color: var(--solex-muted, var(--solx-a11y-muted));
}
.solx-a11y-voice-status {
  margin: 8px 0 0;
  font-size: 11.52px;
  min-height: 1em;
  color: var(--solex-muted, var(--solx-a11y-muted));
}
.solx-a11y-voice-mic { font-weight: 700; }
.solx-a11y-voice-mic.is-listening,
.solx-a11y-qa-mic.is-listening {
  border-color: #dc2626;
  color: #dc2626;
  animation: solx-a11y-pulse 1.1s ease-in-out infinite;
}
@keyframes solx-a11y-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .solx-a11y-voice-mic.is-listening,
  .solx-a11y-qa-mic.is-listening { animation: none; }
}

.solx-a11y-qa-status {
  margin: 8px 0 0;
  font-size: 14.4px;
  min-height: 1em;
  color: var(--solex-muted, var(--solx-a11y-muted));
}

/* —— Mando tipo cassette (Play / Pause / Stop) ——
   Botones grandes, redondos, alineados en fila, con estado activo/bloqueado.
   Reemplaza los botones sueltos desalineados que se veían antes. */
.solx-a11y-deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9.6px;
  margin: 5.6px 0 9.6px;
  padding: 8px;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 14px;
  background: var(--solex-surface-2, var(--solx-a11y-surface-2));
}

.solx-a11y-deck__btn {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 12px;
  background: var(--solex-surface, var(--solx-a11y-surface));
  color: var(--solex-white, var(--solx-a11y-white));
  font-size: 22px !important;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}

.solx-a11y-deck__btn:hover:not(:disabled) {
  border-color: var(--solex-amber, var(--solx-a11y-amber));
}

.solx-a11y-deck__btn:active:not(:disabled) {
  transform: translateY(1px);
}

.solx-a11y-deck__btn.is-active {
  border-color: var(--solex-amber, var(--solx-a11y-amber));
  background: var(--solex-amber, var(--solx-a11y-amber));
  color: #fff;
}

.solx-a11y-deck__btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.solx-a11y-deck__btn:focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 2px;
}

/* —— “Más opciones”: bloque plegable que agrupa el panel avanzado —— */
.solx-a11y-more {
  margin: 8px 0 12px;
}

.solx-a11y-more > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px !important;
  padding: 8px 10.4px;
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  border-radius: 10px;
  background: var(--solex-surface-2, var(--solx-a11y-surface-2));
  color: inherit;
  list-style: none;
}

.solx-a11y-more > summary::-webkit-details-marker {
  display: none;
}

.solx-a11y-more > summary::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 6.4px;
  transition: transform 0.15s ease;
}

.solx-a11y-more[open] > summary::before {
  transform: rotate(90deg);
}

.solx-a11y-advanced__head {
  font-weight: 700;
  font-size: 13px !important;
  margin: 8px 0;
  color: inherit;
}

/* Buscar en la web por voz (botón de voz independiente) */
.solx-a11y-search {
  border-top: 1px solid var(--solx-a11y-line);
  margin-top: 12px;
  padding-top: 12px;
}

.solx-a11y-search-row {
  display: flex;
  align-items: center;
  gap: 6.4px;
}

.solx-a11y-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 9.6px;
  border: 1px solid var(--solx-a11y-line);
  border-radius: 8px;
  background: var(--solx-a11y-surface);
  color: inherit;
  font: inherit;
}

.solx-a11y-search-input:focus-visible,
.solx-a11y-search-go:focus-visible,
.solx-a11y-search-mic:focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 2px;
}

.solx-a11y-search-mic {
  flex: 0 0 auto;
  min-width: 44px;
}

.solx-a11y-search-go {
  flex: 0 0 auto;
}

/* Parar la lectura del resultado de la búsqueda (visible solo mientras suena) */
.solx-a11y-search-stop {
  flex: 0 0 auto;
}

.solx-a11y-search-stop[hidden],
.solx-a11y-nostromo__stop[hidden] {
  display: none !important;
}

.solx-a11y-nostromo__stop {
  display: block;
  margin: 0 auto 14px;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  color: #fee2e2;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.solx-a11y-nostromo__stop:hover,
.solx-a11y-nostromo__stop:focus-visible {
  background: rgba(220, 38, 38, 0.32);
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber));
  outline-offset: 2px;
}

/* —— Tonos sutiles de sección (equidad visual del panel) ——
   Azul = Escuchar 🎧 (lectura en voz alta) · Verde = Hablar 🗣️ (dictar búsqueda).
   Sólo un filete y un lavado de color: nada que compita con el contenido ni que
   rompa el alto contraste (que neutraliza el acento más abajo). */
.solx-a11y-tone {
  --solx-tone: var(--solx-a11y-line);
  --solx-tone-wash: transparent;
  border-color: var(--solx-tone) !important;
}

.solx-a11y-tone--listen {
  --solx-tone: #3b82f6;
  --solx-tone-wash: rgba(59, 130, 246, 0.08);
}

.solx-a11y-tone--speak {
  --solx-tone: #16a34a;
  --solx-tone-wash: rgba(22, 163, 74, 0.08);
}

.solx-a11y-tone > .solx-a11y-section-title {
  border-left: 3px solid var(--solx-tone) !important;
  background: var(--solx-tone-wash) !important;
}

/* El bloque de búsqueda, cuando vive dentro de su propia tarjeta, ya no lleva
   el filete superior: el borde lo pone la tarjeta (evita la doble línea). */
.solx-a11y-search--plain {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.solx-a11y-qa-results {
  margin: 6.4px 0 0;
  padding-left: 17.6px;
  font-size: 16px;
  line-height: 1.55;
}

.solx-a11y-qa-results li + li {
  margin-top: 5.6px;
}

.solx-a11y-qa-results a {
  color: inherit;
  text-decoration: underline;
  font-size: 16px;
}

.solx-a11y-qa-panel {
  margin-top: 8px;
  text-align: left;
}

.solx-a11y-qa-summary {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.solx-a11y-qa-kicker {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Never paint native file-picker chrome / “No file selected” */
.solx-a11y-file,
input.solx-a11y-file[type='file'] {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* —— Page font force (themes / Elementor / Doctor often use !important) —— */
html[data-solx-font] body,
html[data-solx-font] body p,
html[data-solx-font] body li,
html[data-solx-font] body h1,
html[data-solx-font] body h2,
html[data-solx-font] body h3,
html[data-solx-font] body h4,
html[data-solx-font] body h5,
html[data-solx-font] body h6,
html[data-solx-font] body a,
html[data-solx-font] body button,
html[data-solx-font] body input,
html[data-solx-font] body textarea,
html[data-solx-font] body select,
html[data-solx-font] .entry-content,
html[data-solx-font] .entry-content p,
html[data-solx-font] .wp-block-post-content,
html[data-solx-font] .site-main,
html[data-solx-font] .site-content,
html[data-solx-font] main,
html[data-solx-font] article,
html[data-solx-font] .elementor-widget-text-editor,
html[data-solx-font] .elementor-text-editor,
html[data-solx-font] .elementor-widget-container,
html[data-solx-font] .elementor-heading-title,
html[data-solx-font] .wpb_text_column,
html[data-solx-font] .wpb_wrapper {
  font-family: var(--solx-font-family) !important;
}

html[data-solx-font='opendyslexic'] body,
html[data-solx-font='opendyslexic'] body p,
html[data-solx-font='opendyslexic'] body li,
html[data-solx-font='opendyslexic'] body h1,
html[data-solx-font='opendyslexic'] body h2,
html[data-solx-font='opendyslexic'] body h3,
html[data-solx-font='opendyslexic'] .elementor-heading-title,
html[data-solx-font='opendyslexic'] .elementor-widget-text-editor {
  font-family: OpenDyslexic, 'Comic Sans MS', sans-serif !important;
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
}

/* Page builders: undo global font force only when an A11y font preset is active */
html[data-solx-builder-safe='true'][data-solx-font] body,
html[data-solx-builder-safe='true'][data-solx-font] body p,
html[data-solx-builder-safe='true'][data-solx-font] body li,
html[data-solx-builder-safe='true'][data-solx-font] body h1,
html[data-solx-builder-safe='true'][data-solx-font] body h2,
html[data-solx-builder-safe='true'][data-solx-font] body h3,
html[data-solx-builder-safe='true'][data-solx-font] body h4,
html[data-solx-builder-safe='true'][data-solx-font] body h5,
html[data-solx-builder-safe='true'][data-solx-font] body h6,
html[data-solx-builder-safe='true'][data-solx-font] body a,
html[data-solx-builder-safe='true'][data-solx-font] body button,
html[data-solx-builder-safe='true'][data-solx-font] body input,
html[data-solx-builder-safe='true'][data-solx-font] body .et_pb_module,
html[data-solx-builder-safe='true'][data-solx-font] body .elementor-widget-wrap {
  font-family: inherit !important;
  letter-spacing: inherit !important;
  word-spacing: inherit !important;
  line-height: inherit !important;
}

html[data-solx-builder='divi'][data-solx-font] .et_pb_text_inner,
html[data-solx-builder='divi'][data-solx-font] .et_pb_blurb_description,
html[data-solx-builder='divi'][data-solx-font] .et_pb_toggle_content,
html[data-solx-builder='divi'][data-solx-font] .et_pb_slide_content,
html[data-solx-builder='divi'][data-solx-font] .et_pb_testimonial_description,
html[data-solx-builder='divi'][data-solx-font] .et_pb_post_content,
html[data-solx-builder='divi'][data-solx-font] .et_pb_tab_content,
html[data-solx-builder='elementor'][data-solx-font] .elementor-widget-text-editor,
html[data-solx-builder='elementor'][data-solx-font] .elementor-widget-container p {
  font-family: var(--solx-font-family) !important;
}

html[data-solx-builder='divi'][data-solx-font='opendyslexic'] .et_pb_text_inner,
html[data-solx-builder='divi'][data-solx-font='opendyslexic'] .et_pb_blurb_description,
html[data-solx-builder='elementor'][data-solx-font='opendyslexic'] .elementor-widget-text-editor {
  font-family: OpenDyslexic, 'Comic Sans MS', sans-serif !important;
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
  line-height: 1.65 !important;
}

/* Firefox rem fallback when zoom unsupported */
html[data-solx-font-scaled='true'] .entry-content,
html[data-solx-font-scaled='true'] .entry-content p,
html[data-solx-font-scaled='true'] .entry-content li,
html[data-solx-font-scaled='true'] .wp-block-post-content,
html[data-solx-font-scaled='true'] .wp-block-post-content p,
html[data-solx-font-scaled='true'] .wp-block-post-content li,
html[data-solx-font-scaled='true'] .site-main,
html[data-solx-font-scaled='true'] .site-main p,
html[data-solx-font-scaled='true'] .site-content,
html[data-solx-font-scaled='true'] .site-content p,
html[data-solx-font-scaled='true'] main p,
html[data-solx-font-scaled='true'] article p,
html[data-solx-font-scaled='true'] .elementor-widget-text-editor,
html[data-solx-font-scaled='true'] .elementor-text-editor,
html[data-solx-font-scaled='true'] .elementor-widget-container p,
html[data-solx-font-scaled='true'] .elementor-heading-title {
  font-size: 16px !important;
}

html[data-solx-theme='dark'] {
  --solx-a11y-surface: #0f172a;
  --solx-a11y-surface-2: #1e293b;
  --solx-a11y-white: #f8fafc;
  --solx-a11y-muted: #94a3b8;
  --solx-a11y-line: rgba(148, 163, 184, 0.35);
  --solx-a11y-amber: #fbbf24;
  color-scheme: dark;
}

/*
 * Site-wide Dark: invert body only (NOT html).
 * Filter on <html> breaks position:fixed for the A11y FAB (jumps to page bottom).
 * A11y mount lives under <html> as sibling of <body>, so it stays viewport-fixed.
 */
html[data-solx-theme='dark']:not([data-solx-contrast='true']) body {
  filter: invert(1) hue-rotate(180deg);
  background: #0b1220 !important;
}

html[data-solx-theme='dark']:not([data-solx-contrast='true']) body img,
html[data-solx-theme='dark']:not([data-solx-contrast='true']) body video,
html[data-solx-theme='dark']:not([data-solx-contrast='true']) body picture,
html[data-solx-theme='dark']:not([data-solx-contrast='true']) body iframe,
html[data-solx-theme='dark']:not([data-solx-contrast='true']) body svg image {
  filter: invert(1) hue-rotate(180deg);
}

html[data-solx-contrast='true'] {
  --solex-surface: #000;
  --solex-surface-2: #111;
  --solex-white: #fff;
  --solex-muted: #ddd;
  --solex-line: #fff;
  --solex-amber: #ffe066;
  --solx-a11y-surface: #000;
  --solx-a11y-surface-2: #111;
  --solx-a11y-white: #fff;
  --solx-a11y-muted: #ddd;
  --solx-a11y-line: #fff;
  --solx-a11y-amber: #ffe066;
  background: #000 !important;
  color: #fff !important;
  color-scheme: dark;
  filter: none !important;
}

html[data-solx-contrast='true'] body {
  background: #000 !important;
  color: #fff !important;
  filter: none !important;
}

/* High Contrast: force readable black/white on common WP/builder surfaces */
html[data-solx-contrast='true'] body,
html[data-solx-contrast='true'] body .site,
html[data-solx-contrast='true'] body .site-content,
html[data-solx-contrast='true'] body .site-main,
html[data-solx-contrast='true'] body main,
html[data-solx-contrast='true'] body article,
html[data-solx-contrast='true'] body .entry-content,
html[data-solx-contrast='true'] body .wp-site-blocks,
html[data-solx-contrast='true'] body .elementor,
html[data-solx-contrast='true'] body .elementor-section,
html[data-solx-contrast='true'] body .elementor-container,
html[data-solx-contrast='true'] body .elementor-column,
html[data-solx-contrast='true'] body .elementor-widget-wrap,
html[data-solx-contrast='true'] body .elementor-element,
html[data-solx-contrast='true'] body .wpb_row,
html[data-solx-contrast='true'] body .wpb_column,
html[data-solx-contrast='true'] body .vc_row,
html[data-solx-contrast='true'] body .vc_column_container {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-solx-contrast='true'] body p,
html[data-solx-contrast='true'] body li,
html[data-solx-contrast='true'] body h1,
html[data-solx-contrast='true'] body h2,
html[data-solx-contrast='true'] body h3,
html[data-solx-contrast='true'] body h4,
html[data-solx-contrast='true'] body h5,
html[data-solx-contrast='true'] body h6,
html[data-solx-contrast='true'] body span,
html[data-solx-contrast='true'] body .elementor-heading-title,
html[data-solx-contrast='true'] body .elementor-widget-text-editor {
  color: #fff !important;
  background-color: transparent !important;
}

html[data-solx-contrast='true'] body a {
  color: #ffe066 !important;
  text-decoration: underline !important;
}

html[data-solx-contrast='true'] body button,
html[data-solx-contrast='true'] body .button,
html[data-solx-contrast='true'] body input,
html[data-solx-contrast='true'] body select,
html[data-solx-contrast='true'] body textarea {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

/* Keep A11y chrome readable under contrast without inheriting page noise */
html[data-solx-contrast='true'] #solx-accessibility-root,
html[data-solx-contrast='true'] [data-solx-a11y-root],
html[data-solx-contrast='true'] .solx-a11y-panel,
html[data-solx-contrast='true'] .solx-a11y-root {
  filter: none !important;
  color: #fff !important;
}

/* Alto contraste: el acento azul/verde es decorativo. Con negro/blanco puro no
   aporta y puede bajar el contraste del borde, así que se neutraliza. */
html[data-solx-contrast='true'] .solx-a11y-tone {
  --solx-tone: #fff;
  --solx-tone-wash: transparent;
}
html[data-solx-contrast='true'] .solx-a11y-tone > .solx-a11y-section-title {
  border-left-color: #fff !important;
}

html[data-solx-motion='reduce'] *,
html[data-solx-motion='reduce'] *::before,
html[data-solx-motion='reduce'] *::after {
  animation: none !important;
  transition: none !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Builder themes: never layout-zoom body (breaks full-width sections) */
html[data-solx-builder='divi'] body,
html[data-solx-builder='elementor'] body {
  zoom: 1 !important;
}

/* Divi: scale text modules only (Firefox / no-zoom fallback — skip when page-container zoom is active) */
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_text_inner,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_text_inner p,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_text_inner li,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_text_inner a,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_module_header,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_blurb_description,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_toggle_content,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_toggle_content p,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_slide_content,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_testimonial_description,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_post_content,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_tab_content,
html[data-solx-builder='divi'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .et_pb_blurb_description p {
  font-size: calc(1em * var(--solx-font-scale)) !important;
}

/* Elementor: scale text widgets only (no-zoom fallback) */
html[data-solx-builder='elementor'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .elementor-widget-text-editor,
html[data-solx-builder='elementor'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .elementor-heading-title,
html[data-solx-builder='elementor'][data-solx-font-scaled='true']:not([data-solx-builder-zoom='true']) .elementor-widget-container p {
  font-size: calc(1em * var(--solx-font-scale)) !important;
}

/* Reading Mode layout (articles only — disabled on builder pages via data-solx-reading-layout) */
html[data-solx-reading-layout='true'] body {
  letter-spacing: 0.03em;
  word-spacing: 0.06em;
  line-height: 1.75 !important;
}

html[data-solx-reading-layout='true'] .entry-content,
html[data-solx-reading-layout='true'] .wp-block-post-content,
html[data-solx-reading-layout='true'] article:not(.et_pb_post) p,
html[data-solx-reading-layout='true'] article:not(.et_pb_post) li {
  max-width: 672px;
  line-height: 1.75 !important;
}

html[data-solx-reading-layout='true'] .sx-main__context {
  display: none;
}

/* Focus Mode: stronger keyboard focus (independent of Reading) */
html[data-solx-focus='strong'] :focus,
html[data-solx-focus='strong'] :focus-visible {
  outline: 3px solid var(--solex-amber, var(--solx-a11y-amber)) !important;
  outline-offset: 3px !important;
}

html[data-solx-focus='strong'] a:focus,
html[data-solx-focus='strong'] button:focus,
html[data-solx-focus='strong'] input:focus,
html[data-solx-focus='strong'] select:focus,
html[data-solx-focus='strong'] textarea:focus,
html[data-solx-focus='strong'] summary:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35) !important;
}

.solx-a11y-skip,
.swnv-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 16px;
  background: #000;
  color: #fff;
}

.solx-a11y-skip:focus,
.swnv-skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------------------------------------------------------------------------
   Modo anclado (shortcodes [swnv_accessibility] / [swnv_accessibility_voice] con
   anchor="menu|footer|inline"): el botón vive en el flujo del layout en lugar de
   flotar, ideal para menús del tema, pies o contenido. El botón sigue siendo
   redondo pero compacto; el panel se abre en posición absoluta junto a él.
   Lo envolvente es `.solx-a11y-root` (la raíz del widget oculto queda display:contents).
   --------------------------------------------------------------------------- */
.solx-a11y-mount[data-solx-a11y-anchor="menu"],
.solx-a11y-mount[data-solx-a11y-anchor="footer"],
.solx-a11y-mount[data-solx-a11y-anchor="inline"] {
  display: contents;
}

.solx-a11y-mount[data-solx-a11y-anchor="menu"] + *,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] + * {
  vertical-align: middle;
}

/* La raíz anclada debe ganar a las reglas de posición flotante
   (.solx-a11y-mount[data-position=…] .solx-a11y-root), de ahí la especificidad. */
.solx-a11y-mount[data-solx-a11y-anchor="menu"] .solx-a11y-root.solx-a11y-root--anchored,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] .solx-a11y-root.solx-a11y-root--anchored,
.solx-a11y-mount[data-solx-a11y-anchor="inline"] .solx-a11y-root.solx-a11y-root--anchored {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 1000;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6.4px;
}

.solx-a11y-mount[data-solx-a11y-anchor="menu"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-fab,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-fab,
.solx-a11y-mount[data-solx-a11y-anchor="inline"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-fab {
  box-shadow: none;
}

/* Popover de acciones rápidas en modo anclado (shortcode footer/menu/inline):
   se despliega al pasar el cursor o enfocar el botón. Posición absoluta para no
   alterar el flujo del tema; el layout se ancla en .solx-a11y-root (relative). */
.solx-a11y-mount[data-solx-a11y-anchor="menu"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick,
.solx-a11y-mount[data-solx-a11y-anchor="inline"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick {
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 8px);
  top: auto;
  z-index: 100000;
  flex-direction: column;
  gap: 5.6px;
  padding: 5.6px;
  border-radius: 12px;
  background: var(--solex-surface, var(--solx-a11y-surface));
  border: 1px solid var(--solex-line, var(--solx-a11y-line));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.solx-a11y-mount[data-solx-a11y-anchor="menu"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick.is-open,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick.is-open,
.solx-a11y-mount[data-solx-a11y-anchor="inline"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-quick.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.solx-a11y-mount[data-solx-a11y-anchor="menu"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-panel,
.solx-a11y-mount[data-solx-a11y-anchor="footer"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-panel,
.solx-a11y-mount[data-solx-a11y-anchor="inline"] .solx-a11y-root.solx-a11y-root--anchored .solx-a11y-panel {
  /* Fijo y siempre visible: un menú o pie suele tener overflow:hidden y no
     queremos que recorte el panel ni que se salga de la pantalla al anclar a la
     derecha. Se centra abajo, por encima del borde inferior. */
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  z-index: 100000;
}

@media (max-width: 720px) {
  /* Especificidad: las reglas por posición (`.solx-a11y-mount[data-position=…]
     .solx-a11y-root`, 0,3,0) ganan a un `.solx-a11y-root` pelado (0,1,0), así que
     en móvil el FAB no se anclaba abajo. Igualamos con `[data-position]`. */
  .solx-a11y-mount[data-position] .solx-a11y-root {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  /* Barra rápida a fila: al ser absoluta, se sitúa encima del FAB (no debajo). */
  .solx-a11y-mount[data-position] .solx-a11y-quick {
    right: 0;
    bottom: calc(100% + 7.2px);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
  }
  .solx-a11y-panel {
    right: 16px;
    bottom: 88px;
    top: auto;
    transform: none;
    width: calc(100vw - 32px);
  }
}

/* ---------------------------------------------------------------------------
   anchor="panel": el panel completo desplegado dentro de la página (p. ej. en
   el pie), como un widget. Sin botón, sin «X» y en el flujo del tema.
   --------------------------------------------------------------------------- */
.solx-a11y-mount[data-solx-a11y-anchor="panel"] {
  display: block;
  width: 100%;
  max-width: var(--solx-embed-width, 420px);
}

.solx-a11y-mount[data-solx-a11y-anchor="panel"] .solx-a11y-root.solx-a11y-root--embedded {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  display: block;
  width: 100%;
}

.solx-a11y-mount[data-solx-a11y-anchor="panel"] .solx-a11y-root.solx-a11y-root--embedded .solx-a11y-panel {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  text-align: left;
}

/* La cabecera es sticky para el panel flotante (que tiene scroll propio); en la
   página no tiene sentido que se pegue arriba. */
.solx-a11y-mount[data-solx-a11y-anchor="panel"] .solx-a11y-panel__head {
  position: static;
}

/* altura="…": el panel se limita a esa altura y se desplaza por dentro; la
   cabecera vuelve a quedarse fija arriba mientras se recorre. */
.solx-a11y-mount[data-solx-a11y-anchor="panel"][data-solx-embed-height] .solx-a11y-root.solx-a11y-root--embedded .solx-a11y-panel {
  max-height: var(--solx-embed-height);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.solx-a11y-mount[data-solx-a11y-anchor="panel"][data-solx-embed-height] .solx-a11y-panel__head {
  position: sticky;
}

/* ── Centro del borde de arriba y de abajo ─────────────────────────────────────
   Centrado sin transform: un transform en el botón haría que el panel (fijo y
   dentro del botón) se colocase respecto al botón y no respecto a la pantalla. */
.solx-a11y-mount[data-position="top-center"] .solx-a11y-root,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-root {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
  transform: none;
  align-items: center;
}

.solx-a11y-mount[data-position="top-center"] .solx-a11y-root {
  top: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
  bottom: auto;
}

.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-root {
  top: auto;
  bottom: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-stack, 0px));
}

.solx-a11y-mount[data-position="top-center"] .solx-a11y-panel,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.solx-a11y-mount[data-position="top-center"] .solx-a11y-panel {
  top: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-size, 56px) + 16px);
  bottom: auto;
}

.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-panel {
  top: auto;
  bottom: calc(var(--solx-fab-offset, 20px) + var(--solx-fab-size, 56px) + 16px);
}

/* Arriba, la barra rápida se abre hacia abajo (hacia arriba se saldría de la pantalla). */
.solx-a11y-mount[data-position^="top"] .solx-a11y-quick {
  top: calc(100% + 7.2px);
  bottom: auto;
}

.solx-a11y-mount[data-position$="-center"] .solx-a11y-quick {
  left: 0;
  right: auto;
}

/* ── Pestañas en el borde: con icono y texto (tab), solo icono, vertical ─────── */
.solx-a11y-fab--tab-icon,
.solx-a11y-fab--tab-vertical {
  width: auto;
  height: auto;
  min-height: var(--solx-fab-size, 56px);
  padding: 10px 9px;
  border-radius: 14px 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.solx-a11y-fab--tab-vertical {
  flex-direction: column;
  padding: 12px 9px;
}

.solx-a11y-fab--tab-icon .solx-a11y-fab__img,
.solx-a11y-fab--tab-vertical .solx-a11y-fab__img {
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Texto leído de abajo arriba, como en las pestañas de los lados de muchas webs. */
.solx-a11y-fab--tab-vertical .solx-a11y-fab__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Las pestañas se pegan al borde de su lado. */
.solx-a11y-root--tab-icon,
.solx-a11y-root--tab-vertical {
  right: 0;
}

.solx-a11y-mount[data-position$="-left"] .solx-a11y-root--tab-icon,
.solx-a11y-mount[data-position$="-left"] .solx-a11y-root--tab-vertical {
  left: 0;
  right: auto;
}

.solx-a11y-mount[data-position$="-left"] .solx-a11y-fab--tab-icon,
.solx-a11y-mount[data-position$="-left"] .solx-a11y-fab--tab-vertical {
  border-radius: 0 14px 14px 0;
}

/* Pestañas estrechas: el panel se abre al lado, sin taparlas. */
.solx-a11y-root--tab-icon .solx-a11y-panel,
.solx-a11y-root--tab-vertical .solx-a11y-panel {
  right: 56px;
}

.solx-a11y-mount[data-position$="-left"] .solx-a11y-root--tab-icon .solx-a11y-panel,
.solx-a11y-mount[data-position$="-left"] .solx-a11y-root--tab-vertical .solx-a11y-panel {
  left: 56px;
  right: auto;
}

/* En el centro de arriba o de abajo, cualquier pestaña se pega a ese borde y el
   texto va en horizontal. */
.solx-a11y-mount[data-position="top-center"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="top-center"] .solx-a11y-root--tab-icon,
.solx-a11y-mount[data-position="top-center"] .solx-a11y-root--tab-vertical {
  top: 0;
}

.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-root--tab-icon,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-root--tab-vertical {
  bottom: 0;
  /* Sin el hueco que el contenedor deja tras el botón (panel cerrado): pegada al borde. */
  gap: 0;
}

.solx-a11y-mount[data-position="top-center"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="top-center"] .solx-a11y-fab--tab-icon,
.solx-a11y-mount[data-position="top-center"] .solx-a11y-fab--tab-vertical {
  border-radius: 0 0 14px 14px;
}

.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-fab--tab-icon,
.solx-a11y-mount[data-position="bottom-center"] .solx-a11y-fab--tab-vertical {
  border-radius: 14px 14px 0 0;
}

.solx-a11y-mount[data-position$="-center"] .solx-a11y-fab--tab-vertical {
  flex-direction: row;
}

.solx-a11y-mount[data-position$="-center"] .solx-a11y-fab--tab-vertical .solx-a11y-fab__label {
  writing-mode: horizontal-tb;
  transform: none;
}

/* Pestaña = pegada al borde de su lado también en las esquinas (las reglas de
   esquina, más específicas, la separaban el margen del botón). */
.solx-a11y-mount[data-position$="right"] .solx-a11y-root[class*="solx-a11y-root--tab"] {
  right: 0;
  left: auto;
}

.solx-a11y-mount[data-position$="left"] .solx-a11y-root[class*="solx-a11y-root--tab"] {
  left: 0;
  right: auto;
}

/* Arrastrado por el visitante: manda la posición en línea (left/top). */
.solx-a11y-root.swnv-dragged {
  margin: 0;
  width: auto;
}

/* Diez lugares (29-nov-2026): entre arriba y el centro (25 %) y entre el centro y abajo
   (75 %), a cada lado. El panel se abre hacia dentro de la pantalla. */
.solx-a11y-mount[data-position="upper-right"] .solx-a11y-root,
.solx-a11y-mount[data-position="lower-right"] .solx-a11y-root {
  bottom: auto;
  right: var(--solx-fab-offset, 16px);
  left: auto;
  transform: translateY(-50%);
}
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-root,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-root {
  bottom: auto;
  left: var(--solx-fab-offset, 16px);
  right: auto;
  transform: translateY(-50%);
  align-items: flex-start;
}
.solx-a11y-mount[data-position="upper-right"] .solx-a11y-root,
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-root { top: 25%; }
.solx-a11y-mount[data-position="lower-right"] .solx-a11y-root,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-root { top: 75%; }

.solx-a11y-mount[data-position="upper-left"] .solx-a11y-fab--tab,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-fab--tab {
  border-radius: 0 14px 14px 0;
}
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-panel,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-panel {
  left: 80px;
  right: auto;
}
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-root--tab,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-root--tab {
  left: 0;
  right: auto;
}
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-root--tab .solx-a11y-panel,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-root--eaa .solx-a11y-panel,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-root--tab .solx-a11y-panel {
  left: 16px;
  right: auto;
}
.solx-a11y-mount[data-position="upper-right"] .solx-a11y-panel,
.solx-a11y-mount[data-position="upper-left"] .solx-a11y-panel {
  top: 20px;
  bottom: auto;
  transform: none;
}
.solx-a11y-mount[data-position="lower-right"] .solx-a11y-panel,
.solx-a11y-mount[data-position="lower-left"] .solx-a11y-panel {
  top: auto;
  bottom: 20px;
  transform: none;
}
/* solx-assist */
/* SOLΞ Voice — panel «Pregunta a la web». Aislado del tema: todo con prefijo
   y valores explícitos para que ningún maquetador lo deforme. */
.solx-assist {
  --solx-assist-accent: #7c3aed;
  --solx-assist-ink: #0f172a;
  --solx-assist-muted: #64748b;
  --solx-assist-line: #e2e8f0;
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 2147483600;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: min(620px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #fff;
  color: var(--solx-assist-ink);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  font: 400 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  animation: solx-assist-in 0.18s ease-out;
}
.solx-assist[hidden] { display: none !important; }
.solx-assist--left { right: auto; left: 20px; }
.solx-assist *, .solx-assist *::before, .solx-assist *::after { box-sizing: border-box; }
@keyframes solx-assist-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.solx-assist__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  background: var(--solx-assist-accent);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12));
  color: #fff;
}
.solx-assist__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.solx-assist__avatar svg { width: 22px; height: 22px; }
.solx-assist__avatar.has-img { flex-basis: 44px; width: 44px; height: 44px; padding: 0; background: #fff; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.solx-assist__avatar img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 50%; object-fit: cover; }
.solx-assist__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.solx-assist__title { font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solx-assist__subtitle { font-size: 12.5px; opacity: 0.9; color: #fff; }
.solx-assist__close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  line-height: 0;
}
.solx-assist__close:hover, .solx-assist__close:focus-visible { background: rgba(255, 255, 255, 0.3); outline: 2px solid #fff; outline-offset: 1px; }
.solx-assist__close svg { width: 20px; height: 20px; }

.solx-assist__tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  background: var(--solx-assist-accent);
  background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
}
.solx-assist__tab {
  margin: 0;
  padding: 9px 14px 10px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600; font-size: 13.5px; line-height: 1;
  font-family: inherit;
  cursor: pointer;
}
.solx-assist__tab.is-active { background: #fff; color: var(--solx-assist-ink); }
.solx-assist__tab:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.solx-assist__body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f8fafc; }
.solx-assist__thread, .solx-assist__articles { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; overscroll-behavior: contain; }
.solx-assist__thread[hidden], .solx-assist__articles[hidden] { display: none !important; }

.solx-assist__msg { max-width: 88%; margin: 0 0 10px; padding: 10px 13px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; }
.solx-assist__msg p { margin: 0; padding: 0; font-size: 14.5px; line-height: 1.5; color: inherit; }
.solx-assist__msg--bot { background: #fff; border: 1px solid var(--solx-assist-line); border-bottom-left-radius: 4px; color: var(--solx-assist-ink); }
.solx-assist__msg--user { margin-left: auto; background: var(--solx-assist-accent); color: #fff; border-bottom-right-radius: 4px; }
.solx-assist__msg--user p { color: #fff; }

.solx-assist__links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.solx-assist__links li { margin: 0; padding: 8px 10px; background: #f1f5f9; border-radius: 10px; }
.solx-assist__links a { color: var(--solx-assist-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.solx-assist__links a:focus-visible { outline: 2px solid var(--solx-assist-accent); outline-offset: 2px; }
.solx-assist__snippet { display: block; margin-top: 3px; font-size: 13px; color: #475569; line-height: 1.4; }
.solx-assist__articles .solx-assist__links li { background: #fff; border: 1px solid var(--solx-assist-line); }
.solx-assist__empty { margin: 8px 2px; color: var(--solx-assist-muted); font-size: 14px; }

.solx-assist__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.solx-assist__tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #ede9fe; color: #5b21b6; }
.solx-assist__speak {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--solx-assist-line);
  border-radius: 50%;
  background: #fff;
  color: #334155;
  cursor: pointer;
  line-height: 0;
}
.solx-assist__speak:hover, .solx-assist__speak:focus-visible { border-color: var(--solx-assist-accent); color: var(--solx-assist-accent); outline: none; }
.solx-assist__speak svg { width: 16px; height: 16px; }
.solx-assist__speak[hidden] { display: none !important; }

.solx-assist__chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 12px; }
.solx-assist__chip {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--solx-assist-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--solx-assist-accent);
  font-weight: 600; font-size: 13px; line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.solx-assist__chip:hover, .solx-assist__chip:focus-visible { background: var(--solx-assist-accent); color: #fff; outline: none; }

.solx-assist__typing { display: inline-flex; align-items: center; }
.solx-assist__dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.solx-assist__dots i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: solx-assist-dot 1s infinite ease-in-out; }
.solx-assist__dots i:nth-child(2) { animation-delay: 0.15s; }
.solx-assist__dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes solx-assist-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.solx-assist__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.solx-assist__composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 10px 10px 8px 14px;
  border-top: 1px solid var(--solx-assist-line);
  background: #fff;
}
.solx-assist__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  max-height: 120px;
  margin: 0;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  color: var(--solx-assist-ink);
  font-weight: 400; font-size: 15px; line-height: 1.35;
  font-family: inherit;
  resize: none;
  box-shadow: none;
  outline: none;
}
.solx-assist__mic, .solx-assist__send {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
}
.solx-assist__mic { background: #f1f5f9; color: #334155; }
.solx-assist__mic:hover, .solx-assist__mic:focus-visible { background: #e2e8f0; outline: 2px solid var(--solx-assist-accent); outline-offset: 1px; }
.solx-assist__mic.is-listening { background: #dc2626; color: #fff; animation: solx-assist-pulse 1.2s infinite; }
@keyframes solx-assist-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.solx-assist__send { background: var(--solx-assist-accent); color: #fff; }
.solx-assist__send:disabled { opacity: 0.5; cursor: default; }
.solx-assist__send:focus-visible { outline: 2px solid var(--solx-assist-ink); outline-offset: 1px; }
.solx-assist__mic svg, .solx-assist__send svg { width: 22px; height: 22px; }

.solx-assist__note { margin: 0; padding: 4px 14px 9px; background: #fff; color: var(--solx-assist-muted); font-size: 11.5px; line-height: 1.3; text-align: center; }

@media (max-width: 600px) {
  .solx-assist, .solx-assist--left { left: 0; right: 0; bottom: 0; top: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; }
  /* A pantalla completa los botones flotantes taparían la caja de escritura. */
  html.solx-assist-open .solx-a11y-mount:not([data-solx-a11y-anchor="menu"]):not([data-solx-a11y-anchor="footer"]):not([data-solx-a11y-anchor="inline"]),
  html.solx-assist-open .opnv-rgpd-fab, html.solx-assist-open #argpd-fab { visibility: hidden !important; }
}
@media (prefers-reduced-motion: reduce) {
  .solx-assist, .solx-assist__dots i, .solx-assist__mic.is-listening { animation: none; }
}

/* Pestaña «Páginas»: árbol de la web. */
.solx-assist__section {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.solx-assist__tree-filter {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 6px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}
.solx-assist__tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.solx-assist__tree--sub {
  margin: 2px 0 4px 12px;
  padding-left: 10px;
  border-left: 2px solid #eef2f7;
}
.solx-assist__tree li {
  margin: 0;
  padding: 0;
}
.solx-assist__tree li[hidden] {
  display: none;
}
.solx-assist__tree a,
.solx-assist__tree span {
  display: inline-block;
  padding: 5px 4px;
  font-size: 14px;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}
.solx-assist__tree a:hover,
.solx-assist__tree a:focus-visible {
  color: var(--solx-assist-accent, #7c3aed);
  text-decoration: underline;
}
.solx-assist__tree summary {
  cursor: pointer;
  list-style: none;
}
.solx-assist__tree summary::-webkit-details-marker {
  display: none;
}
.solx-assist__tree summary::before {
  content: '▸';
  display: inline-block;
  width: 14px;
  color: #94a3b8;
  transition: transform .15s;
}
.solx-assist__tree details[open] > summary::before {
  transform: rotate(90deg);
}
.solx-assist__tree li > a,
.solx-assist__tree li > span {
  margin-left: 14px;
}
/* swnv-frontend */
/* 
 * Smart Widgets NV - Frontend Styles
 * Base styles for unified widget suite
 */

:root {
    --swnv-primary: #002B5B;
    --swnv-accent: #2EB086;
    --swnv-bg-light: #F9F9F9;
    --swnv-text-dark: #1A1A1A;
    --swnv-error: #E74C3C;
    --swnv-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --swnv-radius: 12px;
    --swnv-transition: all 0.3s ease;
}

.swnv-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--swnv-text-dark);
    line-height: 1.6;
    box-sizing: border-box;
    width: 100%;
}

.swnv-widget-container * {
    box-sizing: border-box;
}

.swnv-widget-card {
    background: #fff;
    border-radius: var(--swnv-radius);
    padding: 20px;
    box-shadow: var(--swnv-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--swnv-transition);
}

.swnv-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.swnv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--swnv-transition);
    cursor: pointer;
    border: none;
}

.swnv-btn-primary {
    background-color: var(--swnv-primary);
    color: #fff;
}

.swnv-btn-primary:hover {
    filter: brightness(1.2);
}

.swnv-btn-accent {
    background-color: var(--swnv-accent);
    color: #fff;
}

/* Placeholder para estados de carga */
.swnv-loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: swnv-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes swnv-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lazy load de widgets */
.swnv-widget-lazy {
    min-height: 80px;
    position: relative;
}

.swnv-lazy-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--swnv-bg-light, #f8f9fa);
    border: 1px dashed rgba(0, 43, 91, 0.15);
    border-radius: var(--swnv-radius, 12px);
    color: #64748b;
    min-height: 80px;
}

.swnv-lazy-icon.dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--swnv-primary, #002b5b);
}

.swnv-lazy-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--swnv-accent, #2eb086);
    border-radius: 50%;
    animation: swnv-spin 0.8s linear infinite;
}

@keyframes swnv-spin {
    to { transform: rotate(360deg); }
}

body.swnv-dark-mode .swnv-lazy-placeholder {
    background: #2d2d2d;
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Estilos visuales predefinidos */
.swnv-widget-styled.swnv-style-minimalist,
.swnv-style-minimalist.swnv-contact-form-container,
.swnv-style-minimalist.swnv-faq-container,
.swnv-style-minimalist.swnv-pricing-table,
.swnv-style-minimalist.swnv-testimonials {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.swnv-widget-styled.swnv-style-dark,
.swnv-style-dark.swnv-contact-form-container,
.swnv-style-dark.swnv-faq-container,
.swnv-style-dark.swnv-pricing-table,
.swnv-style-dark.swnv-testimonials,
.swnv-style-dark.swnv-team-showcase {
    background: #1a1a1a !important;
    color: #e8e8e8 !important;
    border-color: #333 !important;
}

.swnv-widget-styled.swnv-style-modern,
.swnv-style-modern.swnv-contact-form-container,
.swnv-style-modern.swnv-faq-container,
.swnv-style-modern.swnv-pricing-table,
.swnv-style-modern.swnv-testimonials {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 43, 91, 0.12) !important;
    border: 1px solid rgba(0, 43, 91, 0.06) !important;
}
/* opnv-legal-document */
/*
 * Legal documents. On the page they take the site's own colours and fonts, so they read like the rest of
 * the site on a dark theme and on a light one. Colours chosen in the Privacy Suite («custom» mode) come
 * as inline CSS from PrivacySuiteLegal::document_inline_css(). The popup dialog is white: it keeps dark text.
 */

.rgpd-document {
    max-width: 48rem;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    font-size: var(--opnv-legal-fs, 16px) !important;
    line-height: 1.65;
}

/* Keep breathing room before the next theme/builder module */
.rgpd-document > :last-child {
    margin-bottom: 0;
}

.opnv-legal-modal-body .rgpd-document,
.opnv-legal-modal-body .rgpd-document p,
.opnv-legal-modal-body .rgpd-document li,
.opnv-legal-modal-body .rgpd-document label,
.opnv-legal-modal-body .rgpd-document h1,
.opnv-legal-modal-body .rgpd-document h2,
.opnv-legal-modal-body .rgpd-document h3,
.opnv-legal-modal-body .rgpd-document h4,
.opnv-legal-modal-body .rgpd-document strong,
.opnv-legal-modal-body .rgpd-document em,
.opnv-legal-modal-body .rgpd-document td,
.opnv-legal-modal-body .rgpd-document th {
    color: var(--opnv-legal-fg, #1e293b) !important;
}

body.opnv-legal-page #main-content .rgpd-document,
body.opnv-legal-page #main-content .rgpd-document p,
body.opnv-legal-page #main-content .rgpd-document li,
body.opnv-legal-page #main-content .rgpd-document label,
body.opnv-legal-page #left-area .rgpd-document p,
body.opnv-legal-page #left-area .rgpd-document li,
.opnv-legal-modal-dialog,
.opnv-legal-modal-body .rgpd-document,
.opnv-legal-modal-body .rgpd-document p,
.opnv-legal-modal-body .rgpd-document li,
.opnv-legal-modal-body .rgpd-document label {
    font-size: var(--opnv-legal-fs, 16px) !important;
    line-height: 1.65;
}

.rgpd-document a,
.rgpd-document a:visited {
    text-decoration: underline;
}

.opnv-legal-modal-body .rgpd-document a,
.opnv-legal-modal-body .rgpd-document a:visited {
    color: var(--opnv-legal-link, #1d4ed8) !important;
}

.rgpd-document a:hover,
.rgpd-document a:focus {
    filter: brightness(0.85);
}

.rgpd-document h2 {
    font-size: 1.45em;
    margin: 0 0 1rem;
}

.rgpd-document h3 {
    font-size: 1.12em;
    margin: 1.5rem 0 0.6rem;
}

.rgpd-document ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

body.opnv-legal-page #sidebar,
body.opnv-legal-page #main-sidebar,
body.opnv-legal-page .et_pb_widget_area_right,
body.opnv-legal-page .et_pb_widget_area_left,
body.opnv-legal-page #main-content .et_pb_widget,
body.opnv-legal-page aside.widget-area,
body.opnv-legal-page .sidebar,
body.opnv-legal-page #secondary {
    display: none !important;
}

/* The theme's container keeps its width and margins (the page title stays aligned with the header);
   only the sidebar's share of it is given back to the content. */
body.opnv-legal-page #left-area,
body.opnv-legal-page .et-l--body,
body.opnv-legal-page .et_pb_post {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

body.opnv-legal-page #main-content .container:before {
    display: none !important;
}

html.opnv-legal-modal-open,
body.opnv-legal-modal-open {
    overflow: hidden;
}

.opnv-legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    /* Above the cookie banner / CMP wall (2147483001) and preferences modal (2147483002): opened from «Más información». */
    z-index: 2147483600;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.opnv-legal-modal.is-open,
.opnv-legal-modal:not([hidden]) {
    display: flex;
}

.opnv-legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.opnv-legal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: #fff;
    color: var(--opnv-legal-fg, #1e293b);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
    padding: 28px 28px 32px;
}

.opnv-legal-modal-title {
    margin: 0 36px 12px 0;
    font-size: 1.35em;
    color: var(--opnv-legal-fg, #1e293b);
}

.opnv-legal-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.opnv-legal-modal-close:hover {
    color: #0f172a;
}

.opnv-legal-modal-body .rgpd-document {
    max-width: none;
    margin: 0;
}

.opnv-legal-modal-body .rgpd-document h1:first-of-type,
.opnv-legal-modal-body .rgpd-document h2:first-of-type {
    display: none;
}

.opnv-prefs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.25rem;
}

.opnv-cookie-prefs .opnv-prefs-toggle,
.opnv-cookie-prefs label:has(.opnv-prefs-analytics),
.opnv-cookie-prefs label:has(.opnv-prefs-social) {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.3;
}

.opnv-cookie-prefs .opnv-prefs-toggle input[type="checkbox"],
.opnv-cookie-prefs .opnv-prefs-analytics,
.opnv-cookie-prefs .opnv-prefs-social {
    appearance: auto;
    -webkit-appearance: checkbox;
    position: static !important;
    float: none !important;
    display: inline-block !important;
    width: 1.1em !important;
    height: 1.1em !important;
    min-width: 1.1em;
    min-height: 1.1em;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    flex: 0 0 auto;
    align-self: center;
}

body.et-fb .opnv-legal-modal,
html.et-fb-preview .opnv-legal-modal,
body.elementor-editor-active .opnv-legal-modal {
    display: none !important;
    pointer-events: none !important;
}
/* opnv-language-switcher */
/* Multilingual Studio — language switcher (3 axes: placement / style / open) */

.opnv-lang-bar {
  width: 100%;
  background: var(--opnv-lang-btn-bg, #fff);
  color: var(--opnv-lang-menu-text, #0f172a);
  z-index: 100050;
  font-size: var(--opnv-lang-font, 1.15rem);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
.opnv-lang-bar--blend {
  /* Sits visually with the site header/menu instead of a foreign dark strip */
  background: var(--opnv-lang-btn-bg, transparent);
}
.opnv-lang-bar--top { position: relative; }
.opnv-lang-bar--sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.opnv-lang-bar--bottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}
.opnv-lang-bar .opnv-lang-switcher {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  font-size: var(--opnv-lang-font, 1.15rem);
}
.opnv-lang-bar .opnv-lang-list {
  justify-content: flex-end;
  min-height: calc(2.75rem * var(--opnv-lang-scale, 1.2));
  gap: 0.4rem;
  padding: 0 1rem;
}
.opnv-lang-bar .opnv-lang-item {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.opnv-lang-bar .opnv-lang-item a {
  color: var(--opnv-lang-menu-text, #0f172a);
  border-radius: 0;
  height: 100%;
  min-height: calc(2.75rem * var(--opnv-lang-scale, 1.2));
  padding: var(--opnv-lang-pad, 0.65rem 1rem);
  box-sizing: border-box;
}
.opnv-lang-bar .opnv-lang-item.is-current a {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 -3px 0 #3b82f6;
}
.opnv-lang-bar .opnv-lang-switcher--tabs .opnv-lang-list {
  border-bottom: 0;
}
.opnv-lang-bar .opnv-lang-mega-toggle {
  background: var(--opnv-lang-btn-bg, #fff);
  color: var(--opnv-lang-btn-text, #0f172a);
  border-color: rgba(15, 23, 42, 0.15);
}

.opnv-lang-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100080;
}

.opnv-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.opnv-lang-item a,
.opnv-lang-mega-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  padding: var(--opnv-lang-pad, 0.65rem 1rem);
  font-size: var(--opnv-lang-font, 1.15rem);
  line-height: 1.25;
  border-radius: 8px;
  box-sizing: border-box;
  white-space: nowrap;
}
.opnv-lang-item a:hover,
.opnv-lang-mega-item a:hover {
  background: rgba(15, 23, 42, 0.06);
}
.opnv-lang-flag {
  font-size: var(--opnv-lang-flag, 1.5em);
  line-height: 1;
}
.opnv-lang-code {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85em;
}
.opnv-lang-native {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.opnv-lang-mega-toggle {
  max-width: 100%;
  min-width: 0;
}
.opnv-lang-mega-toggle .opnv-lang-native {
  display: inline-block;
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Language items as sibling top-level menu links — one row with the rest of the nav */
.opnv-lang-menu-li {
  display: inline-block !important;
  float: left;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}
.opnv-lang-menu-li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35em !important;
  white-space: nowrap !important;
  font-size: var(--opnv-lang-font, 1.15rem) !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}
.opnv-lang-menu-li .opnv-lang-flag {
  font-size: var(--opnv-lang-flag, 1.5em);
  line-height: 1;
}
.opnv-lang-menu-li.is-current > a,
.opnv-lang-menu-li.current-menu-item > a {
  font-weight: 700;
}
.opnv-lang-menu-li--tabs.is-current > a,
.opnv-lang-menu-li--tabs.current-menu-item > a {
  box-shadow: inset 0 -3px 0 currentColor;
}

/* Force the parent nav to stay on a single line when langs are injected */
#top-menu:has(> .opnv-lang-menu-li),
.et-menu:has(> .opnv-lang-menu-li),
.nav:has(> .opnv-lang-menu-li),
ul.menu:has(> .opnv-lang-menu-li) {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}
#top-menu:has(> .opnv-lang-menu-li) > li,
.et-menu:has(> .opnv-lang-menu-li) > li,
.nav:has(> .opnv-lang-menu-li) > li,
ul.menu:has(> .opnv-lang-menu-li) > li {
  white-space: nowrap;
  float: left;
}

/* Legacy nested inline wrapper (if any cached HTML) */
.opnv-lang-menu-item--inline {
  display: inline-flex !important;
  align-items: center !important;
  float: left !important;
  margin: 0 !important;
  height: auto !important;
  white-space: nowrap !important;
}
.opnv-lang-menu-item--inline .opnv-lang-switcher {
  display: inline-flex;
  align-items: center;
  height: auto;
}
.opnv-lang-menu-item--inline .opnv-lang-list {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  height: auto;
  white-space: nowrap;
}
.opnv-lang-menu-item--inline .opnv-lang-item {
  list-style: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  float: none !important;
}
.opnv-lang-menu-item--inline .opnv-lang-item a {
  font-size: var(--opnv-lang-font, 1.15rem) !important;
  padding: var(--opnv-lang-pad, 0.65rem 1rem) !important;
  color: var(--opnv-lang-menu-text, inherit) !important;
  line-height: 1.2 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
}
.opnv-lang-menu-item--inline .opnv-lang-flag {
  font-size: var(--opnv-lang-flag, 1.5em);
}
.opnv-lang-menu-item--inline .opnv-lang-item.is-current a,
.opnv-lang-menu-item--inline .opnv-lang-item a:hover {
  background: rgba(15, 23, 42, 0.05) !important;
  box-shadow: inset 0 -3px 0 currentColor;
  font-weight: 700;
}

#top-menu .opnv-lang-menu-li > a,
.et-menu .opnv-lang-menu-li > a,
#et-top-navigation .opnv-lang-menu-li > a,
.nav .opnv-lang-menu-li > a {
  font-size: var(--opnv-lang-font, 1.15rem) !important;
}
.opnv-lang-menu-item--inline .opnv-lang-switcher--tabs .opnv-lang-list,
.opnv-lang-bar--blend .opnv-lang-switcher--tabs .opnv-lang-list {
  border-bottom: 0;
}

/* —— Styles: inline —— */
.opnv-lang-switcher--flags_grid .opnv-lang-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 0.65rem;
  justify-items: center;
}
.opnv-lang-switcher--flags .opnv-lang-native,
.opnv-lang-switcher--flags_grid .opnv-lang-native { display: none; }
/* Three columns of cards: the switcher's box fits its content, so «auto-fill» ended in one long column. */
.opnv-lang-switcher--cards .opnv-lang-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(6.5rem, 1fr));
  gap: 8px;
}
@media (max-width: 480px) {
  .opnv-lang-switcher--cards .opnv-lang-list { grid-template-columns: repeat(2, minmax(6.5rem, 1fr)); }
}
.opnv-lang-switcher--cards .opnv-lang-item { min-width: 0; }
.opnv-lang-switcher--cards .opnv-lang-item a {
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.opnv-lang-switcher--cards .opnv-lang-native {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.opnv-lang-switcher--native .opnv-lang-item a {
  align-items: flex-start;
}
.opnv-lang-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.opnv-lang-localized {
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.72;
  overflow-wrap: anywhere;
}
.opnv-lang-explorer {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 28rem;
  position: relative;
  overflow: visible;
}
.opnv-lang-explorer__keys {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.opnv-lang-explorer__keys span {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff;
  font-size: 0.75rem;
}
.opnv-lang-explorer__svg { position: relative; z-index: 1; }
.opnv-preview-site:has(.opnv-lang-explorer),
.opnv-lang-preview-wrap:has(.opnv-lang-explorer) {
  overflow: visible;
}
@media (max-width: 640px) {
  .opnv-lang-explorer { max-width: 100%; }
}
.opnv-lang-explorer__search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
/* The world (WorldMap): land in grey, the countries of the offered languages in the accent colour. */
.opnv-lang-explorer__svg { display: block; width: 100%; height: auto; margin: 8px 0; }
.opnv-lang-explorer__svg--map { max-height: 24em; }
.opnv-lang-explorer__svg--globe { max-width: 22em; margin-inline: auto; touch-action: none; cursor: grab; }
.opnv-lang-explorer__svg--globe:active { cursor: grabbing; }
.opnv-lang-explorer__ocean { fill: #e0f2fe; stroke: #93c5fd; stroke-width: 1; }
/* Countries where no language of the site is spoken: amber, still there. */
.opnv-land { fill: #f6d28b; stroke: #fff; stroke-width: 0.4; stroke-linejoin: round; }
.opnv-region { fill: color-mix(in srgb, var(--opnv-lang-accent, #3b82f6) 60%, #fff); stroke: #fff; stroke-width: 0.5; stroke-linejoin: round; cursor: pointer; transition: fill 0.15s, opacity 0.15s; }
.opnv-region.is-match,
.opnv-region.is-lit-home,
.opnv-region:hover,
.opnv-region:focus-visible { fill: #10b981; outline: none; }
/* The other countries of the language, each with its own variant: blue (its own country is green). */
.opnv-region.is-lit { fill: #2563eb; }
.opnv-lang-explorer.is-filtering .opnv-region:not(.is-match),
.opnv-lang-explorer.is-lighting .opnv-region:not(.is-lit):not(.is-lit-home) { opacity: 0.35; }
.opnv-lang-explorer__item.is-lit a { background: rgba(16, 185, 129, 0.12); }
/* The list, grouped by continent. */
.opnv-lang-explorer__groups { display: grid; gap: 12px; }
.opnv-lang-explorer__groups[hidden] { display: none; }
.opnv-lang-explorer__group[hidden] { display: none; }
.opnv-explorer-group-title { margin: 0 0 4px; font-size: 0.78em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.opnv-explorer-variants { margin-top: 2px; font-size: 0.72em; opacity: 0.7; line-height: 1.3; }
/* Globe / map switch above the world. */
.opnv-explorer-views { display: inline-flex; align-self: center; border: 1px solid #cbd5e1; border-radius: 999px; padding: 2px; background: #fff; gap: 2px; }
.opnv-explorer-views[hidden] { display: none; }
/* Zoom: buttons over the world (top right); outlines keep their width at any zoom. */
.opnv-lang-explorer__stage { position: relative; }
.opnv-explorer-zoom { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.opnv-explorer-zoom[hidden] { display: none; }
.opnv-explorer-zoom button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 8px; background: rgba(255, 255, 255, 0.95); color: #0f172a; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.opnv-explorer-zoom button:hover:not(:disabled) { border-color: #1d4ed8; color: #1d4ed8; }
.opnv-explorer-zoom button:focus-visible { outline: 2px solid #111827; outline-offset: 1px; }
.opnv-explorer-zoom button:disabled { opacity: 0.45; cursor: default; }
.opnv-lang-explorer__svg { touch-action: none; }
.opnv-lang-explorer__svg path { vector-effect: non-scaling-stroke; }
.opnv-lang-explorer.is-zoomed .opnv-lang-explorer__svg--map { cursor: grab; }
.opnv-pin { fill: none; stroke: #10b981; stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; animation: opnv-pin-pulse 1.6s ease-in-out infinite; }
@keyframes opnv-pin-pulse { 50% { stroke-opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .opnv-pin { animation: none; } }
.opnv-lang-explorer__item .opnv-lang-code { margin-inline-start: 6px; font-size: 0.72em; font-weight: 700; letter-spacing: 0.02em; padding: 1px 5px; border-radius: 4px; background: #e2e8f0; color: #334155; }
.opnv-explorer-views button { border: 0; background: transparent; padding: 4px 14px; border-radius: 999px; font: inherit; font-size: 0.85em; cursor: pointer; color: inherit; }
.opnv-explorer-views button[aria-pressed="true"] { background: #1d4ed8; color: #fff; }
.opnv-explorer-views button:focus-visible { outline: 2px solid #111827; outline-offset: 1px; }
/* Phones only (see the block «Phones» below): the button that unfolds the world, «ⓘ», the card's close. */
.opnv-explorer-world-toggle,
.opnv-explorer-info,
.opnv-explorer-card-close { display: none; }
/* «Por idioma / Por país», and the country path (continent → country → card). */
.opnv-explorer-modes { display: inline-flex; justify-self: start; align-self: flex-start; border: 1px solid #cbd5e1; border-radius: 999px; padding: 2px; gap: 2px; background: #fff; }
.opnv-explorer-modes button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; font: inherit; font-size: 0.88em; color: inherit; cursor: pointer; }
.opnv-explorer-modes button[aria-pressed="true"] { background: #1d4ed8; color: #fff; } /* 4.5:1 with white text (the default accent gave 3.7:1) */
.opnv-explorer-bycountry[hidden], .opnv-explorer-countries[hidden], .opnv-explorer-continents[hidden] { display: none !important; }
.opnv-explorer-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.85em; margin: 2px 0 8px; }
.opnv-explorer-crumbs button { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--opnv-lang-accent, #2563eb); text-decoration: underline; cursor: pointer; }
.opnv-explorer-crumbs > :not([hidden]) + :not([hidden])::before { content: "›"; margin-right: 6px; color: #94a3b8; text-decoration: none; display: inline-block; }
.opnv-explorer-crumb-country { font-weight: 700; }
.opnv-explorer-continents { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 8px; }
.opnv-explorer-continents button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.opnv-explorer-continents button:hover, .opnv-explorer-continents button:focus-visible { border-color: var(--opnv-lang-accent, #3b82f6); background: #fff; }
.opnv-explorer-continents span { font-size: 0.78em; opacity: 0.7; }
.opnv-explorer-countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 2px 10px; }
.opnv-explorer-countries li[hidden] { display: none; }
.opnv-explorer-countries button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; min-height: 40px; }
.opnv-explorer-countries button:hover, .opnv-explorer-countries button:focus-visible { background: rgba(59, 130, 246, 0.08); }
.opnv-explorer-countries button.is-chosen { background: rgba(16, 185, 129, 0.14); font-weight: 700; }
.opnv-explorer-country-count { min-width: 1.6em; text-align: center; font-size: 0.75em; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #1d4ed8; color: #fff; }
.opnv-explorer-countries button.is-none .opnv-explorer-country-count { background: #f6d28b; color: transparent; width: 10px; min-width: 10px; height: 10px; padding: 0; }
.opnv-explorer-countries button.is-none .opnv-explorer-country-name { opacity: 0.7; }
@media (max-width: 640px) {
  .opnv-explorer-continents, .opnv-explorer-countries { grid-template-columns: 1fr; }
}
/* The country card. */
.opnv-lang-explorer__country { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.opnv-lang-explorer__country[hidden] { display: none; }
.opnv-lang-explorer__country-name { margin: 0 0 6px; font-size: 1em; }
.opnv-lang-explorer__country-label { margin: 6px 0 2px; font-size: 0.78em; opacity: 0.7; }
.opnv-lang-explorer__country-langs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.opnv-lang-explorer__country-langs a { font-weight: 600; }
.opnv-lang-explorer__country-note { font-size: 0.78em; opacity: 0.75; }
.opnv-lang-explorer__country-also { margin: 0; }
/* A grid that fits the width: 46 languages are rows of names, not one long column. */
.opnv-lang-explorer__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 4px 12px; max-height: 22em; overflow-y: auto; overscroll-behavior: contain; }
.opnv-lang-explorer__item a { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
/* Flag of the country or region, then the names: variants of one language are told apart before choosing. */
.opnv-lang-explorer__flag { flex: 0 0 24px; width: 24px; height: 18px; margin-top: 2px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14); }
.opnv-lang-explorer__flag--emoji { box-shadow: none; font-size: 18px; line-height: 18px; text-align: center; }
.opnv-lang-explorer__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.opnv-lang-explorer__item a:hover, .opnv-lang-explorer__item a:focus-visible { background: rgba(59, 130, 246, 0.08); }
.opnv-lang-explorer__item.is-current a { box-shadow: inset 3px 0 0 var(--opnv-lang-accent, #3b82f6); }
.opnv-lang-explorer__item .opnv-lang-native { font-weight: 600; }
.opnv-lang-explorer__item .opnv-lang-localized { margin: 0; font-size: 0.8em; opacity: 0.75; text-align: start; }
.opnv-lang-explorer__item.is-hidden { display: none; }
.opnv-lang-explorer__item a.is-pick { outline: 2px solid #facc15; outline-offset: 2px; }
.opnv-lang-explorer__source { margin: 0 0 6px; font-size: 0.8rem; }

.opnv-lang-switcher--circles .opnv-lang-item a {
  width: calc(2.4rem * var(--opnv-lang-scale, 1));
  height: calc(2.4rem * var(--opnv-lang-scale, 1));
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0;
  background: var(--opnv-lang-btn-bg, #fff);
  overflow: hidden;
}
.opnv-lang-switcher--circles .opnv-lang-native { display: none; }

.opnv-lang-switcher--chips .opnv-lang-item a {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: var(--opnv-lang-pad, 0.65rem 1rem);
  background: var(--opnv-lang-btn-bg, #fff);
  color: var(--opnv-lang-btn-text, #0f172a);
  font-size: var(--opnv-lang-font, 1.15rem);
}
.opnv-lang-switcher--chips .opnv-lang-item.is-current a {
  border-color: #3b82f6;
  background: #eff6ff;
}

.opnv-lang-switcher--tabs .opnv-lang-list { gap: 0; border-bottom: 1px solid #e2e8f0; }
.opnv-lang-switcher--tabs .opnv-lang-item a {
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: var(--opnv-lang-pad, 0.65rem 1rem);
  font-size: var(--opnv-lang-font, 1.15rem);
}
.opnv-lang-switcher--tabs .opnv-lang-item.is-current a {
  border-bottom-color: #3b82f6;
  background: transparent;
  font-weight: 700;
}
/* Tabs in menu / blended bar: no underline strip under the whole row */
.opnv-lang-menu-item--inline .opnv-lang-switcher--tabs .opnv-lang-list,
.opnv-lang-bar--blend .opnv-lang-switcher--tabs .opnv-lang-list {
  border-bottom: 0;
}

.opnv-lang-switcher--code .opnv-lang-item a {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* —— Real 2-language switch (track + knob) — matches the admin preview —— */
.opnv-lang-switcher--toggle .opnv-lang-toggle-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.opnv-lang-switcher--toggle .opnv-lang-toggle-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
  font-size: var(--opnv-lang-font, inherit);
  font-weight: 600;
  line-height: 1.1;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.opnv-lang-switcher--toggle .opnv-lang-toggle-endpoint .opnv-lang-flag { font-size: var(--opnv-lang-flag, 1.2em); }
.opnv-lang-switcher--toggle .opnv-lang-toggle-label { white-space: nowrap; }
.opnv-lang-switcher--toggle .opnv-lang-toggle-endpoint:not(.is-active):hover { color: #0f172a; }
.opnv-lang-switcher--toggle .opnv-lang-toggle-endpoint.is-active {
  background: var(--opnv-lang-btn-bg, #0f172a);
  color: var(--opnv-lang-btn-text, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
}
/* Keep the knob legible on dark brand colours. */
.opnv-lang-switcher--toggle .opnv-lang-toggle-endpoint.is-active .opnv-lang-flag { filter: drop-shadow(0 0 1px rgba(0,0,0,.30)); }
/* Custom flag images: 3:2 box + object-fit:fill so ALL horizontal stripes show
   (cover + square thumbs cropped Spain to the yellow band only). */
.opnv-lang-flag--img {
  display: inline-block;
  width: 1.65em;
  height: 1.1em; /* ~3:2 */
  overflow: hidden;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;
  box-sizing: border-box;
  background: rgba(148, 163, 184, 0.25);
}
.opnv-lang-flag--img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.opnv-lang-switcher--circles .opnv-lang-flag--img {
  width: 78%;
  height: 78%;
  border-radius: 50%;
}
.opnv-lang-switcher--circles .opnv-lang-flag--img img {
  /* Circles still need cover; prefer full-aspect source URLs (not 150×150 thumbs). */
  object-fit: cover;
}
.opnv-lang-switcher--circles .opnv-lang-flag:not(.opnv-lang-flag--img) {
  font-size: 1.15em;
}
/* Menu embed: keep the flag inside the nav item box (no overflow / clipped stripes). */
.opnv-lang-menu-item--embed .opnv-lang-flag--img,
.opnv-lang-menu-item--panel .opnv-lang-flag--img,
.opnv-lang-menu-li .opnv-lang-flag--img {
  width: calc(var(--opnv-lang-px, 40) * 1px * 0.72);
  height: calc(var(--opnv-lang-px, 40) * 1px * 0.48);
  max-width: 2.2em;
  max-height: 1.45em;
  overflow: hidden;
  vertical-align: middle;
}
.opnv-lang-menu-item--embed > a.opnv-lang-menu-trigger,
.opnv-lang-menu-li > a {
  overflow: visible;
}

/* —— Panel trigger —— */
.opnv-lang-switcher--panel { position: relative; display: inline-block; }

.opnv-lang-mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--opnv-lang-btn-bg, #fff);
  color: var(--opnv-lang-btn-text, #0f172a);
  border-radius: 999px;
  padding: var(--opnv-lang-pad, 0.4rem 0.85rem);
  cursor: pointer;
  font: inherit;
  font-size: var(--opnv-lang-font, 0.95rem);
}
.opnv-lang-switcher--globe .opnv-lang-mega-toggle {
  width: calc(2.75rem * var(--opnv-lang-scale, 1));
  height: calc(2.75rem * var(--opnv-lang-scale, 1));
  justify-content: center;
  padding: 0;
  font-size: calc(1.35rem * var(--opnv-lang-scale, 1));
}
.opnv-lang-float .opnv-lang-mega-toggle,
.opnv-lang-float .opnv-lang-switcher--globe .opnv-lang-mega-toggle {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}
.opnv-lang-select {
  font: inherit;
  font-size: var(--opnv-lang-font, 1.15rem);
  padding: var(--opnv-lang-pad, 0.65rem 1rem);
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--opnv-lang-btn-bg, #fff);
  color: var(--opnv-lang-btn-text, #0f172a);
  min-width: 10rem;
}

/* —— Panels —— */
.opnv-lang-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: min(420px, 92vw);
  max-width: 560px;
  background: #fff;
  color: var(--opnv-lang-menu-text, #0f172a);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  padding: 0.9rem;
  z-index: 100060;
}
.opnv-lang-mega-panel--dropdown {
  min-width: 220px;
  max-width: 280px;
  width: 220px;
}
.opnv-lang-mega-panel--dropdown .opnv-lang-mega-list {
  display: flex;
  flex-direction: column;
}
.opnv-open-left .opnv-lang-mega-panel { right: auto; left: 0; }
.opnv-open-right .opnv-lang-mega-panel { left: auto; right: 0; }
/* «Automático»: the script picks the side with room. */
.opnv-lang-switcher.is-open-left .opnv-lang-mega-panel { right: auto; left: 0; }
.opnv-lang-switcher.is-open-right .opnv-lang-mega-panel { left: auto; right: 0; }
.opnv-lang-switcher.is-flip-up .opnv-lang-mega-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

.opnv-lang-mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--opnv-lang-cols, 3), minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.opnv-lang-mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.opnv-lang-mega-item { min-width: 0; }
.opnv-lang-mega-item a {
  width: 100%;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  box-sizing: border-box;
}
.opnv-lang-mega-item .opnv-lang-native {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.opnv-lang-mega-item a:hover,
.opnv-lang-mega-item.is-current a {
  border-color: #3b82f6;
  background: #eff6ff;
}
.opnv-lang-mega-item .opnv-lang-native { flex: 1; }
/* Un nombre largo («Deutsch (Österreich)») no debe salirse de la casilla:
   se parte en dos líneas y el código del idioma queda siempre a la derecha. */
.opnv-lang-mega-item a { min-width: 0; }
.opnv-lang-mega-item .opnv-lang-native { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.opnv-lang-mega-item .opnv-lang-code { flex-shrink: 0; }

/* Modal / center overlay */
.opnv-lang-mega-panel--modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100vw;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(var(--opnv-lang-blur, 16px));
  -webkit-backdrop-filter: blur(var(--opnv-lang-blur, 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  z-index: 100090;
  box-shadow: none;
}
.opnv-lang-mega-panel--modal[hidden] { display: none !important; }
.opnv-lang-mega-panel--center {
  background: rgba(248, 250, 252, 0.72);
}
.opnv-lang-mega-panel--modal .opnv-lang-mega-grid,
.opnv-lang-mega-panel--modal .opnv-lang-mega-list {
  width: min(720px, 94vw);
  max-height: min(70vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.opnv-lang-mega-panel--modal .opnv-lang-mega-grid {
  grid-template-columns: repeat(var(--opnv-lang-cols, 3), minmax(0, 1fr));
  gap: 0.75rem;
}
/* Side (search, list) and stage (world, country card). Outside the full-screen panel they melt into the
   explorer's own column, in the old order: search, world, list. */
.opnv-lang-explorer__side,
.opnv-lang-explorer__stage { display: contents; }
.opnv-lang-explorer__stage > * { order: 4; }
.opnv-lang-explorer__groups { order: 5; }

/* Map and sphere, opened full screen from the globe button: a large card, the list on the left and the
   world always in sight on the right, so a language lighting its countries can be seen. */
.opnv-lang-mega-panel--explorer .opnv-lang-explorer {
  width: min(1500px, 96vw);
  height: calc(100vh - 5.5rem);
  max-width: none;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  box-sizing: border-box;
}
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__stage > * { order: 0; }
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg { flex: 0 0 auto; margin: 0; }
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--map { width: 100%; height: auto; max-height: calc(100vh - 16rem); }
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--globe { width: auto; height: min(calc(100vh - 16rem), 760px); max-width: 100%; }
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__country { align-self: stretch; }
.opnv-lang-mega-panel--explorer .opnv-lang-explorer__list {
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  max-height: none;
  overflow: visible;
}
/* Narrow screens: one column again, the world above the list, the whole card scrolls. */
@media (max-width: 900px) {
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 5.5rem); overflow-y: auto; }
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__side,
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__stage { display: contents; }
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__stage > * { order: 4; }
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--map { height: min(42vh, 380px); }
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--globe { height: min(42vh, 380px); width: 100%; }
}
.opnv-lang-mega-panel--explorer .opnv-lang-modal-title { color: #fff; }
.opnv-lang-modal-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.opnv-lang-mega-panel--center .opnv-lang-modal-title { color: #0f172a; }
.opnv-lang-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.opnv-lang-mega-panel--center .opnv-lang-modal-close {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
body.opnv-lang-modal-open { overflow: hidden; }

/* Nav submenu (mega/dropdown in menu — hover submenu) */
/* SR-only: themes like Divi often omit WP core .screen-reader-text rules */
.opnv-lang-switcher .screen-reader-text,
.opnv-lang-menu-item--embed .screen-reader-text,
.opnv-lang-menu-aside .screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.opnv-lang-menu-item--embed {
  position: relative;
  list-style: none;
}
.opnv-lang-menu-item--embed > a.opnv-lang-menu-trigger.opnv-lang-mega-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 0;
  padding: 0 0 0 0.25rem;
  margin: 0;
  border-radius: 0 !important;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
  gap: 0;
}
.opnv-lang-menu-item--embed .opnv-lang-globe {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-size: calc(var(--opnv-lang-px, 40) * 1px * 0.55);
}
/* Let the «Tamaño» control drive the menu glyph/flag (was em*scale, insensitive to the box). */
.opnv-lang-menu-item--embed .opnv-lang-flag,
.opnv-lang-menu-item--panel .opnv-lang-flag {
  font-size: calc(var(--opnv-lang-px, 40) * 1px * 0.6);
  line-height: 1;
  vertical-align: middle;
}

#mainmenu > li.opnv-lang-menu-item--embed,
#top-menu > li.opnv-lang-menu-item--embed,
.et-menu > li.opnv-lang-menu-item--embed,
#mainmenu > li.opnv-lang-menu-item--panel.opnv-lang-menu-item,
#top-menu > li.opnv-lang-menu-item--panel.opnv-lang-menu-item,
.et-menu > li.opnv-lang-menu-item--panel.opnv-lang-menu-item {
  float: left !important;
  display: inline !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
/* Blessing / float-nav themes: match sibling link box (padding drives vertical align) */
#mainmenu > li.opnv-lang-menu-item--embed > a.opnv-lang-menu-trigger,
#top-menu > li.opnv-lang-menu-item--embed > a.opnv-lang-menu-trigger,
.et-menu > li.opnv-lang-menu-item--embed > a.opnv-lang-menu-trigger,
#mainmenu > li.opnv-lang-menu-item--panel > a.opnv-lang-menu-trigger,
#top-menu > li.opnv-lang-menu-item--panel > a.opnv-lang-menu-trigger,
.et-menu > li.opnv-lang-menu-item--panel > a.opnv-lang-menu-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  padding: 20px 0 17px 14px !important;
  line-height: normal !important;
  min-height: 0;
  height: auto !important;
}
#mainmenu > li.opnv-lang-menu-item--embed .opnv-lang-globe,
#top-menu > li.opnv-lang-menu-item--embed .opnv-lang-globe,
.et-menu > li.opnv-lang-menu-item--embed .opnv-lang-globe,
#mainmenu > li.opnv-lang-menu-item--panel .opnv-lang-globe,
#top-menu > li.opnv-lang-menu-item--panel .opnv-lang-globe,
.et-menu > li.opnv-lang-menu-item--panel .opnv-lang-globe {
  line-height: 1;
  vertical-align: middle;
}

.opnv-lang-menu-item--panel > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--panel > .opnv-lang-submenu--dropdown,
.menu-item.opnv-lang-menu-item--panel > .sub-menu.opnv-lang-submenu--mega,
.menu-item.opnv-lang-menu-item--panel > .sub-menu.opnv-lang-submenu--dropdown {
  display: none;
  position: absolute;
  left: auto;
  right: 0;
  min-width: min(480px, 92vw);
  padding: 0.9rem !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  border-radius: 12px;
  z-index: 100060;
  gap: 0.55rem;
}
.opnv-lang-menu-item--mega > .opnv-lang-submenu--mega,
.menu-item.opnv-lang-menu-item--mega > .sub-menu.opnv-lang-submenu--mega {
  grid-template-columns: repeat(var(--opnv-lang-cols, 3), minmax(0, 1fr));
}
.opnv-lang-menu-item--dropdown > .opnv-lang-submenu--dropdown {
  min-width: 220px;
  display: none;
  flex-direction: column;
}
.opnv-open-left.opnv-lang-menu-item--panel > .sub-menu { right: auto; left: 0; }
.opnv-open-right.opnv-lang-menu-item--panel > .sub-menu { left: auto; right: 0; }

.opnv-lang-menu-item--panel:hover > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--panel:focus-within > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--panel.is-open > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--mega:hover > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--mega:focus-within > .opnv-lang-submenu--mega,
.opnv-lang-menu-item--mega.is-open > .opnv-lang-submenu--mega {
  display: grid !important;
}
.opnv-lang-menu-item--dropdown:hover > .opnv-lang-submenu--dropdown,
.opnv-lang-menu-item--dropdown:focus-within > .opnv-lang-submenu--dropdown,
.opnv-lang-menu-item--dropdown.is-open > .opnv-lang-submenu--dropdown {
  display: flex !important;
}

.opnv-lang-menu-item--panel > .sub-menu > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
.opnv-lang-menu-item--panel > .sub-menu > li > a {
  white-space: normal;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.7rem !important;
  color: #0f172a !important;
}

.opnv-lang-caret { font-size: 0.75em; opacity: 0.7; }
.opnv-lang-menu-trigger { color: var(--opnv-lang-btn-text, inherit); }
.opnv-lang-menu-item--panel > a.opnv-lang-menu-trigger {
  background: var(--opnv-lang-btn-bg, transparent);
}
.opnv-lang-submenu--mega,
.opnv-lang-mega-panel .opnv-lang-native,
.opnv-lang-mega-panel .opnv-lang-code {
  color: var(--opnv-lang-menu-text, inherit);
}

/* Beside-menu: sibling of #mainmenu, never inside <ul.menu> */
#opnv-lang-menu-aside:not([data-opnv-mounted="1"]) {
  /* Keep in DOM for mount; do not push off-screen (icon vanished if JS late/fails). */
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
#opnv-lang-menu-aside[data-opnv-mounted="1"] {
  visibility: visible;
  pointer-events: auto;
  height: auto;
  overflow: visible;
}
.opnv-lang-menu-aside-host {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}
.opnv-lang-menu-aside {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.opnv-lang-aside-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--opnv-lang-menu-text, inherit);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font: inherit;
  line-height: 1;
}
.opnv-lang-aside-trigger .opnv-lang-globe {
  font-size: calc(var(--opnv-lang-px, 40) * 1px * 0.6);
  line-height: 1;
}

/* Desktop: absolute after menu row — does not shrink theme floats */
/* The menu's container (whatever the theme) anchors the floating switcher. */
.opnv-has-lang-aside {
  position: relative;
}

/* Ajuste fino del panel (Mover ← → / ↑ ↓). «translate» se suma a los transform que ya
   haya (centrado, despliegue) sin pisarlos; los paneles modales van en <body> y no se mueven. */
.opnv-lang-switcher,
.opnv-lang-tab {
  translate: var(--opnv-lang-dx, 0px) var(--opnv-lang-dy, 0px);
}
.opnv-lang-switcher .opnv-lang-switcher {
  translate: none;
}
#mainmenu-container.opnv-has-lang-aside #mainmenu {
  /* keep theme float layout intact */
}
.opnv-lang-menu-aside-host--desktop {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 20;
  height: auto;
  margin: 0;
  max-width: calc(100% - 8px);
}

/* Beside the menu the trigger is a menu control, not a floating bubble. */
.opnv-lang-menu-aside-host .opnv-lang-mega-toggle,
.opnv-lang-menu-aside-host .opnv-lang-aside-trigger {
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--opnv-aside-color, var(--opnv-lang-menu-text, inherit));
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.opnv-lang-menu-aside-host--desktop .opnv-lang-mega-toggle,
.opnv-lang-menu-aside-host--desktop .opnv-lang-aside-trigger {
  height: 36px;
  min-width: 36px;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-size: var(--opnv-aside-font, 15px);
}
.opnv-lang-menu-aside-host--desktop .opnv-lang-switcher--globe .opnv-lang-mega-toggle {
  width: 36px;
  padding: 0;
}
/* px, not rem: some themes set a tiny root font-size; WP emoji CSS forces img.emoji to 1em. */
.opnv-lang-menu-aside-host .opnv-lang-globe,
.opnv-lang-menu-aside-host .opnv-lang-globe img.emoji {
    width: 1em !important;
  height: 1em !important;
  font-size: calc(var(--opnv-lang-px, 34) * 1px * 0.6);
  line-height: 1;
  margin: 0 !important;
}
.opnv-lang-menu-aside-host--desktop .opnv-lang-mega-toggle:hover,
.opnv-lang-menu-aside-host--desktop .opnv-lang-mega-toggle[aria-expanded="true"],
.opnv-lang-menu-aside-host--desktop .opnv-lang-aside-trigger:hover {
  background: rgba(127, 127, 127, 0.14);
}
.opnv-lang-menu-aside-host .opnv-lang-mega-toggle:focus-visible,
.opnv-lang-menu-aside-host .opnv-lang-aside-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Menu item «#opnv_language_switcher»: the theme's <li> wraps it, so inherit the link look. */
.opnv-lang-menu-item--placeholder {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
}
.opnv-lang-menu-item--placeholder .opnv-lang-mega-toggle {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.35rem 0.5rem;
  width: auto;
  height: auto;
  border-radius: 6px;
}
.opnv-lang-menu-item--placeholder .opnv-lang-mega-toggle:hover {
  background: rgba(127, 127, 127, 0.14);
}
.opnv-lang-menu-item--placeholder .opnv-lang-switcher--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Mobile: left of #menu-btn, same size/offset/colours as the hamburger (set by JS). */
.opnv-lang-menu-aside-host--mobile {
  float: right;
  margin-right: 8px;
  height: var(--opnv-aside-size, 36px);
  position: relative;
  z-index: 1001;
}
/* «Botón del menú» with a flag or a name: the button grows to fit it (the globe alone is a 36 px square). */
.opnv-lang-mega-toggle:has(.opnv-lang-current-flag, .opnv-lang-current-name),
.opnv-lang-aside-trigger:has(.opnv-lang-current-flag, .opnv-lang-current-name) {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.opnv-lang-current-flag { display: inline-flex; align-items: center; line-height: 1; }
/* The flag of the menu button has its own size: in the switcher beside the menu the button's text is large
   (it is sized for the globe icon) and a flag measured in «em» came out 50 px wide over the logo. */
.opnv-lang-current-flag .opnv-lang-flag--img { width: 24px; height: 16px; max-width: none; max-height: none; }
.opnv-lang-current-flag img { width: 100%; height: 100%; border-radius: 2px; }
.opnv-lang-current-flag .opnv-lang-flag:not(.opnv-lang-flag--img) { font-size: 18px; }
.opnv-lang-menu-aside-host .opnv-lang-current-code,
.opnv-lang-menu-aside-host .opnv-lang-current-name { font-size: 15px; }
.opnv-lang-current-name { font-weight: 600; }
/* On phones the flag is enough; a name alone stays (else the button would be empty). */
.opnv-lang-menu-aside-host--mobile :has(> .opnv-lang-current-flag) > .opnv-lang-current-name { display: none; }
.opnv-lang-menu-aside-host--mobile .opnv-lang-mega-toggle,
.opnv-lang-menu-aside-host--mobile .opnv-lang-aside-trigger {
  width: var(--opnv-aside-size, 36px);
  height: var(--opnv-aside-size, 36px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  justify-content: center;
  background: var(--opnv-aside-bg, transparent);
  border-radius: var(--opnv-aside-radius, 4px);
}
.opnv-lang-menu-aside-host--mobile .opnv-lang-switcher--panel:not(.opnv-lang-switcher--globe) .opnv-lang-mega-toggle {
  width: auto;
  padding: 0 0.5rem;
}
.opnv-lang-menu-aside-host--mobile .opnv-lang-mega-toggle .opnv-lang-native,
.opnv-lang-menu-aside-host--mobile .opnv-lang-mega-toggle .opnv-lang-caret,
.opnv-lang-menu-aside-host--mobile .opnv-lang-aside-trigger .opnv-lang-native {
  display: none;
}

/* Mobile with any theme: placed by JS beside the menu button (inside its positioned box). */
.opnv-lang-menu-aside-host--beside {
  position: absolute;
  float: none;
  margin: 0;
  transform: translateY(-50%);
  z-index: 100000;
}
/* No menu button found or no room beside it: small fixed button, top right. */
.opnv-lang-menu-aside-host--beside.opnv-lang-menu-aside-host--floating {
  position: fixed;
  top: 12px;
  right: 12px;
  transform: none;
  background: var(--opnv-lang-btn-bg, #fff);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1260px) {
  .opnv-lang-menu-aside-host--desktop {
    right: 0.15rem;
  }
}

@media (max-width: 640px) {
  .opnv-lang-mega-grid,
  .opnv-lang-menu-item--mega > .opnv-lang-submenu--mega {
    grid-template-columns: repeat(var(--opnv-lang-cols, 3), minmax(0, 1fr));
    min-width: min(320px, 94vw);
  }
}

/* ── 1.0.306: alineación, color del idioma actual, móvil y pestaña ─────────────────────────── */

/* Alineación de las barras (izquierda / centro / derecha). */
.opnv-lang-bar .opnv-lang-list {
  justify-content: var(--opnv-lang-justify, flex-end);
}

/* Idioma actual con el color elegido («Idioma actual»). */
.opnv-lang-bar .opnv-lang-item.is-current a {
  box-shadow: inset 0 -3px 0 var(--opnv-lang-accent, #3b82f6);
}
.opnv-lang-switcher--chips .opnv-lang-item.is-current a {
  border-color: var(--opnv-lang-accent, #3b82f6);
  background: color-mix(in srgb, var(--opnv-lang-accent, #3b82f6) 12%, #fff);
}
.opnv-lang-switcher--tabs .opnv-lang-item.is-current a {
  border-bottom-color: var(--opnv-lang-accent, #3b82f6);
}
.opnv-lang-menu-li.is-current > a,
.opnv-lang-mega-item.is-current a {
  color: var(--opnv-lang-accent, #3b82f6);
}

/* Globo con código (como Xara): «🌐 ES». */
.opnv-lang-current-code {
  margin-left: 0.3em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.opnv-lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* Pestaña fija abajo (como el selector flotante de Rank Math). */
.opnv-lang-tab {
  position: fixed;
  bottom: 0;
  z-index: 100085;
  font-size: var(--opnv-lang-font, 1rem);
}
.opnv-lang-tab--right { right: 24px; }
.opnv-lang-tab--left { left: 24px; }
.opnv-lang-tab__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-width: 180px;
  padding: 0.6em 1em;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: var(--opnv-lang-btn-bg, #1f2937);
  color: var(--opnv-lang-btn-text, #fff);
  box-shadow: 0 -2px 14px rgba(15, 23, 42, 0.18);
  font: inherit;
  cursor: pointer;
}
.opnv-lang-tab__toggle .opnv-lang-caret { margin-left: auto; transition: transform 0.2s; }
.opnv-lang-tab__list {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35em 0;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--opnv-lang-btn-bg, #1f2937);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.18);
}
.opnv-lang-tab:hover .opnv-lang-tab__list,
.opnv-lang-tab:focus-within .opnv-lang-tab__list,
.opnv-lang-tab.is-open .opnv-lang-tab__list { display: block; }
.opnv-lang-tab:hover .opnv-lang-tab__toggle,
.opnv-lang-tab.is-open .opnv-lang-tab__toggle { border-radius: 0; }
.opnv-lang-tab.is-open .opnv-lang-caret { transform: rotate(180deg); }
.opnv-lang-tab__list a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1em;
  color: var(--opnv-lang-menu-text, #fff);
  text-decoration: none;
}
.opnv-lang-tab__list a:hover,
.opnv-lang-tab__list a:focus { background: rgba(127, 127, 127, 0.15); }
.opnv-lang-tab__list .is-current a { font-weight: 700; box-shadow: inset 3px 0 0 var(--opnv-lang-accent, #3b82f6); }
.opnv-lang-tab--mobile-only { display: none; }

/* Móvil */
@media (max-width: 640px) {
  /* Una sola fila que se desliza con el dedo, en vez de varias filas de botones. */
  .opnv-lang-bar--mobile-scroll .opnv-lang-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem 0.75rem;
    min-height: 0;
  }
  .opnv-lang-bar--mobile-scroll .opnv-lang-list::-webkit-scrollbar { display: none; }
  .opnv-lang-bar--mobile-scroll .opnv-lang-item { flex: 0 0 auto; }
  /* La barra se cambia por la pestaña de abajo. */
  .opnv-lang-bar--mobile-tab { display: none !important; }
  .opnv-lang-tab--mobile-only { display: block; }
  .opnv-lang-tab--right { right: 12px; }
  .opnv-lang-tab--left { left: 12px; }
  .opnv-lang-tab__toggle { min-width: 150px; }
}

.opnv-lang-switcher--card-small .opnv-lang-item a { font-size: 0.85em; }
.opnv-lang-switcher--card-large .opnv-lang-item a { font-size: 1.15em; padding: 0.8rem; }

.opnv-focus-ring{fill:none;stroke:#111827;stroke-width:2;stroke-dasharray:4 3;display:none;pointer-events:none;}
.opnv-lang-explorer__tooltip{position:fixed;background:#111827;color:#fff;padding:6px 10px;border-radius:8px;z-index:20;}
@media (prefers-reduced-motion: reduce){.opnv-region{animation:none !important;transition:none !important;}}

.opnv-lang-explorer__culture{display:none}
.opnv-lang-explorer.is-culture .opnv-lang-explorer__culture{display:block}
.opnv-lang-explorer__culture-toggle:focus-visible,.opnv-region:focus-visible{outline:3px solid #facc15;outline-offset:2px}

/* ── Phones: the language explorer (search and list first, the world on demand) ─────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Keyboard shortcuts mean nothing on a touch screen. */
  .opnv-lang-explorer__keys { display: none; }
}
@media (max-width: 640px) {
  .opnv-lang-menu-aside-host--mobile .opnv-lang-current-flag .opnv-lang-flag--img { width: 22px; height: 15px; }
  .opnv-lang-menu-aside-host--mobile .opnv-lang-current-code { font-size: 13px; }
  .opnv-lang-mega-panel--explorer { padding: 0.75rem 0.5rem; }
  .opnv-lang-mega-panel--explorer .opnv-lang-modal-title { margin-bottom: 0.5rem; font-size: 1.1rem; }
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer { padding: 0.75rem; max-height: calc(100vh - 4.5rem); border-radius: 12px; gap: 6px; }
  /* The search stays at the top while the list scrolls. */
  .opnv-lang-explorer .opnv-lang-explorer__search { position: sticky; top: -0.75rem; z-index: 5; background: #fff; box-shadow: 0 6px 8px -6px rgba(15, 23, 42, 0.18); }
  /* Cultural notes: a small link, and per language («ⓘ»), not all of them open. */
  .opnv-lang-explorer__culture-toggle { justify-self: start; border: 0; background: none; padding: 0; font-size: 0.85em; text-decoration: underline; color: inherit; opacity: 0.8; }
  .opnv-lang-explorer.is-culture .opnv-lang-explorer__culture { display: none; }
  .opnv-lang-explorer.is-culture .opnv-lang-explorer__item.is-info-open .opnv-lang-explorer__culture { display: block; grid-column: 1 / -1; font-size: 0.85em; padding: 4px 8px 8px; }
  .opnv-lang-explorer.is-culture .opnv-explorer-info { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 8px; border: 1.5px solid currentColor; border-radius: 50%; background: none; font: italic 700 13px/1 Georgia, serif; color: inherit; opacity: 0.55; cursor: pointer; }
  .opnv-lang-explorer.is-culture .opnv-explorer-info[aria-expanded="true"] { opacity: 1; background: var(--opnv-lang-accent, #3b82f6); border-color: var(--opnv-lang-accent, #3b82f6); color: #fff; }
  /* The world folded behind «Ver en el mapa»; smaller when open. */
  .opnv-explorer-world-toggle { display: inline-flex; justify-self: start; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; padding: 6px 14px; font: inherit; font-size: 0.9em; color: inherit; cursor: pointer; }
  .opnv-explorer-world-toggle::before { content: "🌐"; }
  .opnv-lang-explorer:not(.is-world-open) .opnv-lang-explorer__stage > :not(.opnv-explorer-world-toggle):not(.opnv-lang-explorer__country) { display: none !important; }
  .opnv-lang-explorer .opnv-lang-explorer__svg--map,
  .opnv-lang-explorer .opnv-lang-explorer__svg--globe,
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--map,
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__svg--globe { height: min(34vh, 240px); width: 100%; max-width: none; }
  /* One column of compact rows: own name and translated name on one line, the variants on one short line. */
  .opnv-lang-explorer .opnv-lang-explorer__list,
  .opnv-lang-mega-panel--explorer .opnv-lang-explorer__list { grid-template-columns: 1fr; gap: 0; max-height: none; }
  .opnv-lang-explorer__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid #f1f5f9; }
  .opnv-lang-explorer__item > a { flex-direction: row; align-items: center; gap: 10px; padding: 10px 6px; min-height: 44px; box-sizing: border-box; }
  .opnv-lang-explorer__item .opnv-lang-explorer__text { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
  .opnv-lang-explorer__item .opnv-lang-localized { font-size: 0.85em; }
  .opnv-explorer-variants { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .opnv-lang-explorer__groups { gap: 8px; }
  /* The country card: a sheet over the list, with its own close. */
  .opnv-lang-explorer__country { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 100095; max-height: 50vh; overflow-y: auto; background: #fff; box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.25); padding: 12px 14px 14px; }
  .opnv-explorer-card-close { display: inline-flex; position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; background: none; font-size: 22px; color: inherit; cursor: pointer; }
}
