@charset "UTF-8";
/**
 * Landing «Aportación RAP de envases» — fc_landings.
 * Solo se carga en su página CMS, así que las reglas sobre el tema (título, desbordes) no salen de ella.
 * La fuente (Sofia Sans Variable) y el naranja (#E94D18) ya los trae hummingbird.
 */

/* --- Encaje en el tema ------------------------------------------------------------------ */

/* El H1 lo pinta el tema con el meta título de la página CMS: se mantiene para SEO, oculto a la vista. */
#cms .page-header {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Las bandas a sangre usan 100vw: sin esto Windows añade scroll horizontal por la barra vertical. */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

#cms .page-content--cms { padding: 0; margin: 0; }

/* --- Base ------------------------------------------------------------------------------- */

/* .rap-lb (imagen ampliada) se añade al final de <body>, fuera de .rap: también necesita las variables. */
.rap, .rap-lb {
  --rap-orange: #e94d18;
  --rap-orange-dark: #c73d0f;
  --rap-green: #006532;
  --rap-ink: #1f2a24;
  --rap-body: #3c4742;
  --rap-muted: #5c6560;
  --rap-label: #6b6556;
  --rap-sand: #f0ebdb;
  --rap-line: #ede8dc;
  --rap-dash: #c9c0a5;
  --rap-offset: 0px;   /* cabecera fija del tema; lo calcula landing.js */
  --rap-subnav-h: 56px;

  color: var(--rap-ink);
  font-family: "Sofia Sans Variable", "Sofia Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.rap *, .rap *::before, .rap *::after { box-sizing: border-box; }

/* Neutraliza .rich-text y el reboot de Bootstrap dentro de la landing. */
.rap h2, .rap h3, .rap p, .rap ol, .rap dl, .rap dd { margin: 0; padding: 0; }
.rap h2, .rap h3 { color: inherit; font-family: inherit; text-transform: none; }
.rap ol { list-style: none; }
.rap img { max-width: 100%; height: auto; display: block; }
.rap a { color: var(--rap-orange); text-decoration: none; }
.rap a:hover { color: var(--rap-orange-dark); }
.rap button { font-family: inherit; }
.rap :focus-visible { outline: 2px solid var(--rap-orange); outline-offset: 3px; border-radius: 4px; }

.rap-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.rap-narrow { max-width: 954px; margin: 0 auto; }

.rap-sec {
  scroll-margin-top: calc(var(--rap-offset) + var(--rap-subnav-h) + 8px);
  padding: clamp(60px, 7.5vw, 110px) 0;
}

/* Banda de color a sangre aunque el contenido CMS viva dentro del .container del tema. */
.rap-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.rap-band--sand { background: var(--rap-sand); }

/* --- Tipografía común ------------------------------------------------------------------- */

.rap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rap-green);
}
.rap-eyebrow__line { width: 22px; height: 1px; background: var(--rap-green); opacity: .4; }

.rap .rap-h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

.rap .rap-intro {
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--rap-muted);
}

.rap .rap-small { font-size: 14.5px; line-height: 1.7; color: var(--rap-muted); }

.rap-head--center { text-align: center; max-width: 740px; margin: 0 auto; }

.rap-accent { color: var(--rap-orange); }

.rap .rap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  background: var(--rap-orange);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  transition: background .25s, transform .25s;
}
.rap .rap-btn:hover { background: var(--rap-orange-dark); color: #fff; transform: translateY(-2px); }
.rap .rap-btn--lg { padding: 15px 32px; font-size: 16px; }

/* --- Subnavegación de secciones --------------------------------------------------------- */

.rap-subnav {
  position: sticky;
  top: var(--rap-offset);
  z-index: 50;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rap-line);
}
.rap-subnav__inner {
  height: var(--rap-subnav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.5vw, 24px);
}
.rap .rap-subnav__link {
  position: relative;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rap-ink);
  white-space: nowrap;
  transition: color .25s;
}
.rap .rap-subnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rap-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.rap .rap-subnav__link.is-active { color: var(--rap-orange); }
.rap .rap-subnav__link.is-active::after { transform: scaleX(1); }
.rap .rap-subnav__cta {
  margin-left: 8px;
  padding: 9px 20px;
  border-radius: 6px;
  background: var(--rap-orange);
  color: #fff;
  transition: background .25s;
}
.rap .rap-subnav__cta::after { display: none; }
.rap .rap-subnav__cta:hover, .rap .rap-subnav__cta.is-active { background: var(--rap-orange-dark); color: #fff; }

/* --- 01 · Hero -------------------------------------------------------------------------- */

.rap .rap-hero { padding: clamp(22px, 3vw, 36px) 0 clamp(56px, 7vw, 90px); }

.rap-hero__media { border-radius: 14px; overflow: hidden; background: #fbf9f3; }
.rap-hero__img { width: 100%; will-change: transform; }

.rap-hero__body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  align-items: flex-start;
  margin-top: clamp(30px, 4vw, 48px);
}
.rap-hero__main { flex: 1 1 440px; min-width: 280px; }
.rap-hero__date { border-left: 3px solid var(--rap-orange); padding-left: 16px; }
.rap-hero__date-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rap-label);
}
.rap-hero__date-value {
  margin-top: 2px;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--rap-orange);
  line-height: 1.1;
}
.rap .rap-hero__lead {
  margin-top: 20px;
  max-width: 660px;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.5;
  color: var(--rap-body);
  text-wrap: pretty;
}
.rap .rap-hero__lead strong { font-weight: 700; color: var(--rap-ink); }
.rap-hero__main .rap-btn { margin-top: 30px; }

.rap-hero__facts {
  flex: 0 1 340px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.rap-fact { padding: 18px 20px; border: 1px solid var(--rap-line); border-radius: 12px; }
.rap-fact--sand { background: var(--rap-sand); border-color: var(--rap-sand); }
.rap-fact__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rap-green);
}
.rap-fact__value { margin-top: 5px; font-size: 19px; font-weight: 700; line-height: 1.25; }

/* --- 02 · Qué es ------------------------------------------------------------------------ */

.rap-video-block { max-width: 1000px; margin: clamp(34px, 4vw, 56px) auto 0; text-align: center; }
.rap .rap-video-block__title {
  font-size: clamp(19px, 2.4vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.rap-video-block__title span {
  font-size: .62em;
  font-weight: 600;
  color: var(--rap-orange);
  letter-spacing: 0;
}

.rap .rap-video {
  position: relative;
  display: block;
  margin-top: clamp(20px, 2.6vw, 32px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #1f2a24;
}
.rap-video__thumb, .rap-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.rap-video__thumb { transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .3s; opacity: .92; }
.rap-video:hover .rap-video__thumb { transform: scale(1.03); opacity: 1; }
.rap-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: var(--rap-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .25s, background .25s;
}
.rap-video:hover .rap-video__play { transform: scale(1.08); background: var(--rap-orange-dark); }

.rap-flow { position: relative; margin-top: clamp(36px, 4.5vw, 60px); }
.rap-flow__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  scrollbar-width: none;
}
.rap-flow__row::-webkit-scrollbar { display: none; }
.rap-flow__card {
  flex: 1 1 210px;
  max-width: 270px;
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
}
.rap-flow__card--orange { background: var(--rap-orange); color: #fff; }
.rap-flow__card--green { background: var(--rap-green); color: #fff; }
.rap-flow__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--rap-sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rap-flow__card--orange .rap-flow__icon { background: rgba(255, 255, 255, .18); }
.rap-flow__card--green .rap-flow__icon { background: rgba(255, 255, 255, .15); }
.rap-flow__label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rap-label);
}
.rap-flow__card--orange .rap-flow__label, .rap-flow__card--green .rap-flow__label { color: inherit; opacity: .8; }
.rap-flow__text { margin-top: 7px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.rap-flow__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  color: var(--rap-orange);
  font-size: 26px;
  font-weight: 700;
}
.rap-flow__nav { display: none; }

.rap-split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: stretch;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.rap-quote {
  flex: 1 1 500px;
  min-width: 280px;
  background: #fff;
  border-left: 4px solid var(--rap-orange);
  border-radius: 4px 12px 12px 4px;
  padding: clamp(24px, 3vw, 38px);
}
.rap .rap-quote__text {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.rap-quote__text span { color: var(--rap-orange); }
.rap .rap-quote__note { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--rap-green); }
.rap-split__aside { flex: 1 1 280px; min-width: 250px; display: flex; align-items: center; }

/* --- 03 · Productos --------------------------------------------------------------------- */

.rap-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(34px, 4vw, 54px);
}
.rap-product {
  border: 1px solid var(--rap-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .35s, transform .35s, border-color .35s;
}
.rap-product:hover {
  box-shadow: 0 14px 34px rgba(31, 42, 36, .1);
  transform: translateY(-4px);
  border-color: var(--rap-orange);
}
.rap .rap-product__media { display: block; overflow: hidden; background: var(--rap-sand); cursor: zoom-in; }
.rap-product__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.rap-product:hover .rap-product__media img { transform: scale(1.05); }
.rap-product__body { padding: 18px 20px 22px; }
.rap .rap-product__name { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }

.rap-badge, .rap-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.rap-badge {
  margin-top: 12px;
  padding: 5px 10px;
  background: var(--rap-green);
  font-size: 10.5px;
  letter-spacing: .08em;
}

.rap-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: 12px;
  background: var(--rap-green);
  color: #fff;
}
.rap-banner__rings {
  position: absolute;
  right: -40px;
  bottom: -150px;
  width: 320px;
  height: 320px;
  opacity: .35;
  pointer-events: none;
}
.rap .rap-banner__title {
  position: relative;
  flex: 1 1 400px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
}
.rap .rap-banner__note { position: relative; flex: 1 1 280px; font-size: 14.5px; line-height: 1.65; opacity: .88; }

/* --- 04 · Cálculo ----------------------------------------------------------------------- */

.rap-calc { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: flex-start; }
.rap-calc__media, .rap-calc__body { flex: 1 1 420px; min-width: 280px; }
.rap-calc__img { border-radius: 12px; overflow: hidden; background: var(--rap-sand); }
.rap-calc__img img { width: 100%; }
.rap-calc__card {
  position: relative;
  margin: -44px clamp(16px, 3vw, 32px) 0;
  background: #fff;
  border: 1px solid var(--rap-line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 14px 34px rgba(31, 42, 36, .1);
  display: flex;
  align-items: center;
  gap: 16px;
}
.rap-calc__card svg { flex: none; width: 34px; height: 34px; }
.rap .rap-calc__card p { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

.rap .rap-steps { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.rap-step { display: flex; gap: clamp(16px, 2vw, 26px); padding: 22px 0; border-top: 1px solid var(--rap-line); }
.rap-step:last-child { border-bottom: 1px solid var(--rap-line); }
.rap-step__num {
  flex: none;
  font-size: clamp(34px, 4vw, 48px);
  line-height: .9;
  font-weight: 800;
  color: var(--rap-orange);
  letter-spacing: -.04em;
}
.rap .rap-step__title { font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.rap .rap-step__text { margin-top: 7px; font-size: 16px; line-height: 1.65; color: var(--rap-muted); }
.rap .rap-calc__foot { margin-top: 22px; color: #6b7570; }

/* --- 05 · En tu factura ----------------------------------------------------------------- */

.rap-phases {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 54px);
}
.rap-phase {
  flex: 1 1 380px;
  min-width: 280px;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  padding: clamp(24px, 2.8vw, 38px);
}
.rap-phase--next { background: transparent; border: 2px dashed var(--rap-dash); }
.rap-phase__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rap-phase__name { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rap-tag { padding: 6px 12px; font-size: 11px; letter-spacing: .1em; }
.rap-tag--green { background: var(--rap-green); }
.rap-tag--orange { background: var(--rap-orange); }
.rap .rap-phase__list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.rap-phase__list > div { padding-top: 16px; border-top: 1px solid var(--rap-line); }
.rap-phase--next .rap-phase__list > div { border-top-color: #ded7c2; }
.rap-phase__list dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rap-label);
}
.rap .rap-phase__list dd { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.rap .rap-phase__goal { font-size: 21px; font-weight: 700; line-height: 1.25; }
.rap-phase__goal--green { color: var(--rap-green); }
.rap-phase__goal--orange { color: var(--rap-orange); }
.rap-phases__arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-width: 52px; }
.rap-phases__arrow span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rap-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

/* --- 06 · FAQ --------------------------------------------------------------------------- */

.rap-faq { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 72px); align-items: flex-start; }
.rap-faq__head { flex: 1 1 280px; min-width: 260px; }
.rap .rap-h2--faq { font-size: clamp(28px, 3.4vw, 42px); }
.rap-faq__list { flex: 1 1 540px; min-width: 280px; }
.rap-faq__item { border-top: 1px solid var(--rap-line); }
.rap-faq__item:last-child { border-bottom: 1px solid var(--rap-line); }
.rap .rap-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--rap-ink);
  transition: color .25s;
}
.rap .rap-faq__q:hover { color: var(--rap-orange); }
.rap-faq__icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rap-sand);
  color: var(--rap-orange);
  position: relative;
  font-size: 0; /* el "+" del HTML queda de respaldo; la cruz se dibuja con ::before/::after */
}
/* Gira solo la cruz, no el cuadro: "+" → "×". */
.rap-faq__icon::before, .rap-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform .35s;
}
.rap-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.rap-faq__q[aria-expanded="true"] .rap-faq__icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.rap-faq__q[aria-expanded="true"] .rap-faq__icon::after { transform: translate(-50%, -50%) rotate(135deg); }
.rap .rap-faq__a p { padding: 0 56px 24px 0; font-size: 16px; line-height: 1.7; color: var(--rap-muted); }
/* Sin JS las respuestas quedan abiertas; landing.js añade .rap--js y las pliega. */
.rap--js .rap-faq__a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22, .61, .36, 1), opacity .3s;
}
.rap--js .rap-faq__a.is-open { opacity: 1; }

/* --- Cierre ----------------------------------------------------------------------------- */

.rap .rap-close { position: relative; overflow: hidden; padding: clamp(66px, 8vw, 120px) 0; }
.rap-close__rings {
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 400px;
  height: 400px;
  opacity: .5;
  pointer-events: none;
}
.rap-close__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rap-close__body { display: flex; flex-direction: column; align-items: center; }
.rap-close__mark { width: 36px; height: 36px; margin-bottom: 22px; }
.rap .rap-close__title {
  margin-top: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 20ch;
}
.rap .rap-close__sub { margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--rap-muted); }
.rap-close__body .rap-btn { margin-top: 30px; }
.rap .rap-close__logo { margin-top: clamp(50px, 6vw, 80px); height: 64px; width: auto; }

/* --- Lightbox (lo crea landing.js) ------------------------------------------------------ */

.rap-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(31, 42, 36, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}
.rap-lb[hidden] { display: none; }
.rap-lb__box {
  position: relative;
  width: 100%;
  max-width: min(680px, 92vw);
  background: #f0ebdb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  font-family: "Sofia Sans Variable", "Sofia Sans", system-ui, sans-serif;
  color: #1f2a24;
}
.rap-lb__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.rap-lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
}
.rap-lb__name { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rap-lb__bar .rap-badge { margin-top: 0; flex: none; }
.rap-lb__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #1f2a24;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* --- Animación de entrada --------------------------------------------------------------- */

.rap--js [data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(22px);
}
.rap--js [data-reveal] {
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

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

@media (max-width: 1059px) {
  /* Menú de secciones deslizable en lugar de la hamburguesa del diseño: el tema ya tiene la suya. */
  .rap-subnav__inner {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rap-subnav__inner::-webkit-scrollbar { display: none; }
  .rap .rap-subnav__cta { margin-left: 0; }
  .rap-subnav__inner::after { content: ""; flex: 0 0 1px; }
}

@media (max-width: 759px) {
  .rap { --rap-subnav-h: 52px; }

  .rap .rap-btn--block-sm { width: 100%; padding: 17px 24px; }

  .rap .rap-video-block__title { font-size: 28px; line-height: 1.14; }
  .rap-video-block__title span { display: block; margin-top: 10px; font-size: min(.62em, 4.5vw); }

  /* Flujo «quién / qué / para qué» como carrusel. */
  .rap-flow__row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -18px;
    padding: 0 18px 4px;
  }
  .rap-flow__card { flex: 0 0 78%; max-width: 78%; scroll-snap-align: center; }
  .rap-flow__arrow { display: none; }
  .rap-flow__nav {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--rap-orange);
    box-shadow: 0 6px 18px rgba(31, 42, 36, .18);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }
  .rap-flow__nav--prev { left: -6px; }
  .rap-flow__nav--next { right: -6px; }

  .rap-products { grid-template-columns: repeat(2, 1fr); }
  .rap-product__body { padding: 14px 14px 16px; }
  .rap .rap-product__name { font-size: 13px; }

  .rap-phases__arrow span { transform: rotate(90deg); }

  .rap .rap-faq__a p { padding-right: 0; }

  .rap .rap-close__sub { max-width: 30ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rap *, .rap *::before, .rap *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rap--js [data-reveal].is-hidden { opacity: 1; transform: none; }
}
