/* Efecto gravedad para el logo */
@keyframes gravity-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(8px); } /* baja */
  50%  { transform: translateY(-4px); } /* rebote hacia arriba */
  70%  { transform: translateY(2px); }  /* rebote más pequeño */
  100% { transform: translateY(0); }    /* vuelve a la posición original */
}

.custom-logo {
  display: inline-block;      /* necesario para animaciones */
  animation: gravity-bounce 2s ease-in-out infinite;
  transition: transform 0.3s;
}
/* 🌐 Estilo base del menú */
.wp-block-navigation a {
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/* ✨ Efecto de brillo y zoom al pasar el mouse */
.wp-block-navigation a:hover {
  text-shadow: 0 0 15px rgba(0, 64, 128, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: scale(1.17);
  color: #000080 !important;
}
 

/* 🌫️ Sombra gris debajo del menú de navegación */
.wp-block-navigation,
.wp-block-navigation__container {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}
/* 🌫️ Sombra difusa estilo flotante en todo el texto del footer */
footer p,
footer a,
footer span,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff; /* color del texto */
  text-shadow: 0px 6px 10px rgba(0, 0, 0, 0.35); /* sombra difusa estilo flotante */
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* 💡 Efecto sutil al pasar el mouse */
footer a:hover,
footer p:hover,
footer span:hover {
  text-shadow: 0px 8px 14px rgba(0, 0, 0, 0.45);
  color: #000080; /* color azul brillante al hover (ajustalo si querés otro) */
}
/* ✨ Efecto 3D con sombra difusa gris para todos los encabezados del sitio */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff; /* color del texto, podés cambiarlo si tu fondo es claro */
  text-shadow:
    0px 3px 4px rgba(50, 50, 50, 0.6),
    0px 6px 8px rgba(0, 0, 0, 0.4); /* efecto de profundidad */
  transition: text-shadow 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* 💡 Animación sutil tipo "flotante" al pasar el mouse */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
  text-shadow:
    0px 4px 6px rgba(80, 80, 80, 0.7),
    0px 8px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px); /* leve elevación */
}


/* Al hacer scroll, el header se achica levemente */
header.scrolled {
  background-color: #003366;
  padding: 5px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ====== ANIMACIÓN SUAVE AL CARGAR ====== */
header, .main-navigation, .site-logo img {
  animation: fadeInHeader 1s ease forwards;
  opacity: 0;
}
@keyframes fadeInHeader {
  to {opacity: 1;}
}
/* Efecto zoom en el ítem del menú activo */
.current-menu-item a,
.current_page_item a {
  transform: scale(1.35);
  transition: transform 0.4s ease, color 0.3s ease;
  color: #004080 !important; /* azul de tu sitio */
}

/* Suaviza los otros ítems */
.menu a {
  transition: transform 0.4s ease;
}

/* Opcional: también puedes hacer que cambie ligeramente el color al pasar */
.menu a:hover {
  transform: scale(1.1);
}
/* Estilo general */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background-color: #004080;
  padding: 8px 0;
  font-size: 15px;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: #ffffff;
}

/* 🔹 En móvil: mostrar solo los iconos, sin texto */
@media (max-width: 768px) {
  .top-bar .text {
    display: none;
  }

  .top-bar {
    font-size: 20px;
    justify-content: space-around;
  }
}
/* 🔹 Estilo general de la barra superior */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Espaciado entre íconos */
  background-color: #004080;
  padding: 6px 0;
  font-size: 15px;
  color: white;
  flex-wrap: wrap;
}

/* 🔹 Enlaces */
.top-bar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

.top-bar a:hover {
  transform: scale(1.1);
}

/* 🔹 En pantallas móviles: solo iconos, bien centrados */
@media (max-width: 768px) {
  .top-bar {
    font-size: 22px;
    padding: 10px 0;
    justify-content: space-evenly; /* Distribuye los iconos */
  }

  .top-bar .text {
    display: none; /* Oculta el texto, deja solo iconos */
  }

  /* Evita que tape el menú principal */
  .top-bar {
    position: relative;
    z-index: 1000;
  }

  header, .site-header {
    margin-top: 0 !important;
  }
}