@font-face {
  font-family: "YangoHeadline";
  src: url("./font/YangoHeadline/Yango_Headline_Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "YangoText";
  src: url("./font/YangoText/YangoText_Md.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "YangoTextRg";
  src: url("./font/YangoText/YangoText_Rg.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: hsl(0, 0%, 93%);
  /* background-color: hsl(0, 83%, 35%); */
}

h1 {
  margin: 0;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 45px;
  font-family: "YangoHeadline", sans-serif;
  line-height: 1.1;
}

h3 {
  text-align: center;
  font-family: "YangoText", sans-serif;
  font-size: 16px;
  margin: 10px 0px;
  color: #ffffff
}

span {
  font-family: "YangoText", sans-serif;
}

.container-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  border-radius: 30px;
  overflow: hidden;
  background-image: url(./media/background.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.container-calif {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 30px;
  background-color: rgba(
    255,
    255,
    255,
    0.31
  ); /* Tomato color with transparency */
  overflow: hidden;
  backdrop-filter: blur(5px);
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
}

.container-rating,
.container-recomen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#boxCalif {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 10px;
}

#star5 {
  display: none;
}

#star4 {
  display: none;
}

#star3 {
  display: block;
}

#star2 {
  display: none;
}

#star1 {
  display: none;
}

#star5,
#star4,
#star3,
#star2,
#star1 {
  height: 80px;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 250px;
  padding: 0px 10px;
}

.star {
  font-size: 2.2rem;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.2s;
}

.star:hover,
.star:hover ~ .star {
  color: #ffca08;
  transform: scale(1.2);
}

.star.selected {
  color: #ffca08;
  transform: scale(1.2);
}

.container-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recommend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0px;
  padding: 0px 10px;
}

.label {
  font-size: 14px;
}

.number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.number[data-value="0"],
.number[data-value="1"],
.number[data-value="2"],
.number[data-value="3"],
.number[data-value="4"],
.number[data-value="5"],
.number[data-value="6"],
.number[data-value="7"],
.number[data-value="8"],
.number[data-value="9"],
.number[data-value="10"] {
  border-color: rgb(255, 255, 255);
  color: rgb(255, 255, 255);
}

.number[data-value="0"]:hover,
.number[data-value="1"]:hover,
.number[data-value="2"]:hover,
.number[data-value="3"]:hover,
.number[data-value="4"]:hover,
.number[data-value="5"]:hover {
  border-color: red;
  transform: scale(1.1);
}

.number[data-value="6"]:hover,
.number[data-value="7"]:hover,
.number[data-value="8"]:hover {
  border-color: orange;
  transform: scale(1.1);
}

.number[data-value="9"]:hover,
.number[data-value="10"]:hover {
  border-color: green;
  transform: scale(1.1);
}

.number.selected {
  background-color: white;
  color: black;
  transform: scale(1.1);
}

.indicator {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 530px;
  color: white;
}

.box-enviar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

#submitBtn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 30px;
  background-color: #ffca08;
  border: none;
  border-radius: 30px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#submitBtn:hover {
  background-color: #fcd238;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#submitBtn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#enviar:hover {
  background-color: #fcd238;
  font-weight: 700;
  transform: scale(1.1);
}

.comment {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

#textComment {
  width: 100%;
  height: 80px;
  padding: 15px;
  resize: none;
  border: 2px solid #ffca08;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-family: "YangoTextRg", sans-serif;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#textComment:focus {
  border-color: #fcd238;
  box-shadow: 0 0 8px rgba(255, 202, 8, 0.5);
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.767);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  font-family: "YangoText", sans-serif;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
}

#modalMessage {
  text-align: center;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #ffca08;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

i {
  width: 50px;
  height: 50px;
  color: black;
}

/* .close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
} */

@media only screen and (max-width: 540px) {
  h1 {
    font-size: 30px;
  }

  body {
    background-image: url(./media/background.png);
    background-position: center;
    background-repeat: no-repeat;
  }
  .container-body {
    padding: 10px;
    background-image: none;
  }

  .container-calif {
    padding: 10px;
  }

  .rating {
    width: 100%;
  }

  .indicator {
    width: 100%;
  }

  .recommend .number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}
/* Estilos para el select de motivo de contacto */
#motivoContacto {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ffca08;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-family: "YangoTextRg", sans-serif;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#motivoContacto:focus {
  border-color: #fcd238;
  box-shadow: 0 0 8px rgba(255, 202, 8, 0.5);
}

#motivoContacto option {
  padding: 10px;
  background-color: #fff;
  color: #333;
}

#motivoContacto option:checked {
  background-color: #ffca08;
  color: #fff;
}

#motivoContacto option:hover {
  background-color: #fcd238;
  color: #fff;
}

/* Estilos para el placeholder del select */
#motivoContacto option[value=""] {
  color: #999;
}