/* Estilos generales */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Arimo", sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 70px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 9999;
}
.logo img {
  height: 50px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
nav ul li a {
  text-decoration: none;
  color: #002d72;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #c8102e;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #ccc;
  }
  .nav-links.show {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-left: 20px;
  }
}

/* Language selector */
.language-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Arimo", sans-serif;
}
.language-dropdown button {
  background: none;
  border: 2px solid #002d72;
  color: #002d72;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-menu {
  position: absolute;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.lang-menu li img {
  width: 20px;
  height: auto;
  border-radius: 3px;
}
.lang-menu li:hover {
  background-color: #f0f0f0;
}
.hidden {
  display: none;
}

/* HEADER */
header.banner {
  background: url("../img/contacto.jpg") no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
header.banner h1 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
}
.zoom-lines .line {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.6s ease-out forwards;
  animation-delay: var(--delay);
}
@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* CONTACTO */

section {
  padding: 60px 20px;
}
h2 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #002d72;
  border-bottom: 3px solid #c8102e;
  padding-bottom: 10px;
  margin-bottom: 30px;
  text-align: center;
}
/* Clase para quitar la línea divisoria en títulos específicos */
h2.no-border {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 30px;
}
p.section-desc {
  font-size: 1.2rem;
  color: #444;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

#contacto form {
  background-color: #002d72;
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
}
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
form button {
  background-color: #c8102e;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
form button:hover {
  background-color: #8a0b1a;
}

/* FRASE DESTACADA */
.highlight {
  background-color: #0057b8;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.highlight p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* FOOTER */
footer {
  background-color: #111;
  color: #eee;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95rem;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}
.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  margin: 5px 0;
  display: block;
}
.footer-column a:hover {
  color: #fff;
}
.footer-column strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}
.footer-bottom {
  margin-top: 30px;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    align-items: center;
  }
}
.mensaje-estado {
  display: none;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 20px;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.mensaje-exito {
  background-color: #28a745;
  color: white;
}

.mensaje-error {
  background-color: #dc3545;
  color: white;
}

.mensaje-oculto {
  opacity: 0;
}
