/* =========================================================
   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 {
  z-index: -3;
  background-image: url("/assets/img/home/home-sede-palenque.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.venue-hero-panel__overlay {
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(54, 31, 17, 0.46) 0%,
      rgba(42, 25, 16, 0.34) 100%),
    rgba(92, 58, 34, 0.32);
}

.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: var(--color-white);
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.venue-hero-panel__card {
  width: min(100%, 640px);
  margin: 0 auto 0 0;
  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;
}

/* =========================================================
   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;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.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;
}

/* =========================================================
   PLACES CAROUSEL
   ========================================================= */

.places-carousel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 1rem;
}

.places-carousel__viewport {
  overflow: hidden;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.places-carousel__track {
  display: flex;
  gap: 1.6rem;
  will-change: transform;
}

.places-carousel__nav {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  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;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.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: var(--color-white);
  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);
}

/* =========================================================
   SEDE กค VIVE PALENQUE
   ========================================================= */

.palenque-destination-section {
  padding: 4.8rem 0 4.4rem;
}

.palenque-destination-section__head {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.palenque-destination-section__badge {
  width: min(100%, 520px);
  justify-content: center;
  margin: 0 auto 1rem;
}

.palenque-destination-section__intro {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.4;
}

.palenque-video-showcase {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.palenque-experience-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: var(--color-white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.palenque-experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.17);
}

.palenque-experience-card--large {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.palenque-experience-card__video-wrap {
  position: relative;
  background: #111;
}

.palenque-experience-card--large .palenque-experience-card__video-wrap {
  height: 100%;
  min-height: 0;
}

.palenque-experience-card__video-wrap::before {
  content: "PALENQUE, CHIAPAS";
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.palenque-experience-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.palenque-experience-card--large .palenque-experience-card__video {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.palenque-experience-card__content {
  padding: 1.2rem 1.25rem 1.35rem;
}

.palenque-experience-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(36, 67, 166, 0.08);
  color: var(--color-secondary);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.palenque-experience-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.palenque-experience-card p {
  margin: 0.7rem 0 0;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.4;
}

.palenque-destination-section video {
  cursor: pointer;
}

.palenque-destination-section video:focus-visible {
  outline: 4px solid rgba(67, 176, 42, 0.55);
  outline-offset: 4px;
}

/* =========================================================
   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;
  }

  .places-carousel-section,
  .palenque-destination-section {
    padding: 4rem 0 3.6rem;
  }

  .places-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .places-carousel__nav {
    display: none;
  }

  .places-carousel__track {
    gap: 1.3rem;
  }

  .place-card {
    flex-basis: min(100%, 300px);
    min-height: 380px;
  }

  .palenque-video-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .palenque-experience-card--large {
    grid-row: auto;
    display: flex;
    height: auto;
  }

  .palenque-experience-card--large .palenque-experience-card__video-wrap {
    height: auto;
  }

  .palenque-experience-card--large .palenque-experience-card__video {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   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,
  .palenque-destination-section {
    padding: 3.6rem 0 3rem;
  }

  .places-carousel-section__head,
  .palenque-destination-section__head {
    margin-bottom: 1.5rem;
  }

  .places-carousel-section__badge,
  .palenque-destination-section__badge {
    width: 100%;
  }

  .places-carousel-section__intro,
  .palenque-destination-section__intro {
    font-size: 1rem;
    line-height: 1.4;
  }

  .places-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .places-carousel__nav {
    display: none;
  }

  .places-carousel__track {
    gap: 1rem;
  }

  .place-card {
    flex-basis: 250px;
    min-height: 320px;
  }

  .place-card__base {
    opacity: 0;
  }

  .place-card__hover {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    opacity: 1;
    transform: none;
  }

  .place-card__title {
    font-size: 1.15rem;
  }

  .place-card__text {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .palenque-destination-section__head {
    margin-bottom: 1.7rem;
  }

  .palenque-video-showcase {
    gap: 1.15rem;
  }

  .palenque-experience-card {
    border-radius: 26px;
  }

  .palenque-experience-card__video-wrap::before {
    top: 0.75rem;
    left: 0.75rem;
    min-height: 30px;
    font-size: 0.62rem;
  }

  .palenque-experience-card__content {
    padding: 1rem 1rem 1.15rem;
  }

  .palenque-experience-card h3 {
    font-size: 1.25rem;
  }

  .palenque-experience-card p {
    font-size: 0.92rem;
  }
}

/* =========================================================
   SEDE กค RESTAURANTES EN PALENQUE
   ========================================================= */

.restaurants-section {
  padding: 4.8rem 0 4.4rem;
}

.restaurants-section__head {
  max-width: 980px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.restaurants-section__badge {
  width: min(100%, 560px);
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.restaurants-section__intro {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.4;
}

/* =========================================================
   RESTAURANTES กค CARRUSEL
   ========================================================= */

.restaurants-carousel {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 1rem;
}

.restaurants-carousel__viewport {
  overflow: hidden;
  padding: 1rem 0;
  margin: -1rem 0;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.restaurants-carousel__track {
  display: flex;
  gap: 1.4rem;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.restaurants-carousel__nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.restaurants-carousel__nav:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.restaurants-carousel__nav i {
  font-size: 1.8rem;
  line-height: 1;
}

/* =========================================================
   RESTAURANT CARD
   ========================================================= */

.restaurants-carousel .restaurant-card {
  flex: 0 0 calc((100% - 2.8rem) / 3);
  min-width: 0;
}

.restaurant-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.restaurant-card:hover {
  transform: translateY(-5px);
}

.restaurant-card__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.restaurant-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.restaurant-card:hover .restaurant-card__image {
  transform: scale(1.04);
}

.restaurant-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.restaurant-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.35rem;
}

.restaurant-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.restaurant-card p {
  margin: 0.85rem 0 0;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.4;
}

.restaurant-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.restaurant-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.restaurant-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--color-primary);
}

.restaurant-card a {
  color: var(--color-secondary);
  font-weight: 800;
  text-decoration: none;
}

.restaurant-card a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.restaurants-section__note {
  width: min(100%, 900px);
  margin: 1.6rem auto 0;
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.82;
}

/* =========================================================
   RESPONSIVE กค RESTAURANTES
   ========================================================= */

@media (max-width: 1100px) {
  .restaurants-section {
    padding: 4rem 0 3.6rem;
  }

  .restaurants-carousel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.7rem;
  }

  .restaurants-carousel .restaurant-card {
    flex-basis: calc((100% - 1.4rem) / 2);
  }
}

@media (max-width: 700px) {
  .restaurants-section {
    padding: 3.6rem 0 3rem;
  }

  .restaurants-section__head {
    margin-bottom: 1.6rem;
  }

  .restaurants-section__badge {
    width: 100%;
  }

  .restaurants-section__intro {
    font-size: 1rem;
    line-height: 1.4;
  }

  .restaurants-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .restaurants-carousel__nav {
    display: none;
  }

  .restaurants-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.5rem 0 1rem;
    margin: 0;
    touch-action: pan-x;
  }

  .restaurants-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .restaurants-carousel__track {
    width: max-content;
    gap: 1rem;
    transform: none !important;
  }

  .restaurants-carousel .restaurant-card {
    flex: 0 0 calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    scroll-snap-align: center;
  }

  .restaurant-card {
    border-radius: 26px;
  }

  .restaurant-card__tag {
    top: 0.75rem;
    left: 0.75rem;
    min-height: 30px;
    font-size: 0.6rem;
  }

  .restaurant-card__content {
    padding: 1rem 1rem 1.15rem;
  }

  .restaurant-card h3 {
    font-size: 1.25rem;
  }

  .restaurant-card p {
    font-size: 0.92rem;
  }

  .restaurant-card li {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .restaurants-carousel .restaurant-card {
    flex-basis: calc(100vw - 2.2rem);
    max-width: calc(100vw - 2.2rem);
  }
}