/* Wrapper principal */
.posts-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 580px;
}

/* Contenedor de slides */
.posts-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Slide */
.post-slide {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 580px;
  position: relative;
}

/* Overlay */
.slide-content {
	position: relative;
  left: 0;
  bottom: 0;
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

/* Contenedor categoría + edición */
.slide-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Categoría */
.slide-category {
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  background-color: rgba(255,255,255,0.1);
  color: white;
  max-width: fit-content;
}

/* Edición */
.slide-related {
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  color: white;
}

/* Título */
.slide-content h2 {
  font-family: Montserrat;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  color: white;
  margin: 10px 0 0;
}

/* Extracto */
.slide-content .post-excerpt {
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.90);
  margin-top: 20px;
  max-width: 900px;
}

/* Dots */
.contenedor-controles-dots .posts-dots {
  position: absolute;
  bottom: 20px;
  z-index: 10;
}

.posts-dots button {
  border: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  cursor: pointer;
}

.posts-dots button.active {
  background: #fff;
}

/* Flechas (estilo de galeria-slider-compacto) */
.slide-content .galeria-controles {
  position: absolute;
  top: 40px;
  right: 0;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.galeria-controles button {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  padding: 0;
  width: 60px;
  height: 60px;
  border-radius: 100px;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-controles img {
  width: 32px;
  height: 32px;
}


@media (max-width: 768px) {
  .posts-carousel {
    height: 80vh;
    border-radius: 16px;
  }

  .post-slide {
    height: 80vh;
  }

  .slide-content {
    padding: 24px;
  }

  .slide-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .slide-category {
    font-size: 13px;
    padding: 5px 12px;
  }

  .slide-related {
    font-size: 13px;
	  margin-left: 0 !important;
  }

  .slide-content h2 {
    font-size: 24px;
    line-height: 130%;
    margin-top: 10px;
  }

  .slide-content .post-excerpt {
    font-size: 16px;
    margin-top: 16px;
    max-width: 100%;
  }

  .galeria-controles {
    top: 20px;
    right: 20px;
    gap: 8px;
  }

  .galeria-controles button {
    width: 48px;
    height: 48px;
  }

  .galeria-controles img {
    width: 24px;
    height: 24px;
  }

  .posts-dots {
    bottom: 16px;
    left: 20px;
  }

  .posts-dots button {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

.contenedor-controles-dots .galeria-controles {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-right: 0px;
	top: 40px;
	right: 0;
}

.galeria-controles button {
  width: 46px;
  height: 46px;
  border: 1px solid #8BB733;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease-in-out;
}

.galeria-controles button svg {
  width: 20px;
  height: 18px;
}

.galeria-controles button svg path {
  stroke: #ffffff;
  transition: stroke 0.3s ease-in-out;
}

.galeria-controles button:hover {
  background: #ffffff;
}

.galeria-controles button:hover svg path {
  stroke: #004EA8;
}

/* Rotar solo la flecha izquierda */
.posts-prev svg {
  transform: rotate(180deg);
}

.contenedor-controles-dots {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
	pointer-events: none;
}

.galeria-controles button,
.posts-dots button {
  pointer-events: auto; /* <--- esto permite clics solo en los botones */
}


@media (max-width: 768px) {
  .slide-category {
    font-size: 13px !important;
    padding: 4px 10px !important;
  }

  .slide-related {
    font-size: 13px !important;
  }

  .slide-content h2 {
    font-size: 22px !important;
    line-height: 130% !important;
    margin-top: 8px !important;
  }

  .slide-content .post-excerpt {
    font-size: 15px !important;
    line-height: 135% !important;
    margin-top: 14px !important; 
  }

  .galeria-controles button svg {
    width: 18px !important;
    height: 16px !important;
  }

  .galeria-controles button {
    width: 42px !important;
    height: 42px !important;
  }
	.contenedor-controles-dots .galeria-controles{
		right: 10px;
		top: 10px;
	}
}









