/* Estilos del encabezado */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  margin-bottom: 10px;
}

.logo img {
  height: 80px;
  margin-bottom: 10px;
}

.slogan {
  font-size: 1.1em;
  color: #003366;
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.contact-info {
  margin-top: 5px;
}

.phone-number {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

/* Menú de navegación */
.header-nav {
  width: 100%;
  margin-top: 15px;
}

nav {
  width: 100%;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0 auto;
  padding: 10px 20px;
  max-width: 1200px;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Estilos para los íconos del menú */
.menu i {
  font-size: 1.1em;
  width: 20px;
  text-align: center;
}

/* Estilos para los enlaces de redes sociales en el menú */
.menu-social-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
  padding: 0 10px;
}

.menu-social-links a {
  color: #333;
  font-size: 1.1em;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-social-links a:hover {
  background-color: #f0f0f0;
  color: #003366;
  transform: translateY(-2px);
}

nav a:hover,
nav a.active {
  color: #003366;
  background-color: rgba(0, 51, 102, 0.1);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #003366;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Estilos del menú móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #003366;
  padding: 5px 10px;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  nav.active {
    max-height: 500px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .social-links {
    justify-content: center;
    padding: 15px 0;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

/* Estilos del pie de página */
footer {
  background-color: #f8f9fa;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.footer-column p {
  margin: 10px 0;
  color: #555;
  line-height: 1.5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #003366;
}

.social-links {
  display: flex;
  gap: 12px;
  margin: 15px 0;
  padding: 0 15px;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
  border-radius: 50%;
  background-color: #f0f0f0;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  background-color: #e0e0e0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #003366;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #003366;
  color: white;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #dee2e6;
  margin-top: 30px;
  color: #6c757d;
  font-size: 0.9em;
  width: 100%;
}

.copyright .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright p {
  margin: 5px 0;
}

.footer-bottom a {
  color: #003366;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}