/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  color: #000;
  background-color: #fff; /* fondo blanco */
  background-image: none;  /* elimina cualquier fondo heredado */
  line-height: 1.5;
}

/* ================= HEADER y NAVBAR ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .logo img {
  height: 100px;   /* igual que en otras páginas */
  width: auto;
  display: block;
  filter: none;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;                
  padding: 0;
}

header nav a {
  color: #002c80;           /* azul uniforme */
  text-decoration: none;
  font-size: 22px;          
  transition: 0.3s;
}

header nav a:hover {
  opacity: 0.7;
}

header nav a.activo {
  border-bottom: 3px solid #002c80;
  padding-bottom: 5px;
  background-color: transparent;
  border-radius: 0;
}

header nav a.btn-contacto {
  background-color: #002c80; /* Fondo azul uniforme */
  color: #fff;               /* Texto blanco */
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

header nav a.btn-contacto:hover {
  background-color: #001a4d; /* Azul más oscuro al pasar el mouse */
}

/* 📱 Responsive Header */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  header .logo img {
    height: 80px;
  }

  header nav ul {
    gap: 15px;
  }

  header nav a {
    font-size: 16px;
  }

  header nav a.btn-contacto {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* ================= HERO SECTION ================= */
.contacto-hero {
  position: relative;
  height: 60vh;  /* ocupa 60% del alto de la ventana */
  background: url('../images/contacto23.jpg') no-repeat center center/contain;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background-color: #fff; /* fallback */
}

.contacto-container {
  position: relative;
  display: flex;
  gap: 50px;
  background: rgba(255, 255, 255, 0.85); /* semitransparente */
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  z-index: 2;
}

.contacto-info {
  flex: 1;
  text-align: center;
}

.contacto-info img {
  width: 120px;
  margin-bottom: 20px;
}

.contacto-info h2 {
  font-size: 2em;
  color: #201c4c;
  margin-bottom: 10px;
}

.contacto-info p {
  color: #555;
}

/* ================= FORMULARIO ================= */
.formulario {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario input,
.formulario textarea {
  background-color: #fff;
  color: #000;  
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.formulario button {
  background: #201c4c;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.formulario button:hover {
  background: #001a4d;
}

.formulario .nota {
  font-size: 0.8em;
  color: #333;
}

/* ================= FOOTER ================= */
footer {
  background: #201c4c;
  color: #fff;
  padding: 90px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.social a img {
  width: 30px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 10px;
  font-size: 0.9em;
}
.footer-container .social a img {
  width: 50px;   /* ancho deseado */
  height: 50px;  /* alto deseado */
  margin-right: 10px; /* separación entre iconos */
  vertical-align: middle; /* alinea con el texto si hay */
  transition: transform 0.3s; /* para efectos hover */
}

.footer-container .social a img:hover {
  transform: scale(1.1); /* efecto hover */
}
@keyframes titilar {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

footer a.titilar {
  color: #dde0e4; /* Azul claro */
  font-weight: bold;
  animation: titilar 1s infinite;
}
/* ================= RESPONSIVE HERO & FORMULARIO ================= */
@media (max-width: 1024px) {
  .contacto-hero {
    height: 50vh;
  }
  .contacto-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contacto-hero {
    height: 40vh;
    padding: 20px;
  }

  .contacto-container {
    gap: 15px;
    padding: 15px;
  }

  .contacto-info h2 {
    font-size: 1.5em;
  }

  .contacto-info p {
    font-size: 0.9em;
  }
}
