/* ============================================================
   Sugerencia de Actividades / Restaurantes
   Modern editorial scroller · snap horizontal · imagen cuadrada
   ============================================================ */
:root {
  --rec-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.recm.section {
  text-align: center;
  padding: 48px 0 68px;
  overflow: hidden;
  --recm-card-w: 320px;
}

.recm__header {
  padding: 0 60px;
  margin-bottom: 40px;
}

.recm__eyebrow {
  display: block;
  font-family: 'Clashdisplay', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8090a4;
  margin: 0 0 18px;
}

.recm__heading {
  color: var(--color-scheme-1--accent, #252C3E);
  margin: 0 0 18px;
}

.recm__heading em.italic-text:first-child {
  margin-right: 0.12em;
}

.sugerencia-title em.italic-text:first-child {
  margin-right: 0.2em;
}

.recm__intro {
  font-family: 'Baskervville', serif;
  font-style: normal;
  font-size: 26px;
  line-height: 1.5;
  color: #353F53;
  margin: 0 auto;
  max-width: 620px;
}

/* --- Scroller wrapper & reveal --- */
.recm__scroller-wrap {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--rec-ease-out), transform 480ms var(--rec-ease-out);
}

.recm__scroller-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reveal genérico reutilizable (mismo timing que los scrollers) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms var(--rec-ease-out), transform 640ms var(--rec-ease-out);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Aparición escalonada de las tarjetas de hospedaje */
.hospedaje__card.reveal-up:nth-child(2) {
  transition-delay: 120ms;
}

/* Aparición escalonada del itinerario y la sugerencia de regalo */
.itinerario__text.reveal-up:nth-child(2),
.sugerencia-card.reveal-up:nth-child(2) {
  transition-delay: 120ms;
}
.itinerario__text.reveal-up:nth-child(3) {
  transition-delay: 240ms;
}

/* --- Navigation buttons (slider mode only, desktop only) --- */
.recm__nav {
  position: absolute;
  top: calc(var(--recm-card-w, 320px) / 2 + 4px);
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #c3cdd9;
  color: var(--color-scheme-1--accent, #252C3E);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(131, 107, 82, 0.08);
  transition: transform 220ms var(--rec-ease-out), opacity 220ms var(--rec-ease-out), background 220ms ease, color 220ms ease;
  display: none;
}

.recm__scroller-wrap.is-slider .recm__nav { display: flex; }

@media (hover: hover) {
  .recm__nav:hover {
    background: var(--color-scheme-1--accent, #252C3E);
    color: #ffffff;
  }
}

.recm__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.recm__nav[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.recm__nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.recm__nav--prev { left: 18px; }
.recm__nav--next { right: 18px; }

@media (hover: none), (pointer: coarse) {
  .recm__nav { display: none !important; }
}

/* --- Scroller track --- */
/* Default: static centered row */
.recm__scroller {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 4px 60px 24px;
}

/* Slider mode: single row, horizontal scroll */
.recm__scroller-wrap.is-slider .recm__scroller {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 60px;
  scroll-padding-right: 60px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.recm__scroller-wrap.is-slider .recm__scroller::-webkit-scrollbar { display: none; }

.recm__scroller.is-grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.recm__scroller.is-grabbing .recm__image {
  transition: none;
}

/* --- Progress bar (hidden when no overflow) --- */
.recm__progress {
  position: relative;
  height: 2px;
  background: #8090a4;
  margin: 12px 60px 0;
  display: none;
}

.recm__progress.has-overflow {
  display: block;
}

.recm__progress-bar {
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  background: var(--color-scheme-1--accent, #252C3E);
  width: 20%;
  transition: width 200ms ease;
}

/* --- Card item --- */
.recm__item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  text-align: left;
}

.recm__image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #efe8dc;
  margin-bottom: 0;
}

.recm__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--rec-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .recm__item:hover .recm__image {
    transform: scale(1.04);
  }
}

.recm__number {
  display: none;
}

.recm__title {
  font-family: 'Libre Caslon Display', serif;
  font-size: 30px;
  line-height: 34px;
  color: var(--color-scheme-1--accent, #252C3E);
  margin: 0 0 10px;
  font-weight: 400;
}

.recm__desc {
  font-family: 'Libre Caslon Display', serif;
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  color: #353F53;
  margin: 0;
}

/* --- "Ver todos" button (mobile only) --- */
.recm__show-more {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet landscape / small desktop */
@media (max-width: 991px) {
  .recm.section { padding: 56px 0 56px; --recm-card-w: 270px; }
  .recm__header { padding: 0 24px; margin-bottom: 36px; }
  .recm__intro { font-size: 22px; }
  .recm__scroller {
    gap: 24px;
    padding: 4px 24px 22px;
  }
  .recm__scroller-wrap.is-slider .recm__scroller {
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
  }
  .recm__progress { margin: 8px 24px 0; }
  .recm__item { flex: 0 0 270px; }
  .recm__title { font-size: 26px; line-height: 30px; }
  .recm__desc { font-size: 18px; }
  .recm__image-wrapper { margin-bottom: 0; }
  .recm__nav--prev { left: 10px; }
  .recm__nav--next { right: 10px; }
  .recm__nav { width: 42px; height: 42px; }
  .recm__nav svg { width: 16px; height: 16px; }
}

/* Tablet + large phone — slider mechanic */
@media (max-width: 991px) {
  .recm.section { padding: 36px 0 56px; --recm-card-w: 38vw; }
  .recm__header { padding: 0 32px; margin-bottom: 32px; }

  /* Slider horizontal con peek de la siguiente tarjeta */
  .recm__scroller {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 32px;
    scroll-padding-right: 32px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 4px 32px 0;
  }
  .recm__scroller::-webkit-scrollbar { display: none; }

  .recm__item {
    flex: 0 0 var(--recm-card-w);
    max-width: 340px;
    scroll-snap-align: start;
    text-align: center;
  }
  .recm__scroller-wrap.is-slider .recm__item:last-child {
    scroll-snap-align: end;
  }

  /* Imagen cuadrada en touch */
  .recm__image-wrapper { aspect-ratio: 1 / 1; height: auto; margin-bottom: 0; }
  .recm__image-wrapper--overlay { aspect-ratio: 1 / 1; height: auto; }

  /* Mostrar flechas (override del default touch hide) */
  .recm__scroller-wrap.is-slider .recm__nav { display: flex !important; width: 44px; height: 44px; }
  .recm__scroller-wrap.is-slider .recm__nav svg { width: 16px; height: 16px; }
  .recm__nav--prev { left: 12px; }
  .recm__nav--next { right: 12px; }
  .recm__show-more { display: none !important; }

  /* Barra de progreso visible como indicador */
  .recm__progress { margin: 12px 32px 0; }
}

/* Phone-only tweaks */
@media (max-width: 767px) {
  .recm.section { padding: 32px 0 48px; --recm-card-w: 82vw; }
  .recm__header { padding: 0 16px; margin-bottom: 28px; }
  .recm__eyebrow { font-size: 16px; letter-spacing: 2.5px; margin-bottom: 14px; }
  .recm__heading { margin-bottom: 14px; }
  .recm__intro { font-size: 20px; max-width: 480px; }

  .recm__scroller {
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
    gap: 16px;
    padding: 4px 20px 0;
  }

  .recm__item { max-width: 440px; }

  .recm__scroller-wrap.is-slider .recm__nav { width: 40px; height: 40px; }
  .recm__scroller-wrap.is-slider .recm__nav svg { width: 15px; height: 15px; }
  .recm__nav--prev { left: 8px; }
  .recm__nav--next { right: 8px; }

  .recm__progress { margin: 12px 20px 0; }

  .recm__number { font-size: 14px; margin-bottom: 8px; }
  .recm__title { font-size: 40px; line-height: 44px; margin-bottom: 14px; }
  .recm__desc { font-size: 26px; line-height: 32px; }
}

@keyframes recmReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile portrait */
@media (max-width: 479px) {
  .recm.section { padding: 44px 0 44px; --recm-card-w: 82vw; }
  .recm__header { padding: 0 16px; margin-bottom: 24px; }
  .recm__eyebrow { font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
  .recm__intro { font-size: 18px; max-width: 100%; line-height: 1.45; }

  .recm__scroller {
    gap: 14px;
    padding: 4px 16px 0;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
  }
  .recm__item { flex: 0 0 82vw; }
  .recm__progress { margin: 12px 16px 0; }
  .recm__number { font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
  .recm__title { font-size: 32px; line-height: 36px; margin-bottom: 12px; }
  .recm__desc { font-size: 22px; line-height: 28px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .recm__scroller-wrap,
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .recm__image {
    transition: none;
  }
  .recm__item:hover .recm__image {
    transform: none;
  }
}

/* ============================================================
   Hospedaje — dos columnas (texto · imagen)
   ============================================================ */
.recm--hospedaje .recm__header {
  margin-bottom: 32px;
}

.hospedaje__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 60px 8px;
  text-align: center;
}

.hospedaje__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hospedaje__text a {
  color: var(--color-scheme-1--accent, #252C3E);
  text-decoration: underline;
}

/* Varias opciones de hospedaje lado a lado (tarjetas) */
.hospedaje__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 60px 8px;
}

.hospedaje__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hospedaje__card .hospedaje__media {
  width: 100%;
  max-width: 320px;
  height: 427px;
  aspect-ratio: auto;
  justify-self: auto;
  margin: 0 auto 26px;
}

.hospedaje__card .hospedaje__info {
  flex: 1;
  width: 100%;
}

/* Empuja el botón al fondo para que queden alineados entre tarjetas */
.hospedaje__card .hospedaje__info .button.is-secondary.boda.hospedaje__buton {
  margin-top: auto;
}

.hospedaje__title {
  color: var(--color-scheme-1--accent, #252C3E);
  font-family: 'Libre Caslon Display', serif;
  font-size: 38px;
  line-height: 44px;
  font-weight: 400;
  margin: 0 0 18px;
}

/* Nombre de los hoteles en las tarjetas */
.hospedaje__card .hospedaje__title {
  font-size: 30px;
  line-height: 36px;
}

.hospedaje__text {
  color: #353F53;
  font-family: 'Baskervville', serif;
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 22px;
}

.hospedaje__text strong {
  color: var(--color-scheme-1--accent, #252C3E);
}

.hospedaje__promo {
  white-space: nowrap;
}

.hospedaje__note {
  color: var(--color-scheme-1--accent, #252C3E);
  font-family: 'Baskervville', serif;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* Ubicación como overlay sobre la imagen (igual que las cards) */
.hospedaje__media-location {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 20px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Baskervville', serif;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hospedaje__media-location svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
  stroke: currentColor;
}

.hospedaje__info .button.is-secondary.boda.hospedaje__buton {
  margin: 0;
  flex-shrink: 0;
}

.hospedaje__media {
  position: relative;
  width: 320px;
  height: 426px;
  justify-self: end;
  overflow: hidden;
  background: #efe8dc;
}

/* Overlay degradado igual al resto del sitio */
.hospedaje__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.2) 65%, transparent 100%);
}

.hospedaje__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  transition: transform 700ms var(--rec-ease-out);
}

/* Andaz: toma aérea, la torre queda al centro */
.hospedaje__image[src*="andaz"] {
  object-position: 50% 45%;
}

@media (hover: hover) and (pointer: fine) {
  .hospedaje__media:hover .hospedaje__image {
    transform: scale(1.04);
  }
}

@media (max-width: 991px) {
  .hospedaje__split { gap: 40px; padding: 4px 40px 8px; }
  .hospedaje__cards { gap: 40px; padding: 4px 40px 8px; }
  .hospedaje__title { font-size: 34px; line-height: 40px; }
}

@media (max-width: 767px) {
  .hospedaje__split {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 4px 24px 8px;
    text-align: center;
  }
  .hospedaje__split + .hospedaje__split { margin-top: 44px; }
  .hospedaje__cards {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 4px 24px 8px;
  }
  .hospedaje__card .hospedaje__media { height: auto; aspect-ratio: 1 / 1; max-width: 360px; }
  .hospedaje__card .hospedaje__info .button.is-secondary.boda.hospedaje__buton { margin-top: 8px; }
  .hospedaje__info { align-items: center; }
  .hospedaje__media { order: -1; height: auto; aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto; width: 100%; }
  .hospedaje__title { font-size: 32px; line-height: 38px; }
  .hospedaje__text { font-size: 20px; line-height: 27px; }
  .hospedaje__rate { display: block; }
  .hospedaje__media-location { font-size: 18px; }
  .hospedaje__info .button.is-secondary.boda.hospedaje__buton {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 479px) {
  .hospedaje__split { padding: 4px 16px 8px; }
  .hospedaje__cards { padding: 4px 16px 8px; }
}

/* ============================================================
   Hospedaje — overlay cards dentro del sistema recm
   ============================================================ */

/* Aspect ratio 3:4 para más espacio vertical */
.recm__image-wrapper--overlay {
  position: relative;
  aspect-ratio: 3 / 4;
}

.recm__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.2) 65%, transparent 100%);
  padding: 24px 16px;
  transition: background 400ms var(--rec-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .recm__image-wrapper--overlay:hover .recm__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.15) 65%, transparent 100%);
  }
}

.recm__overlay-title {
  order: 1;
  color: #fff;
  font-family: 'Libre Caslon Display', serif;
  font-size: 30px;
  line-height: 34px;
  font-weight: 400;
  margin: 0 0 4px;
}

.recm__overlay-location {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Baskervville', serif;
  font-size: 16px;
  line-height: 19.2px;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}

.recm__overlay-address {
  order: 3;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Baskervville', serif;
  font-size: 20px;
  line-height: 25px;
  margin: 0 0 16px;
  max-width: 300px;
}

.recm__overlay-desc {
  order: 4;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Baskervville', serif;
  font-size: 20px;
  line-height: 25px;
  margin: 0 0 16px;
  max-width: 300px;
}

.recm__overlay-location svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
}

.recm__overlay-tags {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
}

.recm__overlay-tag {
  display: inline-block;
  padding: 5px 11px;
  font-family: 'Clashdisplay', 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  line-height: 1.3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Botón dentro del overlay */
.recm__overlay .button.is-secondary.is-small.is-alternate.hospedaje__buton {
  order: 5;
  width: auto;
  margin: 0;
  padding: 6px 24px;
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Responsive overlay --- */
@media (max-width: 991px) {
  .recm__overlay-title { font-size: 30px; line-height: 34px; }
  .recm__overlay-desc { font-size: 20px; line-height: 25px; }
  .recm__overlay-address { font-size: 20px; line-height: 25px; }
  .recm__overlay-location { font-size: 16px; line-height: 19.2px; }
  .recm__overlay-location svg { width: 12px; height: 12px; }
  .recm__overlay { padding: 28px 16px; }
}

@media (max-width: 767px) {
  .recm__image-wrapper--overlay { aspect-ratio: 1 / 1; height: auto; }
  .recm__overlay-title { font-size: 30px; line-height: 34px; margin-bottom: 12px; }
  .recm__overlay-desc { font-size: 20px; line-height: 25px; }
  .recm__overlay-address { font-size: 20px; line-height: 25px; margin-bottom: 16px; max-width: 94%; }
  .recm__overlay-location { font-size: 16px; line-height: 19.2px; margin-top: 12px; gap: 8px; }
  .recm__overlay-location svg { width: 15px; height: 15px; }
  .recm__overlay-tags { gap: 7px; margin-bottom: 12px; }
  .recm__overlay-tag { font-size: 11px; padding: 5px 12px; letter-spacing: 1.6px; }
  .recm__overlay { padding: 22px 20px 20px; }
  .recm__overlay .button.is-secondary.is-small.is-alternate.hospedaje__buton {
    padding: 10px 30px;
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .recm__image-wrapper--overlay { aspect-ratio: 1 / 1; height: auto; }
  .recm__overlay-title { font-size: 30px; line-height: 34px; margin-bottom: 10px; }
  .recm__overlay-desc { font-size: 20px; line-height: 25px; }
  .recm__overlay-address { font-size: 20px; line-height: 25px; margin-bottom: 14px; max-width: 94%; }
  .recm__overlay-location { font-size: 16px; line-height: 19.2px; margin-top: 10px; gap: 6px; }
  .recm__overlay-location svg { width: 13px; height: 13px; }
  .recm__overlay-tags { gap: 6px; margin-bottom: 10px; }
  .recm__overlay-tag { font-size: 10px; padding: 4px 10px; letter-spacing: 1.4px; }
  .recm__overlay { padding: 20px 18px 18px; }
  .recm__overlay .button.is-secondary.is-small.is-alternate.hospedaje__buton {
    padding: 9px 28px;
    font-size: 17px;
  }
}
