* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Google Fonts: Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

        body {
            background-image: url('../img/portada-esbari-2.jpg') !important;
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
            margin: 0;
            padding: 0;
            background-color: #000 !important;
            }


.testimonio-form {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 22px 18px;
  background: #00000096 !important;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.testimonio-form label {
  color: #ffffff;
  font-size: 45px;
  margin-bottom: 8px;
  display: block;
  text-align: center;
  padding-left: 0;
}

.estrellas-dinamicas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-size: 3.2em;
  margin-bottom: 18px;
  margin: 0 auto 18px auto;
}

.estrellas-dinamicas span {
  color: #FFD700;
  text-shadow: 0 0 2px #FFD700, 0 0 4px #FFD700;
  -webkit-text-stroke: 1px #FFD700;
  font-size: 1.4em;
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
}
.estrellas-dinamicas span.selected,
.estrellas-dinamicas span:hover,
.estrellas-dinamicas span.active {
  color: #FFD700;
  text-shadow: 0 0 6px #FFD700, 0 0 12px #FFD700;
}


.testimonio-form input[type="text"],
.testimonio-form textarea {
  width: 88vw;
  margin: 0 auto 16px auto;
  display: block;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  color: #fff; /* Cambiar el color del texto a blanco para que sea visible */
  background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para contraste */
  font-size: 1.1em;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1.25em; /* Aumenta el tamaño base */
}

.testimonio-form button {
  width: 88vw;
  margin: 0 auto;
  display: block;
  background: #42523C;
  color: #fff;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  font-size: 1.15em;
  font-weight: 600;
  margin-top: 10px;
}

/* Popup de éxito */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #000;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slide-in 0.4s ease;
  width: 80%;
  height: auto;
}

.popup-content h2 {
  font-size: 2em;
  color: #fff;
  margin-bottom: 15px;
}

.popup-content p {
  font-size: 1.3em;
  color: #ccc;
  margin-bottom: 25px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.popup-content button {
  background: #333;
  color: #fff;
  padding: 25px 45px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #444;
}

@keyframes slide-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Aplicar fuente Raleway a todo el testimonio */
body, .testimonio-form, .popup-content {
  font-family: 'Raleway', Arial, sans-serif;
}

/* Estilo para botones de Instagram y la web */
.button-instagram, .button-web {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 15px;
}

.button-instagram:hover, .button-web:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button-web {
  background: #42523C;
}

.button-web:hover {
  background: #5a6b4c;
}

@media (max-width: 1024px) {
  .testimonio-form input[type="text"],
  .testimonio-form textarea {
    font-size: 65px;
    padding: 25px;
    width: 95%;
  }

  .testimonio-form button {
    font-size: 65px;
    padding: 16px;
  }

  .popup-content {
    background: #000;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slide-in 0.4s ease;
    width: 100%;
    font-size: 45px; 
  }

  .popup-message {
    font-size: 45px; 
    padding-bottom: 20px;
    padding-top: 20px;
  }

  /* Estilos específicos para botones en popup en móvil */
  .button-instagram, .button-web {
    font-size: 1.2em !important;
    padding: 12px 20px !important;
    margin: 10px !important;
    display: inline-block !important;
  }
}

