/* =========================================================================
   Raquel Hernando — Consultoría para el mundo del vino
   Design system (tokens) + estilos de la landing.
   Basado en el proyecto de Claude Design "Landing Raquel Hernando".
   Se carga DESPUÉS de Bootstrap para poder sobreescribir tipografía/colores.
   ========================================================================= */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Color */
  --ink: #111111;
  --lime: #bfe325;
  --pink: #ea3fa1;
  --pink-strong: #c92f88;
  --violet: #823efd;
  --cream: #fbf9f5;
  --white: #ffffff;
  --ink-70: rgba(17, 17, 17, .7);
  --ink-50: rgba(17, 17, 17, .5);
  --ink-12: rgba(17, 17, 17, .12);
  --pink-soft: #fdeef6;
  --lime-soft: #f5f9dc;
  --violet-soft: #f0e8fe;
  --lime-deep: #8ba714;
  /* Verde de los títulos/etiquetas (lima de marca, más vivo). */
  --title-green: #bfe325;

  --text-body: var(--ink);
  --text-muted: var(--ink-70);
  --text-eyebrow: var(--lime-deep);
  --surface-page: var(--white);
  --surface-alt: var(--cream);
  --surface-card: var(--white);
  --surface-tint: var(--pink-soft);

  /* Tipografía */
  --font-display: 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --tracking-eyebrow: .14em;
  --tracking-tight: -.01em;

  /* Espaciado / layout */
  --container-max: 1140px;
  --gutter: 24px;

  /* Radios / sombras / motion */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 30px rgba(17, 17, 17, .08);
  --shadow-float: 0 16px 48px rgba(17, 17, 17, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --speed-fast: 150ms;
  --speed-base: 250ms;
}

/* ------------------------------------------------------------------- Base */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Los anclajes de sección no quedan ocultos bajo la cabecera fija. */
section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--violet); }
::selection { background: var(--lime); color: var(--ink); }
img { max-width: 100%; }

.rh-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Utilidades de énfasis inline (marca) */
.rh-pink { color: var(--pink); }
.rh-lime { color: var(--title-green); }
strong.rh-pink, strong.rh-lime, .rh-pink strong, .rh-lime strong { font-weight: 600; }

/* Eyebrow / badge de texto */
.rh-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--title-green);
}

/* ---------------------------------------------------------------- Botones */
.rh-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  transition: all var(--speed-fast) var(--ease-out);
  text-decoration: none;
  background: var(--pink);
  color: #fff;
}
.rh-btn:hover { background: var(--pink-strong); color: #fff; }
.rh-btn .rh-arrow { font-size: 16px; line-height: 1; }
.rh-btn--sm { font-size: 13px; padding: 10px 20px; }
.rh-btn--lg { font-size: 16px; padding: 16px 34px; }
.rh-btn--dark { background: var(--ink); color: var(--cream); }
.rh-btn--dark:hover { opacity: .85; color: var(--cream); }
.rh-btn--lime { background: var(--lime); color: var(--ink); }
.rh-btn--lime:hover { opacity: .85; color: var(--ink); }
.rh-btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.rh-btn--outline:hover { color: var(--ink); background: rgba(17,17,17,.04); }
.rh-btn--ghost {
  background: transparent; color: var(--pink); padding: 8px 2px; gap: 8px;
}
.rh-btn--ghost:hover { background: transparent; color: var(--violet); }
.rh-btn--ghost.rh-btn--sm { padding: 6px 2px; }
.rh-btn:disabled { opacity: .4; cursor: default; }

/* ----------------------------------------------------------------- Header */
.rh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink-12);
}
.rh-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rh-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.rh-brand:hover { color: var(--ink); }
.rh-brand__logo { height: 48px; margin: -6px 0; }
.rh-brand__name {
  display: block; font-weight: 800; font-size: 12.5px;
  letter-spacing: .12em; line-height: 1.25;
}
.rh-brand__sub {
  display: block; font-size: 8px; letter-spacing: .14em;
  color: var(--text-muted); margin-top: 3px; line-height: 1.4;
}
.rh-nav { display: flex; gap: 32px; font-weight: 600; font-size: 13px; }
.rh-nav a {
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 3px solid transparent; transition: border-color var(--speed-fast) var(--ease-out);
}
.rh-nav a:hover { color: var(--ink); border-bottom-color: var(--pink); }
.rh-nav a.is-active { border-bottom-color: var(--pink); }
.rh-header__cta { display: flex; align-items: center; gap: 12px; }

/* Toggler móvil (oculto en desktop) */
.rh-navtoggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 6px;
}
/* La navegación móvil está oculta por defecto (desktop): solo aparece en el
   breakpoint móvil cuando se abre. Sin esta regla base se duplicaba el menú. */
.rh-mobile-nav { display: none; }

/* ------------------------------------------------------------------- Hero */
.rh-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}
.rh-hero h1 {
  font-size: 50px; line-height: 1.16;
  letter-spacing: var(--tracking-tight); margin: 20px 0 0;
}
.rh-rule { width: 56px; height: 4px; background: var(--pink); border-radius: 2px; margin: 24px 0; }
.rh-hero p {
  font-size: 16.5px; line-height: 1.7; color: var(--text-muted);
  max-width: 470px; margin: 0;
}
.rh-hero__media { position: relative; }
.rh-hero__photo {
  width: 100%; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg);
  overflow: hidden; filter: grayscale(1);
}
.rh-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-hero__quote { position: absolute; left: -36px; bottom: -52px; max-width: 372px; }

/* Quote card */
.rh-quote {
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 24px; font-family: var(--font-body);
}
.rh-quote__mark { color: var(--lime-deep); font-family: var(--font-display); font-size: 28px; line-height: 1; }
.rh-quote__text { font-size: 14px; line-height: 1.6; margin-top: 6px; }
.rh-quote__rule { width: 40px; height: 3px; background: var(--lime); margin-top: 14px; border-radius: 2px; }

/* --------------------------------------------------------------- Problema */
.rh-section { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.rh-section-title { font-size: 26px; margin: 0 0 24px; }
.rh-problem {
  background: var(--surface-tint); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 12px 24px;
}
.rh-problem__item { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
/* Rejilla 3×2: divisor vertical salvo en la 1ª columna; divisor horizontal en la 2ª fila. */
.rh-problem__item:not(:nth-child(3n+1)) { border-left: 1px solid var(--ink-12); }
.rh-problem__item:nth-child(n+4) { border-top: 1px solid var(--ink-12); }
.rh-problem__item p { font-size: 14px; line-height: 1.6; margin: 0; }
.rh-ico { flex-shrink: 0; color: var(--ink); stroke-width: 1.6; }

/* ------------------------------------------------------------ Libro / oport. */
/* Bandas de sección a todo el ancho, alternando fondo blanco/crema (se tocan). */
.rh-band { padding: 72px 0; }
.rh-band--cream { background: var(--surface-alt); }
.rh-band--white { background: var(--surface-page); }
.rh-band--clients { padding: 52px 0; }
.rh-band--tight { padding: 72px 0; }
.rh-book-head {
  font-size: 32px; text-align: center; max-width: 680px; margin: 0 auto;
}
.rh-card {
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); font-family: var(--font-body);
}
.rh-card--outline { box-shadow: none; border: 1.5px solid var(--pink); }
.rh-book-card { margin-top: 96px; overflow: hidden; }
.rh-book-grid { display: grid; grid-template-columns: 400px 1fr; align-items: stretch; }
.rh-book-cover {
  background: var(--lime); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex; align-items: center; justify-content: center; padding: 56px 40px;
}
.rh-book-body { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
.rh-book-body h3 { font-size: 28px; margin: 0; }
.rh-book-body__sub { font-weight: 600; font-size: 16px; line-height: 1.45; margin-top: 10px; color: var(--pink); }
.rh-book-body p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 16px 0 0; max-width: 520px; }
.rh-checklist { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; }

/* Ilustración 3D del libro */
.rh-book { position: relative; width: 236px; height: 334px; filter: drop-shadow(18px 24px 22px rgba(17,17,17,.30)); }
.rh-book__back { position: absolute; top: 5px; left: 9px; right: -8px; bottom: -5px; background: #111; border-radius: 2px 5px 5px 2px; }
.rh-book__pages { position: absolute; top: 3px; right: -6px; bottom: -3px; width: 12px; background: repeating-linear-gradient(to bottom,#f6f4ef 0,#f6f4ef 2.5px,#dedbd2 2.5px,#dedbd2 3.5px); border-radius: 0 3px 3px 0; }
.rh-book__bottom { position: absolute; left: 9px; right: -3px; bottom: -4px; height: 9px; background: linear-gradient(to bottom,#f2f0ea,#d8d5cc); border-radius: 0 0 4px 3px; }
.rh-book__face { position: relative; width: 236px; height: 334px; background: linear-gradient(105deg,#fff 0%,#fff 55%,#f4f2ec 100%); border-radius: 2px 6px 6px 2px; overflow: hidden; padding: 32px 26px; display: flex; flex-direction: column; box-sizing: border-box; }
.rh-book__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 14px; background: linear-gradient(to right,rgba(17,17,17,.16),rgba(17,17,17,.05) 45%,rgba(255,255,255,.5) 70%,rgba(17,17,17,.06) 100%); }
.rh-book__spine2 { position: absolute; top: 0; bottom: 0; left: 14px; width: 3px; background: linear-gradient(to right,rgba(255,255,255,.8),rgba(17,17,17,.04)); }
.rh-book__tick { width: 36px; height: 5px; background: var(--pink); border-radius: 3px; }
.rh-book__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.18; margin-top: 20px; }
.rh-book__sub { font-family: var(--font-body); font-size: 11.5px; line-height: 1.55; color: var(--text-muted); margin-top: 14px; }
.rh-book__author { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.rh-book__badge { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.rh-book__authorname { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .04em; }

/* Checkitem */
.rh-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.rh-check svg { flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------------- Recursos */
.rh-resources { padding: 80px var(--gutter); }
.rh-resources__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 32px; }
.rh-resource { display: flex; gap: 18px; padding: 0 28px; }
.rh-resource:first-child { padding-left: 0; }
.rh-resource + .rh-resource { border-left: 1px solid var(--ink-12); }
.rh-resource__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rh-resource__title { font-weight: 700; font-size: 15px; }
.rh-resource p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ----------------------------------------------------------------- Método */
.rh-metodo { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.rh-metodo h2 { font-size: 23px; line-height: 1.35; margin: 16px 0 0; }
.rh-metodo p { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 16px 0 0; }
.rh-metodo__now { font-weight: 600; font-size: 15px; color: var(--title-green); margin-top: 14px; }
.rh-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: start; border-left: 1px solid var(--ink-12); padding-left: 44px; }
.rh-step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rh-step p { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.rh-step__title { font-weight: 700; font-size: 15px; }
.rh-step__meta { font-weight: 600; font-size: 12px; color: var(--pink); }
.rh-stepbadge { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

/* Popover "¿Qué recibes?" */
.rh-pop-wrap { position: relative; margin-top: 28px; }
.rh-pop-trigger {
  cursor: pointer; background: #fff; border: 1.5px solid var(--pink);
  border-radius: var(--radius-md); padding: 20px 24px; display: flex;
  align-items: center; gap: 18px; box-shadow: var(--shadow-card);
  transition: box-shadow var(--speed-base) var(--ease-out); width: 100%; text-align: left;
}
.rh-pop-trigger:hover { box-shadow: var(--shadow-float); }
.rh-pop-trigger__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.rh-pop-trigger__t { font-weight: 700; font-size: 14.5px; }
.rh-pop-trigger__d { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }
.rh-pop-trigger__arrow { font-weight: 700; font-size: 18px; color: var(--pink); flex-shrink: 0; }
.rh-pop {
  position: absolute; left: 0; top: 100%; margin-top: 12px; width: 340px; z-index: 30;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-float);
  padding: 24px 26px;
}
.rh-pop[hidden] { display: none; }
.rh-pop__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rh-pop__title { font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.rh-pop__close { border: none; background: none; cursor: pointer; font-size: 16px; color: var(--ink-50); line-height: 1; }
.rh-pop__row { font-size: 12.5px; line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--ink-12); }
.rh-pop__row:last-child { border-bottom: none; }

/* Banner CTA */
.rh-ctabanner {
  background: var(--surface-tint); border-radius: var(--radius-lg);
  padding: 32px 40px; display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.rh-ctabanner__text { font-family: var(--font-display); font-weight: 600; font-size: 20px; }

/* -------------------------------------------------- Slider de logos (marquee) */
.rh-clients { margin-top: 0; overflow: hidden; }
.rh-clients__label {
  text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: var(--tracking-eyebrow); color: var(--title-green); text-transform: uppercase;
}
.rh-marquee { margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rh-marquee__track { display: flex; width: max-content; gap: 56px; align-items: center; animation: rh-marquee 28s linear infinite; }
.rh-marquee:hover .rh-marquee__track { animation-play-state: paused; }
.rh-logo {
  height: 44px; min-width: 120px; padding: 0 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rh-logo img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: opacity var(--speed-base), filter var(--speed-base); }
.rh-logo:hover img { filter: grayscale(0); opacity: 1; }
.rh-logo--text { font-family: 'Georgia', serif; font-weight: 700; font-size: 18px; color: var(--ink-70); }
@keyframes rh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rh-marquee__track { animation: none; } }

/* -------------------------------------------------------------- Por qué / Why */
.rh-why { padding-top: 0; padding-bottom: 0; }
.rh-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.rh-why__item { padding: 0 24px; }
.rh-why__item:first-child { padding-left: 0; }
.rh-why__item + .rh-why__item { border-left: 1px solid var(--ink-12); }
.rh-why__title { font-weight: 700; font-size: 14.5px; margin: 14px 0 8px; }
.rh-why__item p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------- Contacto */
.rh-contact { max-width: var(--container-max); margin: 0 auto; padding: 64px var(--gutter) 96px; }
.rh-contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.rh-contact h1 { font-size: 40px; line-height: 1.16; letter-spacing: var(--tracking-tight); margin: 18px 0 0; }
.rh-contact__lead { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 20px 0 0; max-width: 420px; }
.rh-contact__aside-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.rh-contact__aside-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.rh-contact__card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 40px; }

.rh-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.rh-field input, .rh-field textarea {
  font-family: var(--font-body); font-size: 14px; font-weight: 400; padding: 12px 16px;
  border-radius: var(--radius-md); border: 1.5px solid var(--ink-12); outline: none;
  background: var(--white); color: var(--ink); transition: border-color var(--speed-fast);
}
.rh-field input:focus, .rh-field textarea:focus { border-color: var(--violet); }
.rh-field textarea { resize: vertical; min-height: 130px; }
.rh-field--error input, .rh-field--error textarea { border-color: var(--pink); }
.rh-field__err { font-weight: 500; font-size: 12px; color: var(--pink); }
.rh-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--text-muted); margin-bottom: 22px; }
.rh-consent input { margin-top: 2px; accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.rh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rh-alert { border-radius: var(--radius-md); padding: 16px 20px; font-size: 14px; line-height: 1.5; margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; }
.rh-alert--ok { background: var(--lime-soft); color: var(--ink); border: 1px solid rgba(139,167,20,.4); }
.rh-alert--err { background: var(--pink-soft); color: var(--ink); border: 1px solid rgba(234,63,161,.35); }
.rh-alert i { flex-shrink: 0; margin-top: 1px; }

/* ----------------------------------------------------------------- Footer */
.rh-footer { border-top: 1px solid var(--ink-12); }
.rh-footer__grid { max-width: var(--container-max); margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }
.rh-footer__logo { height: 56px; justify-self: start; }
.rh-footer__h { font-weight: 700; font-size: 12px; letter-spacing: .1em; margin-bottom: 10px; }
.rh-footer__links { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.rh-footer__links a { color: var(--text-muted); }
.rh-footer__links a:hover { color: var(--pink); }
.rh-social { display: flex; gap: 10px; margin-top: 8px; }
.rh-social a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.rh-social a:hover { background: var(--ink); color: #fff; }
.rh-footer__bottom { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter) 24px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- Error */
.rh-error { max-width: 680px; margin: 0 auto; padding: 120px var(--gutter); text-align: center; }
.rh-error__code { font-family: var(--font-display); font-weight: 700; font-size: 88px; color: var(--pink); line-height: 1; }
.rh-error h1 { font-size: 30px; margin: 16px 0 0; }
.rh-error p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 16px 0 32px; }

/* ================================================================ Responsive */
@media (max-width: 992px) {
  .rh-book-grid { grid-template-columns: 320px 1fr; }
  .rh-book-body { padding: 40px; }
  .rh-metodo { grid-template-columns: 1fr; gap: 32px; }
  .rh-steps { border-left: none; padding-left: 0; }
  .rh-contact__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  /* Navegación móvil colapsable */
  .rh-navtoggle { display: inline-flex; }
  .rh-nav, .rh-header__cta { display: none; }
  .rh-header__inner { flex-wrap: wrap; }
  .rh-mobile-nav { display: none; width: 100%; flex-basis: 100%; }
  .rh-mobile-nav.is-open { display: block; }
  .rh-mobile-nav nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
  .rh-mobile-nav nav a:not(.rh-btn) { padding: 12px 4px; font-weight: 600; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--ink-12); }
  .rh-mobile-nav nav a.is-active { color: var(--pink); }
  /* CTA "Hablemos" destacado en móvil: pastilla rosa a todo el ancho, texto
     blanco, tipografía display y algo más de presencia. */
  .rh-mobile-nav .rh-btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    padding: 15px 24px;
    box-shadow: 0 8px 22px rgba(234, 63, 161, .32);
  }
  .rh-mobile-nav .rh-btn:hover { background: var(--pink-strong); color: #fff; }

  .rh-hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .rh-hero h1 { font-size: 38px; }
  .rh-hero__quote { position: static; margin-top: 24px; max-width: none; }
  .rh-hero__media { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .rh-problem { grid-template-columns: 1fr; gap: 0; padding: 8px 20px; }
  .rh-problem__item { padding: 22px 0; }
  .rh-problem__item:not(:nth-child(3n+1)) { border-left: none; }
  .rh-problem__item:nth-child(n+4) { border-top: none; }
  .rh-problem__item + .rh-problem__item { border-top: 1px solid var(--ink-12); }
  .rh-resources__grid { grid-template-columns: 1fr; gap: 28px; }
  .rh-resource, .rh-resource:first-child { padding: 0; }
  .rh-resource + .rh-resource { border-left: none; border-top: 1px solid var(--ink-12); padding-top: 28px; }
  .rh-steps { grid-template-columns: 1fr; gap: 32px; }
  .rh-why__grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .rh-why__item, .rh-why__item:first-child { padding: 0 16px; }
  .rh-why__item:nth-child(odd) { padding-left: 0; }
  .rh-why__item:nth-child(3), .rh-why__item:nth-child(4) { padding-top: 32px; border-top: 1px solid var(--ink-12); }
  .rh-book-grid { grid-template-columns: 1fr; }
  .rh-book-cover { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .rh-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .rh-contact h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .rh-why__grid { grid-template-columns: 1fr; }
  .rh-why__item:nth-child(n) { padding: 0; }
  .rh-why__item + .rh-why__item { padding-top: 28px; border-top: 1px solid var(--ink-12); }
  .rh-footer__grid { grid-template-columns: 1fr; }
  .rh-hero h1 { font-size: 32px; }
  .rh-book-body, .rh-contact__card { padding: 28px 22px; }
  .rh-pop { width: 280px; }
}

/* ============================================ Verificación humana (anti-spam) */
.rh-human {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ink-12); border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 18px; cursor: pointer; user-select: none;
  background: #fff; transition: border-color var(--speed-fast) var(--ease-out);
}
.rh-human:hover { border-color: var(--ink-50); }
.rh-human:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.rh-human.is-checked { border-color: var(--lime-deep); }
.rh-human__box {
  position: relative; width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid var(--ink-12); border-radius: 6px; background: #fff;
}
.rh-human.is-checked .rh-human__box { border-color: var(--lime-deep); background: var(--lime-soft); }
.rh-human__spin {
  position: absolute; inset: 2px; border-radius: 50%;
  border: 2px solid var(--ink-12); border-top-color: var(--pink);
  opacity: 0; animation: rh-spin .7s linear infinite;
}
.rh-human.is-checking .rh-human__spin { opacity: 1; }
.rh-human__check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lime-deep); opacity: 0; transform: scale(.6); transition: all var(--speed-base) var(--ease-out); }
.rh-human.is-checked .rh-human__check { opacity: 1; transform: scale(1); }
.rh-human.is-checking .rh-human__check { opacity: 0; }
.rh-human__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.rh-human__tag { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); border: 1px solid var(--ink-12); border-radius: var(--radius-pill); padding: 3px 9px; }
@keyframes rh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rh-human__spin { animation: none; } }

.rh-form__error { color: var(--pink); font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.rh-form__error[hidden] { display: none; }

/* ================================================= Banner de cookies (RGPD) */
.rh-cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  display: flex; justify-content: center;
  animation: rh-cookies-in var(--speed-base) var(--ease-out) both;
}
.rh-cookies[hidden] { display: none; }
.rh-cookies__card {
  width: 100%; max-width: 520px; background: #fff; color: var(--ink);
  border: 1px solid var(--ink-12); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float); padding: 22px 24px;
}
.rh-cookies__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rh-cookies__ico { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rh-cookies__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.rh-cookies__text { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0 0 14px; }
.rh-cookies__prefs { margin: 4px 0 16px; border-top: 1px solid var(--ink-12); }
.rh-cookies__prefs[hidden] { display: none; }
.rh-cookies__pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink-12); }
.rh-cookies__pref-name { font-weight: 700; font-size: 13.5px; }
.rh-cookies__pref-desc { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-top: 2px; }
.rh-cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-cookies__save[hidden] { display: none; }

/* Interruptor de preferencias */
.rh-toggle { position: relative; width: 42px; height: 24px; border-radius: var(--radius-pill); border: none; background: var(--ink-12); cursor: pointer; flex-shrink: 0; transition: background var(--speed-fast) var(--ease-out); }
.rh-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--speed-fast) var(--ease-out); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.rh-toggle.is-on { background: var(--pink); }
.rh-toggle.is-on::after { transform: translateX(18px); }
.rh-toggle.is-locked { background: var(--lime-deep); cursor: not-allowed; opacity: .8; }
.rh-toggle.is-locked.is-on::after { transform: translateX(18px); }
@keyframes rh-cookies-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .rh-cookies { animation: none; } }

/* ===================================================== Páginas legales */
.rh-legal { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.rh-legal h1 { font-size: 42px; letter-spacing: -.02em; margin: 16px 0 8px; }
.rh-legal__updated { font-size: 13px; color: var(--ink-50); margin: 0 0 28px; }
.rh-legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 34px 0 10px; }
.rh-legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin: 20px 0 6px; color: var(--ink); }
.rh-legal p, .rh-legal li { font-size: 15px; line-height: 1.75; color: var(--ink-70); }
.rh-legal ul { padding-left: 20px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.rh-legal a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.rh-legal a:hover { color: var(--violet); }
.rh-legal__meta { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 14px 0 8px; padding: 18px 20px; background: var(--surface-alt); border-radius: var(--radius-md); }
.rh-legal__meta dt { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.rh-legal__meta dd { margin: 0; font-size: 14px; color: var(--ink-70); }
@media (max-width: 560px) {
  .rh-legal h1 { font-size: 32px; }
  .rh-legal__meta { grid-template-columns: 1fr; gap: 2px 0; }
  .rh-legal__meta dt { margin-top: 8px; }
  .rh-cookies__card { padding: 18px; }
}

/* ============================ Cambios ronda 4 (reorg método, libro, banner) */

/* Título central (sección Método) */
.rh-center-title {
  font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.28;
  text-align: center; max-width: 780px; margin: 0 auto 48px;
}

/* Imagen del libro (mockup con fondo transparente sobre el panel lima) */
.rh-book-img { max-width: 100%; max-height: 400px; width: auto; height: auto; display: block; }

/* Caja "¿Qué recibes?" centrada bajo los 3 pasos */
.rh-qrecibes { margin-top: 44px; }
.rh-qrecibes .rh-pop-wrap { max-width: 460px; margin: 0 auto; }
.rh-qrecibes .rh-pop-trigger__arrow { font-size: 26px; font-weight: 400; line-height: 1; }
/* El desplegable se centra bajo la caja para verse mejor */
.rh-qrecibes .rh-pop { left: 50%; transform: translateX(-50%); width: 420px; max-width: 92vw; }

/* Banner CTA oscuro (rosa -> negro, acentos -> verde) */
.rh-ctabanner--dark { background: var(--ink); }
.rh-ctabanner--dark .rh-ctabanner__text { color: #fff; }

/* ------------------------------------------ Desplegable "Otros proyectos" */
.rh-drop { position: relative; display: flex; align-items: center; }
.rh-drop__toggle {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink);
  padding: 0 0 4px; border-bottom: 3px solid transparent; transition: border-color var(--speed-fast) var(--ease-out);
}
.rh-drop__toggle:hover { border-bottom-color: var(--pink); }
.rh-drop__caret { transition: transform var(--speed-fast) var(--ease-out); }
.rh-drop.is-open .rh-drop__caret { transform: rotate(180deg); }
.rh-drop__menu {
  position: absolute; top: 100%; right: 0; margin-top: 12px; min-width: 216px;
  background: #fff; border: 1px solid var(--ink-12); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float); padding: 8px; display: none; z-index: 50;
}
/* Puente invisible que cubre el hueco entre el botón y el menú, para que el
   ratón pueda pasar del uno al otro sin perder el :hover y que no se cierre. */
.rh-drop__menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.rh-drop.is-open .rh-drop__menu,
.rh-drop:hover .rh-drop__menu,
.rh-drop:focus-within .rh-drop__menu { display: block; }
.rh-drop__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; color: var(--ink);
}
.rh-drop__menu a:hover { background: var(--surface-tint); color: var(--pink); }
.rh-drop__menu a i { color: var(--ink-50); }
.rh-drop__menu a:hover i { color: var(--pink); }

/* Grupo "Otros proyectos" en el menú móvil */
.rh-mobile-nav__group { padding: 6px 0 10px; border-bottom: 1px solid var(--ink-12); }
.rh-mobile-nav__grouptitle { font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--ink-50); text-transform: uppercase; padding: 12px 4px 6px; }
.rh-mobile-nav__sub { display: flex; align-items: center; gap: 6px; padding: 10px 4px 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }
.rh-mobile-nav__sub i { color: var(--ink-50); }

/* -------------------------------------------- Contacto: agendar llamada */
.rh-call__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.rh-call__text { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 22px; }
.tidycal-embed { min-height: 220px; }
.rh-call__fallback { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--pink); }
.rh-call__fallback:hover { color: var(--violet); }

@media (max-width: 860px) {
  .rh-center-title { font-size: 26px; margin-bottom: 32px; }
  .rh-qrecibes .rh-pop { left: 0; transform: none; width: 100%; }
}

/* ============================================ Modal de captación (leads) */
.rh-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rh-modal[hidden] { display: none; }
.rh-modal__overlay { position: absolute; inset: 0; background: rgba(17,17,17,.55); backdrop-filter: blur(2px); animation: rh-fade var(--speed-base) var(--ease-out) both; }
.rh-modal__card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  padding: 32px 30px; animation: rh-modal-in var(--speed-base) var(--ease-out) both;
}
.rh-modal__x { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink-50); cursor: pointer; }
.rh-modal__x:hover { color: var(--ink); }
.rh-modal__title { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin: 10px 0 0; }
.rh-modal__text { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 22px; }
.rh-modal__ok { text-align: center; padding: 14px 6px 8px; }
.rh-modal__ok-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-deep); display: flex; align-items: center; justify-content: center; }
.rh-modal__ok .rh-modal__text { margin-bottom: 22px; }
@keyframes rh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rh-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rh-modal__overlay, .rh-modal__card { animation: none; } }

/* Consentimientos del modal: marca de obligatorio / opcional */
.rh-consent__req { color: var(--pink); font-weight: 700; }
.rh-consent__opt { color: var(--ink-50); }
.rh-consent + .rh-consent { margin-top: -8px; }

/* ==================================================== FAQ (acordeón) */
.rh-faq { max-width: 820px; }
.rh-faq__head { text-align: center; margin-bottom: 40px; }
.rh-faq__head .rh-eyebrow { display: block; margin-bottom: 12px; }
.rh-faq__list { display: flex; flex-direction: column; gap: 14px; }
.rh-faq__item {
  background: #fff; border: 1px solid var(--ink-12); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color var(--speed-fast) var(--ease-out), box-shadow var(--speed-fast) var(--ease-out);
}
.rh-faq__item:hover { border-color: var(--ink-50); }
.rh-faq__item[open] { border-color: var(--pink); box-shadow: var(--shadow-card); }
.rh-faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: var(--ink); line-height: 1.4;
}
.rh-faq__q::-webkit-details-marker { display: none; }
.rh-faq__q::marker { content: ''; }
.rh-faq__q:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; border-radius: var(--radius-md); }
.rh-faq__item[open] .rh-faq__q { color: var(--pink); }
.rh-faq__icon {
  margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink); display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform var(--speed-base) var(--ease-out), background var(--speed-fast), color var(--speed-fast);
}
.rh-faq__item[open] .rh-faq__icon { transform: rotate(45deg); background: var(--pink); color: #fff; }
.rh-faq__a { padding: 0 24px 22px; }
.rh-faq__a p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
details[open] .rh-faq__a { animation: rh-faq-slide var(--speed-base) var(--ease-out); }
@keyframes rh-faq-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { details[open] .rh-faq__a { animation: none; } .rh-faq__icon { transition: none; } }
@media (max-width: 560px) {
  .rh-faq__q { font-size: 15px; padding: 16px 18px; gap: 12px; }
  .rh-faq__a { padding: 0 18px 18px; }
}
