/* Capa mobile dedicada. No altera reglas de escritorio (>= 900px). */
.mobile-intro {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --page: min(100% - 32px, 680px);
  }
  html {
    scroll-padding-top: 68px;
  }
  body {
    font-size: 14px;
  }
  .section {
    padding: 78px 0;
  }
  .site-header {
    padding: 15px 16px;
  }
  .site-header.is-scrolled {
    padding-block: 10px;
  }
  .header-logo {
    width: 112px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
    background: rgba(7, 23, 34, 0.34);
  }
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero-content {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .hero-kicker {
    margin-bottom: 12px;
    font-size: 9px;
  }
  .hero h1 {
    font-size: clamp(76px, 27vw, 116px);
    letter-spacing: -0.065em;
  }
  .hero-lead {
    margin: 14px 0 25px;
    font-size: clamp(26px, 8vw, 36px);
  }
  .hero-actions {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .hero-actions .button {
    min-width: 190px;
  }
  .scroll-cue {
    right: 16px;
    bottom: 18px;
    font-size: 9px;
  }
  .scroll-cue span {
    height: 29px;
  }

  .mobile-intro {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 0 24px calc(66px + env(safe-area-inset-bottom));
    isolation: isolate;
    background: #091d2a url("../assets/img/hero/poster-720w.webp") center/cover
      no-repeat;
    color: var(--sand);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-intro:before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(7, 24, 34, 0.4),
      rgba(4, 17, 25, 0.94) 86%
    );
  }
  .mobile-intro__light {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: -18%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(242, 166, 90, 0.32),
      transparent 65%
    );
    filter: blur(8px);
    transform: scale(0.6);
    opacity: 0;
  }
  .mobile-intro__eyebrow {
    margin: 0;
    color: var(--amber);
    font: 500 10px/1.2 var(--mono);
    letter-spacing: 0.17em;
    opacity: 0;
    transform: translateY(9px);
  }
  .mobile-intro__title {
    margin: 0;
    font: 600 clamp(72px, 26vw, 112px)/0.78 var(--display);
    letter-spacing: -0.07em;
    opacity: 0;
    transform: translateY(18px);
  }
  .mobile-intro__title em {
    font-weight: 500;
    color: var(--amber);
  }
  .mobile-intro__line {
    margin: 11px 0 0;
    font: 500 clamp(21px, 6vw, 28px)/1 var(--display);
    opacity: 0;
    transform: translateY(10px);
  }
  .mobile-intro.is-playing {
    visibility: visible;
    animation: mobileIntroExit 1.32s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
  .mobile-intro.is-playing .mobile-intro__light {
    animation: introLight 1.05s 0.02s ease-out both;
  }
  .mobile-intro.is-playing .mobile-intro__eyebrow {
    animation: introIn 0.32s 0.11s ease-out both;
  }
  .mobile-intro.is-playing .mobile-intro__title {
    animation: introIn 0.52s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .mobile-intro.is-playing .mobile-intro__line {
    animation: introIn 0.34s 0.55s ease-out both;
  }
  @keyframes introIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes introLight {
    45% {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0.5;
      transform: scale(1.15);
    }
  }
  @keyframes mobileIntroExit {
    0%,
    73% {
      opacity: 1;
      visibility: visible;
    }
    100% {
      opacity: 0;
      visibility: hidden;
      transform: scale(1.02);
    }
  }

  .route-grid {
    gap: 42px;
  }
  .route-line {
    gap: 4px;
  }
  .route-line li {
    padding: 14px 0;
  }
  .route-line small {
    font-size: 11px;
  }
  .heading-row {
    margin-bottom: 31px;
  }
  .heading-row > p {
    font-size: 13px;
    line-height: 1.55;
  }
  .editorial-grid {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 3px 16px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .editorial-grid::-webkit-scrollbar {
    display: none;
  }
  .editorial-card,
  .editorial-card-wide,
  .editorial-card-tall,
  .editorial-card-small {
    display: block;
    flex: 0 0 82vw;
    min-height: 430px;
    scroll-snap-align: start;
  }
  .editorial-card img {
    position: absolute;
    inset: 0;
  }
  .editorial-card > div {
    right: 21px;
    bottom: 20px;
    left: 21px;
  }
  .editorial-card h3 {
    font-size: 33px;
  }
  .experience-rail {
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 14px;
    overscroll-behavior-inline: contain;
  }
  .teaser-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 26px;
  }
  .teaser-strip img {
    height: 190px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
  .experience-card {
    flex-basis: 79vw;
    height: 405px;
  }
  .experience-card.feature-card {
    flex-basis: 84vw;
  }
  .experience-card h3 {
    font-size: 30px;
  }
  .experience-card:active img {
    transform: scale(1.04);
  }

  .chepe-stage {
    min-height: unset;
    padding: 0 0 60px;
    overflow: hidden;
  }
  .chepe-media img {
    transition:
      opacity 0.45s,
      transform 0.6s;
  }
  .chepe-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 15, 23, 0.7),
      rgba(2, 15, 23, 0.92) 76%
    );
  }
  .chepe-layout {
    display: block;
    min-height: unset;
    padding-top: 85px;
    padding-bottom: 0;
  }
  .chepe-intro {
    max-width: 310px;
  }
  .chepe-intro h2 {
    font-size: clamp(53px, 16vw, 73px);
  }
  .chepe-intro > p:last-child {
    font-size: 13px;
  }
  .chepe-stops {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 36px calc((100vw - var(--page)) / -2) 0;
    padding: 0 calc((100vw - var(--page)) / 2) 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .chepe-stops::-webkit-scrollbar {
    display: none;
  }
  .chepe-stop {
    display: grid;
    flex: 0 0 min(80vw, 315px);
    min-height: 230px;
    grid-template-columns: 36px 1fr;
    align-content: start;
    gap: 10px;
    padding: 18px 16px;
    border: 1px solid rgba(245, 237, 224, 0.22);
    border-radius: 2px;
    background: rgba(7, 23, 34, 0.45);
    backdrop-filter: blur(5px);
    scroll-snap-align: start;
    opacity: 0.68;
  }
  .chepe-stop.is-active {
    opacity: 1;
    transform: none;
    border-color: rgba(242, 166, 90, 0.75);
  }
  .chepe-stop h3 {
    font-size: 30px;
  }
  .chepe-stop small {
    font-size: 11px;
  }
  .chepe-progress {
    right: 16px;
    bottom: 25px;
    width: 110px;
  }
  .chepe-amenities {
    padding: 40px 0 4px;
  }
  .chepe-amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    margin-bottom: 28px;
  }
  .chepe-classes {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sea {
    min-height: 650px;
  }
  .sea-content {
    padding-bottom: 70px;
  }
  .activity-list {
    gap: 7px;
    margin-top: 23px;
  }
  .activity-list li {
    padding: 6px 9px;
    font-size: 10px;
  }
  .flavor-grid {
    gap: 31px;
  }
  .presentation-grid {
    gap: 31px;
  }
  .presentation-preview {
    height: 260px;
    max-width: 330px;
  }
  .presentation-actions {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }
  .closing {
    min-height: 640px;
  }
  .closing-content {
    padding-bottom: 74px;
  }
  .closing-actions {
    align-items: flex-start;
    gap: 19px;
    flex-direction: column;
  }
  .site-footer {
    padding-top: 51px;
  }
  .footer-grid {
    gap: 35px;
  }
  .footer-destination > p {
    font-size: 20px;
  }
  .sectur-panel {
    width: min(100%, 300px);
    max-width: none;
    min-height: 96px;
    padding-inline: 14px;
  }
  .sectur-panel img {
    max-height: 82px;
  }
  .sectur-panel img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  .footer-maker > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 250px;
  }
  .maker-mark {
    width: 190px;
  }
  .maker-caption {
    max-width: 210px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
  }
  .pdf-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
  }
  .pdf-dialog-bar {
    height: 60px;
    padding: 0 18px;
  }
  .pdf-dialog iframe {
    height: calc(100% - 60px);
  }
}

@media (max-width: 374px) {
  :root {
    --page: calc(100% - 28px);
  }
  .hero h1 {
    font-size: 74px;
  }
  .hero-lead {
    font-size: 27px;
  }
  .button {
    padding-inline: 15px;
    font-size: 11px;
  }
  .section {
    padding: 68px 0;
  }
  .editorial-card,
  .editorial-card-wide,
  .editorial-card-tall,
  .editorial-card-small {
    flex-basis: 84vw;
    min-height: 395px;
  }
  .experience-card {
    height: 380px;
  }
  .chepe-stop {
    flex-basis: 84vw;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  :root {
    --page: min(680px, calc(100vw - 64px));
  }
  .section {
    padding: 100px 0;
  }
  .route-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .editorial-card,
  .editorial-card-wide,
  .editorial-card-tall,
  .editorial-card-small {
    flex-basis: 53vw;
  }
  .experience-card {
    flex-basis: 39vw;
  }
  .experience-card.feature-card {
    flex-basis: 50vw;
  }
  .chepe-stops {
    margin-inline: 0;
    padding-inline: 0;
  }
  .chepe-stop {
    flex-basis: 42vw;
  }
  .flavor-grid,
  .presentation-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-intro {
    display: none !important;
  }
  .editorial-grid,
  .experience-rail,
  .chepe-stops {
    scroll-behavior: auto;
  }
}

@media (max-width: 699px) {
  .route-photos {
    display: flex;
    gap: 10px;
    margin-right: -16px;
    overflow-x: auto;
    padding-right: 16px;
    scroll-snap-type: x proximity;
  }
  .route-photos figure {
    flex: 0 0 76vw;
    scroll-snap-align: start;
  }
  .flavor-gallery {
    grid-template-columns: 1.18fr 0.82fr;
    grid-template-rows: repeat(3, minmax(88px, 1fr));
    min-height: 340px;
  }
  .stay {
    padding-block: 65px;
  }
  .stay-grid {
    gap: 27px;
  }
  .stay-copy h2 {
    font-size: clamp(47px, 14vw, 66px);
  }
  .stay-numbers > div {
    min-height: 122px;
    padding: 18px 14px;
  }
  .stay-numbers strong {
    font-size: 46px;
  }
  .stay-note {
    max-width: 37ch;
  }
  .nature-garden {
    min-height: 570px;
  }
  .nature-garden-copy {
    padding-bottom: 48px;
  }
  .nature-garden-copy h2 {
    font-size: clamp(52px, 15vw, 70px);
  }
  .cerro-panel {
    padding-top: 35px;
    padding-bottom: 61px;
  }
  .cerro-stat span {
    font-size: 107px;
  }
  .cerro-photo p {
    margin-top: 12px;
    font-size: 13px;
  }
  .nature-diptych {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 64px;
  }
  .fuerte-bridge {
    min-height: 590px;
  }
  .fuerte-copy {
    padding-bottom: 53px;
  }
  .fuerte-copy h2 {
    font-size: clamp(52px, 15vw, 70px);
  }
  .fuerte-detail {
    font-size: 9px;
  }
  .bahia-film {
    margin-top: 22px;
  }
  .bahia-caption strong {
    font-size: 23px;
  }
  .bahia-caption small {
    font-size: 12px;
  }
  .bahia-controls {
    margin-top: 10px;
  }
  .bahia-toggle {
    padding: 9px 13px;
    font-size: 9px;
  }
  .meetings {
    padding-block: 72px;
  }
  .meetings-grid {
    gap: 27px;
  }
  .meetings-copy h2 {
    font-size: clamp(51px, 15vw, 69px);
  }
  .meetings-stats > div {
    padding: 17px 15px;
  }
  .meetings-stats strong {
    font-size: 41px;
  }
  .meetings-stats span {
    font-size: 9px;
  }
  .meetings-note {
    max-width: 37ch;
  }
}

/* Ajustes de auditoría: accesibilidad, estabilidad visual y navegación responsive. */
html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
section[id] {
  scroll-margin-top: 88px;
}
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
.mexico-map-layout {
  gap: 26px;
}
.mexico-map-chart {
  height: 340px;
}
.route-highway {
  margin-top: 22px;
  padding-top: 18px;
}
.route-frequencies {
  margin-top: 30px;
}
.route-frequencies-scroller {
  margin-right: -16px;
  overscroll-behavior-inline: contain;
}
.route-frequencies table {
  min-width: 420px;
}
.route-grid > .source-note {
  margin-top: 0;
}
[data-reveal] {
  opacity: 1;
  transform: none;
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: calc(var(--reveal-delay, 0) * 0.1s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.text-link {
  min-height: 44px;
  padding-block: 10px;
}
.dialog-close {
  width: 44px;
  height: 44px;
}
.menu-toggle {
  width: 44px;
  height: 44px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav a[aria-current="location"] {
  opacity: 1;
  color: var(--amber);
}
.meetings-film-toggle {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  min-height: 44px;
  border: 1px solid rgba(245, 237, 224, 0.5);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(7, 23, 34, 0.72);
  color: var(--sand);
  font: 600 11px/1 var(--body);
  cursor: pointer;
  backdrop-filter: blur(7px);
}
.meetings-film-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
}
@media (max-width: 899px) and (max-height: 450px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding-top: 62px;
    padding-bottom: 18px;
  }
  .hero-kicker {
    margin-bottom: 5px;
  }
  .hero h1 {
    font-size: clamp(50px, 8vw, 62px);
  }
  .hero-lead {
    margin: 5px 0 10px;
    font-size: clamp(22px, 3.5vw, 30px);
  }
  .hero-actions {
    align-items: center;
    gap: 10px;
    flex-direction: row;
  }
  .hero-actions .button {
    min-width: auto;
    min-height: 44px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .scroll-cue {
    display: none;
  }
}
@media (max-width: 899px) {
  html {
    scroll-padding-top: 68px;
  }
  section[id] {
    scroll-margin-top: 68px;
  }
}
@media (max-width: 699px) {
  .meetings-film-toggle {
    top: 12px;
    right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  .hero-media {
    display: block;
  }
  .hero-actions > a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Prueba visual: footer claro para dar protagonismo a los logotipos. */
.site-footer {
  background: #f3eadc;
  color: #0b1d2a;
}
.footer-destination > img {
  filter: none;
}
.footer-destination > p {
  color: #0b1d2a;
}
.footer-destination nav {
  color: #53656a;
}
.footer-destination nav a:hover {
  color: #a9443f;
}
.footer-label {
  color: #4b5d60;
}
.sectur-panel {
  background: #fffaf3;
  border: 1px solid rgba(11, 29, 42, 0.12);
  box-shadow: 0 14px 30px rgba(11, 29, 42, 0.08);
}
.footer-maker > a {
  color: #0b1d2a;
}
.footer-maker > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 270px;
}
.maker-mark {
  mix-blend-mode: multiply;
}
.maker-caption {
  color: #53656a;
}
.footer-bottom {
  border-top-color: rgba(11, 29, 42, 0.16);
  color: #526467;
}
.footer-bottom a {
  color: #a9443f;
}
