.footer-top {
  margin-top: calc(var(--footer-h, 0px) - 100px);
}

section {
  z-index: 10;
}

.footer-camiones {
  z-index: 10 !important;
}

.footer-info {
  position: fixed;
  /* siempre fijo abajo */
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  z-index: 1 !important;
  /* debajo de todo */
  xmax-height: 800px;

}

.footer-izquierda {
  background: var(--tramaco-blue-dark);
  padding-top: 160px;
  min-height: 850px;
}

.footer-derecha {
  background: var(--tramaco-blue-light);
  padding-top: 160px;
  min-height: 850px;
}

.fondo-footer-degradado {
  box-shadow: 0px 10px 15px -5px rgba(0, 0, 0, 0.4);
}

.footer-iconos {
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo-movil {
  max-width: 80%;
  margin: 0 auto;
}

.footer-derecha-ta {
  width: 80%;
  margin: 0 auto;
}

.footer-iconos {
  gap: 1.7rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
  padding: 0px;
}

.footer-info-direccion {
  text-align: center;
}

.footer-info-direccion p {
  color: var(--tramaco-white);
}

.footer-copyright {
  color: var(--tramaco-white);
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
  /* quita viñetas */
  padding: 0;
  margin: 0;
}

.color-suscripcion {
  color: var(--tramaco-blue-dark);
}

.footer-links li {
  margin-bottom: 3rem;
  /* separación entre items */
  text-align: left;
}

.footer-links a {
  color: var(--tramaco-white);
  text-decoration: none;
  /* sin subrayado */
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--tramaco-white);
  /* usa variable si existe */
  transform: translateX(3px);
  /* efecto sutil de movimiento */
}

.footer-white-line-divider {
  height: 1px;
  background-color: white;
  margin: 20px 0;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.footer-radius {
  border-radius: 0 0 150px 150px;
}

/* Posicionamiento flotante del widget principal */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* Posicionado en la parte IZQUIERDA inferior */
  z-index: 1000;
}

/* Estilo del botón flotante de WhatsApp (Ahora es un LABEL) */
.whatsapp-float-btn {
  /* Estilo del círculo verde y el icono */
  display: flex;
  /* Asegura que el ícono esté centrado */
  justify-content: center;
  align-items: center;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;

  /* Para el efecto "vibrante" */
  animation: pulse 1.5s infinite;
}

.whatsapp-float-btn-icon {
  position: relative;
  left: -5px;
  display: flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  transition: transform 0.3s ease;
  animation: pulse 1.5s infinite;
  justify-content: center;
}

/* Animación de pulso para el botón */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Contenedor del menú desplegable */
.chat-options-box {
  position: absolute;
  bottom: 80px;
  /* Separación del botón flotante */
  right: 0;
  width: 250px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  padding: 10px;

  /* ESTADO OCULTO PREDETERMINADO (sin JavaScript) */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  /* Deshabilita clics cuando está oculto */
}

/* --- LÓGICA DE VISIBILIDAD SOLO CON CSS --- */
/* Cuando el checkbox está :checked, selecciona el elemento .chat-options-box 
   que está después y lo muestra */
.whatsapp-toggle:checked~.chat-options-box {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* Habilita clics cuando está visible */
}

/* Estilo del encabezado de la lista */
.options-header {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  padding: 10px 15px;
  text-align: center;
  margin-bottom: 5px;
}

/* Estilo de cada opción/botón */
.option-item {
  display: flex;
  align-items: center;
  /*padding: 12px 15px;*/
  margin-bottom: 10px;
  border-radius: 20px;
  background-color: #f5f5f5;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.option-item:hover {
  background-color: #e0e0e0;
}

.option-item i {
  color: #25D366;
  margin-right: 10px;
  font-size: 20px;
}

.img-icono-whatsapp {
  width: 25px;
  height: 25px;
}


@media screen and (max-width: 768px) {
  .footer-info {
    position: relative;
    z-index: 1;
    /* debajo de la imagen */
    background: #002060;
    color: #fff;
    margin-top: -40px;
    /* punto de partida */
    xtransition: margin-top 0.1s linear;
    /* movimiento suave */
  }

  .footer-izquierda {
    background: var(--tramaco-blue-dark);
    padding-top: 50px;
    min-height: 450px;
  }

  .footer-derecha {
    background: var(--tramaco-blue-light);
    padding-top: 20px;
    padding-bottom: 200px;
    min-height: 450px;
  }


  img {
    height: auto;
    max-width: 100%;
  }

  .footer-copyright {
    color: var(--tramaco-white);
    font-size: 1rem !important;
    padding: 0 10px;
  }

  .footer-radius {
    border-radius: 0 0 40px 40px;
  }

  .footer-top {
    margin-top: 0px;
  }

  .whatsapp-float-btn {

    position: relative;
    width: 40px;
    height: 40px;
    bottom: 140px;

  }

  .chat-options-box {

    bottom: 190px;

  }

}