/**
 * Botón flotante y modal - Frontend Whapipress
 * Diseño minimalista, sobrescribe estilos WP por defecto
 * Colores Whapi: Azul #050448, Verde 1 #26D366, Verde 2 #0E873B, Verde claro #E6FFD9, Texto #25252E
 */

/* Reset para pisar estilos WordPress en nuestro modal */
#whapipress-modal button,
#whapipress-modal input {
  font-family: var(--whapipress-font) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

:root {
  --whapipress-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --whapipress-font-weight: 400;
  --whapipress-line-height: 1.4;
  --whapipress-azul: #050448;
  --whapipress-verde-1: #26D366;
  --whapipress-verde-2: #0E873B;
  --whapipress-verde-claro: #E6FFD9;
  --whapipress-texto: #25252E;
  --whapipress-texto-suave: #6b7280;
  --whapipress-borde: #e5e7eb;
  --whapipress-fondo: #ffffff;
  --whapipress-sombra: 0 4px 16px rgba(5, 4, 72, 0.12);
  --whapipress-sombra-hover: 0 6px 24px rgba(5, 4, 72, 0.18);
  --whapipress-sombra-modal: 0 24px 48px rgba(0, 0, 0, 0.15);
  --whapipress-sombra-input: 0 2px 8px rgba(5, 4, 72, 0.08);
  --whapipress-radius: 14px;
  --whapipress-radius-input: 10px;
  --whapipress-font-size: 14px;
  --whapipress-form-width: 480px;
  --whapipress-modal-width: 400px;
  --whapipress-input-padding: 10px;
  --whapipress-field-gap: 14px;
  --whapipress-form-margin: 20px;
  --whapipress-transition: 0.25s;
}

/* Botón flotante - redondo, color Whapi por defecto */
.whapipress-float {
  position: fixed;
  bottom: 24px;
  z-index: 99998;
  font-family: var(--whapipress-font);
  --wpf-size: 56px;
  --wpf-icon: 34px;
}

/*
 * Aislamiento frente a temas: muchos temas aplican a button/img reglas
 * (padding asimétrico, justify-content, float, ::before decorativo) que
 * descolocan el icono del botón flotante o del shortcode URL.
 */
#whapipress-float-btn {
  isolation: isolate;
}
#whapipress-float-btn.whapipress-float .whapipress-float-trigger {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
#whapipress-float-btn .whapipress-float-trigger::before {
  content: none !important;
  display: none !important;
}
#whapipress-float-btn .whapipress-float-icon {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}

.whapipress-float-right {
  right: 24px;
}

.whapipress-float-left {
  left: 24px;
}

/* Anclaje al centro inferior. El translateX va en el hijo para no pisar
   los transforms de las animaciones de entrada (translateY en .whapipress-float). */
.whapipress-float-center {
  left: 50%;
  right: auto;
}

.whapipress-float-inner {
  position: relative;
  display: inline-block;
}

.whapipress-float-center .whapipress-float-inner {
  transform: translateX(-50%);
}

.whapipress-float-initial-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.whapipress-float-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #1f2937;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2;
}

.whapipress-float-inner:hover .whapipress-float-tooltip {
  opacity: 1;
  visibility: visible;
}

.whapipress-float-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 10px;
  min-height: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  box-sizing: content-box;
  z-index: 3;
  pointer-events: none;
}

.whapipress-float-badge.whapipress-float-badge-has-text {
  width: auto;
  height: auto;
  min-width: 18px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whapipress-float-trigger {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px;
  width: var(--wpf-size);
  height: var(--wpf-size);
  min-width: var(--wpf-size);
  min-height: var(--wpf-size);
  padding: 0;
  box-sizing: border-box !important;
  background-color: var(--whapipress-verde-2);
  color: #fff;
  border: none !important;
  outline: none !important;
  border-radius: 50% !important;
  overflow: visible;
  cursor: pointer;
  font-family: var(--whapipress-font);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--whapipress-sombra);
  transition: box-shadow var(--whapipress-transition) ease, transform var(--whapipress-transition) ease, filter var(--whapipress-transition) ease;
  -webkit-appearance: none;
  appearance: none;
}

.whapipress-float-shape-rounded:not(.whapipress-float-pill) .whapipress-float-trigger {
  border-radius: 14px !important;
}

.whapipress-float-shape-square:not(.whapipress-float-pill) .whapipress-float-trigger {
  border-radius: 4px !important;
}

.whapipress-float-pill .whapipress-float-trigger {
  width: auto !important;
  min-width: var(--wpf-size) !important;
  height: var(--wpf-size) !important;
  min-height: var(--wpf-size) !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

/* Solo icono: sin hueco entre badge/logo/texto; el logo va en .whapipress-float-icon-wrap */
.whapipress-float:not(.whapipress-float-pill) .whapipress-float-trigger {
  gap: 0;
}
.whapipress-float:not(.whapipress-float-pill) .whapipress-float-icon-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.whapipress-float:not(.whapipress-float-pill) .whapipress-float-icon-wrap .whapipress-float-icon {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  object-position: center;
  display: block;
}

.whapipress-float-hover-lift .whapipress-float-trigger:hover {
  box-shadow: var(--whapipress-sombra-hover);
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.whapipress-float-hover-glow .whapipress-float-trigger:hover {
  box-shadow: 0 0 0 4px rgba(38, 211, 102, 0.35), 0 8px 24px rgba(5, 4, 72, 0.2);
  transform: none;
  filter: brightness(1.05);
}

.whapipress-float-hover-pulse .whapipress-float-trigger {
  animation: whapipress-float-pulse-attn 2s ease-in-out infinite;
}

.whapipress-float-hover-pulse .whapipress-float-trigger:hover {
  animation: none;
  box-shadow: var(--whapipress-sombra-hover);
  transform: translateY(-2px) scale(1.02);
}

.whapipress-float-hover-none .whapipress-float-trigger:hover {
  box-shadow: inherit;
  transform: none;
  filter: none;
}

@keyframes whapipress-float-pulse-attn {
  0%, 100% {
    box-shadow: var(--whapipress-sombra);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(38, 211, 102, 0.35);
    transform: scale(1.04);
  }
}

.whapipress-float-hover-lift .whapipress-float-trigger:active {
  transform: translateY(0) scale(0.98);
}

.whapipress-float-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 211, 102, 0.4);
}

.whapipress-float-icon {
  width: var(--wpf-icon);
  height: var(--wpf-icon);
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}
.whapipress-float-trigger::before {
  content: none !important;
  display: none !important;
}

.whapipress-float-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.whapipress-float-text-visible {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Entrada */
@keyframes whapipress-float-ent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes whapipress-float-ent-slide {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whapipress-float-ent-bounce {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.85);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.whapipress-float-entrance-fade-in {
  animation: whapipress-float-ent-fade 0.55s ease forwards;
}

.whapipress-float-entrance-slide-up {
  animation: whapipress-float-ent-slide 0.5s ease forwards;
}

.whapipress-float-entrance-bounce {
  animation: whapipress-float-ent-bounce 0.65s ease forwards;
}

/* Móvil: sin clase whapipress-float-show-mobile el botón queda oculto (p. ej. solo escritorio). */
@media (max-width: 768px) {
  .whapipress-float:not(.whapipress-float-show-mobile) {
    display: none !important;
  }
}

/* Solo móvil: ocultar en escritorio (mismo umbral 768px que el JS y phone_mode). */
@media (min-width: 769px) {
  .whapipress-float.whapipress-float-visibility-mobile-only {
    display: none !important;
  }
}

/* Modal - fondo blanco, minimalista */
.whapipress-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--whapipress-transition) ease, visibility var(--whapipress-transition) ease;
}

/*
 * Evita el flash inicial del modal cuando el HTML se imprime inline dentro
 * de un shortcode (card Woo, widget Elementor, etc.) y el JS lo reubica al
 * <body>. Durante ese reparent el navegador revive la transition y el modal
 * "parpadea" ~0.25s antes de quedar oculto. Mantenemos las transitions
 * deshabilitadas hasta que el JS confirme que el nodo está settled.
 */
.whapipress-modal.whapipress-modal--booting {
  transition: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/*
 * Overlay: position:fixed + inset:0 en .whapipress-modal ya llena el viewport.
 * No añadir 100vw ni width:100% redundante (iOS recalcula distinto) ni tocar
 * overflow en body al abrir (quita/aperal la barra de scroll y cambia el ancho
 * útil: el fondo “salta” de aspecto).
 */
#whapipress-modal.whapipress-modal {
  min-width: 0;
  box-sizing: border-box;
}

.whapipress-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overscroll-behavior: contain;
}

/* Sin backdrop-filter: en Safari móvil provoca glitches grotescos (contenido
   duplicado, “espejado” o partido) al componer la capa sobre la página. */
.whapipress-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.whapipress-modal-dialog {
  position: relative;
  width: min(var(--whapipress-modal-width), 100%) !important;
  max-width: min(var(--whapipress-modal-width), 100%) !important;
  flex: 0 1 auto;
  background: var(--whapipress-fondo);
  border-radius: var(--whapipress-radius);
  box-shadow: var(--whapipress-sombra-modal);
  font-family: var(--whapipress-font);
  animation: whapipress-modal-in 0.28s ease;
  overflow: visible;
  box-sizing: border-box;
}

@keyframes whapipress-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header azul Whapi - bordes superiores redondeados para coincidir con el modal */
.whapipress-modal-header {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, var(--whapipress-azul) 0%, #0a0a5c 100%);
  border-top-left-radius: var(--whapipress-radius);
  border-top-right-radius: var(--whapipress-radius);
}

.whapipress-modal-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.whapipress-modal-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.whapipress-modal-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.whapipress-modal-header-text {
  flex: 1;
  min-width: 0;
}

.whapipress-modal-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.whapipress-modal-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* Body blanco - bordes inferiores redondeados para coincidir con el modal */
.whapipress-modal-body {
  padding: 24px;
  border-bottom-left-radius: var(--whapipress-radius);
  border-bottom-right-radius: var(--whapipress-radius);
}

.whapipress-modal-label {
  display: block;
  margin: 0 0 8px 0;
  font-size: var(--whapipress-font-size);
  font-weight: 600;
  color: var(--whapipress-texto);
}

.whapipress-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Phone wrap: selector país con banderas (flag-icon-css) + input número - bordes redondeados */
.whapipress-phone-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--whapipress-borde);
  border-radius: var(--whapipress-radius-input);
  overflow: visible;
  background: var(--whapipress-fondo);
  box-shadow: var(--whapipress-sombra-input);
}

.whapipress-phone-wrap .whapipress-country-select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.whapipress-phone-wrap .whapipress-country-picker {
  position: relative;
  flex-shrink: 0;
}

.whapipress-phone-wrap .whapipress-country-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--whapipress-input-padding) 12px;
  min-width: 88px;
  font-size: var(--whapipress-font-size);
  font-family: var(--whapipress-font) !important;
  color: var(--whapipress-texto);
  background: var(--whapipress-fondo) !important;
  border: none;
  border-right: 1px solid var(--whapipress-borde);
  border-top-left-radius: var(--whapipress-radius-input);
  border-bottom-left-radius: var(--whapipress-radius-input);
  cursor: pointer;
  text-align: left;
}

.whapipress-phone-wrap .whapipress-country-flag {
  width: 1.2em;
  height: 1em;
  flex-shrink: 0;
}

.whapipress-phone-wrap .whapipress-country-arrow {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}

.whapipress-phone-wrap .whapipress-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--whapipress-borde);
  border-radius: var(--whapipress-radius-input);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 1px;
}

.whapipress-phone-wrap .whapipress-country-dropdown[hidden] {
  display: none !important;
}

.whapipress-phone-wrap .whapipress-country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--whapipress-input-padding) 12px;
  font-size: var(--whapipress-font-size);
  cursor: pointer;
  white-space: nowrap;
}

.whapipress-phone-wrap .whapipress-country-option:hover {
  background: #f3f4f6;
}

.whapipress-phone-wrap .whapipress-country-option .fi {
  width: 1.2em;
  height: 1em;
  flex-shrink: 0;
}

.whapipress-phone-wrap .whapipress-phone-input {
  flex: 1;
  min-width: 0;
  padding: var(--whapipress-input-padding) 14px;
  font-size: var(--whapipress-font-size);
  font-family: var(--whapipress-font) !important;
  color: var(--whapipress-texto);
  background: transparent !important;
  border: none !important;
  border-top-right-radius: var(--whapipress-radius-input);
  border-bottom-right-radius: var(--whapipress-radius-input);
}

.whapipress-phone-wrap .whapipress-phone-input::placeholder {
  color: var(--whapipress-texto-suave);
}

.whapipress-phone-wrap .whapipress-phone-input:focus {
  outline: none !important;
}

.whapipress-phone-wrap:focus-within {
  border-color: var(--whapipress-primary);
  box-shadow: 0 0 0 3px rgba(14, 135, 59, 0.12);
}

.whapipress-phone-wrap:hover {
  border-color: #d1d5db;
}

.whapipress-modal-form input[type="tel"] {
  padding: var(--whapipress-input-padding) 14px;
  font-size: var(--whapipress-font-size);
  font-family: var(--whapipress-font) !important;
  color: var(--whapipress-texto);
  background: var(--whapipress-fondo) !important;
  border: 1px solid var(--whapipress-borde);
  border-radius: var(--whapipress-radius-input);
  transition: border-color var(--whapipress-transition) ease, box-shadow var(--whapipress-transition) ease;
}

.whapipress-modal-form input[type="tel"]::placeholder {
  color: var(--whapipress-texto-suave);
}

.whapipress-modal-form input[type="tel"]:focus {
  outline: none !important;
  border-color: var(--whapipress-primary);
  box-shadow: 0 0 0 3px rgba(14, 135, 59, 0.12);
}

.whapipress-modal-form input[type="tel"]:hover {
  border-color: #d1d5db;
}

.whapipress-modal-helper {
  margin: -4px 0 0 0;
  font-size: 12px;
  color: var(--whapipress-texto-suave);
  line-height: 1.4;
}

.whapipress-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--whapipress-input-padding) 20px;
  margin-top: 0;
  width: 100%;
  background: var(--whapipress-verde-2) !important;
  box-shadow: var(--whapipress-sombra);
  color: #fff !important;
  border: none !important;
  outline: none !important;
  border-radius: 999px;
  font-size: var(--whapipress-font-size);
  font-weight: var(--whapipress-font-weight);
  line-height: 1.25;
  font-family: var(--whapipress-font) !important;
  cursor: pointer;
  transition: filter var(--whapipress-transition) ease, transform var(--whapipress-transition) ease, box-shadow var(--whapipress-transition) ease;
}

.whapipress-modal-btn-icon {
  flex-shrink: 0;
  display: block;
  width: 1.25em;
  height: 1.25em;
  min-width: 18px;
  min-height: 18px;
}

.whapipress-modal-btn-text {
  line-height: 1.25;
}

.whapipress-modal-submit:hover {
  filter: brightness(1.08);
  box-shadow: var(--whapipress-sombra-hover);
}

.whapipress-modal-submit:active {
  transform: scale(0.98);
}

.whapipress-modal-submit:focus,
.whapipress-modal-submit:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: 0 0 0 3px rgba(14, 135, 59, 0.35);
}

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

.whapipress-btn-loading {
  opacity: 0.55 !important;
  cursor: wait !important;
  pointer-events: none !important;
  filter: grayscale(60%) !important;
  transform: none !important;
  box-shadow: none !important;
}

.whapipress-modal-submit.whapipress-btn-loading .whapipress-modal-btn-text::before,
.whapipress-url-btn.whapipress-btn-loading::after,
.whapipress-product-btn.whapipress-btn-loading::after,
.whapipress-float-trigger.whapipress-btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: whapipress-spin 0.6s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.whapipress-modal-submit.whapipress-btn-loading .whapipress-modal-btn-text::before {
  margin-right: 6px;
}

.whapipress-url-btn.whapipress-btn-loading::after,
.whapipress-product-btn.whapipress-btn-loading::after {
  margin-left: 8px;
}

.whapipress-float-trigger.whapipress-btn-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -7px 0 0 -7px;
}

/* Shortcode botón inline URL (widget Elementor: .elementor-button) */
.whapipress-url-btn-wrap:not(.whapipress-url-elementor-skin) {
  display: block;
  margin: 12px 0;
}
.whapipress-url-btn-wrap.whapipress-url-elementor-skin {
  /* Bloque + ancho intrínseco: más predecible como hijo flex (align-items / margin) que inline-block. */
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  min-width: 0;
}
/* Verde por defecto solo si no es un preset (los presets llevan colores vía <style> + style en el <button>).
   Evita que esta regla pise #id.whapipress-wc-url-preset-inline en el sitio (orden de carga con temas). */
.whapipress-url-btn-wrap:not(.whapipress-wc-url-preset-inline) .whapipress-url-btn:not(.elementor-button) {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  gap: 6px;
  padding: 10px 18px;
  background-color: var(--whapipress-verde-2) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px;
  font-size: var(--whapipress-font-size);
  font-weight: 600;
  font-family: var(--whapipress-font);
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.whapipress-url-btn-wrap:not(.whapipress-wc-url-preset-inline) .whapipress-url-btn:not(.elementor-button)::before {
  content: none !important;
  display: none !important;
}

.whapipress-url-btn-wrap:not(.whapipress-wc-url-preset-inline) .whapipress-url-btn:not(.elementor-button):hover {
  filter: brightness(1.08);
}

.whapipress-url-btn-wrap:not(.whapipress-wc-url-preset-inline) .whapipress-url-btn:not(.elementor-button):active {
  transform: scale(0.98);
}

.whapipress-url-btn-wrap:not(.whapipress-wc-url-preset-inline) .whapipress-url-btn:not(.elementor-button) .whapipress-url-btn-icon {
  width: 1.3em;
  height: 1.3em;
  min-width: 20px;
  min-height: 20px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}

/* ── Product button (global + shortcode presets) ──────── */
/* Nota: el widget de Elementor añade .elementor-button; excluimos de estos estilos
   fijos (verde, píldora) para que el panel *Estilo* de Elementor pueda gobernar. */
/* Skin Elementor: no forzar ancho de columna; el espaciado lo define el widget. */
.whapipress-product-btn-wrap:not(.whapipress-product-elementor-skin) {
  display: block;
  width: 100%;
  margin-top: 12px;
  clear: both;
}
.whapipress-product-btn-wrap.whapipress-product-elementor-skin {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 0;
  clear: none;
  box-sizing: border-box;
  min-width: 0;
}
.whapipress-product-btn:not(.elementor-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  background-color: #0E873B;
}
.whapipress-product-btn:not(.elementor-button):hover { filter: brightness(1.08); }
.whapipress-product-btn:not(.elementor-button):active { transform: scale(0.98); }
.whapipress-product-btn:not(.elementor-button) .whapipress-product-btn-icon {
  width: 1.3em;
  height: 1.3em;
  min-width: 20px;
  min-height: 20px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: inline-block;
}

/* WHAPIPRESS + Elementor: el <button> es inline-flex (no <a> del core). Estilo → Alineación
   aplica justify-content en ESTE nodo (update_control en widgets), no en .elementor-button-content-wrapper. */
/* Caja mínima como el «Botón» de Elementor (assets/css/frontend.css): con <button>, temas/UA
   a menudo ponen padding:0; el Fondo (Estilo) solo rellenaba un retazo del tamaño del texto/icono. */
.elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button,
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  vertical-align: middle;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  /* Mismo relleno base que .elementor .elementor-button (core). SIN !important: si no, pisa
     Relleno / Tamaño de Elementor (#elementor-style) y en vivo no cambia. El tema aún se puede
     vencer con mayor especificidad; el panel debe seguir pudiendo fijar padding. */
  font-size: 15px;
  padding: 12px 24px;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button.elementor-size-xs,
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button.elementor-size-xs {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 2px;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button.elementor-size-md,
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button.elementor-size-md {
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 4px;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button.elementor-size-lg,
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button.elementor-size-lg {
  font-size: 18px;
  padding: 20px 40px;
  border-radius: 5px;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button.elementor-size-xl,
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button.elementor-size-xl {
  font-size: 20px;
  padding: 25px 50px;
  border-radius: 6px;
}
/* flex-direction y gap: panel Contenido → posición/espaciado del icono (no forzar !important). */
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button
  .elementor-button-content-wrapper,
.elementor-widget-whapipress_url_button
  .whapipress-url-btn.elementor-button
  .elementor-button-content-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  /* no fijar justify-content: respetar panel Estilo/Elementor y gap/flex del panel */
  min-width: 0;
  width: auto;
  max-width: 100%;
}

/* Igual que el widget nativo «Botón»: rótulos largos en varias líneas, botón que crece en alto. En
   un flex, min-width:0 deja al texto encoger; flex:1 1 0% cede al icono y reparte ancho (comportamiento
   habitual junto a .elementor-button-icon en Elementor). */
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button
  .elementor-button-text,
.elementor-widget-whapipress_url_button
  .whapipress-url-btn.elementor-button
  .elementor-button-text {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* En plantillas WooCommerce, estilos de ficha/loop a veces afectan a <button> y no a enlaces: el
   producto dejaba de verse igual al widget URL. El panel *Estilo* de Elementor sigue mandando. */
.woocommerce .elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button,
.woocommerce-page .elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button {
  background-image: none;
  text-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Widget «WP botón product» (skin Elementor): icono = misma lógica que .elementor-button-icon svg
   (1em del texto del botón). La variable la pone el render PHP (Contenido → escala). */
.elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button {
  --whapipress-wc-prod-icon-scale: 1;
}
.elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button .elementor-button-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Imagen WhapiPress (img dentro del span, como el SVG en el widget Botón) */
.elementor-widget-whapipress_wc_product_button
  .whapipress-product-btn.elementor-button
  .elementor-button-icon
  img.whapipress-product-btn-icon {
  width: calc(1em * var(--whapipress-wc-prod-icon-scale, 1)) !important;
  height: calc(1em * var(--whapipress-wc-prod-icon-scale, 1)) !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
/* SVG o icono de biblioteca (Elementor) */
.elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button .elementor-button-icon > svg,
.elementor-widget-whapipress_wc_product_button .whapipress-product-btn.elementor-button .elementor-button-icon svg {
  width: calc(1em * var(--whapipress-wc-prod-icon-scale, 1)) !important;
  height: auto;
  flex-shrink: 0;
  display: block;
}
/* span.whapipress-wc-elem-icon (render_icon) */
.elementor-widget-whapipress_wc_product_button .whapipress-wc-elem-icon,
.elementor-widget-whapipress_wc_product_button .elementor-button-icon .whapipress-wc-elem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: calc(1em * var(--whapipress-wc-prod-icon-scale, 1));
  flex-shrink: 0;
}
.elementor-widget-whapipress_wc_product_button .whapipress-wc-elem-icon svg,
.elementor-widget-whapipress_wc_product_button .elementor-button-icon .whapipress-wc-elem-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Elementor Flexbox Containers (.e-con-inner, .e-flex): el hijo es flex; text-align no mueve el
   bloque. align-self en el .elementor-element del widget alinea el bloque respecto al eje del contenedor. */
.e-con-inner .elementor-widget-whapipress_url_button.elementor-align-left,
.e-flex .elementor-widget-whapipress_url_button.elementor-align-left,
.e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-align-left,
.e-flex .elementor-widget-whapipress_wc_product_button.elementor-align-left {
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
}
.e-con-inner .elementor-widget-whapipress_url_button.elementor-align-center,
.e-flex .elementor-widget-whapipress_url_button.elementor-align-center,
.e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-align-center,
.e-flex .elementor-widget-whapipress_wc_product_button.elementor-align-center {
  align-self: center !important;
  width: fit-content !important;
  max-width: 100% !important;
}
.e-con-inner .elementor-widget-whapipress_url_button.elementor-align-right,
.e-flex .elementor-widget-whapipress_url_button.elementor-align-right,
.e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-align-right,
.e-flex .elementor-widget-whapipress_wc_product_button.elementor-align-right {
  align-self: flex-end !important;
  width: fit-content !important;
  max-width: 100% !important;
}
.e-con-inner .elementor-widget-whapipress_url_button.elementor-align-justify,
.e-flex .elementor-widget-whapipress_url_button.elementor-align-justify,
.e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-align-justify,
.e-flex .elementor-widget-whapipress_wc_product_button.elementor-align-justify {
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
}

/*
 * «Posición» (Button_Trait): eje X = flex-direction:row + justify-content (válido con nowrap).
 * Elementor aplica .elementor-widget { align-content: var(--align-content) } con --flex-wrap: a menudo nowrap;
 * entonces align-content no mueve nada. Neutralizamos y alineamos el contenido con justify-content.
 */
.elementor-element.elementor-widget.elementor-widget-whapipress_url_button,
.elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button {
  --align-content: normal;
}
.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-left .elementor-widget-container,
.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-left .elementor-widget-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: left;
}
.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-center .elementor-widget-container,
.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-center .elementor-widget-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: center;
}
.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-right .elementor-widget-container,
.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-right .elementor-widget-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: right;
}
.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-justify .elementor-widget-container,
.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-justify .elementor-widget-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: normal !important;
  text-align: center;
}
.elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-left:not(:has(> .elementor-widget-container)),
.elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-left:not(:has(> .elementor-widget-container)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: left;
}
.elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-center:not(:has(> .elementor-widget-container)),
.elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-center:not(:has(> .elementor-widget-container)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: center;
}
.elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-right:not(:has(> .elementor-widget-container)),
.elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-right:not(:has(> .elementor-widget-container)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  align-content: normal !important;
  text-align: right;
}
.elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-align-justify:not(:has(> .elementor-widget-container)),
.elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-align-justify:not(:has(> .elementor-widget-container)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: normal !important;
  text-align: center;
}

/* Refuerzo: ancho del envoltorio (el padre ya reparte con justify-content) */
.elementor-widget-whapipress_url_button.elementor-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-left .whapipress-product-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_url_button.elementor-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-center .whapipress-product-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_url_button.elementor-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
  width: max-content !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.elementor-widget-whapipress_url_button.elementor-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-left .whapipress-product-btn-wrap.elementor-button-wrapper {
  text-align: left;
}
.elementor-widget-whapipress_url_button.elementor-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-center .whapipress-product-btn-wrap.elementor-button-wrapper {
  text-align: center;
}
.elementor-widget-whapipress_url_button.elementor-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
  text-align: right;
}
.elementor-widget-whapipress_url_button.elementor-align-justify .whapipress-url-btn-wrap.elementor-button-wrapper,
.elementor-widget-whapipress_wc_product_button.elementor-align-justify .whapipress-product-btn-wrap.elementor-button-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-left .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: left;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-center .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-right .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: right;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-justify .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-justify .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-left:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: left;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-center:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-right:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: right;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-tablet-align-justify:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-tablet-align-justify:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: normal !important;
    text-align: center;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-tablet-align-left,
  .e-flex .elementor-widget-whapipress_url_button.elementor-tablet-align-left,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-tablet-align-center,
  .e-flex .elementor-widget-whapipress_url_button.elementor-tablet-align-center,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center {
    align-self: center;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-tablet-align-right,
  .e-flex .elementor-widget-whapipress_url_button.elementor-tablet-align-right,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right {
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-tablet-align-justify,
  .e-flex .elementor-widget-whapipress_url_button.elementor-tablet-align-justify,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-justify,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-justify {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }
  .elementor-widget-whapipress_url_button.elementor-tablet-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left .whapipress-product-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_url_button.elementor-tablet-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center .whapipress-product-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_url_button.elementor-tablet-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
    width: max-content !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .elementor-widget-whapipress_url_button.elementor-tablet-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-left .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: left;
  }
  .elementor-widget-whapipress_url_button.elementor-tablet-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-center .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: center;
  }
  .elementor-widget-whapipress_url_button.elementor-tablet-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: right;
  }
  .elementor-widget-whapipress_url_button.elementor-tablet-align-justify .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-tablet-align-justify .whapipress-product-btn-wrap.elementor-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-left .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: left;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-center .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-right .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: right;
  }
  .elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-justify .elementor-widget-container,
  .elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-justify .elementor-widget-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-left:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: left;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-center:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: center;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-right:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-content: normal !important;
    text-align: right;
  }
  .elementor-element.elementor-widget.elementor-widget-whapipress_url_button.elementor-mobile-align-justify:not(:has(> .elementor-widget-container)),
  .elementor-element.elementor-widget.elementor-widget-whapipress_wc_product_button.elementor-mobile-align-justify:not(:has(> .elementor-widget-container)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: normal !important;
    text-align: center;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-mobile-align-left,
  .e-flex .elementor-widget-whapipress_url_button.elementor-mobile-align-left,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-mobile-align-center,
  .e-flex .elementor-widget-whapipress_url_button.elementor-mobile-align-center,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center {
    align-self: center;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-mobile-align-right,
  .e-flex .elementor-widget-whapipress_url_button.elementor-mobile-align-right,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right {
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
  }
  .e-con-inner .elementor-widget-whapipress_url_button.elementor-mobile-align-justify,
  .e-flex .elementor-widget-whapipress_url_button.elementor-mobile-align-justify,
  .e-con-inner .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-justify,
  .e-flex .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-justify {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }
  .elementor-widget-whapipress_url_button.elementor-mobile-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left .whapipress-product-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_url_button.elementor-mobile-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center .whapipress-product-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_url_button.elementor-mobile-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
    width: max-content !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .elementor-widget-whapipress_url_button.elementor-mobile-align-left .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-left .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: left;
  }
  .elementor-widget-whapipress_url_button.elementor-mobile-align-center .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-center .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: center;
  }
  .elementor-widget-whapipress_url_button.elementor-mobile-align-right .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-right .whapipress-product-btn-wrap.elementor-button-wrapper {
    text-align: right;
  }
  .elementor-widget-whapipress_url_button.elementor-mobile-align-justify .whapipress-url-btn-wrap.elementor-button-wrapper,
  .elementor-widget-whapipress_wc_product_button.elementor-mobile-align-justify .whapipress-product-btn-wrap.elementor-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Widget «WP botón» (URL, skin Elementor) */
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button {
  --whapipress-wc-url-icon-scale: 1;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button .elementor-button-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.elementor-widget-whapipress_url_button
  .whapipress-url-btn.elementor-button
  .elementor-button-icon
  img.whapipress-url-btn-icon {
  width: calc(1em * var(--whapipress-wc-url-icon-scale, 1)) !important;
  height: calc(1em * var(--whapipress-wc-url-icon-scale, 1)) !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button .elementor-button-icon > svg,
.elementor-widget-whapipress_url_button .whapipress-url-btn.elementor-button .elementor-button-icon svg {
  width: calc(1em * var(--whapipress-wc-url-icon-scale, 1)) !important;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.elementor-widget-whapipress_url_button .whapipress-url-elem-icon,
.elementor-widget-whapipress_url_button .elementor-button-icon .whapipress-url-elem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: calc(1em * var(--whapipress-wc-url-icon-scale, 1));
  flex-shrink: 0;
}
.elementor-widget-whapipress_url_button .whapipress-url-elem-icon svg,
.elementor-widget-whapipress_url_button .elementor-button-icon .whapipress-url-elem-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Product card (loop) button icon hardening */
.whapipress-product-card-btn .whapipress-product-card-btn-icon,
.whapipress-product-card-btn-icon {
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: inline-block;
}

/* Modo píldora: tamaño de logo acotado por --wpf-icon */
.whapipress-float-pill .whapipress-float-trigger .whapipress-float-icon {
  max-width: var(--wpf-icon);
  max-height: var(--wpf-icon);
}

/* ── Form shortcode ─────────────────────────────────── */

.whapipress-form-wrap {
  --wpf-in-shadow: var(--whapipress-sombra-input);
  --wpf-in-border: var(--whapipress-borde);
  --wpf-in-focus: var(--whapipress-primary);
  --wpf-in-focus-ring: rgba(14, 135, 59, 0.22);
  --wpf-in-focus-ring-soft: rgba(14, 135, 59, 0.18);
  max-width: var(--whapipress-form-width);
  margin: var(--whapipress-form-margin) 0;
  padding: 24px;
  font-family: var(--whapipress-font);
  background: var(--whapipress-fondo);
  border-radius: var(--whapipress-radius);
  box-shadow: var(--whapipress-sombra);
}
.whapipress-form-wrap.whapipress-form-width-full {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.whapipress-form-align-left {
  margin-left: 0;
  margin-right: auto;
}
.whapipress-form-align-center {
  margin-left: auto;
  margin-right: auto;
}
.whapipress-form-align-right {
  margin-left: auto;
  margin-right: 0;
}

.whapipress-form {
  display: flex;
  flex-direction: column;
  gap: var(--whapipress-field-gap);
}

.whapipress-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--whapipress-field-gap);
}

.whapipress-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whapipress-form-col-full { width: 100%; }
.whapipress-form-col-half { width: calc(50% - 7px); }
.whapipress-form-col-third { width: calc(33.333% - 10px); }

@media (max-width: 480px) {
  .whapipress-form-col-half,
  .whapipress-form-col-third {
    width: 100%;
  }
}

.whapipress-form-label {
  font-size: var(--whapipress-font-size);
  font-weight: var(--whapipress-font-weight);
  line-height: var(--whapipress-line-height);
  color: var(--whapipress-texto);
}

.whapipress-form-req {
  color: #dc2626;
  margin-left: 2px;
}

.whapipress-form-field-consent {
  margin-top: 2px;
}

.whapipress-form-consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: var(--whapipress-font-weight);
}

.whapipress-form-consent {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--whapipress-primary);
}

.whapipress-form-consent-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--whapipress-texto);
}

.whapipress-form-wrap .whapipress-form-input {
  padding: var(--whapipress-input-padding) 12px;
  border: 1px solid var(--wpf-in-border);
  border-radius: var(--whapipress-radius-input) !important;
  font-size: var(--whapipress-font-size);
  font-weight: var(--whapipress-font-weight);
  line-height: var(--whapipress-line-height);
  font-family: var(--whapipress-font);
  background: var(--whapipress-fondo);
  color: var(--whapipress-texto);
  box-shadow: var(--wpf-in-shadow);
  transition: border-color var(--whapipress-transition) ease, box-shadow var(--whapipress-transition) ease;
  box-sizing: border-box;
  width: 100%;
}

.whapipress-form-wrap input.whapipress-form-input,
.whapipress-form-wrap textarea.whapipress-form-input,
.whapipress-form-wrap select.whapipress-form-input {
  border-radius: var(--whapipress-radius-input) !important;
}

.whapipress-form-wrap .whapipress-form-input:focus {
  outline: none;
  border-color: var(--wpf-in-focus);
  box-shadow: 0 0 0 3px var(--wpf-in-focus-ring), var(--wpf-in-shadow);
}

.whapipress-form-wrap textarea.whapipress-form-input {
  min-height: 70px;
  resize: vertical;
}

.whapipress-form-wrap select.whapipress-form-input {
  appearance: auto;
  cursor: pointer;
}

/* Variantes de borde (solo .whapipress-form-wrap; el modal no las usa) */
.whapipress-form-wrap.whapipress-form-in-style-borderless .whapipress-form-input {
  border: none;
  box-shadow: var(--wpf-in-shadow);
}

.whapipress-form-wrap.whapipress-form-in-style-borderless .whapipress-form-input:focus {
  box-shadow: 0 0 0 3px var(--wpf-in-focus-ring), var(--wpf-in-shadow);
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-input {
  border: none;
  border-bottom: 2px solid var(--wpf-in-border);
  border-radius: 0 !important;
  box-shadow: none;
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-input:focus {
  border-color: transparent;
  border-bottom-color: var(--wpf-in-focus);
  box-shadow: 0 0 0 3px var(--wpf-in-focus-ring-soft);
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-input:not(:focus) {
  box-shadow: var(--wpf-in-shadow);
}

/* Phone wrap en formularios */
.whapipress-form-wrap .whapipress-form-phone-wrap.whapipress-phone-wrap {
  border-color: var(--wpf-in-border);
  box-shadow: var(--wpf-in-shadow);
}

.whapipress-form-wrap .whapipress-form-phone-wrap .whapipress-country-trigger {
  border-right-color: var(--wpf-in-border);
}

.whapipress-form-wrap .whapipress-form-phone-wrap.whapipress-phone-wrap:hover {
  border-color: var(--wpf-in-border);
}

.whapipress-form-wrap.whapipress-form-in-style-borderless .whapipress-form-phone-wrap.whapipress-phone-wrap {
  border: none;
  box-shadow: var(--wpf-in-shadow);
}

.whapipress-form-wrap.whapipress-form-in-style-borderless .whapipress-form-phone-wrap .whapipress-country-trigger {
  border-right: 1px solid var(--wpf-in-border);
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-phone-wrap.whapipress-phone-wrap {
  border: none;
  border-bottom: 2px solid var(--wpf-in-border);
  border-radius: 0;
  box-shadow: none;
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-phone-wrap .whapipress-country-trigger {
  border-right: 1px solid var(--wpf-in-border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-phone-wrap .whapipress-phone-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-phone-wrap:not(:focus-within) {
  box-shadow: var(--wpf-in-shadow);
}

.whapipress-form-wrap .whapipress-form-phone-wrap:focus-within {
  border-color: var(--wpf-in-focus);
  box-shadow: 0 0 0 3px var(--wpf-in-focus-ring), var(--wpf-in-shadow);
}

.whapipress-form-wrap.whapipress-form-in-style-underline .whapipress-form-phone-wrap:focus-within {
  box-shadow: 0 0 0 3px var(--wpf-in-focus-ring-soft);
  border-bottom-color: var(--wpf-in-focus);
}

.whapipress-form-submit {
  display: block;
  width: 100%;
  padding: var(--whapipress-input-padding) 20px;
  border: none;
  border-radius: var(--whapipress-radius-input) !important;
  font-size: var(--whapipress-font-size);
  font-weight: var(--whapipress-font-weight);
  font-family: var(--whapipress-font);
  box-shadow: var(--whapipress-sombra);
  cursor: pointer;
  transition: filter var(--whapipress-transition), transform var(--whapipress-transition), box-shadow var(--whapipress-transition);
  margin-top: 4px;
}

.whapipress-form-submit:hover {
  filter: brightness(1.08);
  box-shadow: var(--whapipress-sombra-hover);
}

.whapipress-form-submit:active {
  transform: scale(0.98);
}

.whapipress-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/*
 * Site Kit de Elementor (y similares) a veces aplica a todos los <button> un
 * border o box-shadow con el color de acento (p. ej. rosa). El formulario
 * WhapiPress ya fija su propio estilo: anulamos esos añadidos sin tocar el tema
 * en el resto del sitio. Solo aplica bajo .whapipress-form-wrap.
 */
.elementor .whapipress-form-wrap .whapipress-form-submit,
.elementor .whapipress-form-wrap button.whapipress-form-submit,
.whapipress-form-wrap .whapipress-form-submit,
.whapipress-form-wrap button[type="submit"].whapipress-form-submit {
  border: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: var(--whapipress-sombra) !important;
}

.elementor .whapipress-form-wrap .whapipress-form-submit:hover,
.whapipress-form-wrap .whapipress-form-submit:hover {
  border: none !important;
  box-shadow: var(--whapipress-sombra-hover) !important;
}

.elementor .whapipress-form-wrap .whapipress-form-submit:focus,
.elementor .whapipress-form-wrap .whapipress-form-submit:focus-visible,
.elementor .whapipress-form-wrap .whapipress-form-submit:focus-within,
.whapipress-form-wrap .whapipress-form-submit:focus,
.whapipress-form-wrap .whapipress-form-submit:focus-visible {
  border: none !important;
  outline: none !important;
  /* Anillo de foco en verde de marca, no el accent del Kit */
  box-shadow:
    0 0 0 2px rgba(14, 135, 59, 0.45) !important,
    var(--whapipress-sombra) !important;
}

.elementor .whapipress-form-wrap .whapipress-form-submit:hover:focus,
.elementor .whapipress-form-wrap .whapipress-form-submit:hover:focus-visible,
.whapipress-form-wrap .whapipress-form-submit:hover:focus,
.whapipress-form-wrap .whapipress-form-submit:hover:focus-visible {
  box-shadow:
    0 0 0 2px rgba(14, 135, 59, 0.45) !important,
    var(--whapipress-sombra-hover) !important;
}

.whapipress-form-status {
  font-size: 13px;
  text-align: center;
  padding: 6px 0;
}

/* ============================================================
   Multi-step form (breadcrumb + pasos + nav)
   ============================================================ */

.whapipress-form-wrap.whapipress-form-multi-step .whapipress-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*
 * Breadcrumb multi-step.
 *
 * Arquitectura:
 *  - <ol>  → rail flex, position:relative. ::before dibuja la línea gris en z-index:0.
 *  - <li>  → celda flex:1. margin/padding forzados a 0 (!important) para neutralizar
 *             cualquier reset del theme que desplace los items.
 *  - .whapipress-form-bc-pill → la burbuja visible. z-index:1 + fondo OPACO para
 *             tapar la línea debajo. NUNCA usar rgba con alfa bajo aquí.
 *  - .whapipress-form-bc-num → círculo con número dentro de la burbuja.
 */
.whapipress-form-breadcrumb {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  display: flex !important;
  align-items: center !important;
  width: 100%;
  position: relative;
  gap: 0;
  border: none !important;
  background: none !important;
}

/* Línea conectora — usa --wpf-bc-line si está definida, si no el gris base */
.whapipress-form-breadcrumb::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--wpf-bc-line, #e2e8f0);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

/* Celda de cada paso */
.whapipress-form-bc-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  z-index: 1;
  /* Forzar reset de estilos del theme que podrían desalinear */
  margin: 0 !important;
  padding: 4px 2px !important;
  list-style: none !important;
  background: none !important;
  border: none !important;
  float: none !important;
}

/*
 * --wpf-bc-active  : color de acento de pasos completados/activo (fallback: --wpf-in-focus).
 * --wpf-bc-inactive: color base de pasos pendientes (fallback: #94a3b8).
 * --wpf-bc-line    : color de la línea conectora (fallback: #e2e8f0).
 *
 * Las variables se inyectan como inline-style desde PHP si el usuario las configura.
 * `color-mix()` tiene soporte amplio desde 2023 en todos los navegadores modernos.
 * Para browsers muy antiguos los fallbacks sólidos garantizan que nunca sea transparente.
 */

/* Burbuja visible */
.whapipress-form-bc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  /* Fondo inactivo sólido — nunca transparente */
  background: color-mix(in srgb, var(--wpf-bc-inactive, #94a3b8) 14%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--wpf-bc-inactive, #94a3b8) 30%, #fff);
  font-size: 13px;
  color: color-mix(in srgb, var(--wpf-bc-inactive, #94a3b8) 80%, #1e293b);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  position: relative;
  z-index: 1;
}
/* Fallback sólido para browsers sin color-mix */
@supports not (background: color-mix(in srgb, #000 1%, #fff)) {
  .whapipress-form-bc-pill {
    background: #eef2f7;
    border-color: #dde3ec;
    color: #64748b;
  }
}

/* Círculo con el número — estado futuro */
.whapipress-form-bc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wpf-bc-inactive, #94a3b8) 60%, #fff);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s ease;
}
@supports not (background: color-mix(in srgb, #000 1%, #fff)) {
  .whapipress-form-bc-num { background: #b0bec9; }
}

.whapipress-form-bc-title {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── Paso ACTIVO ── */
.whapipress-form-bc-item.is-active .whapipress-form-bc-pill {
  background: color-mix(in srgb, var(--wpf-bc-active, var(--wpf-in-focus, #0E873B)) 14%, #fff);
  border-color: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
  color: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
  font-weight: 600;
}
@supports not (background: color-mix(in srgb, #000 1%, #fff)) {
  .whapipress-form-bc-item.is-active .whapipress-form-bc-pill { background: #d4f0e0; }
}
.whapipress-form-bc-item.is-active .whapipress-form-bc-num {
  background: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
}

/* ── Paso COMPLETADO ── */
.whapipress-form-bc-item.is-done .whapipress-form-bc-pill {
  background: color-mix(in srgb, var(--wpf-bc-active, var(--wpf-in-focus, #0E873B)) 14%, #fff);
  border-color: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
  color: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
  cursor: pointer;
}
@supports not (background: color-mix(in srgb, #000 1%, #fff)) {
  .whapipress-form-bc-item.is-done .whapipress-form-bc-pill { background: #d4f0e0; }
}
.whapipress-form-bc-item.is-done .whapipress-form-bc-num {
  background: var(--wpf-bc-active, var(--wpf-in-focus, #0E873B));
}
.whapipress-form-bc-item.is-done:hover .whapipress-form-bc-pill {
  filter: brightness(.95);
}

/* ── Paso FUTURO ── ya estilizado por el default de .whapipress-form-bc-pill ── */

@media (max-width: 480px) {
  .whapipress-form-bc-pill {
    padding: 4px 8px 4px 4px !important;
    font-size: 11px;
    gap: 5px;
  }
  .whapipress-form-bc-num {
    width: 18px !important;
    height: 18px !important;
    font-size: 11px;
  }
}

.whapipress-form-step.is-hidden {
  display: none !important;
}

.whapipress-form-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whapipress-form-step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.whapipress-form-step-back {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--wpf-in-border, #cbd5e1);
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  font: inherit;
  transition: background .15s ease;
}
.whapipress-form-step-back:hover {
  background: #f1f5f9;
}

.whapipress-form-step-next {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: filter .15s ease;
}
.whapipress-form-step-next:hover {
  filter: brightness(1.05);
}

.whapipress-form-wrap.whapipress-form-multi-step .whapipress-form-submit {
  width: auto;
  padding: 10px 24px;
}
