/* =====================================================================
   Inicio editorial · diseño de referencia elegido por el cliente (v3.5.0).
   Paleta del sitio: #8DB2C6 · #3A3D26 · #FBF9F4/#F5F1E9 · #A4555F.
   ===================================================================== */
:root { --rd-cream: #F5F1E9; --rd-cream-2: #FBF9F4; --rd-olive: #3A3D26; --rd-olive-2: #3A3D26; --rd-sage: #8DB2C6; --rd-rose: #E9C6CA; --rd-rose-d: #A4555F; --rd-ink: #2B2823; }
#tab-inicio { background: var(--rd-cream); }
#tab-inicio .rd-sec { padding: 0 16px; margin-top: 22px; }
#tab-inicio em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Hero */
.rd-hero { position: relative; min-height: 560px; color: #fff; overflow: hidden; border-radius: 0 0 30px 30px; display: flex; flex-direction: column; }
.rd-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.rd-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,40,35,.30) 0%, rgba(43,40,35,.05) 28%, rgba(58,61,38,.55) 62%, rgba(43,40,35,.86) 100%); }
.rd-hero-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-top) + 12px) 20px 0; }
.rd-hero-txt { position: relative; margin-top: auto; padding: 0 20px 22px; }
.rd-hello { font-family: var(--serif); font-weight: 400; font-size: 78px; line-height: .9; margin: 0; letter-spacing: -.02em; }
.rd-tag { font-family: var(--serif); font-size: 27px; line-height: 1.08; margin: 8px 0 10px; max-width: 340px; }
.rd-tag em { color: #E3B6BC; }
.rd-lead { font-size: 13.5px; line-height: 1.5; opacity: .9; margin: 0 0 16px; max-width: 520px; }
.rd-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rd-feats button { color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rd-feats i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Tarjetas de temas */
.rd-topics { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
.rd-topics::-webkit-scrollbar { display: none; }
.rd-topic { flex: none; width: 136px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; background: var(--rd-cream-2); border: 1px solid #E4DCCD; border-radius: 14px; box-shadow: 0 6px 16px -12px rgba(43,40,35,.4); text-align: left; color: var(--rd-ink); }
.rd-topic-w { display: flex; flex-direction: column; line-height: 1; }
.rd-topic-w em { font-size: 17px; }
.rd-topic-w b { font-size: 13px; font-weight: 700; margin-top: 3px; }
.rd-topic-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #F5F1E9; color: var(--rd-rose-d); flex: none; }

/* Conocer tu cuerpo */
.rd-know { background: var(--rd-cream-2); border: 1px solid #E4DCCD; border-radius: 22px; padding: 20px 18px; text-align: center; }
.rd-know h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; margin: 0 0 8px; color: var(--rd-ink); }
.rd-know h2 em { color: var(--rd-olive-2); }
.rd-know p { font-size: 13px; color: #6B645A; line-height: 1.5; margin: 0 auto 14px; max-width: 560px; }
.rd-know-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rd-know-row button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 9px 9px; border-radius: 999px; background: #fff; border: 1px solid #E4DCCD; font-size: 12.5px; font-weight: 700; color: var(--rd-ink); }
.rd-know-row button i { width: 24px; height: 24px; border-radius: 50%; background: var(--rd-rose); color: #fff; display: grid; place-items: center; }
.rd-know-idx { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.rd-know-idx b { font-size: 40px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.rd-know-idx span { font-size: 12px; color: #6B645A; text-align: left; line-height: 1.35; }

/* Cómo funciona */
.rd-how { background: radial-gradient(80% 60% at 100% 0%, rgba(141,178,198,.25), transparent 60%), var(--rd-olive); color: #FBF9F4; border-radius: 26px; padding: 24px 18px 18px; }
.rd-how h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.05; margin: 0 0 18px; text-align: center; }
.rd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.rd-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; position: relative; }
.rd-steps li b { font-size: 14.5px; } .rd-steps li span:last-child { grid-column: 2; font-size: 12.5px; opacity: .78; }
.rd-step-dot { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FBF9F4; color: var(--rd-olive); box-shadow: 0 0 0 5px rgba(251,249,244,.14); position: relative; z-index: 1; }
.rd-steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; height: calc(100% - 30px); width: 2px; background: rgba(251,249,244,.25); }
.rd-how-note { font-size: 11px; opacity: .6; text-align: center; margin: 16px 0 0; }

/* Encabezados */
.rd-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.rd-head h2, .rd-head h3 { font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 0; color: var(--rd-ink); }
.rd-head h2 em, .rd-head h3 em { font-size: 1.15em; color: var(--rd-rose-d); }
.rd-head h3 { font-size: 17px; }
.rd-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--rd-olive-2); }

/* Tira de fotos */
.rd-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.rd-strip::-webkit-scrollbar { display: none; }
.rd-ph { flex: none; width: 128px; height: 196px; border-radius: 18px; overflow: hidden; position: relative; text-align: left; }
.rd-ph img { width: 100%; height: 100%; object-fit: cover; }
.rd-ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #fff; background: linear-gradient(180deg, transparent, rgba(43,40,35,.82)); }
.rd-ph:nth-child(odd) { margin-top: 14px; height: 182px; }

/* Promo */
.rd-promo { position: relative; display: grid; place-items: center; width: 100%; min-height: 250px; border-radius: 22px; overflow: hidden; padding: 24px; }
.rd-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.rd-promo::before { content: ''; position: absolute; inset: 0; background: rgba(43,40,35,.35); }
.rd-promo-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-ink); background: #E3B6BC; padding: 5px 9px; border-radius: 999px; }
.rd-promo-card { position: relative; z-index: 1; background: rgba(251,248,240,.95); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--rd-ink); }
.rd-promo-card small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-olive-2); }
.rd-promo-card > b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.rd-cd { display: flex; gap: 8px; margin: 6px 0 10px; }
.rd-cd span { display: flex; flex-direction: column; align-items: center; width: 50px; padding: 6px 0; border-radius: 10px; background: #fff; border: 1px solid #E4DCCD; }
.rd-cd b { font-size: 20px; font-weight: 800; } .rd-cd i { font-style: normal; font-size: 10px; color: #938B7E; }
.rd-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: var(--rd-olive); color: #FBF9F4; font-size: 13px; font-weight: 800; }
.rd-pill-rose { background: var(--rd-rose); color: var(--rd-ink); }
.rd-marquee { margin-top: 10px; overflow: hidden; white-space: nowrap; border-top: 1px solid #E4DCCD; border-bottom: 1px solid #E4DCCD; padding: 8px 0; }
.rd-marquee span { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--rd-olive-2); animation: rdMarq 22s linear infinite; }
@keyframes rdMarq { from { transform: translateX(0); } to { transform: translateX(-40%); } }

/* Hello, Recetas (como "Hello, Productos") */
.rd-prod { display: grid; gap: 14px; }
.rd-prod-hero { position: relative; height: 230px; border-radius: 22px; overflow: hidden; text-align: left; }
.rd-prod-hero img { width: 100%; height: 100%; object-fit: cover; }
.rd-prod-hero > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: linear-gradient(180deg, transparent 30%, rgba(43,40,35,.75)); }
.rd-prod-hero b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: .9; }
.rd-prod-hero em { font-size: 40px; line-height: 1; color: #E3B6BC; }
.rd-prod-hero small { font-size: 12.5px; margin-top: 6px; opacity: .9; }
.rd-prod-side { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 10px 26px -18px rgba(43,40,35,.4); }
.rd-prod-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rd-pcard { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.rd-pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--rd-cream); }
.rd-pcard b { font-size: 12.5px; line-height: 1.25; color: var(--rd-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-cursos { margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--rd-cream); text-align: left; color: var(--rd-ink); }
.rd-cursos > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .rd-cursos b { font-size: 14px; } .rd-cursos small { font-size: 12px; color: #6B645A; }

/* Aliados / Médicos */
.rd-split { display: grid; gap: 12px; }
.rd-split-ph { border-radius: 22px; overflow: hidden; height: 220px; }
.rd-split-ph img { width: 100%; height: 100%; object-fit: cover; }
.rd-split-card { border-radius: 22px; padding: 22px 20px; }
.rd-split-card h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; margin: 0 0 10px; }
.rd-split-card p { font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.rd-split-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.rd-split-card li { display: flex; align-items: center; gap: 8px; }
.rd-sage { background: #8DB2C6; color: #fff; } .rd-sage h2 em { color: #FBF9F4; }
.rd-sage li .ic { background: rgba(255,255,255,.25); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.rd-blue { background: #DCE7EC; color: var(--rd-ink); } .rd-blue h2 em { color: #2F5568; }
.rd-av { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #2F5568; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.rd-next { display: flex; align-items: center; gap: 6px; font-size: 12.5px !important; background: rgba(255,255,255,.6); padding: 8px 10px; border-radius: 12px; }
.rd-blue .rd-pill { background: #2F5568; }
#tab-inicio .version { margin-top: 26px; }

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 768px) {
  html:not(.fz) #tab-inicio > .rd-hero { max-width: none; margin: 0; }
  html:not(.fz) #tab-inicio > .rd-sec { max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 32px; }
  .rd-hero { min-height: 520px; }
  .rd-hero-txt { padding: 0 max(32px, calc((100% - 1056px) / 2)) 34px; }
  .rd-hero-top { padding-left: max(32px, calc((100% - 1056px) / 2)); padding-right: max(32px, calc((100% - 1056px) / 2)); }
  .rd-hello { font-size: 120px; } .rd-tag { font-size: 40px; max-width: 560px; } .rd-lead { font-size: 15px; }
  .rd-feats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; }
  .rd-feats button { flex-direction: row; font-size: 13.5px; }
  .rd-topics { margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .rd-topic { width: auto; }
  .rd-strip { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .rd-ph { width: auto; height: 300px; } .rd-ph:nth-child(odd) { height: 270px; margin-top: 30px; }
  .rd-ph span { font-size: 14px; padding: 40px 14px 14px; }
  .rd-how { padding: 34px 32px 24px; } .rd-how h2 { font-size: 40px; margin-bottom: 30px; }
  .rd-steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .rd-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; align-items: start; }
  .rd-steps li span:last-child { grid-column: 1; }
  .rd-step-dot { grid-row: auto; width: 56px; height: 56px; margin-bottom: 6px; }
  .rd-steps li:not(:last-child)::after { left: calc(50% + 34px); right: auto; top: 27px; width: calc(100% - 52px); height: 2px; }
  .rd-know { padding: 28px 32px; } .rd-know h2 { font-size: 32px; }
  .rd-promo { min-height: 320px; } .rd-promo-card { padding: 22px 40px; } .rd-promo-card > b { font-size: 40px; }
  .rd-prod { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: stretch; }
  .rd-prod-hero { height: auto; min-height: 360px; } .rd-prod-hero b, .rd-prod-hero em { font-size: 58px; }
  .rd-prod-side { padding: 22px; } .rd-prod-row { grid-template-columns: repeat(4, 1fr); }
  .rd-split { grid-template-columns: 1fr 1fr; gap: 18px; }
  .rd-split-ph { height: auto; min-height: 340px; }
  .rd-split-card { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .rd-split-card h2 { font-size: 54px; } .rd-split-card p { font-size: 15px; max-width: 440px; }
}
@media (min-width: 1100px) {
  html:not(.fz) #tab-inicio.active { display: block; }
  .rd-hero { min-height: 600px; border-radius: 0 0 40px 40px; }
}
.rd-split-ph { position: relative; }
.rd-split-ph img, .rd-prod-hero img { position: absolute; inset: 0; }
@media (min-width: 768px) { html:not(.fz) .rd-hero-top .logo-w { visibility: hidden; } }
@media (min-width: 768px) { .rd-split-ph { min-height: 380px; } }

/* v3.7.2 hero escritorio: foto horizontal a pantalla completa */
@media (min-width: 768px) {
  .rd-hero { background: url(../assets/ref/hero-wide-1920.webp) 62% 30% / cover no-repeat, #3A3D26;
    background-image: -webkit-image-set(url(../assets/ref/hero-wide-1920.webp) 1x, url(../assets/ref/hero-wide-2560.webp) 2x);
    background-image: image-set(url(../assets/ref/hero-wide-1920.webp) type("image/webp") 1x, url(../assets/ref/hero-wide-2560.webp) type("image/webp") 2x); }
  .rd-hero > picture { display: none; }
  .rd-hero-veil { background: linear-gradient(90deg, rgba(43,40,35,.82) 0%, rgba(43,47,79,.62) 30%, rgba(58,61,38,.22) 52%, rgba(43,40,35,0) 68%), linear-gradient(180deg, rgba(43,40,35,0) 60%, rgba(43,40,35,.45) 100%); }
}
