/* Shared page heading for CMS pages and the blog: grey band, centered title, trail below. */
.rtg-page-container { width: 100%; max-width: none; padding: 0; }
.rtg-page-container #center-column { width: 100%; max-width: none; padding: 0; }
.rtg-page-heading { padding: 24px 24px 23px; text-align: center; background: #fafbfc; border-bottom: 1px solid #f0f2f4; }
.rtg-page-heading :is(h1, .rtg-page-heading__title) { margin: 0 0 7px; color: var(--rtg-900); font-size: 42px; font-weight: 700; line-height: 1.18; }
.rtg-page-heading nav { max-width: 1100px; margin: auto; color: var(--rtg-900); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; }
/* Same trail as the native breadcrumb (roentgen-header.css): grey links, a thin chevron, the current page in 900 (Carlos 26-oct). */
.rtg-page-heading nav a { color: #70818a; font-weight: 400; text-decoration: none; transition: color .15s ease; }
.rtg-page-heading nav a:hover { color: var(--rtg-700); text-decoration: underline; text-underline-offset: 3px; }
.rtg-page-heading nav span[aria-hidden] { display: inline-block; width: 5px; height: 5px; margin: 0 13px 1px 11px; padding: 0; border: solid #9aabb2; border-width: 1px 1px 0 0; font-size: 0; vertical-align: middle; transform: rotate(45deg); }
@media (max-width: 600px) {
  .rtg-page-heading { padding: 22px 16px; }
  .rtg-page-heading :is(h1, .rtg-page-heading__title) { font-size: 32px; }
}

/* Keep legacy CMS content readable without rewriting its stored HTML. */
.page-content--cms {
  min-width: 0;
  overflow-wrap: break-word;
}

.rtg-page-container .page-content--cms {
  width: min(1170px, calc(100% - 40px));
  margin: 36px auto 80px;
}

@media (max-width: 600px) {
  .rtg-page-container .page-content--cms { width: calc(100% - 28px); margin: 26px auto 55px; }
}

.page-content--cms :is(img, video, iframe, embed, object) {
  max-width: 100%;
}

.page-content--cms :is(img, video) {
  height: auto;
}

.page-content--cms video[width="1060"][height="595"] {
  aspect-ratio: 1060 / 595;
}

/* The theme reset strips list markers; stored CMS lists rely on them. */
.page-content--cms ol:not([class]) { list-style: decimal; padding-inline-start: 1.75rem; }
.page-content--cms ul:not([class]) { list-style: disc; padding-inline-start: 1.5rem; }
.page-content--cms :is(ol, ul):not([class]) li + li { margin-top: .5rem; }

.page-content--cms a:not(.btn) { color: #197585; text-decoration: underline; text-underline-offset: 2px; }
.page-content--cms a:not(.btn):hover { color: #0d343f; }

/* Beats the id selector in the calendar's own stored <style>, which names an unloaded family. */
.page-content--cms #cal-expo-2026 { font-family: inherit; }

/* Gallery and video wrappers used by the legacy CMS pages (same geometry as production). */
.page-content--cms .img-thumbnail { display: block; width: 100%; }
.page-content--cms .videoWrapper { width: 80%; margin: 0 auto; }
.page-content--cms .videoWrapper :is(iframe, video) { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.page-content--cms .video-responsive { position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden; }
.page-content--cms .video-responsive.vertical { padding-bottom: 177.78%; }
.page-content--cms .video-responsive :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 1200px) {
  .page-content--cms .videoWrapper { width: 100%; }
}

#contact .ps-contactinfo__info {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Sitemap: readable lists with comfortable touch targets. */
#sitemap .sitemap__list { list-style: none; padding-left: 0; }
#sitemap .sitemap__list--nested { padding-left: .75rem; border-left: 1px solid #e7ecef; }
#sitemap .sitemap__link { display: inline-block; padding-block: .35rem; color: #34414a; line-height: 1.35; text-decoration: none; }
#sitemap .sitemap__link:hover { color: #087f97; text-decoration: underline; }
@media (max-width: 767.98px) {
  #sitemap .sitemap__link { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
}

/* Search without results: a real way forward instead of a one-line hint. */
.rtg-search-empty { max-width: 560px; margin: 8px 0 40px; }
.rtg-search-empty p { margin: 0 0 16px; color: #4b5963; }
.rtg-search-empty form { display: flex; gap: 8px; margin: 0 0 20px; }
.rtg-search-empty input { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #c9d4da; border-radius: 8px; font: inherit; }
.rtg-search-empty .btn { min-height: 44px; }
.rtg-search-empty__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* «Nosotros» pages (Sobre nosotros, Show Room CDMX, Expo AMIC), redesigned 25-oct with the storefront's language:
   official palette, official radius (--rtg-radius), #e6edf0 hairlines, Montserrat. The stored HTML only carries
   these classes; all styling lives here. */
.page-content--cms :is(.rtg-about, .rtg-showroom, .rtg-expo) { color: #4a5a60; font-size: 16px; line-height: 1.7; }
.page-content--cms .rtg-cms-h2 { margin: 0 0 16px; color: var(--rtg-900); font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.page-content--cms .rtg-cms-h3 { margin: 0 0 12px; color: var(--rtg-900); font-size: 20px; font-weight: 700; line-height: 1.3; }
.page-content--cms .rtg-cms-h3::before { content: ''; display: block; width: 32px; height: 3px; margin: 0 0 16px; border-radius: 2px; background: var(--rtg-600); }
.page-content--cms .rtg-cms-lead { margin: 0 0 28px; color: #4a5a60; font-size: 17px; line-height: 1.75; }
.page-content--cms :is(.rtg-about, .rtg-showroom, .rtg-expo) p:not(.rtg-cms-lead) { margin-bottom: 0; }

/* Sobre nosotros: the story beside the company card (the storefront's boxed style), then mission and philosophy. */
.page-content--cms .rtg-about__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.page-content--cms .rtg-about__facts { margin: 0; padding: 6px 24px; border: 1px solid #e6edf0; border-radius: var(--rtg-radius); background: #fff; box-shadow: 0 1px 3px rgba(28, 80, 93, .06); }
.page-content--cms .rtg-about__facts > div { padding: 14px 0; }
.page-content--cms .rtg-about__facts > div + div { border-top: 1px solid #e6edf0; }
.page-content--cms .rtg-about__facts dt { margin: 0 0 4px; color: var(--rtg-700); font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.page-content--cms .rtg-about__facts dd { margin: 0; color: var(--rtg-900); font-size: 15px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.page-content--cms .rtg-about__facts a { color: inherit; text-decoration: none; }
.page-content--cms .rtg-about__facts a:hover { color: var(--rtg-700); text-decoration: underline; }
.page-content--cms .rtg-about__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 56px; padding-top: 48px; border-top: 1px solid #e6edf0; }

/* Video and photo galleries (Show Room, Expo AMIC): one radius, a petrol frame while the video loads, a calm hover. */
.page-content--cms .rtg-cms-video { overflow: hidden; margin: 0 0 24px; border-radius: var(--rtg-radius); background: var(--rtg-950); aspect-ratio: 16 / 9; }
.page-content--cms .rtg-cms-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-content--cms .rtg-cms-gallery { display: grid; gap: 16px; }
.page-content--cms .rtg-cms-gallery a { display: block; overflow: hidden; border-radius: var(--rtg-radius); background: #f2f5f6; }
.page-content--cms .rtg-cms-gallery img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.page-content--cms .rtg-cms-gallery a:hover img { transform: scale(1.03); }
.page-content--cms .rtg-cms-gallery a:focus-visible { outline: 2px solid var(--rtg-600); outline-offset: 3px; }
/* Show Room: eight photos as two wide ones over two rows of three. */
.page-content--cms .rtg-cms-gallery--showroom { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.page-content--cms .rtg-cms-gallery--showroom a { grid-column: span 2; }
.page-content--cms .rtg-cms-gallery--showroom a:nth-child(-n + 2) { grid-column: span 3; }
/* Expo AMIC: the first photo across the page, then four per row. */
.page-content--cms .rtg-cms-gallery--expo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-content--cms .rtg-cms-gallery--expo a:first-child { grid-column: 1 / -1; }
.page-content--cms .rtg-cms-gallery--expo a:first-child img { aspect-ratio: 16 / 7; }

@media (max-width: 991px) {
  .page-content--cms .rtg-about__intro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-content--cms .rtg-about__values { gap: 40px; }
}
@media (max-width: 767px) {
  .page-content--cms :is(.rtg-about, .rtg-showroom, .rtg-expo) { font-size: 15px; }
  .page-content--cms .rtg-cms-h2 { font-size: 23px; }
  .page-content--cms .rtg-cms-lead { font-size: 16px; }
  .page-content--cms .rtg-about__facts { padding: 4px 18px; }
  .page-content--cms .rtg-about__values { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; padding-top: 32px; }
  .page-content--cms .rtg-cms-gallery { gap: 10px; }
  .page-content--cms .rtg-cms-gallery--showroom, .page-content--cms .rtg-cms-gallery--expo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content--cms .rtg-cms-gallery--showroom a, .page-content--cms .rtg-cms-gallery--showroom a:nth-child(-n + 2) { grid-column: auto; }
  .page-content--cms .rtg-cms-gallery--expo a:first-child img { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) { .page-content--cms .rtg-cms-gallery img { transition: none; } .page-content--cms .rtg-cms-gallery a:hover img { transform: none; } }
