.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  text-align: left;
}

.input {
  border: solid 1.5px #9e9e9e;
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: #030303;
  transition: border 150ms cubic-bezier(0.4,0,0.2,1);
  width: 100%;
}

.user-label {
  position: absolute;
  left: 10px;
  top: 18px;
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

.input:focus, input:valid {
  outline: none;
  border: 1.5px solid #3186f6;
}

.input:focus ~ label, input:valid ~ label {
  transform: translateY(-50%) scale(0.8);
  background-color: white;
  padding: 0 .2em;
  color: #2196f3;
}

.input:focus ~ .user-label,
.input:not(:placeholder-shown) ~ .user-label {
  top: -1px;
  left: 0;
  color: #31bed6;
  font-size: 14px;
}

.input::placeholder {
  color: transparent;
}

.button2 {
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  color: #2c9caf;
  transition: all 1000ms;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  outline: 2px solid #2c9caf;
  margin: 20px auto 0;
  display: inline-block;
}

.button2:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid #70bdca;
  box-shadow: 4px 5px 17px -4px #2bc4dc;
}

.button2::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #31bed6;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.button2:hover::before {
  width: 250%;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  display: flex;
  flex-direction: column;
}

.modal-title h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.5rem;
}

.modal-title p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-content {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content form {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  text-align: center;
}

.modal-content .input-group {
  margin-bottom: 15px;
}

.modal-toggle-arrow {
  background: none;
  border: none;
  color: #2c9caf;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-toggle-arrow:hover {
  color: #0088cc;
}

.modal-toggle-arrow:hover h3,
.modal-toggle-arrow:hover i {
  color: #0088cc;
  transition: color 0.3s ease;
}

.modal-toggle-arrow i {
  font-size: 16px;
}

.rating:not(:checked) > input {
  position: absolute;
  appearance: none;
  pointer-events: none; /* Prevent any interaction */
}

.rating:not(:checked) > label {
  float: right;
  width: 1.5em; /* Increased width to prevent stars from being cut off */
  padding-right: 0.2em; /* Add padding between stars */
  overflow: visible; /* Allow overflow to be visible */
  white-space: nowrap;
  cursor: default; /* Change cursor to default instead of pointer */
  font-size: 30px;
  fill: #ffa723; /* Make all stars filled with gold color */
  pointer-events: none; /* Prevent any interaction */
}

.rating:not(:checked) > label > svg {
  fill: #ffa723; /* Make all stars filled with gold color */
  width: 1em; /* Set explicit width */
  height: 1em; /* Set explicit height */
}

.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label,
.rating > label:hover ~ input:checked ~ label {
  fill: #ffa723; /* Keep the selected color */
  pointer-events: none; /* Prevent any interaction */
}

.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
  fill: #ffa723; /* Make hover color same as selected */
  pointer-events: none; /* Prevent any interaction */
}

.rating > input:checked ~ label > svg {
  fill: #ffa723; /* Set the selected color */
}

/* Force all stars to always be visible and filled */
.rating > label > svg {
  fill: #ffa723 !important; /* Always show all stars as selected */
}

/* Add spacing to the rating container */
.rating {
  display: inline-flex;
  flex-direction: row-reverse;
  margin-right: 10px;
}

.cinco {
  margin-left: 5px;  
}

.satisfaction-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  vertical-align: middle;
  margin-right: 5px;
  margin-top: 13px;
}

.satisfaction-rating label {
  font-size: 18px !important;
  padding-right: 0.1em !important;
}

.satisfaction-text {
  vertical-align: middle;
  font-size: 13px;
  margin-top: -8px;
}

.btn-wpp{
  margin-right: 10px;
  margin-left: -10px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

/* ==============================
   Fix: Desbordamiento lateral en móviles (Testimonios)
   ============================== */
#testimonials {
  overflow-x: hidden;
  position: relative;
}
#testimonials .carousel-container {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  /* Neutralizar márgenes negativos que causan scroll horizontal */
  #testimonials .carousel-items {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Asegurar que el contenedor no cree overflow */
  #testimonials .container,
  #testimonials .module-slider {
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Limitar ancho de contenido de cada slide */
  #testimonials .carousel-item-content {
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Ocultar formas decorativas absolutas que se salen del viewport */
  #testimonials .module-shape-1,
  #testimonials .module-shape-2,
  #testimonials .module-shape-3,
  #testimonials .module-shape-4 {
    display: none !important;
  }
}