/* widget.css */
:root {
  /* Hereda la fuente del sitio */
  font-family: inherit;
}

#formulariobuenfin {

display: inline-block;
margin: 0 auto;

}


#imagenbuenfin {

  display: none; 
}

.wdgt-container {
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 360px;
  width: 100%;
}

.wdgt-title {
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #2c3e50;
}

.wdgt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wdgt-input {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  transition: border-color .2s;
}
.wdgt-input::placeholder {
  color: #999;
}
.wdgt-input:focus {
  outline: none;
  border-color: #2980b9;
}

/* WhatsApp toggle */
.wdgt-whatsapp {
  margin-bottom: 0.75rem;
}
.wdgt-switch-wrapper {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.wdgt-switch {
  position: relative;
  width: 40px;
  height: 20px;
}
.wdgt-switch input {
  display: none;
}
.wdgt-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 20px;
  transition: .2s;
}
.wdgt-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.wdgt-switch input:checked + .wdgt-slider {
  background: #2980b9;
}
.wdgt-switch input:checked + .wdgt-slider:before {
  transform: translateX(20px);
}
.wdgt-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wdgt-prefix {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Dropdown con contador */
.wdgt-dropdown {
  position: relative;
  margin-bottom: 0.75rem;
}
.wdgt-dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}
.wdgt-dropdown-toggle.placeholder {
  color: #999;
}
.wdgt-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem;
  display: none;
  z-index: 10;
}
.wdgt-dropdown.open .wdgt-dropdown-menu {
  display: block;
}
.wdgt-dropdown-menu label {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.wdgt-dropdown-menu label input {
  margin-right: 0.5rem;
}
.wdgt-caret {
  border: solid #333;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform .2s;
}
.wdgt-dropdown.open .wdgt-caret {
  transform: rotate(-135deg);
}

/* BotÃģn y mensajes */
.wdgt-button {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.9rem;
  background: #dd1e33;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background .2s;
}
.wdgt-button:hover {
  background: #b21828;
}
.wdgt-message {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}
.wdgt-message.success {
  color: #27ae60;
}
.wdgt-message.error {
  color: #c0392b;
}