/* ===== MatuaFit - Widget de WhatsApp personalizado ===== */

#mf-wa-widget * {
  box-sizing: border-box;
}

/* Botón flotante */
#mf-wa-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 9998;
  border: none;
  transition: transform 0.2s ease;
}

#mf-wa-trigger:hover {
  transform: scale(1.06);
}

#mf-wa-trigger svg {
  width: 32px;
  height: 32px;
}

#mf-wa-trigger .mf-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: mf-wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes mf-wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

#mf-wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #FF0000;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel del chat */
#mf-wa-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 9999;
  display: none;
  font-family: 'Roboto Condensed', sans-serif;
}

#mf-wa-panel.mf-wa-open {
  display: block;
  animation: mf-wa-fade-in 0.25s ease;
}

@keyframes mf-wa-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#mf-wa-panel .mf-wa-header {
  background: #111;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mf-wa-panel .mf-wa-header-info h4 {
  font-family: 'Oswald', sans-serif;
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#mf-wa-panel .mf-wa-header-info span {
  font-size: 12px;
  color: #9be7b3;
  display: flex;
  align-items: center;
  gap: 5px;
}

#mf-wa-panel .mf-wa-header-info span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
}

#mf-wa-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

#mf-wa-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.mf-wa-bubble {
  background: #f0f2f5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.4;
}

.mf-wa-step {
  margin-bottom: 16px;
}

.mf-wa-step p {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mf-wa-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mf-wa-option {
  flex: 1 1 auto;
  border: 1.5px solid #d7d9dd;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.mf-wa-option:hover {
  border-color: #25D366;
}

.mf-wa-option.mf-wa-selected {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-weight: 700;
}

#mf-wa-cta {
  display: none;
  width: 100%;
  background: #FF0000;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
  text-align: center;
  text-decoration: none;
}

#mf-wa-cta.mf-wa-ready {
  display: block;
}

#mf-wa-cta:hover {
  background: #d40000;
  color: #fff;
}

@media (max-width: 420px) {
  #mf-wa-panel {
    right: 16px;
    bottom: 92px;
    width: calc(100vw - 32px);
  }
  #mf-wa-trigger {
    right: 16px;
    bottom: 16px;
  }
}
