body.dark {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.form-container {
  max-width: 450px;
  margin: 5vh auto;
  padding: 2rem;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form input,
form select,
form button {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

input, select {
  background-color: #2a2a2a;
  color: white;
}

input::placeholder {
  color: #aaa;
}

button {
  background-color: #ff4081;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e73370;
}

@media (max-width: 480px) {
  .form-container {
    margin: 2vh 1rem;
    padding: 1.5rem;
  }
}

.form-header {
  background-color: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.form-header .logo a {
  color: #ff4081;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

.form-header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.form-header nav a:hover {
  color: #aaa;
}

.error-text {
  color: red;
  font-size: 0.9em;
  margin-top: -10px;
  display: block;
}
/* Contenedor inline del checkbox + texto */
.checkbox-privacidad {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;          /* espacio entre checkbox y texto */
  margin: 1rem 0;
  font-size: 0.9rem;
  color: white;
}

/* Estilo al propio checkbox */
.checkbox-privacidad input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #ff0066; /* color personalizado del check (Chrome, Edge, Firefox) */
  cursor: pointer;
}

/* Ajustes al texto y enlace */
.checkbox-privacidad span {
  line-height: 1.2;
}
.checkbox-privacidad a {
  color: #ff0066;
  text-decoration: underline;
}
.checkbox-privacidad a:hover {
  color: #ffa3c0;
}

/* Anclas en tema .dark: blanco y sin subrayado en todos los estados */
body.dark a,
body.dark a:link,
body.dark a:visited,
body.dark a:hover,
body.dark a:active {
  color: white !important;
  text-decoration: none !important;
}

/* Opcional: un hover ligeramente más claro para señalizar el enlace */
body.dark a:hover {
  color: #ccc !important;
}
/* Contenedor inline del checkbox + texto */
.checkbox-privacidad {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;          /* espacio entre checkbox y texto */
  margin: 1rem 0;
  font-size: 0.9rem;
  color: white;
}

/* Tamaño y color del checkbox */
.checkbox-privacidad input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #ff0066; /* color corporativo */
  cursor: pointer;
}

/* Texto junto al checkbox */
.checkbox-privacidad span {
  line-height: 1.2;
}

/* Enlace dentro del label */
.checkbox-privacidad a {
  color: #ff0066;
  text-decoration: underline;
}
.checkbox-privacidad a:hover {
  color: #ffa3c0;
}
