:root {
  --color-blue1: #3498db;
  --color-azul-marino: #3f51b5;
  --color-naranja: #f60;
  --color-verde: rgb(76, 175, 80);
}

/* Animación definida */
@keyframes fadeInSlide {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes move-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0%);
  }
}

/* Aplicar la animación al cargar */
.paso1,
.paso2,
.paso3 {
  opacity: 0;
  animation: fadeInSlide 0.6s ease forwards;
  animation-delay: 0.2s; /* opcional: para que empiece después de cargar */
}

.input-group {
  position: relative;
  margin-bottom: 1.8rem;
  width: 100%;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  appearance: none; /* para quitar flecha por defecto en algunos select */
  resize: none;
}

/* Estilo del label */
.input-group label {
  position: absolute;
  left: 4px;
  top: 8px;
  color: #999;
  font-size: 20px;
  pointer-events: none;
  transition: 0.2s ease all;
}

/* Estado activo (input con focus o contenido) */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -14px;
  font-size: 16px;
  color: var(--color-azul-marino);
}

/* Línea inferior activa */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-bottom: 2px solid var(--color-azul-marino);
}

/* Para evitar el estilo feo de select en algunos navegadores */
.input-group select {
  background: transparent;
}

input:required:valid {
  border-bottom: 2px solid var(--color-verde);
}

input:required:invalid {
  border-bottom: 2px solid var(--color-naranja);
}

/* Opcional: ícono de flecha custom (si quieres agregarlo visualmente) */
/* Puedes hacerlo con un pseudo-elemento o SVG si te interesa */

/* Fondo y bordes del datepicker */
.ui-datepicker {
  background: #fff;
  border: 1px solid #ccc;
  font-family: "Segoe UI", sans-serif;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 18em;
  box-sizing: border-box !important;
}

/* Cabecera */
.ui-datepicker-header {
  background: #353ff2;
  color: white;
  padding: 10px 0;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-weight: bold;
}

/* Botones de navegación */
.ui-datepicker-prev,
.ui-datepicker-next {
  top: 10px;
  cursor: pointer;
}
.ui-datepicker-prev span,
.ui-datepicker-next span {
  background-color: #ecf0f1;
  padding: 5px;
  border-radius: 4px;
}
.ui-datepicker-prev:hover span,
.ui-datepicker-next:hover span {
  background-color: #bdc3c7;
}

/* Días de la semana */
.ui-datepicker th {
  color: #34495e;
  font-weight: 600;
  padding-bottom: 5px;
}

/* Días */
.ui-datepicker td {
  text-align: center;
  padding: 2px;
}
.ui-datepicker td a,
.ui-datepicker td span {
  display: block;
  padding: 6px;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  text-align: center;
}
.ui-datepicker td a:hover {
  background-color: var(--color-blue1);
  color: white;
}

/* Día seleccionado */
.ui-datepicker .ui-datepicker-current-day a {
  background-color: #2980b9;
  color: white;
}

/* Día de hoy */
.ui-datepicker .ui-datepicker-today a {
  border: 1px solid var(--color-blue1);
}

.ui-state-disabled {
  cursor: not-allowed !important;
}

.aa_serv {
  padding: none;
}

.boton-siguiente {
  margin-top: 10px;
  border-radius: 15px;
  background-color: var(--color-azul-marino);
  color: white;
  font-size: large;
  transition: transform 0.3s ease;
}

.boton-siguiente:hover:not(:disabled) {
  transform: scale(1.1);
  color: white;
}
.contenedor-botones {
  padding: 0px 38.5%;
}

.tituloPaso {
  font-size: clamp(20px, 4vw + 1rem, 30px);
  text-align: center;
  color: #3f51b5;
  margin-bottom: 50px;
}
@media (width <= 768px) {
  .contenedor-botones {
    padding: 0px 8.5%;
  }
}
.progress-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.progress-bar-show {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s ease;
  z-index: 1;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step {
  width: 30px;
  height: 30px;
  background-color: #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: white;
  position: relative;
}

.step.active {
  background-color: #4caf50;
}

.aa_respuesta > p.aviso {
  background-color: #f60;
  padding: 10px;
  text-align: center;
  color: white;
  border-radius: 15px;
  margin-inline: 10px;
  font-size: large;
}
