/* ==========================================================================
   REDISEÑO 2027 — "Taller de noche, lámpara encendida"
   Misma identidad (negro cálido, lima, ámbar Edison, Fraunces + Caveat),
   llevada al extremo: tipografía gigante, luz, grano.
   Se carga después de style.css y explainers.css; todo cuelga de body.rd.
   ========================================================================== */

:root {
  --amber-hsl: 33, 85%, 62%;
  --rd-pad: clamp(1.25rem, 4vw, 4rem);
  --rd-display-tight: -0.045em;
  --rd-card: hsl(30, 10%, 8%);
}

.rd { overflow-x: clip; }

/* ---------- Grano de película ---------- */
.rd-grain {
  position: fixed;
  inset: -20%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía compartida ---------- */
.rd-eyebrow,
.rd .service-block__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}
/* Sin línea decorativa antes de las etiquetas */
.rd-eyebrow::before,
.rd .service-block__tag::before { content: none; }

.rd-head { margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.rd-head__title,
.rd .service-block__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 6.5rem);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  line-height: 0.94;
  letter-spacing: var(--rd-display-tight);
  margin: 1.25rem 0 0;
  text-wrap: balance;
}
.rd-accent,
.rd .service-block__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}
.rd .service-block__title { margin-bottom: var(--space-md); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.rd-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 clamp(3rem, 8vh, 5.5rem);
  overflow: clip;
  isolation: isolate;
  background: var(--color-bg);
}

/* Charco de luz de la lámpara */
.rd-hero__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 61% 15rem, hsla(var(--amber-hsl), 0.26), hsla(var(--amber-hsl), 0.08) 45%, transparent 72%),
    radial-gradient(60rem 40rem at 60% 30%, hsla(var(--amber-hsl), 0.07), transparent 70%);
  transform-origin: 61% 15rem;
}

/* Foto: retrato alto a la derecha, el titular la pisa */
.rd-hero__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--rd-pad);
  width: min(44vw, 680px);
  margin: 0;
  z-index: -1;
  overflow: hidden;
}
.rd-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.85) contrast(1.06) brightness(0.82);
}
.rd-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, hsla(30, 12%, 5%, 0.55) 26%, transparent 58%),
    linear-gradient(0deg, var(--color-bg) 2%, hsla(30, 12%, 5%, 0.4) 30%, transparent 55%),
    linear-gradient(180deg, hsla(30, 12%, 5%, 0.75) 0%, transparent 22%);
}
.editor-active .rd-hero__photo { z-index: 3; }

/* La lámpara */
.rd-bulb {
  position: absolute;
  top: 0;
  left: 61%;
  z-index: 0;
  width: clamp(70px, 7.2vw, 118px);
  height: auto;
  margin-left: calc(clamp(70px, 7.2vw, 118px) / -2);
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 0;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rd-bulb__wire { stroke: hsla(var(--text-hsl), 0.3); stroke-width: 1.4; }
.rd-bulb__cap { fill: hsl(30, 8%, 13%); stroke: hsla(var(--text-hsl), 0.32); stroke-width: 1.2; }
.rd-bulb__thread { stroke: hsla(var(--text-hsl), 0.22); stroke-width: 1; }
.rd-bulb__glass {
  fill: hsla(var(--amber-hsl), 0.16);
  stroke: hsla(38, 90%, 75%, 0.6);
  stroke-width: 1.4;
}
.rd-bulb__stem { stroke: hsla(38, 70%, 72%, 0.45); stroke-width: 1.1; }
.rd-bulb__filament { stroke: hsl(42, 100%, 80%); stroke-width: 2.4; }

/* Texto */
.rd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--rd-pad);
}
.rd-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3rem, 7.6vw, 9.25rem);
  line-height: 0.9;
  letter-spacing: -0.038em;
  word-spacing: 0.04em;
  margin: 1.5rem 0 clamp(1.75rem, 5vh, 3.25rem);
  max-width: 13ch;
  color: var(--color-text);
}
.rd-mask {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}
.rd-hero__line,
.rd-hero__accent { display: block; }
.rd-hero__accent {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.74em;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  padding-top: 0.12em;
  max-width: 17ch;
}

.rd-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 40ch) auto;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
}
.rd-hero__subtitle {
  margin: 0;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: hsla(var(--text-hsl), 0.78);
}
.rd-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.rd-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.75rem;
  height: 4.5rem;
  margin-left: -1.375rem;
  display: flex;
  justify-content: center;
}
.rd-hero__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, hsla(var(--text-hsl), 0.5));
  transform-origin: top;
}

/* ==========================================================================
   2. CREDENCIALES — fila tipográfica gigante
   ========================================================================== */
.rd-creds {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.rd-creds__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
}
.rd-cred {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
  border-left: 1px solid var(--color-border);
}
.rd-cred:first-child { padding-left: 0; border-left: 0; }
.rd-cred__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3.75rem, 9vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-text);
}
.rd-cred__num--text {
  font-style: italic;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  max-width: 7ch;
}
.rd-cred__label {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 22ch;
}

/* ==========================================================================
   3. EL PROBLEMA — una frase que se enfoca al bajar
   ========================================================================== */
.rd-problem { padding: var(--space-xl) 0; }
.rd-statement { margin-bottom: clamp(3rem, 9vh, 6rem); }
.rd-statement__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.9rem, 7.6vw, 8.25rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 1.5rem 0 0;
  max-width: 15ch;
}
.rd-statement__a,
.rd-statement__b { display: block; }
.rd-statement__b {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}
.rd-statement__sub {
  margin: 2.25rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.rd-symptoms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}
.rd-symptom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-strong);
}
.rd-symptom:nth-child(2) { margin-top: clamp(0rem, 6vw, 5rem); }
.rd-symptom:nth-child(3) { margin-top: clamp(0rem, 12vw, 10rem); }
.rd-symptom .xp-figure--symptom { margin: 0 0 1.5rem; }
.rd-symptom__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
.rd-symptom__text { color: var(--color-text-muted); margin: 0; max-width: 38ch; }

/* ==========================================================================
   4. LO QUE HAGO — tarjetas que se apilan
   ========================================================================== */
.rd-services { padding: var(--space-xl) 0; }
.rd-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 5vh, 3.5rem);
}
.rd .rd-card {
  position: sticky;
  top: calc(6.25rem + var(--i, 0) * 1.5rem);
  min-height: min(68vh, 540px);
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  background: var(--rd-card);
  border: 1px solid var(--color-border-strong);
  border-radius: 1.5rem;
  transform-origin: 50% 0;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.9);
  align-content: center;
}
.rd .rd-card:hover { transform: none; }
.rd-card__tag.case-card__tag {
  display: block;
  padding: 0;
  margin: 0 0 1rem;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--color-primary);
}
.rd .rd-card .case-card__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.rd .rd-card .case-card__row p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  color: hsla(var(--text-hsl), 0.74);
  max-width: 46ch;
}

/* ==========================================================================
   5-7. CÓMO TRABAJO · MI FORMA · AGENCIAS
   ========================================================================== */
.rd .service-block { overflow: clip; padding: var(--space-xl) 0; }
.rd .service-block__header { margin-bottom: 0; }

/* Mi forma: frase editorial a todo el ancho */
.rd-approach .service-block__grid {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vh, 4rem);
}
.rd-approach .service-block__title {
  font-size: clamp(2.4rem, 5.4vw, 5.75rem);
  max-width: 20ch;
}
.rd-approach .service-block__lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  max-width: 44ch;
  color: var(--color-text-muted);
}
.rd-approach .service-block__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  border-top: 0;
  padding-top: 0;
  margin-top: clamp(1.5rem, 5vh, 3rem);
}
.rd-approach .service-block__details > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-strong);
}
.rd-approach .service-block__details dt {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}
.rd-approach .service-block__details dd { color: var(--color-text-muted); margin: 0; }
.rd-approach .service-block__visual { justify-content: flex-end; display: flex; }

/* La regla: tarjeta ámbar */
.rd .rd-rule {
  max-width: 34rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: hsla(var(--amber-hsl), 0.07);
  border: 1px solid hsla(var(--amber-hsl), 0.45);
  border-radius: 1.25rem;
}
.rd .rd-rule:hover { transform: none; }
.rd .rd-rule .visual-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  color: hsla(var(--text-hsl), 0.85);
  margin: 0;
}
.rd .rd-rule .visual-card__quote strong {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  line-height: 1.15;
  color: hsl(var(--amber-hsl));
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   8. SOBRE MÍ — la misma foto, otro encuadre
   ========================================================================== */
.rd-about { padding: var(--space-xl) 0; }
.rd-about .about__container { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.rd-about__frame {
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-border-strong);
}
.rd .rd-about .about__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.18);
  transform-origin: 50% 20%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  transition: filter 0.9s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.rd .rd-about .about__visual:hover .about__photo {
  filter: grayscale(0) contrast(1.02) brightness(0.95);
  transform: scale(1.22);
}
.rd-about .about__badge { transform: rotate(-4deg); bottom: -1.25rem; right: -0.75rem; }
.rd-about .about__body p {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  color: hsla(var(--text-hsl), 0.78);
}
.rd-about .rd-head__title { margin-bottom: var(--space-md); }

/* ==========================================================================
   9. CONTENIDO — bloque lima
   ========================================================================== */
.rd-content { padding: var(--space-xl) 0; }
.rd .rd-slab {
  padding: clamp(2rem, 6vw, 5.5rem);
  border-radius: 1.75rem;
  box-shadow: none;
}
.rd .rd-slab::before { display: none; }
.rd .rd-slab .newsletter-card__title {
  font-size: clamp(3rem, 9vw, 9.5rem);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.rd .rd-slab .newsletter-card__description {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.55rem);
  max-width: 36ch;
  line-height: 1.4;
}
.rd .rd-slab .newsletter-form { max-width: 560px; }
.rd .rd-learn { margin-top: clamp(1.25rem, 3vw, 2rem); margin-bottom: 0; }
.rd .rd-learn .learn-card {
  background: transparent;
  border-color: var(--color-border-strong);
  border-radius: 1.25rem;
}
.rd .rd-learn .learn-card__title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* ==========================================================================
   10. FAQ — título fijo, respuestas a la derecha
   ========================================================================== */
.rd-faq { padding: var(--space-xl) 0; }
.rd-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-lg);
  align-items: start;
}
.rd-faq__head { position: sticky; top: 7rem; }
.rd-faq__head .rd-head__title { margin-top: 0; }
.rd-faq .faq-list { gap: 0; border-top: 1px solid var(--color-border-strong); }
.rd-faq .faq-item,
.rd-faq .faq-item:has([aria-expanded="true"]) {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-strong);
  border-radius: 0;
}
.rd-faq .faq-item__trigger {
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rd-faq .faq-item__answer p { padding-left: 0; padding-right: 2.5rem; color: var(--color-text-muted); }

/* ==========================================================================
   11. CONTACTO — finale
   ========================================================================== */
.rd-finale {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(clamp(70px, 7.2vw, 118px) * 2.5 + 2.5rem) 0 6rem;
  text-align: center;
  overflow: clip;
  isolation: isolate;
  border-top: 1px solid var(--color-border);
}
.rd-finale__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34rem 28rem at 50% 15rem, hsla(var(--amber-hsl), 0.24), hsla(var(--amber-hsl), 0.07) 48%, transparent 74%);
  transition: opacity 1.2s var(--ease-out-expo);
}
.rd-bulb--finale { left: 50%; }
.rd-finale__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--rd-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rd-finale__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3.4rem, 12.5vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  margin: 1.75rem 0 1.75rem;
  max-width: 9ch;
  text-wrap: balance;
}
.rd-finale__sub {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  color: var(--color-text-muted);
  max-width: 32ch;
  margin: 0 0 2.5rem;
}
.rd .rd-finale__btn {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  padding: 1.35rem 2.6rem;
  gap: 0.75rem;
}
.rd .rd-finale__btn svg { width: 24px; height: 24px; }

/* Botones magnéticos: el JS mueve el botón, no lo escala */
.rd-magnetic { will-change: transform; }

/* Cursor: luz cálida de mano, no halo verde */
.rd .cursor-glow {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, hsla(var(--amber-hsl), 0.07) 0%, transparent 62%);
}

/* ==========================================================================
   ENTRADA DEL HERO — "la luz se enciende" (solo CSS, sin esperar JS)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .rd-hero .rd-bulb { animation: rdDrop 1.1s var(--ease-out-expo) both; }
  .rd-hero .rd-bulb__filament { animation: rdFilament 1.5s 0.45s linear both; }
  .rd-hero .rd-bulb__glass { animation: rdGlass 1.5s 0.45s linear both; }
  .rd-hero__light { animation: rdLightOn 1.8s 0.75s var(--ease-out-expo) both; }
  .rd-hero__photo { animation: rdReveal 1.5s 0.85s var(--ease-out-expo) both; }
  .rd-hero__photo img { animation: rdSettle 2.2s 0.85s var(--ease-out-expo) both; }
  .rd-hero__title .rd-mask > * { animation: rdRise 1.2s var(--ease-out-expo) both; }
  .rd-hero__title .rd-mask:nth-child(1) > * { animation-delay: 1.05s; }
  .rd-hero__title .rd-mask:nth-child(2) > * { animation-delay: 1.22s; }
  .rd-hero__eyebrow { animation: rdFadeUp 0.9s 0.95s var(--ease-out-expo) both; }
  .rd-hero__foot { animation: rdFadeUp 1s 1.5s var(--ease-out-expo) both; }
  .rd-hero__scroll-line { animation: rdScrollHint 2.6s 2.4s var(--ease-out-quart) infinite both; }

  /* Finale: arranca apagada sólo si motion.js corre y la va a encender */
  .rd-motion .rd-finale:not(.is-lit) .rd-finale__light { opacity: 0; }
  .rd-motion .rd-finale:not(.is-lit) .rd-bulb__filament { stroke: hsla(var(--text-hsl), 0.25); }
  .rd-motion .rd-finale:not(.is-lit) .rd-bulb__glass { fill: transparent; stroke: hsla(var(--text-hsl), 0.25); }
  .rd-motion .rd-finale.is-lit .rd-bulb__filament { animation: rdFilament 1.3s linear both; }
  .rd-motion .rd-finale.is-lit .rd-bulb__glass { animation: rdGlass 1.3s linear both; }
}

@keyframes rdDrop {
  from { transform: translateY(-40%); }
  to { transform: translateY(0); }
}
/* Parpadeo de filamento real: prende, duda, prende */
@keyframes rdFilament {
  0%, 12% { stroke: hsla(var(--text-hsl), 0.22); }
  16% { stroke: hsl(42, 100%, 80%); }
  21% { stroke: hsla(var(--text-hsl), 0.3); }
  30% { stroke: hsl(42, 100%, 80%); }
  34% { stroke: hsla(38, 80%, 60%, 0.5); }
  46%, 100% { stroke: hsl(42, 100%, 80%); }
}
@keyframes rdGlass {
  0%, 12% { fill: transparent; stroke: hsla(var(--text-hsl), 0.25); }
  16% { fill: hsla(var(--amber-hsl), 0.16); stroke: hsla(38, 90%, 75%, 0.6); }
  21% { fill: transparent; stroke: hsla(var(--text-hsl), 0.28); }
  30% { fill: hsla(var(--amber-hsl), 0.14); stroke: hsla(38, 90%, 75%, 0.55); }
  34% { fill: hsla(var(--amber-hsl), 0.05); }
  46%, 100% { fill: hsla(var(--amber-hsl), 0.16); stroke: hsla(38, 90%, 75%, 0.6); }
}
@keyframes rdLightOn {
  from { opacity: 0; transform: scale(0.55); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rdReveal {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes rdSettle {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}
@keyframes rdRise {
  from { transform: translateY(108%); }
  to { transform: translateY(0); }
}
@keyframes rdFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rdScrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-height: 720px), (max-width: 900px) {
  .rd .rd-card { position: relative; top: auto; min-height: 0; }
}

@media (max-width: 1024px) {
  .rd-hero__foot { grid-template-columns: 1fr; align-items: start; }
  .rd-approach .service-block__details { grid-template-columns: 1fr; }
  .rd-faq__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .rd-faq__head { position: static; }
}

@media (max-width: 768px) {
  .rd-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding-top: 0;
  }
  .rd-hero__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 50svh;
    flex: none;
  }
  .rd-hero__photo img { object-position: 50% 22%; }
  .rd-hero__photo::after {
    background:
      linear-gradient(0deg, var(--color-bg) 3%, hsla(30, 12%, 5%, 0.55) 30%, transparent 62%),
      linear-gradient(180deg, hsla(30, 12%, 5%, 0.7) 0%, transparent 25%);
  }
  .rd-hero__inner { margin-top: -4.5rem; }
  .rd-hero__eyebrow { letter-spacing: 0.14em; }
  .rd-hero .rd-bulb { left: 80%; }
  .rd-hero__light {
    background: radial-gradient(22rem 18rem at 80% 9rem, hsla(var(--amber-hsl), 0.3), hsla(var(--amber-hsl), 0.08) 50%, transparent 75%);
    transform-origin: 80% 9rem;
  }
  .rd-hero__title { font-size: clamp(2.6rem, 11.5vw, 4rem); }
  .rd-hero__ctas { flex-direction: column; align-items: stretch; }
  .rd-hero__ctas .btn { white-space: normal; text-align: center; }

  .rd-creds__row { grid-template-columns: 1fr; gap: 0; }
  .rd-cred {
    padding: 1.75rem 0;
    border-left: 0;
    border-top: 1px solid var(--color-border);
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 1rem;
  }
  .rd-cred:first-child { border-top: 0; padding-top: 0; }
  .rd-cred__num { font-size: clamp(3.5rem, 18vw, 5rem); }

  .rd-symptoms { grid-template-columns: 1fr; gap: 2.5rem; }
  .rd-symptom:nth-child(n) { margin-top: 0; }

  .rd-about .about__container { grid-template-columns: 1fr; }
  .rd-about__frame { max-width: 420px; }

  .rd-finale { padding-top: calc(70px * 2.5 + 2rem); }
  .rd .rd-finale__btn { width: 100%; max-width: 22rem; }
}

@media (max-width: 480px) {
  .rd-hero__title { letter-spacing: -0.045em; }
  .rd .rd-slab .newsletter-form { flex-direction: column; }
}

/* Movimiento reducido: la luz ya está prendida, nada se desplaza */
@media (prefers-reduced-motion: reduce) {
  .rd .rd-about .about__photo,
  .rd .rd-about .about__visual:hover .about__photo { transform: scale(1.18); }
  .rd-hero__scroll-line { transform: none; }
}

/* Velo que oscurece la tarjeta cuando la siguiente la tapa (motion.js anima --dim) */
.rd .rd-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
}

/* Mi forma: grilla editorial — título arriba, la regla al lado del párrafo, preguntas abajo */
@media (min-width: 1025px) {
  .rd-approach .service-block__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    row-gap: 0;
    align-items: start;
  }
  .rd-approach .service-block__content { display: contents; }
  .rd-approach .service-block__header,
  .rd-approach .service-block__title,
  .rd-approach .service-block__details { grid-column: 1 / -1; }
  .rd-approach .service-block__lead { grid-column: 1; margin: 0; }
  .rd-approach .service-block__visual { grid-column: 2; grid-row: 3 / span 1; }
  .rd-approach .service-block__details { margin-top: clamp(3rem, 8vh, 5rem); }
}
.rd-approach .service-block__content { max-width: none; }
.rd-approach .service-block__details dt {
  text-transform: none;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.rd-approach .service-block__details dd { font-size: 1rem; }
.rd .rd-rule .visual-card__quote { font-style: normal; }

@media (max-width: 480px) {
  .rd-finale__title { font-size: 17vw; }
}

/* El bloque de texto no tapa la foto: sólo sus piezas reciben clics (editor incluido) */
.rd-hero__inner,
.rd-hero__foot { pointer-events: none; }
.rd-hero__inner > *,
.rd-hero__foot > * { pointer-events: auto; }
.rd-hero__inner > .rd-hero__foot { pointer-events: none; }

/* ==========================================================================
   IMÁGENES (Higgsfield) + DIBUJOS DE MARCA
   Fotos: escenas de taller detrás del texto. Dibujos: marcador lima y blanco,
   fondo transparente, se "dibujan" al entrar en pantalla.
   ========================================================================== */
/* ---------- El problema: el carrito vacío como fondo, el texto debajo ---------- */
.rd-statement {
  --cart-w: clamp(15rem, 34.5vw, 31.5rem); /* -25% */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--cart-w) * 1.25 * 0.87);
}
.rd-statement .rd-statement__title { margin-left: auto; margin-right: auto; text-wrap: balance; }
/* "Pero no rinde lo que debería." en una sola línea, del mismo ancho que la primera */
.rd-statement .rd-statement__b { white-space: nowrap; font-size: 0.72em; line-height: 1.05; margin-top: 0.12em; }
.rd-statement .rd-statement__sub { margin-left: auto; margin-right: auto; }
.rd-statement__img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  width: var(--cart-w);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
}
.rd-statement__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 40%;
}
@media (max-width: 768px) {
  .rd-statement { --cart-w: min(69vw, 19.5rem); }
}

/* ---------- Dibujos: base, "se dibujan" al entrar, se mueven al pasar ---------- */
.rd-doodle {
  display: block;
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.rd-motion .rd-doodle { transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.35, 1); }
.rd-motion .rd-doodle:not(.is-drawn) { clip-path: inset(0 100% 0 0); }
@keyframes rdWiggle {
  0%, 100% { rotate: 0deg; }
  30% { rotate: -2.5deg; }
  65% { rotate: 2deg; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rd-symptom:hover .rd-doodle,
  .rd-card:hover .rd-doodle,
  .process-step:hover .rd-doodle,
  .rd-slab:hover .rd-doodle { animation: rdWiggle 0.7s ease-in-out; }
}

.rd-symptom__doodle {
  width: 100%;
  height: clamp(11rem, 17vw, 15rem);
  object-fit: contain;
  object-position: left bottom;
  margin: 0 0 1.5rem;
}

.rd .rd-card > .rd-card__doodle {
  grid-column: 1;
  width: auto;
  height: clamp(6.5rem, 10vw, 10rem);
  justify-self: start;
  margin: 0 0 1.25rem;
}
@media (min-width: 1025px) {
  /* El espacio sobrante va debajo del párrafo, no entre título y texto */
  .rd .rd-card.case-card--explained { grid-template-rows: auto auto 1fr; }
  .rd .rd-card.case-card--explained > .case-card__row { align-self: start; }
  .rd .rd-card.case-card--explained > .case-card__header { margin-bottom: 0; }
  .rd .rd-card.case-card--explained > .xp-figure { grid-row: 1 / span 3; }
}

/* Cómo trabajo: los nodos llevan íconos dibujados */
.rd .process__steps { --node: clamp(3.75rem, 5vw, 4.75rem); }
.rd .process__steps .process-step__node { border: 0; background: var(--color-bg); }
.rd-node__doodle { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .rd .process__steps { --node: 3.25rem; } }

/* Mi forma: un ícono dibujado por pregunta */
.rd-approach .service-block__details > div::before {
  content: '';
  display: block;
  width: clamp(4.5rem, 6vw, 5.75rem);
  aspect-ratio: 1;
  margin-bottom: 1rem;
  background: no-repeat left bottom / contain;
}
.rd-approach .service-block__details > div:nth-child(1)::before { background-image: url("../img/rd/doodles/pregunta-1.webp"); }
.rd-approach .service-block__details > div:nth-child(2)::before { background-image: url("../img/rd/doodles/pregunta-2.webp"); }
.rd-approach .service-block__details > div:nth-child(3)::before { background-image: url("../img/rd/doodles/pregunta-3.webp"); }

/* Newsletter: el dibujo en tinta negra sobre el lima */
.rd-slab__doodle { filter: brightness(0); opacity: 0.86; width: min(70%, 20rem); margin-top: 2rem; }
@media (min-width: 1025px) {
  .rd .rd-slab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 27vw, 26rem);
    align-items: center;
    column-gap: var(--space-md);
  }
  .rd-slab__doodle { width: 100%; margin: 0; }
}

/* ---------- Franja: de la tienda a la caja ---------- */
.rd-strip { position: relative; padding: 0 0 var(--space-lg); }
.rd-strip__frame {
  position: relative;
  height: clamp(16rem, 44vw, 38rem);
  overflow: hidden;
  background: var(--rd-card);
}
.rd-strip__img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.95);
}
.rd-strip__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, hsla(30, 12%, 5%, 0.55), transparent 30%, transparent 70%, hsla(30, 12%, 5%, 0.6));
}
.rd-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rd-route__shadow { stroke: rgba(0, 0, 0, 0.55); stroke-width: 12; }
.rd-route__path { stroke: var(--color-primary); stroke-width: 4.5; }
.rd-route__start circle { fill: var(--color-primary); }
.rd-route__end path,
.rd-route__end circle { stroke: #fff; stroke-width: 3.5; fill: hsla(30, 12%, 5%, 0.55); }
.rd-route__parcel rect,
.rd-route__parcel path { stroke: var(--color-primary); stroke-width: 3.2; }
.rd-route__parcel rect { fill: hsl(30, 12%, 6%); }
.rd-route__parcel .rd-route__lid { stroke: #fff; }

/* ---------- Subrayado a mano en los títulos ---------- */
.rd-head__title .rd-accent {
  padding-bottom: 0.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C40 3 76 12 118 7s62-5 79-2' fill='none' stroke='%23C6EA4A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.2em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.rd-motion .rd-head__title .rd-accent { transition: background-size 1.2s var(--ease-out-expo) 0.25s; }
.rd-motion .rd-head__title .rd-accent:not(.is-drawn) { background-size: 0% 0.2em; }

/* ---------- Contacto: el escritorio con la lámpara ---------- */
.rd-finale__scene { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.rd-finale__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  filter: brightness(0.42) saturate(0.85);
  transition: filter 1.8s var(--ease-out-expo);
}
.rd-finale__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, hsla(30, 12%, 5%, 0.9), hsla(30, 12%, 5%, 0.45) 70%, transparent),
    linear-gradient(180deg, var(--color-bg) 0%, transparent 28%, transparent 72%, var(--color-bg) 100%);
}
.rd-motion .rd-finale:not(.is-lit) .rd-finale__scene img { filter: brightness(0.12) saturate(0.6); }
.rd-finale__doodle {
  position: absolute;
  right: var(--rd-pad);
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  z-index: 1;
  width: clamp(12rem, 19vw, 19rem);
}
@media (max-width: 1100px) { .rd-finale__doodle { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .rd-finale__scene img { transition: none; }
}

/* Síntomas: los tres a la misma altura, dibujo 40% más chico y a la izquierda */
.rd-symptom:nth-child(n) { margin-top: 0; }
.rd-symptom__doodle {
  width: 69%;
  height: clamp(7.6rem, 11.73vw, 10.35rem); /* +15% */
  object-position: left bottom;
}
@media (max-width: 768px) { .rd-symptom__doodle { height: 7.6rem; } }

/* ==========================================================================
   HERO v2 — legible: texto a la izquierda sobre fondo limpio, foto a la derecha
   en su propio marco. Nada se superpone al titular.
   ========================================================================== */
.rd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 15vh, 9rem) max(var(--rd-pad), (100% - var(--container-max)) / 2 + var(--rd-pad)) clamp(4rem, 9vh, 6rem);
}
.rd-hero__light {
  background: radial-gradient(42rem 34rem at 80% 45%, hsla(var(--amber-hsl), 0.16), hsla(var(--amber-hsl), 0.04) 55%, transparent 75%);
  transform-origin: 80% 45%;
}
.rd-hero__inner {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}
.rd-hero__photo {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 74svh;
  aspect-ratio: 4 / 5;
  justify-self: end;
  border-radius: 1.5rem;
  overflow: hidden;
  -webkit-mask-image: none;
          mask-image: none;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--color-border);
}
.rd-hero__photo::after { content: none; }
.rd-hero__photo img { object-position: 50% 30%; filter: saturate(0.95) contrast(1.03); }
.editor-active .rd-hero__photo { z-index: 3; }

.rd-hero__title {
  max-width: none;
  margin: 1.25rem 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(2.6rem, 5.2vw, 6.75rem);
}
.rd-hero__line,
.rd-hero__accent { white-space: nowrap; max-width: none; }
.rd-hero__accent { font-size: 0.8em; }

.rd-hero__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vh, 2.25rem);
}
.rd-hero__subtitle { max-width: 46ch; }

@media (max-width: 1024px) {
  .rd-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
  .rd-hero__title { font-size: 4.4vw; }
}
@media (max-width: 768px) {
  .rd-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5.5rem var(--rd-pad) 4rem;
  }
  .rd-hero__photo {
    order: -1;
    max-height: none;
    aspect-ratio: 5 / 4;
    width: 100%;
    border-radius: 1.25rem;
  }
  .rd-hero__photo img { object-position: 50% 25%; }
  .rd-hero__inner { margin: 0; }
  .rd-hero__title { font-size: 8.4vw; margin-top: 1rem; }
  .rd-hero__accent { font-size: 0.95em; }
  .rd-hero__light { background: radial-gradient(26rem 20rem at 50% 12rem, hsla(var(--amber-hsl), 0.16), transparent 72%); }
}

/* ==========================================================================
   HERO v3 — imagen de fondo que cuenta el titular (tienda que vende y se automatiza)
   ========================================================================== */
.rd-hero__bg {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
  margin: 0;
  overflow: hidden;
}
.rd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  animation: rdHeroBg 2.4s var(--ease-out-expo) both;
}
.rd-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, hsla(var(--bg-hsl), 0.8) 16%, hsla(var(--bg-hsl), 0.2) 40%, transparent 60%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 22%),
    linear-gradient(180deg, hsla(var(--bg-hsl), 0.7) 0%, transparent 18%);
}
.rd-hero__light { opacity: 0.6; }
.editor-active .rd-hero__bg { z-index: 0; }
.editor-active .rd-hero__inner { position: relative; z-index: 1; }
@keyframes rdHeroBg { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 768px) {
  .rd-hero { padding-top: 46svh; justify-content: flex-end; }
  .rd-hero__bg { left: 0; bottom: auto; height: 64svh; }
  .rd-hero__bg img { object-position: 74% 50%; }
  .rd-hero__bg::after {
    background:
      linear-gradient(0deg, var(--color-bg) 0%, hsla(var(--bg-hsl), 0.6) 30%, transparent 60%),
      linear-gradient(180deg, hsla(var(--bg-hsl), 0.7) 0%, transparent 25%);
  }
}
@media (prefers-reduced-motion: reduce) { .rd-hero__bg img { animation: none; } }

/* Regla: ilustración de marca arriba, texto abajo (sin tarjeta) */
.rd .rd-rule--art {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.rd-rule__doodle { display: block; width: 100%; height: auto; }

/* Para agencias: titular en dos líneas */
#agencias .service-block__title { font-size: clamp(2.2rem, 5.2vw, 5.2rem); }
@media (max-width: 768px) { #agencias .service-block__title { font-size: min(11vw, 3.4rem); } }
#agencias .service-block__title em { display: block; white-space: nowrap; }

/* ==========================================================================
   TIPOGRAFÍA DE MARCA (igual que en redes): Space Grotesk Bold + Inter + Caveat
   ========================================================================== */
html { font-synthesis: none; }               /* sin itálicas ni negritas falsas */
.rd h1, .rd h2, .rd h3, .rd h4 { font-weight: 700; }
.rd-accent,
.rd .service-block__title em,
.rd em { font-style: normal; font-weight: inherit; }
/* Space Grotesk es más ancha: los titulares de una línea se recalibran */
.rd-hero__title { font-size: clamp(2.2rem, 4.1vw, 5.4rem); letter-spacing: -0.035em; }
.rd-hero__accent { font-size: 0.86em; }
#agencias .service-block__title { font-size: clamp(2rem, 4vw, 3.9rem); }
@media (max-width: 1024px) { .rd-hero__title { font-size: 3.5vw; } }
@media (max-width: 768px) {
  .rd-hero__title { font-size: 6.9vw; }
  .rd-hero__accent { font-size: 1.05em; }
  #agencias .service-block__title { font-size: 8.4vw; }
}

/* ---------- El problema: ajustes de líneas ---------- */
/* Títulos de las 3 tarjetas, siempre en 2 líneas parejas */
.rd .rd-symptom__title { max-width: 16ch; text-wrap: balance; }
/* Celular: el título grande entra sin desbordar */
@media (max-width: 768px) {
  .rd-statement .rd-statement__title { font-size: 10vw; max-width: none; }
}
/* Mi forma de ver una tienda: título en 3 líneas (usa todo el ancho) */
.rd .rd-approach .service-block__title { max-width: none; }

/* ==========================================================================
   MI FORMA v2 — "Las tres preguntas"
   Título a todo el ancho · el párrafo fijo a la izquierda apunta (flecha) a las
   tres preguntas numeradas · cierre: la regla de propiedad, centrada.
   ========================================================================== */
.rd .rd-way { counter-reset: way; }
.rd .rd-way .service-block__title {
  font-size: clamp(2.4rem, 5.4vw, 5.75rem);
  max-width: none;
  margin-bottom: 0;
}
.rd-way__head { margin-bottom: var(--space-lg); }

.rd-way__body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.rd-way__intro { position: sticky; top: 7.5rem; }
.rd-way__lead {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-text);
  max-width: 24ch;
  margin: 0;
}
.rd-way__arrow {
  display: block;
  width: clamp(6.5rem, 9vw, 9.5rem);
  height: auto;
  margin-top: 1.5rem;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Las preguntas */
.rd-way__qs { margin: 0; padding: 0; }
.rd-way__q {
  counter-increment: way;
  position: relative;
  display: grid;
  grid-template-columns: clamp(4rem, 7vw, 6.5rem) minmax(0, 1fr) clamp(5.5rem, 9vw, 8.5rem);
  grid-template-rows: auto 1fr;
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--color-border-strong);
}
.rd-way__q:last-child { border-bottom: 1px solid var(--color-border-strong); }
.rd-way__line {
  position: absolute;
  pointer-events: none;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.rd-way__q::before {
  content: counter(way, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  transition: color 0.4s var(--ease-out-expo, ease);
}
.rd-way__q:hover::before { color: var(--color-primary); }
.rd-way__q dt {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1rem + 1.7vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.rd-way__q dd {
  grid-column: 2;
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.rd-way__doodle {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  height: clamp(5.5rem, 8vw, 8rem);
  object-fit: contain;
  transition: transform 0.5s var(--ease-out-expo, ease);
}
.rd-way__q:hover .rd-way__doodle { transform: rotate(-4deg) scale(1.06); }

/* La regla: cierre centrado, la ilustración arriba y el texto abajo */
.rd-way__rule {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.rd-way__rule-art { display: block; width: min(75%, 34.5rem); height: auto; } /* -25% */
.rd-way__quote {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.rd-way__quote strong {
  display: inline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-text);
  /* trazo de marcador lima que se "pinta" al entrar */
  background: linear-gradient(transparent 60%, hsla(var(--primary-hsl), 0.42) 60%, hsla(var(--primary-hsl), 0.42) 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size 1.4s var(--ease-out-expo, ease) 0.2s;
}
.rd-way__quote strong::after { content: "\A"; white-space: pre; }
.rd-motion .rd-way__rule:not(.is-lit) .rd-way__quote strong { background-size: 0% 100%; }

/* Tablet y celular */
@media (max-width: 1024px) {
  .rd-way__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .rd-way__intro { position: static; display: flex; align-items: flex-end; gap: 1rem; }
  .rd-way__lead { max-width: 30ch; }
  .rd-way__arrow { flex: none; width: 5.5rem; margin: 0 0 -0.75rem; transform: rotate(18deg); }
}
@media (max-width: 600px) {
  .rd-way__intro { display: block; }
  .rd-way__arrow { width: 4.5rem; margin: 1rem 0 0 2rem; }
  .rd-way__q {
    grid-template-columns: 3rem minmax(0, 1fr) 4.25rem;
    column-gap: 0.85rem;
  }
  .rd-way__q::before { font-size: 2.3rem; -webkit-text-stroke-width: 1.2px; }
  .rd-way__doodle { height: 4.25rem; align-self: start; }
  .rd-way__quote { text-align: left; }
  .rd-way__rule { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-way__line { transform: none; }
  .rd-way__quote strong { background-size: 100% 100%; transition: none; }
}

/* Sobre mí: "Hola, soy" / "Rodrigo Quesada" en 2 líneas */
.rd-about .rd-head__title .rd-accent { white-space: nowrap; font-size: 0.95em; }

/* Newsletter: recuadro oficial de Substack dentro de la tarjeta lima */
.newsletter-embed {
  width: 100%;
  max-width: 30rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-bg), 0.4rem 0.4rem 0 var(--color-bg);
}
.newsletter-embed iframe { display: block; width: 100%; height: 270px; border: 0; background: #fff; }

/* Menú: íconos dibujados a mano (trazo blanco + acento lima, como los doodles) */
.navbar__link { display: inline-flex; align-items: center; gap: 0.45em; }
.navbar__icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 0.45s var(--ease-out-back, ease);
}
.navbar__icon .acc { stroke: var(--color-primary); }
.navbar__icon .dash { stroke-dasharray: 1.6 2.2; }
.navbar__link--cta .navbar__icon .acc { stroke: currentColor; }
.navbar__link:hover .navbar__icon,
.navbar__link:focus-visible .navbar__icon { transform: rotate(-8deg) scale(1.12); }
/* al pasar el mouse, el trazo se vuelve a dibujar */
@keyframes navDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.navbar__link:hover .navbar__icon path[pathLength] {
  stroke-dasharray: 1;
  animation: navDraw 0.6s var(--ease-out-expo, ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .navbar__icon { transition: none; }
  .navbar__link:hover .navbar__icon { transform: none; }
  .navbar__link:hover .navbar__icon path[pathLength] { animation: none; }
}

/* Hero: etiqueta "Shopify Partner · Uruguay y LATAM" 20% más chica (0.8rem → 0.64rem) */
.rd-hero .rd-hero__eyebrow { font-size: 0.64rem; }

/* ==========================================================================
   SOBRE MÍ v2 — la foto se ve entera, en color y grande
   Foto pegada como una "postal" sobre un bloque lima, el texto al lado.
   ========================================================================== */
.rd-about { position: relative; isolation: isolate; }
.rd-about::before {               /* luz cálida detrás de la foto, como la pared de ladrillo */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10% auto auto -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, hsla(28, 80%, 45%, 0.16), transparent 70%);
  pointer-events: none;
}
.rd-about .about__container {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.rd-about .about__visual { position: relative; padding: 0 clamp(0.75rem, 1.5vw, 1.5rem) clamp(0.75rem, 1.5vw, 1.5rem) 0; }
.rd-about .about__visual::before {   /* bloque lima detrás, levemente girado */
  content: '';
  position: absolute;
  inset: clamp(0.75rem, 1.5vw, 1.5rem) 0 0 clamp(0.75rem, 1.5vw, 1.5rem);
  border-radius: 1.75rem;
  background: var(--color-primary);
  transform: rotate(2.2deg);
  transition: transform 0.9s var(--ease-out-expo);
}
.rd-about__frame {
  position: relative;
  aspect-ratio: 1024 / 932;
  border-radius: 1.75rem;
  border: 0;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.7);
  transform: rotate(-1.2deg);
  transition: transform 0.9s var(--ease-out-expo);
}
.rd .rd-about .about__photo,
.rd .rd-about .about__visual:hover .about__photo {
  object-position: 50% 40%;
  filter: none;
  transform: none;
}
.rd .rd-about .about__photo { transition: transform 1.2s var(--ease-out-expo); }
.rd .rd-about .about__visual:hover .about__photo { transform: scale(1.03); }
.rd-about .about__visual:hover .rd-about__frame { transform: rotate(0deg); }
.rd-about .about__visual:hover::before { transform: rotate(3.4deg); }
.rd-about .about__badge { z-index: 2; bottom: -0.25rem; right: -0.25rem; transform: rotate(-5deg); }

@media (max-width: 1024px) {
  .rd-about .about__container { grid-template-columns: 1fr; }
  .rd-about__frame { max-width: none; }
  .rd-about .about__visual { max-width: 36rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-about__frame, .rd-about .about__visual::before { transition: none; }
  .rd .rd-about .about__photo,
  .rd .rd-about .about__visual:hover .about__photo { transform: none; }
}
/* entrada: el bloque lima arranca derecho y escondido, y gira a su lugar */
.rd-motion .rd-about .about__visual:not(.is-lit)::before { transform: rotate(0deg) translate(-1.5rem, -1.5rem); opacity: 0; }
.rd-motion .rd-about .about__visual::before { transition: transform 1.1s var(--ease-out-expo) 0.35s, opacity 0.6s ease 0.35s; }
/* el título se ajusta a la columna de texto (la foto ahora es más ancha) */
.rd-about .rd-head__title { font-size: clamp(2.4rem, 4.6vw, 5.2rem); }
@media (max-width: 1024px) { .rd-about .rd-head__title { font-size: clamp(2.2rem, 9vw, 4.6rem); } }

/* Tutoriales: tarjeta con los dos canales donde se publican (LinkedIn y YouTube) */
.rd .rd-learn .learn-card--follow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  cursor: default;
}
.rd .rd-learn .learn-card--follow:hover { transform: none; }
.learn-card--follow .learn-card__description { margin-bottom: 0; max-width: 60ch; }
.learn-card__follow { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-full, 999px);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-back, ease), box-shadow 0.25s ease, background-color 0.25s ease;
}
.follow-btn svg { flex: none; }
.follow-btn--linkedin { background: var(--color-primary); color: var(--color-bg); }
.follow-btn--youtube { color: var(--color-text); border: 1.5px solid var(--color-border-strong); }
.follow-btn--youtube svg { color: var(--color-primary); }
.follow-btn:hover, .follow-btn:focus-visible { transform: translateY(-2px); }
.follow-btn--linkedin:hover { box-shadow: 0 0.6rem 1.6rem -0.6rem hsla(var(--primary-hsl), 0.6); }
.follow-btn--youtube:hover { border-color: var(--color-primary); }
@media (max-width: 900px) {
  .rd .rd-learn .learn-card--follow { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .learn-card__follow { flex-direction: column; }
  .follow-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .follow-btn:hover, .follow-btn:focus-visible { transform: none; } }
