/* HEADER FIJO CON TRANSPARENCIA */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--color-fondo);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    


/* Para evitar que el contenido quede detrás del header */
body {
    padding-top: 0px; /* Ajustar según la altura del header */
}

/* MENÚ PRINCIPAL */


.custom-logo{
    height: 50px;
    width: auto;
}

header a{
    color: var(--color-texto);
}

header a:hover{
    color: var(--color-secundario);
}

a:visited{
    color: #000000;
}




/* Clase para el enlace activo */
.main-navigation a.active {
  color: var(--color-secundario);
  font-weight: bold;
  border-bottom: 2px solid var(--color-secundario);
}

/* 🔔 Mensaje de promoción animado */
.mensaje {
  height: 40px; /* aumenté un poco la altura para mejor visibilidad */
  position: relative;
  overflow: hidden;
  background: #d9ff00;
  color: #721c24;
  padding: 10px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto animado que se mueve horizontalmente */
.mensaje::before {
  content: attr(data-text);
  position: absolute;
  white-space: nowrap;
  animation: mover 30s linear infinite;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}

/* Animación de desplazamiento horizontal */
@keyframes mover {
  0%   { left: 100%; }
  100% { left: -100%; }
}

/* 🛑 OPCIONAL: Detener al hacer hover */
.mensaje:hover::before {
  animation-play-state: paused;
}

