:root {
  --main-color: #1d4ed8;
  --gray-color: #e5e7eb;
  --font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  /*background-image: url("../media/background1.jpg");*/
  background-color: rgb(38, 50, 212);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  padding: 20px;
}

.form-container {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}

h2 {
  font-size: 1.9rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  text-align: center;
}

.step { display: none; }
.step.active { display: block; }

.form-group { margin-bottom: 1.5rem; }

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: var(--font-size);
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: white;
}

textarea { resize: vertical; }

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

.buttons button {
  flex: 1 1 48%;
  padding: 0.8rem 0;
  border: 2px solid var(--main-color);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size);
  background-color: white;
  color: var(--main-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button:hover {
  background-color: var(--main-color);
  color: white;
}

.progress {
  position: relative;
  height: 24px;
  background: var(--gray-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--main-color);
  width: 0%;
  transition: width 0.4s ease;
  z-index: 1;
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  color: black;
  z-index: 2;
  pointer-events: none;
}

.progress-text.white { color: white; }

.resumen { margin-bottom: 0.5rem; }



@media (max-width: 600px) {
  .form-container { width: 100%; padding: 1.5rem; border-radius: 0.5rem; }
  .buttons button { flex: 1 1 100%; }
}