/* ========================================================================
   components.css — Tarjetas más grandes y sin esquinas redondeadas
   ======================================================================== */
.region-card {
  position: relative;
  background-color: #ddd;     /* fallback si no hay imagen */
  background-size: cover;
  background-position: center center;
  border-radius: 0 !important;   /* anula cualquier redondeo */
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 450px;                /* ajústalo al alto que quieras */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .region-card {
    height: 300px;            /* menor alto en móvil */
  }
}

/* Overlay semitransparente centrado */
.region-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  text-align: center;
  color: #fff;
  border-radius: 0 !important;  /* por si lo aplicara el tema */
}

/* Texto */
.region-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.region-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 90%;
}

/* ==========================================================================
   EFECTO GLOBAL DE ZOOM + HOVER PARA TODAS LAS .region-card + .noticia-card
   ========================================================================== */
/* 1) Contexto y overflow oculto */
.wp-block-cover.region-card,
.region-card,
.noticia-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 2) Transición suave sobre la imagen de fondo (Cover block) */
.region-card .wp-block-cover__image-background {
  transition: transform 0.6s ease;
  transform-origin: center center;
}

/* 3) Zoom interno en hover */
.region-card:hover .wp-block-cover__image-background {
  transform: scale(1.1);
}

/* 4) Prepara inner-container para centrar contenido */
.region-card .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

/* 5) Título y descripción listos para animarse */
.region-card .region-title,
.noticia-card h2 {
  margin: 0;
  transition: transform 0.3s ease;
}
.region-card .region-description,
.noticia-card p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 6) En hover, levanta el título y revela la descripción */
.region-card:hover .region-title,
.noticia-card:hover h2 {
  transform: translateY(-10px);
}
.region-card:hover .region-description,
.noticia-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== 
   TODA LA TARJETA HACIA CLICKABLE 
   ========================================================================== */
.noticia-card > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ========================================================================== 
   DESHABILITA TODOS LOS CLICKs INTERNOS PARA QUE NO BLOQUEEN
   ========================================================================== */
.wp-block-cover.region-card .region-title a:nth-of-type(2),
.wp-block-cover.region-card .region-description a {
  pointer-events: none;
}

/* al final de assets/css/components.css */
.ast-container {
  /* fuerza que las líneas en un flex-wrap empiecen arriba */
  align-content: flex-start !important;
  /* fuerza que los items individuales se alineen al tope */
  align-items: flex-start !important;
}

/* forzar que el sidebar se pegue al principio */
#sidebar-lateral {
  align-self: flex-start; /* en el eje transversal del .ast-container */
}

/* ==========================================================================
   Carrusel social – diseño fluido, scroll automático, íconos escalables
   ========================================================================== */

.social-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  margin: 3rem 0;
  padding: 1rem 0;
}

.social-carousel .social-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

.social-carousel .social-list li {
  flex: 0 0 20%; /* 5 íconos visibles en desktop */
  box-sizing: border-box;
  overflow: visible;
}

.social-carousel .social-list img {
  display: block;
  height: 100%;         /* altura máxima en contenedor */
  max-height: 50px;     /* límite visual en desktop/tablet */
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  margin: 0.5rem auto;
}

.social-carousel .social-list a:hover img {
  filter: none;
  transform: scale(1.1);
}

/* 📱 Ajustes responsivos para móviles */
@media (max-width: 767px) {
.social-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  margin: 3rem 0;
  padding: 1rem 0;
}

.social-carousel .social-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

.social-carousel .social-list li {
  flex: 0 0 60%; /* 5 íconos visibles en desktop */
  box-sizing: border-box;
  overflow: visible;
}

.social-carousel .social-list img {
  display: block;
  height: 100%;         /* altura máxima en contenedor */
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  margin: 0.5rem auto;
}

.social-carousel .social-list a:hover img {
  filter: none;
  transform: scale(1.1);
}

/* ==============================================================
   Centrar títulos e imágenes destacadas en single {noticia,fiesta,alojamiento}
   ============================================================== */
/* Títulos */
.single-noticia__header,
.single-fiesta__header,
.single-alojamiento__header {
  text-align: center;
}

/* Contenedor de la imagen destacada */
.single-noticia__thumb,
.single-fiesta__thumb,
.single-alojamiento__thumb {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem; /* 2rem separación inferior */
}

/* Que la propia imagen responda bien */
.single-noticia__thumb img,
.single-fiesta__thumb img,
.single-alojamiento__thumb img {
  max-width: 100%;
  height: auto;
  display: block;
}