/* ---------------------------------------------------
   Remake 2026: "Fotógrafo y documentalista"
   Loaded after custom.css. Adds moving heroes (video loop with a
   Ken Burns poster fallback), vertical 9:16 card strips, credits,
   brand tags, video modal and draft marks for placeholder copy.
--------------------------------------------------------- */

:root {
  --rm-ink: #211f1a;
  --rm-cream: #F4F1EA;
  --rm-muted: #8a8272;
  --rm-accent: #c4402a;
  --rm-white-70: rgba(255, 255, 255, 0.72);
  --rm-draft: #f2c14e;
}

/* ---------- Header: 1:1:1 band ----------
   Andrés asked for top margin = bottom margin = text height. The logo
   text is 20px, so the header is a 60px band: 20px / 20px text / 20px.
   The theme spread that height across header padding, section padding and
   per-item top margins (122px total); all of it is zeroed here and every
   item sits on a single 20px line. */
:root { --rm-header-x: 20px; }

.apo-header { padding: 0 !important; }

/* 1.5 : 1 : 1.5 (Andrés, 4 de octubre): 30px / 20px text / 30px = 80px */
.apo-header-section {
  padding: calc(var(--rm-header-x) * 1.5) 40px !important;
  min-height: 0 !important;
}

/* The theme offsets item margins with negative margins (-20px top on
   .apo-header-items, -10px on the nav) and 30px line boxes; neutralize the
   vertical part so everything sits exactly on the 20px line. */
.apo-header-component-first,
.apo-header-component-middle,
.apo-header-component-last {
  height: var(--rm-header-x);
  line-height: var(--rm-header-x) !important;
  display: flex !important;
  align-items: center;
}

.apo-header-component-first,
.apo-header-component-middle,
.apo-header-component-last { margin: 0 !important; }

.apo-social-networks a { padding-top: 0 !important; padding-bottom: 0 !important; }

.apo-header-component-middle { justify-content: center; }

/* Below 900px the inline menu hides and the burger takes over (custom.css);
   the display:flex above must not bring it back. */
@media (max-width: 900px) {
  .apo-header-component-middle { display: none !important; }
}

.apo-text-logo { white-space: nowrap; }
.apo-navigation > li > a { white-space: nowrap; }
.apo-header-component-last { justify-content: flex-end; }

.apo-header-items {
  display: flex !important;
  align-items: center;
  height: var(--rm-header-x);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.apo-navigation-container { display: block !important; line-height: var(--rm-header-x); }
.apo-navigation { margin: 0 !important; height: var(--rm-header-x); align-items: center; }
.apo-header-item { display: flex; align-items: center; height: var(--rm-header-x); }

.apo-header-item,
.apo-navigation > li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.apo-text-logo,
.apo-navigation > li > a,
.rm-lang,
.apo-social-networks,
.apo-social-networks a {
  line-height: var(--rm-header-x) !important;
}

.apo-navigation > li > a { padding-top: 0 !important; padding-bottom: 0 !important; display: block; }

.apo-header-button.hamburger {
  height: var(--rm-header-x);
  line-height: var(--rm-header-x);
  padding: 0;
  display: flex;
  align-items: center;
}

.apo-social-networks { display: flex; align-items: center; height: var(--rm-header-x); }

@media (max-width: 767px) {
  .apo-header-section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---------- Header: language switch ---------- */

.rm-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.rm-lang a { color: rgba(255, 255, 255, 0.55); }
.rm-lang a.is-active { color: #fff; }
.rm-lang a.is-disabled { cursor: not-allowed; }
.rm-lang span { color: rgba(255, 255, 255, 0.3); }

/* ---------- Moving heroes ---------- */

.rm-hero,
.rm-card {
  position: relative;
  overflow: hidden;
}

/* The theme paints a 40% black scrim on every section via ::after (z 1);
   media sits underneath it at z 0, text above at z 2. */
.rm-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: rm-kenburns 24s ease-in-out infinite alternate;
}

.rm-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Slideshow layers (interim until a clip exists): stacked inside .rm-media,
   crossfading; the video sits above them and takes over when it plays. */
.rm-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.rm-slide.is-on { opacity: 1; }
.rm-playing .rm-slide { display: none; }

.rm-role.rm-role-sub {
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 3px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

.rm-playing > .rm-media { animation: none; }
.rm-playing > .rm-media video { opacity: 1; }
.rm-missing > .rm-media video { display: none; }

/* No poster yet: neutral, slightly moving gradient so the layout still reads */
.rm-media-empty {
  background-image:
    radial-gradient(ellipse at 30% 40%, #3b3f3c 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, #2c2a26 0%, transparent 55%),
    linear-gradient(135deg, #1c1e1d, #2a2825);
  background-size: 140% 140%;
}

@keyframes rm-kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* Left-side shade: hero text always sits in the left third, and real
   footage (sun, light walls) often puts its brightest area right there. */
.rm-hero > .rm-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 70%);
}

.rm-hero .apo-section { position: relative; z-index: 2; }
.rm-hero-dim::after { opacity: .55 !important; }

/* Hero text: left aligned, editorial */
.rm-hero .apo-fp-layer,
.rm-hero .apo-striped-photo-categories { text-align: left; }

.apo-fp-eyebrow span {
  color: var(--rm-white-70);
  font-size: 12px;
  letter-spacing: 3px;
}

.rm-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.rm-welcome {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 22px 0 0;
}

.rm-logline {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin: 0 0 26px;
}

.rm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-top: 38px;
}

.rm-actions .apo-btn,
.rm-hero .apo-btn { color: #fff; background: none; border: none; cursor: pointer; }

.rm-btn-ghost { opacity: .7; }
.rm-btn-ghost:hover { opacity: 1; }

/* ---------- Manifesto ---------- */

.rm-manifesto p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.5;
  color: #fff;
  max-width: 820px;
  margin: 0 0 22px;
}

.rm-manifesto p:last-child {
  font-weight: 500;
  margin-bottom: 0;
}

.rm-manifesto em { font-style: italic; }

/* ---------- Credits ---------- */

.rm-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 42px;
  margin: 0;
}

.rm-credits dt {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.rm-credits dd {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

/* ---------- Horizontal 9:16 strips (Marcas, Fotografía) ---------- */

.fp-section.rm-strip-section {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background-color: #111312;
  padding-left: 0;
  padding-right: 0;
}

.fp-section.rm-strip-section::after { content: none; }

.rm-strip-head {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 34px;
  padding: 0 70px;
  text-align: left;
}

.rm-strip-head .apo-section-title { color: #fff; }

.rm-strip-lead {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--rm-white-70);
  margin: 0;
}

.rm-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 70px;
  padding: 4px 70px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

/* .rm-strip prefix: the theme's ".apo-page-dark-skin a" would otherwise win
   and turn the linked cards back into plain inline links. Height drives the
   size so a full 9:16 card always fits the viewport under the header. */
.rm-strip .rm-card {
  flex: 0 0 auto;
  height: min(58vh, 560px);
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1c1e1d;
}

.rm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0) 100%);
}

.rm-card-body {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  text-align: left;
}

.rm-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
  margin: 10px 0 8px;
}

.rm-card-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

a.rm-card:hover .rm-media { transform: scale(1.06); transition: transform .8s ease; }

/* Photography strip: cream background like the old Fauna section */
.fp-section.rm-strip-light { background-color: var(--rm-cream); }
.rm-strip-light .rm-strip-head .apo-section-title { color: var(--rm-ink); }
.rm-strip-light .apo-fp-eyebrow span,
.rm-strip-light .rm-strip-lead { color: var(--rm-muted); }
.rm-strip-light .rm-strip { scrollbar-color: rgba(33, 31, 26, .25) transparent; }

/* ---------- Brand tags ---------- */

.rm-legend {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

.rm-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  /* the theme's 30px line-height made these 40px-tall ovals */
  line-height: 1;
  padding: 5px 10px 4px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

.rm-tag-alianza { color: #e8b86a; }
.rm-tag-ugc     { color: #8fd1c1; }
.rm-tag-cliente { color: #d9d4c7; }

/* ---------- Clients ---------- */

.rm-client-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 46px;
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 0;
}

.rm-client-list li {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 1.5px;
  color: #6f6858;
}

/* ---------- Client logo band (endless marquee) ----------
   Sits at the foot of the last screen (Contacto) as a cream footer strip.
   Logos come from mixed sources (transparent PNGs, JPGs with flat
   backgrounds), so they're unified as grayscale multiplied onto the cream,
   which also drops white/cream backgrounds. Full color on hover. The list
   is rendered twice and the track slides by exactly one copy (-50%), so
   the loop has no visible seam. */
/* Marcas y comunidad + client logos share one widescreen slot: brand
   cards on top, logo band at the foot. Cards are sized from the viewport
   height so head + cards + band fit a single screen. */
#marcas {
  height: 100vh;
  min-height: 640px;
  /* top = header band, bottom = logo band; the free space left is split
     evenly above the heading and below the cards */
  padding-top: 80px;
  padding-bottom: 200px;
  justify-content: center;
}

#marcas .rm-strip-head { margin-bottom: 20px; }

/* Marcas shares the cream of the logo band (Andrés, 5 de octubre), so the
   section and "Han confiado en mi trabajo" read as one surface. The band
   drops its own fill; a hairline marks where the logos start. */
#marcas .rm-logo-band {
  background: transparent;
  border-top: 1px solid rgba(33, 31, 26, 0.12);
  margin: 0 70px;
  left: 0;
  right: 0;
  padding-bottom: 68px;
}

/* Legend tags sit on cream here: darker versions of the card tag colors */
.rm-strip-light .rm-legend .rm-tag-alianza { color: #a8721c; }
.rm-strip-light .rm-legend .rm-tag-ugc     { color: #2f7f6d; }
.rm-strip-light .rm-legend .rm-tag-cliente { color: #6f6858; }
#marcas .rm-strip .rm-card { height: min(46vh, 480px); }

/* Brand descriptions are longer than the cards can hold at rest, so with a
   mouse they open on hover: the card shows tag + name, the text slides in
   over a darker veil. Touch screens keep the text always visible. */
#marcas .rm-card { overflow: hidden; }
#marcas .rm-card-body { width: 100%; padding: 18px 16px; }
#marcas .rm-card-text { font-size: 12px; line-height: 1.5; }
@media (hover: hover) {
  #marcas .rm-card-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s ease, opacity .35s ease;
  }
  #marcas .rm-card::after { transition: background .35s ease; }
  #marcas .rm-card:hover .rm-card-text,
  #marcas .rm-card:focus-within .rm-card-text { max-height: 260px; opacity: 1; }
  #marcas .rm-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .62) 60%, rgba(0, 0, 0, .25) 100%);
  }
}

.rm-logo-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--rm-cream);
  padding: 16px 0 14px;
}

.rm-logo-band-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rm-muted);
  text-align: center;
  margin: 0 0 12px;
}

.rm-logo-band-copy {
  font-family: 'Muli', sans-serif;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--rm-muted);
  text-align: center;
  margin: 12px 0 0;
}

.rm-marquee {
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rm-marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: rm-marquee 60s linear infinite;
}

.rm-marquee:hover .rm-marquee-track { animation-play-state: paused; }

.rm-marquee-track li {
  flex: 0 0 auto;
  height: 64px;
  padding: 0 34px;
  display: flex;
  align-items: center;
}

.rm-marquee-track img {
  max-height: 100%;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: .72;
  transition: filter .3s ease, opacity .3s ease;
}

.rm-marquee-track li:hover img { filter: none; opacity: 1; }

@keyframes rm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  #marcas { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 150px; }
  #marcas .rm-strip .rm-card { height: min(52vh, 420px); }
  #marcas .rm-logo-band { margin: 0 20px; }
  .rm-marquee-track li { height: 46px; padding: 0 22px; }
  .rm-marquee-track img { max-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-marquee-track { animation: none; }
  .rm-marquee { overflow-x: auto; }
}

.rm-clients .apo-fp-eyebrow { justify-content: center; }
.rm-clients .apo-fp-eyebrow span { color: var(--rm-muted); }

/* ---------- Contact ---------- */

.rm-contact {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rm-contact li {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.rm-contact span {
  width: 150px;
  flex: 0 0 150px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.rm-contact a {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.rm-contact a:hover { border-color: #fff; }

#contacto { padding-top: 120px; }
#contacto .apo-section { padding-top: 0 !important; padding-bottom: 0 !important; }
#contacto .apo-fp-footer-line { color: rgba(255, 255, 255, 0.5); margin-top: 40px; }

/* ---------- Up / down pager ----------
   Small and quiet: two 36px circles bottom-right, translucent dark so
   they read on both video heroes and the cream sections. */
.rm-pager {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-pager-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  /* same orange as the active side dot */
  background: var(--rm-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.rm-pager-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rm-pager-btn:hover:not(:disabled) {
  background: #d9502f;
  transform: scale(1.06);
}

.rm-pager-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.rm-pager-btn:disabled { opacity: .3; box-shadow: none; cursor: default; }

@media (max-width: 767px) {
  .rm-pager { right: 14px; bottom: 14px; gap: 6px; }
  .rm-pager-btn { width: 36px; height: 36px; }
  .rm-pager-btn svg { width: 16px; height: 16px; }
}

/* ---------- Video modal ---------- */

.rm-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 9, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 40px 40px;
}

.rm-modal[hidden] { display: none; }

.rm-modal-frame {
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-modal-frame iframe { width: 100%; height: 100%; border: 0; }

.rm-modal-pending {
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  text-align: center;
  max-width: 460px;
}

/* ---------- Draft marks (remove body.show-drafts before publishing) ---------- */

.rm-badge { display: none; }
.rm-draft-toggle { display: none; }

.show-drafts .rm-badge {
  display: block;
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1c1a14;
  background: var(--rm-draft);
  padding: 5px 9px;
  border-radius: 3px;
}

.show-drafts .rm-hero .rm-badge {
  top: 96px;
  bottom: auto;
}

.show-drafts .rm-card .rm-badge {
  top: 12px;
  bottom: auto;
  right: 12px;
  left: 12px;
  text-align: center;
  font-size: 9px;
}

.show-drafts .tbd {
  outline: 1px dashed var(--rm-draft);
  outline-offset: 6px;
}

.show-drafts .rm-draft-toggle {
  display: block;
  position: fixed;
  z-index: 250;
  left: 16px;
  bottom: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #1c1a14;
  background: var(--rm-draft);
  border: 0;
  border-radius: 20px;
  padding: 7px 14px;
  cursor: pointer;
}

.show-drafts.drafts-hidden .rm-badge { display: none; }
.show-drafts.drafts-hidden .tbd { outline: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rm-strip-head { padding: 0 48px; }
  .rm-strip { padding-left: 48px; padding-right: 48px; scroll-padding-inline: 48px; }
}

@media (min-width: 901px) {
  /* Six menu items no longer fit the theme's fixed-width middle column:
     let the side columns shrink to content and keep the nav on one line. */
  .apo-header-section { display: flex !important; align-items: center; }
  .apo-header-component-first,
  .apo-header-component-last { width: auto !important; flex: 0 0 auto; }
  .apo-header-component-middle { width: auto !important; flex: 1 1 auto; }
  .apo-navigation { display: flex; justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .apo-navigation > li { margin-left: 2px; margin-right: 2px; }
  .apo-navigation > li > a { padding-left: 7px; padding-right: 7px; }
}

@media (max-width: 767px) {
  .rm-strip-head { padding: 0 26px; margin-bottom: 24px; }
  .rm-strip { padding-left: 26px; padding-right: 26px; scroll-padding-inline: 26px; gap: 12px; }
  .rm-strip .rm-card { height: min(60vh, 480px); }
  .rm-credits { gap: 12px 28px; }
  .rm-contact li { flex-direction: column; gap: 2px; }
  .rm-contact span { width: auto; flex: none; }
  .rm-lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-media { animation: none; }
}

/* Short laptop screens (e.g. 1280x720): keep Marcas + logo band and
   Contacto within one screen each. */
@media (min-width: 768px) and (max-height: 780px) {
  #marcas { padding-top: 80px; padding-bottom: 170px; }
  #marcas .rm-logo-band { padding-bottom: 46px; }
  #marcas .rm-strip .rm-card { height: 36vh; }
  #marcas .rm-card-body { padding: 12px 11px; }
  #marcas .rm-card-title { font-size: 24px; margin: 6px 0 5px; }
  #marcas .rm-card-text { font-size: 10.5px; line-height: 1.4; }
  .rm-logo-band { padding: 10px 0 12px; }
  .rm-logo-band-label { margin-bottom: 8px; }
  .rm-marquee-track li { height: 50px; }
  #contacto { padding-top: 100px; }
  #contacto .apo-section-title { font-size: clamp(36px, 5vw, 64px); }
  .rm-contact { gap: 6px; }
  #contacto .apo-fp-footer-line { margin-top: 24px; }
}


/* ---------- Floating WhatsApp button ----------
   Bottom-left, mirrors the pager on the right. Follows the scroll on
   every screen. */
.rm-wsp {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rm-wsp svg { width: 26px; height: 26px; display: block; }
.rm-wsp:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, .34); }
.rm-wsp:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.show-drafts .rm-draft-toggle { bottom: 80px; }
@media (max-width: 767px) {
  .rm-wsp { left: 14px; bottom: 14px; width: 42px; height: 42px; }
  .rm-wsp svg { width: 23px; height: 23px; }
}


/* ---------- YouTube embed as hero clip (data-yt) ----------
   Sized to cover the section like a background video and slightly
   over-scaled so the player's title bar falls outside the frame. */
.rm-yt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%) scale(1.18);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.rm-yt-on .rm-yt { opacity: 1; }
.rm-yt-on > .rm-media { animation: none; }
