/* ═══════════════════════════════════════════════════
   GRABBIT CBD — TEMA EDITORIAL COMPARTIDO
   Se carga DESPUÉS de los estilos propios de cada
   página (wellness, diagnóstico, gracias y campañas)
   y los reviste con el estilo de la home: papel cálido,
   tinta verde, titulares Fraunces, botones rectos en
   mayúsculas y bloques de color de producto.
   ════════════════════════════════════════════════ */

:root {
  --paper: #F4F1EA;
  --paper-2: #FAF8F3;
  --ink: #0F2A1E;
  --ink-soft: #33463C;
  --muted: #67776E;
  --line: rgba(15, 42, 30, .13);
  --orange: #E9A23B;
  --coral: #E36B4B;
  --teal: #23807F;
  --blue: #3D4E8C;
  --sage: #DDE7DB;
  --fraunces: 'Fraunces', Georgia, 'Times New Roman', serif;
  --nunito: 'Nunito Sans', -apple-system, 'Segoe UI', sans-serif;

  /* Familia A (wellness, local-bcn, mascotas-bcn, relax10) */
  --green-deep: var(--ink);
  --green-mid: #2D6A4F;
  --green-light: #4F9A72;
  --green-pale: #E5EEE4;
  --gold: #E9A23B;
  --gold-light: #F6DDA9;
  --dark: var(--ink);
  --text: var(--ink-soft);
  --text-light: var(--muted);
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --white: #FFFFFF;
  --border: var(--line);
  --font-sans: var(--nunito);
  --font-serif: var(--fraunces);
  --font-serif-accent: var(--fraunces);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 30, .07);
  --shadow-lg: 0 24px 60px rgba(15, 42, 30, .12);

  /* Familia B (diagnóstico, gracias, farmacias, revendedores, veterinarias, hub) */
  --g900: var(--ink);
  --g800: #173A2A;
  --g700: #2D6A4F;
  --g600: #3B7D5C;
  --g500: #4F9A72;
  --g400: #7FB896;
  --g200: #C9DCCD;
  --g100: #E5EEE4;
  --g50: #F0F4EE;
  --gold-d: #D48B22;
  --gold-l: #F6DDA9;
  --text-l: var(--muted);
  --bg2: var(--paper-2);
  --serif: var(--fraunces);
  --sans: var(--nunito);
  --r: 6px;
}

/* ── Base ─────────────────────────────────────────── */
body {
  font-family: var(--nunito);
  background: var(--paper);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
}

body::after {
  /* sin textura de grano: estética limpia */
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--fraunces);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-mid);
}

/* ── Barra de anuncios ────────────────────────────── */
.announcement-bar {
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.announcement-bar__divider {
  color: var(--orange);
}

/* ── Navegación ───────────────────────────────────── */
.nav {
  background: rgba(244, 241, 234, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  border: 0;
  border-radius: 0;
}

/* Familia A: la píldora flotante pasa a barra completa como en la home */
header > .nav#mainNav {
  top: 34px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(24px, calc((100% - 1240px) / 2 + 32px));
}

.nav__logo-text,
.nav__brand,
.nav-logo-text {
  font-family: var(--fraunces);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.nav-logo-sub {
  color: var(--green-mid);
  font-weight: 800;
  letter-spacing: .18em;
}

.nav__logo-box,
.nav-logo-icon {
  background: var(--orange);
  border-radius: 4px;
}

.nav__logo-box svg,
.nav-logo-icon svg {
  fill: var(--ink);
}

.nav__links a,
.nav__tel,
.nav-back {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__tel svg {
  fill: var(--ink);
}

.nav__links a:hover,
.nav__tel:hover,
.nav-back:hover {
  color: var(--green-mid);
}

.nav__cta,
.nav__cta-sm {
  min-height: 0;
  padding: 11px 18px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: .7rem;
  font-weight: 800 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav__cta:hover,
.nav__cta-sm:hover {
  background: var(--green-mid);
}

.nav__toggle span {
  background: var(--ink);
}

/* Menú móvil (familia A) */
.mobile-menu {
  background: var(--paper);
}

.mobile-menu ul a {
  font-family: var(--fraunces);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 1;
}

.mobile-menu__close {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav__toggle[aria-expanded="true"] span {
  background: var(--ink);
}

.mobile-menu__cta {
  border-radius: 2px;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--nunito) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── Botones ──────────────────────────────────────── */
.btn,
.btn-gold,
.btn-buy,
.form-submit,
.btn-submit,
.btn-next,
.btn-prev,
.mobile-cta-btn,
.cta-btn {
  border-radius: 2px !important;
  font-family: var(--nunito);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: none;
}

.btn-primary,
.btn-buy,
.btn-next {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover,
.btn-buy:hover,
.btn-next:hover {
  background: #1C4332;
}

.btn-gold,
.form-submit,
.btn-submit,
.mobile-cta-btn {
  background: var(--orange);
  color: var(--ink);
}

.btn-gold:hover,
.form-submit:hover,
.btn-submit:hover {
  background: #F2B451;
  box-shadow: 0 12px 28px rgba(233, 162, 59, .32);
}

.btn-outline,
.btn-outline-w,
.btn-prev {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  backdrop-filter: none;
}

.btn-outline:hover,
.btn-outline-w:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── Hero: papel cálido en lugar de verde oscuro ─── */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, #FBF9F4 0%, rgba(251, 249, 244, 0) 70%),
    var(--paper) !important;
  color: var(--ink-soft);
}

.hero::before,
.hero::after {
  display: none !important;
}

.hero h1,
.hero__title {
  font-family: var(--fraunces);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
  text-shadow: none;
}

.hero h1 em,
.hero h1 span,
.hero__title em,
.hero__title span {
  font-style: italic;
  font-weight: 500;
  color: var(--green-mid);
}

.hero p,
.hero li,
.hero__subtitle,
.hero-sub,
.hero__bullet,
.hero__trust-item,
.hero__trust,
.hero__stat,
.hero-stat-label {
  color: var(--ink-soft);
  text-shadow: none;
}

.hero__subtitle strong,
.hero p strong {
  color: var(--ink);
}

.hero__badge,
.hero-badge {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-mid);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero__badge::before,
.hero-badge::before {
  content: '✦';
  width: auto;
  height: auto;
  background: none;
  color: var(--orange);
}

.hero__bullet-icon {
  background: var(--ink);
  color: var(--paper);
}

.hero__trust-item::before {
  color: var(--green-mid);
}

.hero__trust {
  border-top-color: var(--line);
}

.hero-stat-num,
.hero__stat-number {
  font-family: var(--fraunces);
  font-weight: 600;
  color: var(--ink);
  text-shadow: none;
}

/* ── Colores en línea pensados para fondo oscuro ──── */
.hero [style*="color:#fff"],
.hero [style*="color: #fff"],
.hero [style*="color:white"],
.hero [style*="rgba(255,255,255"],
.hero [style*="rgba(255, 255, 255"],
.success [style*="color:#fff"],
.cta-final [style*="color:#fff"],
.cta-final [style*="rgba(255,255,255"] {
  color: var(--ink) !important;
}

/* ── Hero: piezas propias de cada campaña ─────────── */
.hero__eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--green-mid);
}

.hero__title .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--green-mid);
}

.hero__sub,
.hero__cta-hint {
  color: var(--ink-soft);
}

.hero__proof {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.hero__proof-num {
  font-family: var(--fraunces);
  font-weight: 600;
  color: var(--ink);
}

.hero__proof-label {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-badge::before {
  display: none;
}

/* ── Diagnóstico: barra de progreso y opciones ────── */
.progress-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.progress-labels {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .64rem;
}

.progress-bar-bg {
  background: var(--line);
  height: 4px;
}

.progress-bar-fill {
  background: var(--orange);
}

.option-btn {
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--nunito);
  color: var(--ink);
}

.option-btn:hover {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.option-btn.selected {
  border-color: var(--ink);
  background: var(--sage);
  color: var(--ink);
}

.option-btn.selected::after {
  color: var(--ink);
}

.result-profile-badge {
  background: var(--sage);
  border: 0;
  border-radius: 2px;
}

/* ── Gracias ──────────────────────────────────────── */
.success {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, #FBF9F4 0%, rgba(251, 249, 244, 0) 70%),
    var(--paper) !important;
}

.success__icon {
  background: var(--orange);
  border-radius: 4px;
  transform: rotate(-6deg);
}

.success__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}

.success__name {
  font-style: italic;
  font-weight: 500;
  color: var(--green-mid);
}

.success__sub {
  color: var(--ink-soft);
}

.success__timer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.next {
  background: var(--paper-2);
}

.next__title,
.email-seq__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.tl-step__dot--done {
  background: var(--ink);
}

.tl-step__time,
.email-day__num {
  color: var(--green-mid);
}

.email-item {
  border-radius: 4px;
}

.product-cta {
  background: var(--ink);
}

.product-cta__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--paper);
}

/* ── Hero con productos 3D flotantes (hero3d.js) ─── */
.hero[data-hero3d] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero[data-hero3d] > .container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero[data-hero3d] > .container :is(a, button, input, select, textarea, label, form) {
  pointer-events: auto;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  touch-action: pan-y;
}

.hero--3d-ready .hero__canvas {
  opacity: 1;
}

.hero--pointing {
  cursor: pointer;
}

/* ── Secciones ────────────────────────────────────── */
.section--alt {
  background: var(--paper-2);
}

.section__label,
.section-label,
.eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.section__title,
.section-title {
  font-family: var(--fraunces);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}

/* Bloques de color: las secciones oscuras pasan a tinta */
.section--dark,
.b2b {
  background: var(--ink) !important;
}

.section--dark h2,
.section--dark h3,
.section--dark .section__title {
  color: var(--paper);
}

/* ── Franja de confianza ─────────────────────────── */
.trust-bar {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-bar,
.trust-bar * {
  color: var(--ink);
}

.trust-bar__item,
.trust-bar span,
.trust-bar div {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.trust-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Tarjetas y formularios ───────────────────────── */
.form-card,
.question-card,
.result-card {
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 42, 30, .1);
}

.form-card__title,
.result-title {
  font-family: var(--fraunces);
  font-weight: 600;
  color: var(--ink);
}

.form-control,
.form-input,
.form-select,
.form-card input,
.form-card select,
.form-card textarea {
  border-radius: 2px;
  border-color: var(--line);
  background: var(--paper-2);
  font-family: var(--nunito);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.form-control:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.form-label,
.form-card label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── CTA final: bloque naranja de marca ───────────── */
.cta-final {
  background: var(--orange) !important;
}

.cta-final::before,
.cta-final::after {
  display: none !important;
}

.cta-final h2,
.cta-final__title {
  font-family: var(--fraunces);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}

.cta-final p,
.cta-final__sub,
.cta-final__subtitle {
  color: rgba(15, 42, 30, .8);
}

.cta-final .btn-gold {
  background: var(--ink);
  color: var(--paper);
}

/* ── Footer ───────────────────────────────────────── */
footer,
.footer {
  background: var(--ink);
}

.footer__logo-text {
  font-family: var(--fraunces);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--paper);
}

/* ── WhatsApp flotante: tinta con borde naranja ───── */
.wa-float {
  box-shadow: 0 10px 30px rgba(15, 42, 30, .25);
}

/* ── Móvil ────────────────────────────────────────── */
@media (max-width: 768px) {
  .announcement-bar {
    display: none;
  }

  header > .nav#mainNav {
    top: 0;
    padding: 12px 18px;
  }
}
