* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* BARRA */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 40px;
  background-color: #000;
  color: #fff;
}

.logo img {
  height: 70px;
}

.nav-links a {
  color: white;
  margin-left: 40px;
  text-decoration: none;
  font-weight: lighter;
}

.nav-links a:hover {
  text-decoration: underline;
}

.contacto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-image: url("img1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    background-blend-mode: multiply; 
}

.info-contacto {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    color: #474b4e;
    padding: 30px;
}

.info-contacto img {
    width: 400px; 
    margin-bottom: 15px;
}

.info-contacto h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.info-contacto p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.btn-contacto {
    background-color: white;
    color: #b71c1c;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn-contacto:hover {
    background-color: #fff3f3; 
}


.formulario-contacto {
    width: 55%;
    background-color: #eeeeee;
    padding: 30px;
    border-radius: 10px;
}

.formulario-contacto h2 {
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #b71c1c;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

button:hover {
    background-color: #8a1313;
}

/* FOOTER */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #111;
    color: white;
    padding: 20px;
    text-align: center;
    clear: both;
    margin-top: auto;
}

/* --- RESPONSIVE --- */
@media (min-width: 1025px) {
  .nav-links .icon-link {
    margin-left: 8px;
    margin-right: 8px;
    padding: 0;
  }

  .nav-links .icon-link i {
    margin: 0;
    font-size: 18px;
    vertical-align: middle;
  }
  .nav-links .first-icon {
    margin-left: 40px;
  }
}

@media (max-width: 1024px) {
    .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }
  .contacto .info-contacto img {
    width: 180px;
  }

  .contacto .info-contacto p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
    .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .logo img {
    height: 60px;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
  }
.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 15px;
}

.info-contacto,
.formulario-contacto {
  width: 100%;
  max-width: 500px;
}

.formulario-contacto {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.formulario-contacto button {
  width: 100%;
  padding: 12px;
  background: darkred;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
}

.formulario-contacto button:hover {
  background: #cc0000;
}