:root {
  --bg-color: #f9fafb;
  --black: #111827;
  --border-color: #C3CED5;
  --border-radius: 4px;
  --button-color: #1088BB;
  --button-hover: #0A527C;
  --error-color: #dc2626;
  --input-background: #FFF9E0;
  --primary-color: #ECECEC;
  --primary-hover: #bfbfbf;
  --success-color: #059669;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --warning-color: #d97706;
  --white: #f2f2f2;
}

body {
  align-items: center;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.header-image {
  margin-bottom: 1rem;
  max-width: 130px;
  width: 100%;
}

.container {
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  max-width: 500px;
  overflow: hidden;
  width: 100%;
}

.header {
  background: var(--primary-color);
  color: var(--black);
  padding: 1.5rem;
  padding-bottom: 0;
  text-align: center;
}

.header h1 {
  font-size: 1.50rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 0.95rem;
}

.form-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
  position: relative;
}

.alert {
  align-items: center;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  font-weight: 500;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  text-align: center;
}

.alert-success {
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  color: var(--success-color);
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: var(--error-color);
}

.form-page-title {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  padding-bottom: 0.5rem;
}

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

.form-label {
  color: var(--text-color);
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-label.info-label {
  font-size: larger;
  font-weight: bold;
  margin-bottom: 1rem;
}

.form-input {
  background: var(--input-background);
  border: 2px solid var(--border-color);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
  outline: none;
}

.form-input.error {
  border-color: var(--error-color);
}

.form-input.error:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

.error-message.active {
  display: flex;
}

.error-message {
  align-items: center;
  color: var(--error-color);
  display: none;
  font-size: 0.875rem;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.error-message::before {
  content: "⚠";
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
}

@media (max-width: 640px) {
  body {
    padding: 5px;
  }

  .header-image {
    max-width: 110px;
  }

  .container {
    margin: 0;
  }

  .header {
    padding: 1.2rem;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .form-container {
    padding: 0.5rem;
  }
}

/* Estilos para paginacion */
.form-navigation {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
}

.form-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.nav-btn {
  align-items: center;
  background: var(--button-color);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 500;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.page-indicator {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-weight: 500;
  min-width: 80px;
  padding: 0.5rem 1rem;
  text-align: center;
}

.current-page {
  color: var(--button-color);
  font-weight: 600;
}

.form-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 300px;
}

.multi-select-container.error {
  border: 2px solid var(--error-color);
}

.multi-select-container.error:focus-within {
  border: 2px solid var(--error-color);
}

.multi-select-container {
  background: var(--input-background);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem;
}

.checkbox-label {
  align-items: center;
  color: var(--text-color);
  display: flex;
  font-weight: 500;
}

.checkbox-label input {
  margin-right: 0.5rem;
}

.checkbox-label input.error {
  outline: 2px solid var(--error-color);
}

.checkbox-label input.error:focus {
  outline: 2px solid var(--error-color);
}

.checkbox-label span {
  margin-left: 0.25rem;
}

.required-asterisk {
  color: var(--error-color);
  font-size: small;
  margin-left: 0.1rem;
}

.link {
  color: var(--button-color);
  font-weight: 500;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.link-secondary {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.form-page-hint {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-page-text {
  margin-bottom: 1rem;
}

.info-field {
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: larger;
  font-weight: bold;
  margin-bottom: 1rem;
  padding: 1rem;
  text-align: center;
}

.info-field.error {
  background-color: #fee2e2;
  border-color: var(--error-color);
  border-style: solid;
  border-width: 2px;
  color: var(--error-color);
  margin-bottom: 1rem;
  padding: 1rem;
}

.form-page {
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.form-page.active {
  display: flex;
  opacity: 1;
}

.team-spacer {
  width: 100%;
  margin-bottom: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-color);
  font-weight: bold;
}

.error-messages {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius);
  color: var(--error-color);
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 1rem;
  text-align: center;
}