/* Botón flotante «Hablá por WhatsApp» (25/11/2026). Todo va con el prefijo .etgwa y
   pisando lo que el tema pone global a botones, inputs y títulos (mayúsculas, alturas,
   márgenes): sin eso la ventana hereda el estilo de los formularios de la página. */

.etgwa { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; font-family: inherit; }
.etgwa *, .etgwa *::before, .etgwa *::after { box-sizing: border-box; }
.etgwa [hidden] { display: none !important; }

.etgwa .etgwa-boton,
.etgwa .etgwa-enviar {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; border: 0; border-radius: 999px; background: #25D366; color: #0B141A;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0;
  text-transform: none; text-decoration: none; cursor: pointer; height: auto; width: auto;
  transition: filter .2s, transform .2s;
}
.etgwa .etgwa-boton { padding: 13px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.etgwa .etgwa-boton:hover, .etgwa .etgwa-enviar:hover { filter: brightness(1.05); }
.etgwa .etgwa-boton:focus-visible, .etgwa .etgwa-enviar:focus-visible { outline: 3px solid rgba(37,211,102,.45); outline-offset: 2px; }
.etgwa .etgwa-boton svg, .etgwa .etgwa-enviar svg { flex-shrink: 0; }

.etgwa .etgwa-ventana {
  position: relative; margin: 0 0 12px; width: calc(100vw - 40px); max-width: 380px;
  max-height: calc(100vh - 110px); overflow-y: auto; padding: 20px;
  background: #fff; color: #2F2F2F; border: 1px solid #E3E5EA; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23,23,27,.28); text-align: left;
  transform-origin: bottom right; animation: etgwa-pop .16s ease-out;
}
@keyframes etgwa-pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }

.etgwa .etgwa-cabeza { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.etgwa .etgwa-cabeza > div { flex: 1; }
.etgwa h3 { margin: 0; padding: 0; font: inherit; font-size: 18px; font-weight: 800; line-height: 1.25; color: #2F2F2F; text-transform: none; letter-spacing: 0; }
.etgwa .etgwa-cabeza p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #6B7280; font-weight: 400; }
.etgwa .etgwa-cerrar {
  margin: -4px -6px 0 0; padding: 2px 8px; border: 0; background: none; color: #8A90A0;
  font: inherit; font-size: 24px; line-height: 1; cursor: pointer; width: auto; height: auto; text-transform: none;
}
.etgwa .etgwa-cerrar:hover { color: #DD0C1B; }

.etgwa .etgwa-pregunta { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #2F2F2F; }
.etgwa .etgwa-lineas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.etgwa .etgwa-lineas button {
  margin: 0; padding: 8px 12px; border: 1px solid #D9DCE3; border-radius: 10px; background: #fff;
  color: #2F2F2F; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
  text-transform: none; letter-spacing: 0; cursor: pointer; width: auto; height: auto;
  transition: border-color .2s, background .2s, color .2s;
}
.etgwa .etgwa-lineas button:hover { border-color: #DD0C1B; }
.etgwa .etgwa-lineas button[aria-checked="true"] { border-color: #DD0C1B; background: #DD0C1B; color: #fff; }

.etgwa .etgwa-datos { display: grid; gap: 11px; }
.etgwa .etgwa-campo label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 700; color: #6B7280; text-transform: none; letter-spacing: 0; }
.etgwa input, .etgwa select, .etgwa textarea {
  display: block; width: 100%; height: auto; min-height: 0; margin: 0; padding: 10px 12px;
  border: 1px solid #D9DCE3; border-radius: 10px; background: #fff; color: #2F2F2F;
  font: inherit; font-size: 15px; line-height: 1.3; box-shadow: none; text-transform: none;
}
.etgwa select { appearance: auto; -webkit-appearance: menulist; }
.etgwa textarea { resize: vertical; min-height: 72px; }
.etgwa input::placeholder, .etgwa textarea::placeholder { color: #A3A9B6; }
.etgwa input:focus, .etgwa select:focus, .etgwa textarea:focus { outline: none; border-color: #DD0C1B; box-shadow: 0 0 0 3px rgba(221,12,27,.15); }
.etgwa select:disabled { background: #F5F5F5; color: #A3A9B6; }
.etgwa .etgwa-tel { display: flex; gap: 8px; }
.etgwa .etgwa-tel select { width: auto; flex-shrink: 0; padding-right: 4px; }
.etgwa .etgwa-tel input { flex: 1; min-width: 0; }
.etgwa .etgwa-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.etgwa .etgwa-minimo { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDF2F2; color: #2F2F2F; font-size: 13px; line-height: 1.45; }
.etgwa .etgwa-error { margin: 0; color: #DD0C1B; font-size: 13px; font-weight: 600; line-height: 1.4; }
.etgwa .etgwa-enviar { width: 100%; padding: 13px 18px; border-radius: 10px; margin-top: 4px; }
.etgwa .etgwa-enviar:disabled { opacity: .55; cursor: not-allowed; }

.etgwa .etgwa-listo { text-align: center; padding: 8px 0 2px; }
.etgwa .etgwa-listo p { margin: 0 0 14px; font-size: 14px; color: #6B7280; line-height: 1.45; }

@media (max-width: 520px) {
  .etgwa { right: 14px; bottom: 14px; }
  .etgwa .etgwa-boton { padding: 12px 16px; font-size: 14px; }
  .etgwa .etgwa-ventana { width: calc(100vw - 28px); }
}
@media print { .etgwa { display: none; } }
