/**
 * Taller & Servicios RM — demo theme
 * Works with Bootstrap 5.3 utilities where helpful; demo-specific layout prefixed with .rm-
 */

.rm-page {
  --rm-navy: #071018;
  --rm-navy-mid: #0f2438;
  --rm-slate: #1a3349;
  --rm-accent: #2d8cff;
  --rm-accent-soft: rgba(45, 140, 255, 0.14);
  --rm-ink: #0f1419;
  --rm-muted: #5a6570;
  --rm-line: rgba(255, 255, 255, 0.08);
  --rm-surface: #f3f5f8;
  --rm-surface-2: #e8ecf2;
  --rm-card: #ffffff;
  --rm-radius: 12px;
  --rm-radius-sm: 8px;
  --rm-shadow: 0 12px 40px rgba(7, 16, 24, 0.08);
  --rm-max: 72rem;
  --rm-font: "Outfit", system-ui, sans-serif;
  --rm-display: "Barlow Condensed", system-ui, sans-serif;

  font-family: var(--rm-font);
  color: var(--rm-ink);
  background: var(--rm-surface);
  line-height: 1.55;
}

.rm-page h1,
.rm-page h2,
.rm-page h3,
.rm-page h4,
.rm-page h5 {
  font-family: var(--rm-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--rm-navy);
}

.rm-wrap {
  width: min(100% - 1.5rem, var(--rm-max));
  margin-inline: auto;
}

/* ——— Top bar (below GWT site navbar) ——— */
.rm-topbar {
  position: sticky;
  top: var(--gwt-site-navbar-offset, 4.25rem);
  z-index: 1020;
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rm-line);
}

.rm-topbar__inner {
  width: min(100% - 1.5rem, var(--rm-max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
}

.rm-brand {
  font-family: var(--rm-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rm-brand:hover,
.rm-brand:focus-visible {
  color: var(--rm-accent) !important;
}

.rm-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--rm-radius-sm);
  background: transparent;
  cursor: pointer;
}

.rm-nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: #fff;
  border-radius: 1px;
}

.rm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.rm-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.rm-nav a:hover,
.rm-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rm-nav a.is-active {
  color: #fff;
  background: var(--rm-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(45, 140, 255, 0.35);
}

@media (max-width: 62rem) {
  .rm-nav-toggle {
    display: flex;
  }

  .rm-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--rm-line);
  }

  .rm-nav.is-open {
    display: flex;
  }

  .rm-nav a {
    border-radius: var(--rm-radius-sm);
    padding: 0.65rem 0.75rem;
  }
}

/* ——— Hero ——— */
.rm-hero {
  min-height: clamp(20rem, 58vh, 36rem);
  background-size: cover;
  background-position: center;
  color: #e8eef5;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 3.5rem;
}

.rm-hero--page {
  min-height: clamp(16rem, 42vh, 26rem);
  align-items: center;
  padding: 2.5rem 0;
}

.rm-hero__inner,
.rm-hero__content {
  width: min(100% - 1.5rem, var(--rm-max));
  margin-inline: auto;
}

.rm-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.rm-hero__content h1 {
  max-width: 26ch;
}

.rm-hero p {
  max-width: 40rem;
  color: rgba(232, 238, 245, 0.9);
  font-size: 1.05rem;
}

.rm-hero .rm-contact-hero-note {
  max-width: 42rem;
}

.rm-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-accent);
  margin-bottom: 0.5rem;
}

.rm-hero .rm-kicker {
  color: #7eb8ff;
}

.rm-hero__trust {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.rm-hero__trust li {
  font-size: 0.88rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.rm-hero a.rm-text-link {
  color: #b8d9ff;
}

/* ——— Sections ——— */
.rm-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.rm-section--alt {
  background: #fff;
}

.rm-section--surface {
  background: var(--rm-surface);
}

.rm-section--surface-2 {
  background: var(--rm-surface-2);
}

.rm-section--recent {
  background: linear-gradient(180deg, #fff 0%, var(--rm-surface) 100%);
}

.rm-section--stats {
  background: var(--rm-navy);
  color: #e8eef5;
}

.rm-section--stats h3,
.rm-section--stats p {
  color: inherit;
}

.rm-section--stats .rm-stat h3 {
  color: #fff;
}

.rm-section--timeline {
  background: #fff;
}

.rm-section--video {
  background: var(--rm-navy-mid);
  color: #e8eef5;
}

.rm-section--video h2 {
  color: #fff;
}

.rm-section--video .rm-lead {
  color: rgba(232, 238, 245, 0.88);
}

.rm-section--project-cta {
  background: linear-gradient(105deg, var(--rm-slate) 0%, var(--rm-navy-mid) 100%);
  color: #e8eef5;
}

.rm-section--project-cta h2 {
  color: #fff;
}

.rm-section--project-cta .rm-lead {
  color: rgba(232, 238, 245, 0.9);
}

.rm-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.rm-section-head--wide {
  max-width: 48rem;
}

.rm-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0.35rem 0;
}

.rm-lead {
  font-size: 1.05rem;
  color: var(--rm-muted);
  margin: 0;
}

.rm-page-intro {
  font-size: 1.05rem;
  color: var(--rm-muted);
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
}

/* ——— Grids & cards ——— */
.rm-grid {
  display: grid;
  gap: 1.25rem;
}

.rm-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.rm-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.rm-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.rm-card {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow);
  border: 1px solid rgba(15, 36, 56, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rm-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.rm-card h3 {
  font-size: 1.2rem;
  margin: 1rem 1.1rem 0.35rem;
}

.rm-card p {
  margin: 0 1.1rem 1rem;
  font-size: 0.95rem;
  color: var(--rm-muted);
  flex: 1;
}

.rm-card .rm-text-link {
  margin: 0 1.1rem 1.1rem;
}

/* ——— CTA row / band ——— */
.rm-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.rm-cta-row h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.35rem;
}

.rm-cta-band {
  background: var(--rm-navy);
  color: #e8eef5;
  border-radius: var(--rm-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.rm-cta-band h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.5rem;
}

.rm-cta-band .rm-lead {
  color: rgba(232, 238, 245, 0.88);
  max-width: 40rem;
  margin-inline: auto;
}

.rm-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ——— Buttons ——— */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.rm-btn:hover {
  transform: translateY(-1px);
}

.rm-btn--primary {
  background: var(--rm-accent);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(45, 140, 255, 0.35);
}

.rm-btn--primary:hover,
.rm-btn--primary:focus-visible {
  background: #1a7ae8;
  color: #fff !important;
}

.rm-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.rm-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rm-section--surface .rm-btn--outline,
.rm-page .rm-card .rm-btn--outline,
.rm-split__body .rm-btn--outline {
  color: var(--rm-navy) !important;
  border-color: rgba(15, 36, 56, 0.25);
}

.rm-section--surface .rm-btn--outline:hover,
.rm-page .rm-card .rm-btn--outline:hover,
.rm-split__body .rm-btn--outline:hover {
  background: var(--rm-surface);
}

.rm-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: transparent;
}

.rm-btn--whatsapp {
  background: #25d366;
  color: #fff !important;
}

.rm-btn--whatsapp:hover {
  background: #1ebe57;
  color: #fff !important;
}

.rm-text-link {
  color: var(--rm-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.rm-text-link:hover,
.rm-text-link:focus-visible {
  border-bottom-color: currentColor;
}

/* ——— Panels & split ——— */
.rm-panel {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow);
  border: 1px solid rgba(15, 36, 56, 0.06);
}

.rm-panel__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.rm-panel .rm-kicker,
.rm-panel h3,
.rm-panel p,
.rm-panel .rm-text-link {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.rm-panel h3 {
  margin-top: 1rem;
}

.rm-panel p {
  color: var(--rm-muted);
}

.rm-panel .rm-text-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.rm-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem;
  align-items: center;
}

.rm-split__media img {
  width: 100%;
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
  display: block;
}

.rm-split__body .rm-kicker {
  margin-bottom: 0.35rem;
}

.rm-split__body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.75rem;
}

/* ——— Projects grid ——— */
.rm-project {
  position: relative;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}

.rm-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rm-project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 16, 24, 0.88));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.rm-project:hover .rm-project__overlay,
.rm-project:focus-within .rm-project__overlay {
  opacity: 1;
}

@media (max-width: 48rem) {
  .rm-project__overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(7, 16, 24, 0.88));
    padding: 0.65rem;
  }

  .rm-project__overlay h4 {
    font-size: 0.82rem;
  }
}

.rm-project__overlay h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--rm-font);
  font-weight: 600;
}

/* ——— Stats ——— */
.rm-stat {
  text-align: center;
  padding: 0.5rem;
}

.rm-stat h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--rm-accent);
  margin: 0 0 0.25rem;
}

.rm-stat p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ——— Services page ——— */
.rm-service-cat {
  margin-bottom: 3rem;
}

.rm-service-cat__head {
  margin-bottom: 1.25rem;
}

.rm-service-cat__head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 0.35rem;
}

.rm-service-cat__head p {
  margin: 0;
  color: var(--rm-muted);
  max-width: 48rem;
}

.rm-service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.rm-service-tile {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  padding: 0 0 1.1rem;
  border: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: 0 4px 24px rgba(7, 16, 24, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rm-service-tile__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--rm-radius) var(--rm-radius) 0 0;
}

.rm-service-tile__label {
  display: inline-block;
  margin: 0.85rem 1.1rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rm-accent);
}

.rm-service-tile h3 {
  font-size: 1.1rem;
  margin: 0.35rem 1.1rem;
}

.rm-service-tile p {
  margin: 0 1.1rem;
  font-size: 0.92rem;
  color: var(--rm-muted);
  flex: 1;
}

.rm-service-tile .rm-text-link {
  margin: 0.75rem 1.1rem 0;
}

/* ——— Values & quotes (Nosotros) ——— */
.rm-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.rm-value-item {
  background: var(--rm-card);
  border-radius: var(--rm-radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(15, 36, 56, 0.07);
}

.rm-value-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.rm-value-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--rm-muted);
}

.rm-quote-card {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  padding: 1.35rem;
  border: 1px solid rgba(15, 36, 56, 0.07);
  box-shadow: var(--rm-shadow);
}

.rm-quote-card blockquote {
  margin: 0;
}

.rm-quote-card blockquote p {
  font-size: 1rem;
  color: var(--rm-ink);
  font-style: italic;
}

.rm-quote-card footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rm-muted);
}

/* ——— Team ——— */
.rm-team-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.rm-team-featured__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  padding: 1.25rem;
  border: 1px solid rgba(15, 36, 56, 0.07);
  box-shadow: var(--rm-shadow);
}

@media (min-width: 36rem) {
  .rm-team-featured__card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.rm-team-featured__card img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: var(--rm-radius-sm);
  flex-shrink: 0;
}

.rm-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rm-accent);
  margin: 0 0 0.35rem;
}

.rm-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 1rem;
}

.rm-team-member {
  background: var(--rm-card);
  border-radius: var(--rm-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(15, 36, 56, 0.07);
}

.rm-team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.65rem;
}

.rm-team-member h4 {
  font-family: var(--rm-font);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.rm-team-member p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--rm-muted);
}

/* ——— Gallery ——— */
.rm-gallery-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.rm-gallery-intro h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 0.5rem;
}

.rm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.rm-gallery-cell {
  margin: 0;
  background: var(--rm-card);
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: var(--rm-shadow);
}

.rm-gallery-cell a {
  display: block;
  line-height: 0;
}

.rm-gallery-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.rm-gallery-cell figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rm-muted);
}

/* ——— Contact page ——— */
.rm-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.rm-contact-card {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  padding: 1.35rem;
  border: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: var(--rm-shadow);
}

.rm-contact-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rm-contact-card p,
.rm-contact-card a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rm-muted);
}

.rm-contact-card a {
  color: var(--rm-accent);
  font-weight: 600;
  text-decoration: none;
}

.rm-contact-card a:hover {
  text-decoration: underline;
}

.rm-contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  align-items: start;
}

.rm-contact-form-wrap {
  background: var(--rm-card);
  border-radius: var(--rm-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: var(--rm-shadow);
}

.rm-contact-form-wrap h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.rm-contact-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--rm-navy);
}

.rm-contact-form .form-control,
.rm-contact-form .form-select {
  border-radius: var(--rm-radius-sm);
  border-color: rgba(15, 36, 56, 0.15);
}

.rm-contact-form .form-control:focus,
.rm-contact-form .form-select:focus {
  border-color: var(--rm-accent);
  box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.2);
}

.rm-contact-demo-note {
  font-size: 0.85rem;
  color: var(--rm-muted);
  margin-top: 1rem;
}

.rm-map-card {
  background: var(--rm-navy-mid);
  color: #e8eef5;
  border-radius: var(--rm-radius);
  padding: 1.5rem;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rm-map-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.rm-map-card p {
  margin: 0 0 1rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ——— Partner strip ——— */
.rm-partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 1rem;
  background: rgba(15, 36, 56, 0.04);
  border-radius: var(--rm-radius-sm);
}

.rm-partner-strip span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-muted);
}

/* ——— Video block ——— */
.rm-video-block {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.rm-video-block h2 {
  color: #fff;
}

/* ——— Footer ——— */
.rm-footer {
  background: var(--rm-navy);
  color: rgba(232, 238, 245, 0.88);
  padding: 2.5rem 0 1rem;
}

.rm-footer h5 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.rm-footer a {
  color: #b8d9ff;
  text-decoration: none;
}

.rm-footer a:hover {
  text-decoration: underline;
}

.rm-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rm-line);
}

.rm-footer__hint {
  opacity: 0.65;
  font-size: 0.85em;
}

.rm-footer__credit {
  padding-top: 1rem;
  text-align: center;
}

.rm-footer__credit small {
  opacity: 0.65;
  font-size: 0.8rem;
}

.rm-gwt-strip {
  background: #04080c;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
}

.rm-gwt-strip p {
  margin: 0.35rem 0;
}

.rm-gwt-btn--primary,
.rm-gwt-btn--outline {
  display: inline-block;
  margin: 0.2rem 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}

.rm-gwt-btn--primary {
  background: var(--rm-accent);
  color: #fff !important;
}

.rm-gwt-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

/* ——— Modal gallery (Bootstrap) ——— */
.modal-content.rm-gallery-modal__content {
  background: rgba(7, 16, 24, 0.95);
  border: none;
}

.modal-content.rm-gallery-modal__content .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.rm-gallery-modal__img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.rm-gallery-modal__caption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
}
