/* RESET Y BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Montserrat", sans-serif;
  background-color: #d13842;
  color: white;
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

/* FORMULARIO CENTRAL */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

form {
  background-color: white;
  color: black;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 100%;
}

form div {
  margin-bottom: 1rem;
}

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

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  background-color: #d13842;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

/* FOOTER GENERAL */
.footer {
  background-color: white;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
}

/* IMÁGENES DE FOOTER */
.footer img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: none;
  margin: 0;
  padding: 0;
}

/* FOOTER DE ESCRITORIO */
.footer-desktop {
  display: block;
}

/* FOOTER DE MÓVIL OCULTO POR DEFECTO */
.footer-mobile {
  display: none;
}

/* MEDIA QUERIES */

/* MÓVIL */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  form {
    padding: 1.5rem;
    max-width: 100%;
  }

  .footer-desktop {
    display: none !important;
  }

  .footer-mobile {
    display: block !important;
    position: relative;
    bottom: 0;
    width: 100%;
    height: auto;
  }
}

/* ESCRITORIO */
@media (min-width: 769px) {
  .footer-desktop {
    display: block !important;
  }

  .footer-mobile {
    display: none !important;
  }
}
