/* Contenedor principal */
.elementor-element-ddf3177 {
  overflow: hidden;
  position: relative;
  height: auto !important;
  width: 100%;
  max-width: 100vw;
}

/* Contenedor de posts */
.elementor-element-ddf3177 .elementor-posts-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.5s ease-out;
  max-width: 100%;
  padding: 0 20px;
}

/* Ajustar tamaño de los artículos */
.elementor-element-ddf3177 .elementor-post {
  flex: 0 0 calc((100% / 3) - 14px) !important;
  width: calc((100% / 3) - 14px) !important;
  margin: 0 !important;
  padding: 0;
}

/* Estado cuando está visible */
.elementor-element-ddf3177 .elementor-posts-container.is-visible {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .elementor-element-ddf3177 {
    padding: 0;
    overflow: visible;
  }

  .elementor-element-ddf3177 .elementor-posts-container {
    flex-direction: column !important;
    gap: 20px;
    padding: 0 15px;
    transform: none;
  }

  .elementor-element-ddf3177 .elementor-post {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  /* Desactivar la animación en móvil */
  .elementor-element-ddf3177 .elementor-posts-container {
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .elementor-element-ddf3177 .elementor-post {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
  }
}
