/* ──────────────────────────────────────────────────────────────
   Destinos Populares – TIPO CONTENIDO (/hoteles/, /atracciones/...)
   ────────────────────────────────────────────────────────────── */
.pop-wrapper {
  margin: 0 auto 48px;
}
.pop-wrapper h2 {
  margin-bottom: 15px;
  color: #1e293b;
}

/* ──────────────────────────────────────────────────────────────
   Botones prev/next
   ────────────────────────────────────────────────────────────── */
.pop-slider-nav {
  position: absolute;
  left: 0;      /* same as wrapper padding */
  right: 0;     /* same as wrapper padding */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;  /* deja pasar clicks salvo a hijos */
  z-index: 5;            /* encima del slider */
  height: 0;             /* no afecta al layout */
  margin: 0;             /* elimina el margin-bottom previo */
}

/* 02) Restauramos pointer-events solo en los botones */
.pop-prev-btn, .pop-next-btn {
    pointer-events: auto;
    position: absolute;
    background: #fff;
    color: #034f84;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    padding: 7px 16px;
    cursor: pointer;
    z-index: 10;
    font-size: 17px;
    line-height: 1.5;
    border: none;
    outline: none;
    transition: background-color 0.2s, color 0.2s;
}
.pop-prev-btn {
    left: -20px;
}
.pop-next-btn {
    right: -20px;
}
/* Focus: igualar al estado active para evitar reinicio inmediato */
.pop-slider-nav button:focus {
    outline: none;
    background: #fff;
    color: #034f84;
}
/* Hover: estilo normal */
.pop-slider-nav button:hover {
    background-color: #f0f5fa;
    color: #1e293b;
}
/* Active: al hacer clic se oscurece un poco */
.pop-slider-nav button:active {
    background-color: #e0eefb;
    color: #1e293b;
}

/* ──────────────────────────────────────────────────────────────
   Contenedor del slider
   ────────────────────────────────────────────────────────────── */
.pop-slider-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.pop-slider-container::-webkit-scrollbar {
  display: none;
}

.pop-slider-pane {
  display: none;
}
.pop-slider-pane.active {
  display: block;
  position: relative;
}

.pop-tabs-nav ul {
    display: flex;
    gap: 5px;
    margin: 0 0 25px 0;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
    padding: 3px 0;
}

.pop-tabs-nav button {
    white-space: nowrap;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    padding: 10px 16px 12px 16px;
    border: 1.6px solid #dcdfe4 !important;
    background-color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 16px;
    color: #1e293b;
    line-height: 1.05;
    letter-spacing: .05px;
}
.pop-tabs-nav button:hover {
    background-color: #f0f5fa;
    color: #1e293b;
    border: 1.6px solid #cecece;
}
.pop-tabs-nav button.active {
    background-color: #1e293b;
    color: #fff;
    border-color: #1e293b !important;
}

/* ──────────────────────────────────────────────────────────────
   Cada slide
   ────────────────────────────────────────────────────────────── */
.pop-slide {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 4); /* 4 slides + 3 gaps de 16px */
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Imagen con efecto zoom */
.pop-slide img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 0;
}
.pop-slide:hover img {
  transform: scale(1.05);
}

/* Overlay semitransparente para asegurar legibilidad */
.pop-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.46);
  transition: background 0.3s ease;
}
.pop-slide:hover::before {
  background: rgba(0,0,0,0.35);
}

/* Caption centrado */
.pop-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    line-height: 1.2;
    text-shadow: 2px 2px 2px #010a11eb;
    text-transform: uppercase;
    padding: 0px 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 3px;
}
/* Texto line 1 (pequeño) */
.pop-caption {
  font-size: 14.5px;
  font-weight: 700;
}
/* Texto line 2 (grande, el <span>) */
.pop-caption span {
    display: block;
    font-size: 23px;
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: 0.75px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ──────────────────────────────────────────────────────────────
   Responsive: Tablet (600px – 992px) → 2 slides
   ────────────────────────────────────────────────────────────── */
@media (max-width: 992px) and (min-width: 600px) {
    .pop-wrapper {
        padding: 0 15px;
    }
    .pop-slider-nav {
        display: none;
    }
    .pop-slide {
        flex: 0 0 45%;
        margin-right: 4px;
    }
}

/* ──────────────────────────────────────────────────────────────
   Responsive: Móvil (<600px) → 1 slide
   ────────────────────────────────────────────────────────────── */
@media (max-width: 599px) {
    .pop-wrapper {
        padding: 0 15px;
    }
    .pop-slider-nav {
        display: none;
    }
    .pop-slide {
        flex: 0 0 85%;
        margin-right: 4px;
    }
    .pop-slide:only-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}