/* Contenedor del widget */
#pcw-widget {
  position: fixed;
  bottom: 2em;
  right: 2em;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

/* ESCUDO flotando fuera del bocadillo */
#pcw-widget .pcw-logo {
  width: 90px;
  /* 🔼 Más grande */
  height: 90px;
  border-radius: 50%;
  background: white;
  padding: 8px;
  object-fit: contain;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  /* 🔥 Sombra más potente */
  z-index: 2;
  transition: transform 0.2s ease;
}

/* Bocadillo con piquito */
#pcw-toggle {
  position: relative;
  display: flex;
  align-items: center;
  /* ✅ centra verticalmente texto y close */
  justify-content: center;
  /* ✅ centra horizontalmente texto */
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  font-weight: bold;
  border: 1px solid #ddd;
  min-width: 280px;
  max-width: 100%;
  gap: 10px;
  text-align: center;
  height: 60px;
  /* ✅ altura fija para centrar mejor */
}

/* Bocadillo flecha */
#pcw-toggle::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
  z-index: 1;
  filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.1));
}

/* Botón cerrar */
/* #pcw-close {
  position: absolute;
  right: 12px;
  top: 10%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.3em;
  color: #888;
  cursor: pointer;
  display: none;
} */

/* Popup emergente */
#pcw-box {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 1.5em;
  background: white;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  width: 360px;
  text-align: center;
}

/* Selector */
#pcw-box select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 20px;
  text-align: center;
  color: darkgrey;
}

/* Info de contacto */
#pcw-contacto {
  font-size: 0.95em;
  line-height: 1.6em;
  text-align: center;
}

#pcw-contacto a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: black;
  margin: 4px 0;
}

#pcw-contacto a:hover {
  text-decoration: underline;
}

/* Botón de contacto */
#pcw-contacto .form-btn {
  display: inline-block;
  margin-top: 20px;
  background: black;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

#pcw-contacto .form-btn:hover {
  background: #222;
}

#pcw-contacto svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

#pcw-contacto a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: black;
  font-size: 1rem;
  line-height: 1.5;
}

#pcw-contacto a svg path {
  fill: currentColor;
  /* hereda el color del texto, o puedes cambiarlo */
}

#pcw-contacto p {
  margin: 10px 0;
}

#pcw-contacto .icon-whatsapp path {
  fill: #25d366;
}

.pcw-close-btn {
  display: none;
}

#pcw-box.open .pcw-close-btn {
  display: block;
  position: absolute;
  /* top: 10px; */
  top: -15px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  line-height: 1;
}

#pcw-box.open .pcw-close-btn:hover {
  color: #d00;
}

#pcw-box.open #pcw-contacto .phoneLegend {
  font-size: 0.8em;
  line-height: 1;
  margin: 10px 0 0;
}
#pcw-box.open #pcw-contacto .phoneNumber {
  margin: 0 0 10px;
}
#pcw-box.open #pcw-contacto .phoneAdvice {
  font-size: 0.75em;
  line-height: 1.2;
  margin: 0.5rem 0;
}
#pcw-box.open #pcw-contacto .form-btn.btn-pt {
  margin-top: 10px;
}
