/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

/* HEADER / HERO */
.hero { 
  background-image: url('img/fondo.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 400px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 100px;
}

.logo {
  font-family: "Playfair", serif;
  font-size: 2rem;
  font-weight: bold;
}

.nav-links {
  font-family: "Playfair", serif;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: "Playfair", serif;
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero-content h2 {
  font-family: "Playfair", serif;
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-family: "Playfair", serif;
  font-size: 1.25rem;
}

.btn {
  display: inline-block;
  margin-top: 75px;
  padding: 10px 20px;
  background: #9e0f16;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #db2a33;
}

/* SECCIONES */
.section {
  padding: 60px 20px;
  text-align: center;
  margin: 100px 0px;
}

.cards {
  font-family: "Playfair", serif;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.card {
  font-family: "Playfair", serif;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  width: 250px;
}

h3 {
  font-family: "Playfair", serif;
  font-size: 1.5rem;
}

.card p {
  margin-top: 20px;
  text-align: start;
}

h2 {
  font-family: "Playfair", serif;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

#nosotros {
  width: 50%;
  margin: auto;
}

/* FORMULARIO */

form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border-radius: 0px;
  outline: none;
  border: none;
  border-bottom: 2px solid #014f28;
  border-radius: 0px;
  transition: all ease-in 0.3s;
  resize: none;
  field-sizing: content;
}

input:hover, textarea:hover {
  outline: none;
  background-color: #c6c6c67b;
}

input::selection, textarea::selection {
  outline: none;
}

button {
  cursor: pointer;
  border: none;
}

/* FOOTER */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}



/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .hero {
    padding: 80px 40px;
  }

  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  #nosotros {
    width: 80%;
  }
}

/* Celulares */
@media (max-width: 576px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  #nosotros {
    width: 95%;
    text-align: justify;
  }

  form {
    width: 90%;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}