/*
 * Revita Wellness: lenguaje visual compartido con vitaminaspr.online.
 * Mismos tokens que el Tailwind de ese sitio (lib/design/palette.js).
 * Lo carga el mu-plugin revita-diseno.php.
 */
:root {
  --rd-brand-50: #ebf7fe;  --rd-brand-100: #d3ecfd; --rd-brand-200: #a9d9f9;
  --rd-brand-300: #66bcf4; --rd-brand-600: #0072bc; --rd-brand-700: #005994;
  --rd-brand-800: #054571; --rd-brand-900: #073654;
  --rd-accent-600: #00b49d; --rd-accent-500: #04c3a9; --rd-accent-800: #066b5d;
  --rd-ink-900: #171f26; --rd-ink-800: #27303a; --rd-ink-700: #3b4754;
  --rd-ink-500: #5f6e7c; --rd-ink-300: #c3ccd5; --rd-ink-200: #e0e6eb; --rd-ink-50: #f8fafb;
  --rd-ambar-600: #b8701e;
  --rd-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --rd-body: 'Figtree', system-ui, sans-serif;
  --rd-r-md: .75rem; --rd-r-lg: 1.25rem;
}

/* ---------- Base de todo el sitio ---------- */
body[class] { font-family: var(--rd-body); color: var(--rd-ink-900); -webkit-font-smoothing: antialiased; }
body[class] :is(h1, h2, h3) { font-family: var(--rd-display); text-wrap: balance; }
body[class] :is(p, li) { text-wrap: pretty; }
body[class] :is(input, textarea)::placeholder { color: var(--rd-ink-500); opacity: 1; }

/* WooCommerce: botones y precios con la marca, sin rediseñar la tienda. */
body[class] .woocommerce :is(a.button, button.button, input.button, #respond input#submit),
body[class] .woocommerce :is(a.button.alt, button.button.alt) {
  background: var(--rd-brand-600); color: #fff; border-radius: var(--rd-r-md);
  font-family: var(--rd-body); font-weight: 600; padding: .8rem 1.4rem; border: 0; }
body[class] .woocommerce :is(a.button, button.button, input.button):hover { background: var(--rd-brand-700); color: #fff; }
body[class] .woocommerce :is(.price, .amount) { color: var(--rd-ink-900); font-variant-numeric: tabular-nums; }
body[class] .woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--rd-display); color: var(--rd-brand-900); }
body[class] .woocommerce .star-rating { color: var(--rd-ambar-600); }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Piezas comunes (.rd) ---------- */
.rd, .rd * { box-sizing: border-box; }
.rd { font-family: var(--rd-body); color: var(--rd-ink-900); line-height: 1.6; }
.rd a { text-decoration: none; color: inherit; }
.rd img { max-width: 100%; display: block; }
.rd :where(ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; list-style: none; }
.rd :where(h1, h2, h3, h4, p) { margin: 0; }
@media (max-width: 767px) { .rd-hide-m { display: none !important; } }
.rd-wrap { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .rd-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .rd-wrap { padding: 0 32px; } }

.rd-display { font-family: var(--rd-display); font-weight: 700; color: var(--rd-brand-900);
  font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.025em; }
.rd-h1 { font-family: var(--rd-display); font-weight: 700; color: var(--rd-brand-900);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.rd-h2 { font-family: var(--rd-display); font-weight: 700; color: var(--rd-brand-900);
  font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.015em; }
.rd-h4 { font-family: var(--rd-display); font-weight: 600; color: var(--rd-brand-900);
  font-size: 1.25rem; line-height: 1.35; }
.rd-lead { font-size: 1.125rem; line-height: 1.65; color: var(--rd-ink-700); }
.rd-cap { font-size: .875rem; line-height: 1.5; color: var(--rd-ink-500); }
.rd-kicker { font-size: .875rem; font-weight: 600; color: var(--rd-accent-800); }

.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--rd-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.5rem; border-radius: var(--rd-r-md); border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease; cursor: pointer; }
.rd-btn svg { width: 20px; height: 20px; flex: none; }
.rd-btn-lg { font-size: 1.125rem; padding: 1rem 2rem; }
.rd-btn-primary { background: var(--rd-brand-600); color: #fff !important; }
.rd-btn-primary:hover { background: var(--rd-brand-700); }
.rd-btn-secondary { background: var(--rd-accent-600); color: var(--rd-ink-900) !important; }
.rd-btn-secondary:hover { background: var(--rd-accent-500); }
.rd-btn-ghost { background: #fff; border-color: var(--rd-ink-300); color: var(--rd-brand-800) !important; }
.rd-btn-ghost:hover { border-color: var(--rd-brand-600); background: var(--rd-brand-50); }
.rd-btn-line { border-color: var(--rd-brand-300); color: #fff !important; }
.rd-btn-line:hover { background: rgba(255,255,255,.1); }
.rd a:focus-visible, .rd button:focus-visible { outline: 2px solid var(--rd-brand-600); outline-offset: 2px; }
.rd-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--rd-brand-700) !important; }
.rd-link:hover { color: var(--rd-brand-900) !important; }
.rd-link svg { width: 16px; height: 16px; }

.rd-sec { padding: 64px 0; }
@media (min-width: 1024px) { .rd-sec { padding: 96px 0; } }
.rd-bg-white { background: #fff; }
.rd-bg-bruma { background: var(--rd-brand-50); }
.rd-bg-tinta { background: var(--rd-brand-900); color: #fff; }
.rd-bg-tinta .rd-h1, .rd-bg-tinta .rd-h2 { color: #fff; }

/* ---------- Header ---------- */
body[class] { padding-top: 116px !important; }
@media (max-width: 1023px) { body[class] { padding-top: 72px !important; } }
.rd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #fff;
  transition: box-shadow .2s ease; }
.rd-header.is-scrolled { box-shadow: 0 4px 6px -1px rgba(7,54,84,.08), 0 10px 15px -3px rgba(7,54,84,.10); }
.rd-top { background: var(--rd-brand-900); color: #fff; font-size: .875rem; }
.rd-top .rd-wrap { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.rd-top a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; }
.rd-top a:hover { color: var(--rd-brand-200); }
.rd-top svg { width: 15px; height: 15px; }
.rd-top-l { display: flex; gap: 1.5rem; }
.rd-top .rd-pill { background: var(--rd-accent-600); color: var(--rd-ink-900); font-weight: 600;
  padding: .2rem .8rem; border-radius: 9999px; }
.rd-top .rd-pill:hover { background: var(--rd-accent-500); color: var(--rd-ink-900); }
.rd-nav .rd-wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.rd-logo img { height: 56px; width: auto; }
.rd-menu { display: flex; align-items: center; gap: 1.5rem; }
.rd-menu a { color: var(--rd-ink-700); font-weight: 500; }
.rd-menu a:hover, .rd-menu a[aria-current="page"] { color: var(--rd-brand-600); }
.rd-cart { position: relative; display: inline-flex; color: var(--rd-ink-800); }
.rd-cart svg { width: 24px; height: 24px; }
.rd-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--rd-ink-700); cursor: pointer; }
.rd-toggle svg { width: 26px; height: 26px; }
.rd-mobile { display: none; border-top: 1px solid var(--rd-ink-200); background: #fff; }
.rd-mobile.is-open { display: block; }
.rd-mobile ul { padding: 12px 16px 20px; }
.rd-mobile li a { display: block; padding: 12px 0; font-weight: 500; color: var(--rd-ink-800);
  border-bottom: 1px solid var(--rd-ink-200); }
.rd-mobile .rd-btn { width: 100%; margin-top: 16px; }
@media (max-width: 1023px) {
  .rd-top { display: none; }
  .rd-nav .rd-wrap { height: 72px; }
  .rd-logo img { height: 48px; }
  .rd-menu { display: none; }
  .rd-toggle { display: inline-flex; }
  .rd-nav-r { display: flex; align-items: center; gap: .5rem; }
}
@media (min-width: 1024px) { .rd-nav-r { display: flex; align-items: center; gap: 1.5rem; } }

/* ---------- Portada ---------- */
.rd-hero { padding: 40px 0 48px; }
@media (min-width: 1024px) { .rd-hero { padding: 72px 0 80px; } }
.rd-grid-12 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .rd-grid-12 { grid-template-columns: 7fr 5fr; gap: 56px; } }
.rd-stars { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--rd-ink-700); }
.rd-stars span { color: var(--rd-ambar-600); letter-spacing: .05em; }
.rd-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .rd-actions { flex-direction: row; } }
.rd-facts { display: grid; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rd-ink-200); font-size: .875rem; }
@media (min-width: 640px) { .rd-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.rd-facts dt { color: var(--rd-ink-500); }
.rd-facts dd { margin-top: 4px; font-weight: 600; color: var(--rd-ink-900); }
.rd-photo { position: relative; overflow: hidden; border-radius: var(--rd-r-lg); background: var(--rd-brand-50); }
.rd-photo img { width: 100%; height: 100%; object-fit: cover; }
.rd-hero .rd-photo { aspect-ratio: 4/3; }
@media (min-width: 1024px) { .rd-hero .rd-photo { aspect-ratio: 4/5; max-height: 620px; } }
.rd-hero .rd-photo img { object-position: 50% 30%; }

.rd-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
@media (min-width: 768px) { .rd-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.rd-head > div { max-width: 42rem; }
.rd-head .rd-lead { margin-top: 12px; }

.rd-menu-sueros { display: grid; border-top: 1px solid var(--rd-brand-200); }
@media (min-width: 768px) { .rd-menu-sueros { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.rd-menu-sueros li { border-bottom: 1px solid var(--rd-brand-200); }
.rd-menu-sueros a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; }
@media (min-width: 640px) { .rd-menu-sueros a { grid-template-columns: 80px 1fr auto; gap: 20px; } }
.rd-thumb { display: block; height: 80px; border-radius: var(--rd-r-md); background: #fff; padding: 6px; }
@media (min-width: 640px) { .rd-thumb { height: 96px; } }
.rd-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.rd-menu-sueros a:hover .rd-thumb img { transform: translateY(-2px); }
.rd-menu-sueros .rd-h4 { display: block; }
.rd-menu-sueros a:hover .rd-h4 { color: var(--rd-brand-600); }
.rd-para { display: block; margin-top: 4px; color: var(--rd-ink-700); line-height: 1.4; }
.rd-ing { display: block; margin-top: 6px; font-size: .875rem; color: var(--rd-ink-500); }
.rd-precio { align-self: start; padding-top: 4px; text-align: right; }
.rd-precio small { display: block; font-size: .875rem; color: var(--rd-ink-500); }
.rd-precio b { font-family: var(--rd-display); font-size: 1.25rem; font-weight: 600; color: var(--rd-ink-900); font-variant-numeric: tabular-nums; }

.rd-check { display: grid; gap: 12px 32px; margin-top: 32px; max-width: 42rem; }
@media (min-width: 640px) { .rd-check { grid-template-columns: 1fr 1fr; } }
.rd-check li { display: flex; gap: 12px; color: var(--rd-ink-800); }
.rd-check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: var(--rd-accent-800);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.rd-prose p + p { margin-top: 16px; }
.rd-prose strong { color: var(--rd-ink-900); }

.rd-programas { display: grid; gap: 48px; margin-top: 40px; }
@media (min-width: 768px) { .rd-programas { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.rd-programas .rd-photo { aspect-ratio: 3/2; }
.rd-programas .rd-photo img { transition: transform .3s ease; }
.rd-programas article > a:hover img { transform: scale(1.02); }
.rd-programas h3 { margin-top: 24px; }
.rd-programas article > a:hover h3 { color: var(--rd-brand-600); }
.rd-lista { margin-top: 20px; border-top: 1px solid var(--rd-ink-200); }
.rd-lista li { padding: 10px 0; border-bottom: 1px solid var(--rd-ink-200); color: var(--rd-ink-800); }

.rd-resenas { display: grid; gap: 48px; }
@media (min-width: 1024px) { .rd-resenas { grid-template-columns: 1fr 1fr; gap: 64px; } }
.rd-quote { margin: 32px 0 0; font-family: var(--rd-display); font-weight: 500; color: var(--rd-brand-900);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.rd-resenas ul { align-self: start; border-top: 1px solid var(--rd-brand-200); }
.rd-resenas li { padding: 24px 0; border-bottom: 1px solid var(--rd-brand-200); }
.rd-resenas li p { margin-top: 10px; color: var(--rd-ink-800); }

.rd-faq { max-width: 48rem; border-top: 1px solid var(--rd-ink-200); }
.rd-faq details { border-bottom: 1px solid var(--rd-ink-200); }
.rd-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer;
  list-style: none; font-family: var(--rd-display); font-weight: 600; font-size: 1.2rem; color: var(--rd-brand-900); }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; font-family: var(--rd-body); font-weight: 400; color: var(--rd-ink-500); }
.rd-faq details[open] summary::after { content: "–"; }
.rd-faq details p { padding: 0 0 20px; color: var(--rd-ink-700); }

.rd-visita { display: grid; gap: 48px; }
@media (min-width: 1024px) { .rd-visita { grid-template-columns: 1fr 1fr; } }
.rd-visita .rd-lead { color: var(--rd-brand-100); margin-top: 16px; max-width: 32rem; }
.rd-datos { display: grid; gap: 32px 40px; align-content: start; }
@media (min-width: 640px) { .rd-datos { grid-template-columns: 1fr 1fr; } }
.rd-datos dt { font-size: .875rem; color: var(--rd-brand-200); }
.rd-datos dd { margin-top: 8px; }
.rd-datos a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rd-big { font-family: var(--rd-display); font-size: 1.25rem; font-weight: 600; }

/* ---------- Footer ---------- */
.rd-footer { background: var(--rd-brand-900); color: #fff; border-top: 1px solid var(--rd-brand-800); padding: 64px 0 32px; }
.rd-footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .rd-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.rd-footer p, .rd-footer li { color: var(--rd-brand-100); }
.rd-footer h4 { margin: 0 0 16px; font-family: var(--rd-body); font-size: .875rem; font-weight: 600; color: var(--rd-brand-300); }
.rd-footer li + li { margin-top: 8px; }
.rd-footer a:hover { color: #fff; }
.rd-social { display: flex; gap: 12px; margin-top: 24px; }
.rd-social a { width: 40px; height: 40px; border: 1px solid var(--rd-brand-700); border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center; }
.rd-social a:hover { background: rgba(255,255,255,.1); }
.rd-social svg { width: 18px; height: 18px; }
.rd-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rd-brand-800);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--rd-brand-200); }
.rd-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (prefers-reduced-motion: reduce) { .rd * { transition: none !important; } }
