@charset "UTF-8";

/* ==========================================================
   MI TURNERO - BOTÓN FLOTANTE Y POPUP DE WHATSAPP
   Cargar después del CSS específico de cada página.
   ========================================================== */

.whatsapp-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .20);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .24);
}

.whatsapp-icon-container,
.whatsapp-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.whatsapp-icon {
  object-fit: cover;
}

.whatsapp-widget:focus-visible,
.mt-wa-modal button:focus-visible,
.mt-wa-modal a:focus-visible {
  outline: 3px solid rgba(32, 178, 170, .48) !important;
  outline-offset: 4px;
}

.mt-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mt-wa-modal.is-active {
  display: flex;
}

.mt-wa-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.mt-wa-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 35px 30px;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  animation: mtWaPopup .25s ease;
}

@keyframes mtWaPopup {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mt-wa-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.mt-wa-modal-close:hover {
  color: #111111;
  background: #f1f3f5;
  transform: rotate(90deg);
}

.mt-wa-modal-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef9f9;
  color: #168f89;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mt-wa-modal-box h2 {
  margin: 0 0 15px;
  color: #3b3b46;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.mt-wa-modal-box p {
  margin: 0 0 30px;
  color: #6f7782;
  font-size: 16px;
  line-height: 1.65;
}

.mt-wa-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mt-wa-country-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #20b2aa;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform .2s ease, background-color .2s ease;
}

.mt-wa-country-link:hover {
  color: #ffffff;
  background: #2d353d;
  transform: translateY(-2px);
}

.mt-wa-country-link span {
  font-size: 22px;
}

body.mt-wa-modal-open {
  overflow: hidden;
}

@media (max-width: 576px) {
  .whatsapp-widget {
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .mt-wa-modal {
    padding: 16px;
  }

  .mt-wa-modal-box {
    max-height: calc(100vh - 32px);
    padding: 30px 22px 24px;
    border-radius: 18px;
  }

  .mt-wa-modal-box h2 {
    font-size: 28px;
  }

  .mt-wa-country-link {
    min-height: 52px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget,
  .mt-wa-modal-box,
  .mt-wa-modal-close,
  .mt-wa-country-link {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
