/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Estilos del header completo */
header {
    width: 100%;
}

/* Banner superior animado */
.top-banner {
    background-color: #C69C37;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 45s linear infinite;
    width: 100%;
    position: relative;
}
.announcement-text:hover {
    animation-play-state: paused;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Contenedor del menú */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #009C55;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Menú de navegación */
.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover {
    background-color: #3a9e43;
    border-radius: 5px;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* Estilos responsive para móviles */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #062227;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 0;
        z-index: 10;
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .logo img {
        height: 50px;
    }
}

/* Footer */
footer {
    background-color: #009A54;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%; /* Asegura que el footer ocupe todo el ancho */
}


footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .subir {
  display: flex;
  align-items: center; /* Centra verticalmente el SVG y el texto */
  justify-content: flex-start; /* Alinea la flecha y el texto a la izquierda */
  text-decoration: none;
  font-size: 16px; /* Ajusta el tamaño de la fuente */
  color: white; /* Asegúrate de que el texto sea blanco si es necesario */
}

footer .subir svg {
  margin-right: 8px; /* Espacio entre la flecha y el texto */
}

footer .social-links a img {
    width: 40px;
    transition: transform 0.3s ease-in-out;
}

footer .social-links a img:hover {
    transform: scale(1.2);
}

footer .footer-menu ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 20px;
}

footer .footer-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

footer .credits {
    margin-top: 15px;
}

footer .credits a {
    color: #fff;
    text-decoration: underline;
}

/* Estilo para el botón flotante */
footer  .whatsapp-button {
  position: fixed;
  bottom: 20px; /* Ajusta la distancia desde la parte inferior */
  right: 20px; /* Ajusta la distancia desde el borde derecho */
  background-color: #25D366; /* Fondo verde de WhatsApp */
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000; /* Asegura que el botón se quede encima de otros elementos */
}

footer  .whatsapp-button:hover {
  transform: scale(1.1); /* Efecto al pasar el mouse sobre el botón */
}

/* Si usas una imagen en lugar del SVG */
footer .whatsapp-button img {
  width: 48px;
  height: 48px;
}