body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #0b1f3a;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  min-height: 100vh;
}

.login-box {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #0b1f3a;
}

h4 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #0b1f3a;
}
p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #0b1f3a;
}

input {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #00CD99;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 127, 223, 0.2);
}

button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #52FFD3;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.habilidad-icon {
  width: 90px;
  /* Ajusta el tamaño del ícono */
  height: 90px;
  margin-left: 180px;
  margin-bottom: 10px;
  /* Espacio entre el ícono y el texto */
  object-fit: contain;
  /* Asegura que la imagen no se distorsione */
  transition: transform 0.3s ease-in-out;
  /* Transición suave para la animación */
}

.habilidad-icon:hover {
  transform: scale(1.1);
  /* Escala el ícono ligeramente al hacer hover */
}

.volver-btn {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  color: linear-gradient(135deg, #00CD99 100%, #52FFD3 0%);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  z-index: 1000;
}

.volver-btn:hover {
  background-color: #52FFD3;
}

.button-reg {
  padding: 0.85rem 1.5rem;

  background-color: #D9D9D9;
  color: #3D465A;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-reg:hover {
  background-color: #52FFD3;
}

select {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  color: #0b1f3a;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230B1F3A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

select:focus {
  border-color: #00CD99;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 127, 223, 0.2);
}

/* ===== Transiciones suaves entre pasos ===== */
.form {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form.oculto {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  position: absolute;
}

/* === Mejora visual del paso 2 === */
#form-paso2 input,
#form-paso2 select,
#form-paso2 textarea {
  width: 100%;
  background-color: #f5f8ff;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ccd6e0;
  font-size: 1rem;
  color: #0b1f3a;
  transition: all 0.3s ease;
}

#form-paso2 textarea {
  min-height: 120px;
  resize: vertical;

}

#form-paso2 h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0b1f3a;
}

#form-paso2 .form-group {
  margin-bottom: 1.2rem;
}

#form-paso2 button[type="submit"] {
  margin-top: 1.2rem;
  width: 100%;
}

.login-box {
  max-width: 540px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa5b1;

}


.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #0b1f3a;
  font-size: 0.95rem;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  user-select: none;
}

.toggle-password:hover {
  color: #00a884;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  user-select: none;
}

.toggle-password:hover {
  color: #00a884;
}

.back-arrow {
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 5px;
  transform: rotate(135deg);
}

/* ================== RESPONSIVE DESIGN ================== */

@media (max-width: 768px) {
  .login-container {
    padding: 2rem 1rem;
  }

  .login-box {
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .volver-btn {
    top: 1rem;
    left: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .habilidad-icon {
    width: 60px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  h4 {
    font-size: 1.5rem;
  }

  input,
  select,
  textarea {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  button,
  .button-reg {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  #form-paso2 h3,
  .form h3 {
    font-size: 1.2rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .toggle-password {
    right: 0.6rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem 1rem;
  }

  .login-box {
    padding: 1.8rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  }

  h4 {
    font-size: 1.3rem;
  }

  .volver-btn {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

}