/* Contenedor del carrusel */
.aviso-carrusel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px; /* espacio interior para flechas */
  box-sizing: border-box;
}

/* Carrusel */
.aviso-carrusel {
  width: 100%;
}

/* Flechas Swiper */
.aviso-carrusel .swiper-button-prev,
.aviso-carrusel .swiper-button-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.5);
  color: #007aff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Triángulos de flechas */
.aviso-carrusel .swiper-button-prev::after,
.aviso-carrusel .swiper-button-next::after {
  font-size: 30px;
  font-weight: bold;
  color: #007aff;
}

/* Posiciones */
.aviso-carrusel .swiper-button-prev {
  left: 10px;
}

.aviso-carrusel .swiper-button-next {
  right: 10px;
}


/* === IMAGEN DEL AVISO === */
.aviso-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* === TÍTULO DEL AVISO === */
.aviso-carrusel h3 {
  font-size: 1rem;
  margin: 0.5rem auto;
  padding: 0 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* === FILTROS === */
.aviso-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 1100px;
  padding: 0 16px;
}

.aviso-filtros label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  min-width: 160px;
}

.aviso-filtros select {
  font-size: 0.95rem;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 200px;
  width: 100%;
  box-sizing: border-box;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .aviso-carrusel-wrapper {
    padding: 0 10px;
  }

  .aviso-carrusel .swiper-button-prev,
  .aviso-carrusel .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .aviso-carrusel .swiper-button-prev::after,
  .aviso-carrusel .swiper-button-next::after {
    font-size: 20px;
  }

  .aviso-carrusel h3 {
    font-size: 0.9rem;
  }

  .aviso-filtros {
    flex-direction: column;
    align-items: stretch;
  }

  .aviso-filtros label {
    width: 100%;
  }

  .aviso-filtros select {
    max-width: 100%;
  }
}

.single-aviso h1.aviso-tituloint {
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  margin-bottom: 12px;
}

.single-aviso img.wp-post-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.aviso-titulo {
  font-size: 1.1rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin: 8px 0 4px;
}

.vendido-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(200, 0, 0, 0.65);
  color: #fff;
  padding: 6px 12px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 20;
  text-transform: uppercase;
}

/* Reducir altura total del header en Blocksy */
.ct-header,
.ct-header [data-row="middle"] .ct-container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: 40px !important;
}

/* Reducir tamaño vertical del título del sitio */
.site-title a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
    font-size: 20px !important; /* Si quieres más chico, baja esto */
}

/* Reducir altura del enlace del menú */
.header-menu-1 .menu > li > a {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.1 !important;
    font-size: 15px !important;
}

/* Asegurar que la fila NO herede un alto enorme */
.ct-header [data-row="middle"] {
    min-height: 0 !important;
}

