/* =========================================================
   VENUE HERO PANEL
   ========================================================= */

.venue-hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 0 3.5rem;
}

.venue-hero-panel__bg,
.venue-hero-panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.venue-hero-panel__bg {
  background-image: url("/assets/img/home/home-sede-palenque.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -3;
}

.venue-hero-panel__overlay {
  background:
    linear-gradient(180deg, rgba(54, 31, 17, 0.46) 0%, rgba(42, 25, 16, 0.34) 100%),
    rgba(92, 58, 34, 0.32);
  z-index: -2;
}

.venue-hero-panel__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-hero-panel__badge {
  width: min(100%, 960px);
  margin: 0 auto 3.2rem;
  padding: 1.2rem 2rem 1.45rem;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.venue-hero-panel__eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.venue-hero-panel__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.venue-hero-panel__card {
  width: min(100%, 640px);
  margin: 0;
  margin-right: auto;
  padding: 2.6rem 2rem 2.4rem;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.venue-hero-panel__card p {
  margin: 0 0 1.7rem;
  color: var(--color-text);
  font-size: clamp(1.08rem, 1.3vw, 1.45rem);
  line-height: 1.34;
}

.venue-hero-panel__card p:last-child {
  margin-bottom: 0;
}

.venue-hero-panel__card strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* -------------------------
   TABLET
   ------------------------- */

@media (max-width: 1100px) {
  .venue-hero-panel {
    min-height: auto;
    padding: 2.4rem 0 3.4rem;
  }

  .venue-hero-panel__bg {
    background-attachment: scroll;
  }

  .venue-hero-panel__overlay {
    background:
      linear-gradient(180deg, rgba(54, 31, 17, 0.38) 0%, rgba(42, 25, 16, 0.28) 100%),
      rgba(92, 58, 34, 0.24);
  }

  .venue-hero-panel__badge {
    width: min(100%, 760px);
    margin-bottom: 2rem;
    padding: 1rem 1.4rem 1.15rem;
  }

  .venue-hero-panel__title {
    font-size: clamp(2.2rem, 7vw, 4.4rem);
  }

  .venue-hero-panel__card {
    width: min(100%, 760px);
    margin-right: auto;
    padding: 2rem 1.5rem;
    border-radius: 34px;
  }

  .venue-hero-panel__card p {
    font-size: 1.08rem;
    line-height: 1.42;
  }
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 700px) {
  .venue-hero-panel {
    padding: 1.6rem 0 2.6rem;
  }

  .venue-hero-panel__bg {
    background-attachment: scroll;
    background-position: center center;
  }

  .venue-hero-panel__overlay {
    background:
      linear-gradient(180deg, rgba(54, 31, 17, 0.28) 0%, rgba(42, 25, 16, 0.22) 100%),
      rgba(92, 58, 34, 0.16);
  }

  .venue-hero-panel__badge {
    width: 100%;
    margin-bottom: 1.4rem;
    padding: 0.95rem 1rem 1rem;
    border-radius: 32px;
  }

  .venue-hero-panel__eyebrow {
    font-size: 0.88rem;
  }

  .venue-hero-panel__title {
    font-size: clamp(1.9rem, 10vw, 3rem);
    line-height: 1;
  }

  .venue-hero-panel__card {
    width: 100%;
    margin-right: auto;
    padding: 1.35rem 1rem;
    border-radius: 28px;
  }

  .venue-hero-panel__card p {
    margin-bottom: 1.05rem;
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* =========================================================
   PLACES CAROUSEL SECTION
   ========================================================= */

.places-carousel-section {
  padding: 4.8rem 0 4.4rem;
}

.places-carousel-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.places-carousel-section__badge {
  width: min(100%, 520px);
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.places-carousel-section__intro {
  max-width: 760px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.35;
}

/* =========================
   CAROUSEL
   ========================= */

.places-carousel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 1rem;
}

.places-carousel__viewport {
  overflow: hidden;
}

.places-carousel__track {
  display: flex;
  gap: 1.6rem;
  will-change: transform;
}

.places-carousel__nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.places-carousel__nav:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.places-carousel__nav i {
  font-size: 1.8rem;
  line-height: 1;
}

/* =========================
   PLACE CARD
   ========================= */

.place-card {
  position: relative;
  flex: 0 0 min(100%, 340px);
  display: block;
  min-height: 420px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  color: inherit;
}

.place-card__media,
.place-card__overlay {
  position: absolute;
  inset: 0;
}

.place-card__media {
  margin: 0;
}

.place-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.place-card__overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.25rem;
  background:
    linear-gradient(
      to top,
      rgba(67, 176, 42, 0.92) 0%,
      rgba(67, 176, 42, 0.72) 22%,
      rgba(67, 176, 42, 0.18) 55%,
      rgba(67, 176, 42, 0.02) 100%
    );
}

.place-card__base,
.place-card__hover {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.place-card__base {
  opacity: 1;
  transform: translateY(0);
}

.place-card__hover {
  position: absolute;
  inset: auto 1.25rem 1.4rem 1.25rem;
  opacity: 0;
  transform: translateY(14px);
}

.place-card__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 1.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}

.place-card__text {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  line-height: 1.4;
}

.place-card:hover .place-card__image,
.place-card:focus-visible .place-card__image {
  transform: scale(1.04);
}

.place-card:hover .place-card__base,
.place-card:focus-visible .place-card__base {
  opacity: 0;
  transform: translateY(-12px);
}

.place-card:hover .place-card__hover,
.place-card:focus-visible .place-card__hover {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) {
  .places-carousel-section {
    padding: 4rem 0 3.6rem;
  }

  .places-carousel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.7rem;
  }

  .place-card {
    flex-basis: min(100%, 300px);
    min-height: 380px;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
  .places-carousel-section {
    padding: 3.6rem 0 3rem;
  }

  .places-carousel-section__head {
    margin-bottom: 1.5rem;
  }

  .places-carousel-section__badge {
    width: 100%;
  }

  .places-carousel-section__intro {
    font-size: 1rem;
    line-height: 1.4;
  }

  .places-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0.45rem;
  }

  .places-carousel__nav {
    width: 40px;
    height: 40px;
  }

  .places-carousel__nav i {
    font-size: 1.2rem;
  }

  .place-card {
    flex-basis: 250px;
    min-height: 320px;
  }

  /* En móvil mejor mostrar texto fijo sin depender de hover */
  .place-card__base {
    opacity: 0;
  }

  .place-card__hover {
    opacity: 1;
    transform: none;
    position: absolute;
    inset: auto 1rem 1rem 1rem;
  }

  .place-card__title {
    font-size: 1.15rem;
  }

  .place-card__text {
    font-size: 0.9rem;
    line-height: 1.35;
  }
}

/* =========================
   PATCH #1
   ========================= */

.places-carousel__viewport {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

@media (max-width: 1100px) {
  .places-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .places-carousel__nav {
    display: none;
  }
}