* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(351deg, rgb(129, 74, 111), rgba(129, 74, 111, 0.43));
  color: #fff;


}

header {
  position: static;
}



/* ===========================
   FORMULARIO
=========================== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

h3 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

form {
  width: 90%;
  max-width: 40rem;
  background-color: rgba(129, 74, 111, 0.85);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: inherit;
  font-size: 1rem;
  color: #333;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgb(228, 143, 209);
  background-color: rgba(230, 161, 236, 0.3);
}

/* ===========================
   NAV EN EL FORMULARIO (Estilo Igual al del Header)
=========================== */
form nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

form nav .nav-item {
  text-decoration: none;
  font-family: "Titillium Web", sans-serif;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 228, 196, 0.25);
  color: rgb(129, 74, 111);
  transition: 0.3s;
}

form nav .nav-item:hover {
  background-color: rgba(255, 228, 196, 0.4);
  color: rgba(129, 74, 111, 0.85);
}

/* ===========================
   CHECKBOX Y RADIO INLINE
=========================== */
.form-control-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-control-inline input {
  width: auto;
}

/* ===========================
   BOTONES
=========================== */
button,
a.button {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(240, 179, 237);
  background-color: rgba(180, 103, 155, 0.73);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  text-decoration: none;
}

button:hover,
a.button:hover {
  background-color: rgba(218, 19, 208, 0.59);
}

.boton {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

/* ===========================
   ALERTAS
=========================== */
#comment.warning {
  background-color: rgb(220, 172, 133);
}

#comment.error {
  background-color: rgb(248, 157, 145);
}

#remaining-characters.warning {
  color: rgb(211, 109, 26);
}

#remaining-characters.error {
  color: rgb(211, 54, 26);
}

/* ===========================
   OTROS UTILES
=========================== */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.warning {
  color: orange;
  border-color: orange;
}

.error {
  color: red;
  border-color: red;
}



/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  form {
    width: 95%;
    padding: 1.5rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  nav .nav-item {
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
  }
}