/* Jerarquía tipográfica uniforme y resistente a títulos editables largos. */
:where(h1, h2, h3, h4) {
  max-inline-size: 100%;
  margin-inline: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@supports (text-wrap: balance) {
  :where(h1, h2, h3, h4) { text-wrap: balance; }
}

:where(.hero-content, .page-hero, .section-heading, .excursion-showcase-copy, .detail-content, .visa-panel, .visa-body, .service-card, .contact-panel) {
  min-inline-size: 0;
}

/* Portada principal */
.home-page .hero h1 {
  inline-size: min(100%, 15ch);
  max-inline-size: 15ch;
  font-size: clamp(2.8rem, 4.45vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.home-page .hero-card h2 {
  font-size: clamp(1.65rem, 2.45vw, 2.35rem);
  line-height: 1.08;
}

.home-page :where(.intro h2, .section-heading h2, .contact-panel h2),
.home-page .home-promo-showcase .excursion-showcase-copy h2 {
  font-size: clamp(1.85rem, 3.35vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.home-page .service-card h3,
.home-page .testimonial-modal h2 {
  font-size: clamp(1.18rem, 1.75vw, 1.48rem);
  line-height: 1.18;
}

/* Portadas de páginas internas */
.page-main .page-hero h1 {
  inline-size: min(100%, 22ch);
  max-inline-size: 22ch;
  font-size: clamp(2.55rem, 4.1vw, 4.35rem);
  line-height: 1.01;
  letter-spacing: -.045em;
}

/* Recursos vectoriales y logotipo sin desplazamientos fraccionarios que los suavicen. */
.site-header .brand-mark img {
  transform: none;
  image-rendering: auto;
}

.icon svg,
.icon svg *,
.nav-link svg,
.nav-link svg * {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

/* Escritorios compactos y portátiles: el texto reduce antes de quedar fuera de vista. */
@media (min-width: 981px) and (max-width: 1380px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 390px);
    gap: clamp(28px, 4vw, 54px);
  }

  .home-page .hero h1 {
    max-inline-size: 16ch;
    font-size: clamp(2.8rem, 4.25vw, 4rem);
  }

  .page-main .page-hero h1 {
    max-inline-size: 24ch;
    font-size: clamp(2.45rem, 4vw, 3.75rem);
  }
}

.page-main .excursion-showcase-copy h2 {
  font-size: clamp(1.75rem, 2.75vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.page-main .service-detail h2 {
  font-size: clamp(2.05rem, 3.35vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.page-main .visa-panel > h3,
.business-request-section .visa-panel > h3 {
  font-size: clamp(1.35rem, 2.15vw, 1.95rem);
  line-height: 1.16;
}

.page-main .visa-card summary {
  overflow-wrap: anywhere;
  line-height: 1.22;
}

.business-service-heading h4 {
  font-size: clamp(1.5rem, 2.55vw, 2.2rem);
  line-height: 1.08;
}

.business-includes h5,
.business-price-row h5 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.16;
}

@media (max-width: 760px) {
  :where(h1, h2, h3, h4) {
    overflow-wrap: break-word;
    hyphens: none;
  }

  .home-page .hero h1 {
    inline-size: 100%;
    max-inline-size: 100%;
    font-size: clamp(2.05rem, 9.4vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .home-page .hero-card h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .home-page :where(.intro h2, .section-heading h2, .contact-panel h2),
  .home-page .home-promo-showcase .excursion-showcase-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
  }

  .page-main .page-hero h1 {
    inline-size: 100%;
    max-inline-size: 100%;
    font-size: clamp(1.95rem, 8.8vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .page-main .excursion-showcase-copy h2,
  .page-main .service-detail h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .page-main .visa-panel > h3,
  .business-request-section .visa-panel > h3 {
    font-size: clamp(1.25rem, 6.5vw, 1.65rem);
  }

  .business-service-heading h4 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  .business-includes h5,
  .business-price-row h5 {
    font-size: clamp(1.08rem, 5.5vw, 1.35rem);
  }
}

@media (max-width: 380px) {
  .home-page .hero h1,
  .page-main .page-hero h1 {
    font-size: clamp(1.8rem, 9.5vw, 2.2rem);
  }

  .home-page :where(.intro h2, .section-heading h2, .contact-panel h2),
  .page-main :where(.excursion-showcase-copy h2, .service-detail h2) {
    font-size: clamp(1.5rem, 8.4vw, 1.95rem);
  }
}
