/* ==========================================================================
   HORMONEFLUID & DAILY BALANCE — ESTILOS MAESTROS (VANILLA CSS3)
   Arquitectura: Mobile-First, Accesible (WCAG AA/AAA), E-E-A-T Institucional
   Paleta de Autor: «Warm Sage & Earthy Terracotta»
   ========================================================================== */

:root {
  /* Paleta Base: Warm Sage & Earthy Terracotta */
  --hfb-bg-canvas: #FDFBF7;
  --hfb-bg-surface: #FFFFFF;
  --hfb-bg-subtle: #F5F7F4;
  --hfb-bg-warm: #FAF4F0;

  /* Primarios Botánicos */
  --hfb-forest: #2F4336;
  --hfb-forest-hover: #223228;
  --hfb-forest-light: #EAEFEA;
  --hfb-sage: #526B5C;
  --hfb-sage-muted: #81978B;

  /* Acentos Terracota & Calidez */
  --hfb-terracotta: #C86D51;
  --hfb-terracotta-hover: #AF563C;
  --hfb-terracotta-soft: #F7EBE7;
  --hfb-terracotta-dark: #8F3A22;

  /* Acentos Complementarios */
  --hfb-sand: #E6DDD4;
  --hfb-olive: #687A4F;
  --hfb-olive-soft: #F1F4EB;
  --hfb-amber-soft: #FFF5E5;
  --hfb-amber-text: #925807;

  /* Textos y Contrastes (WCAG AAA) */
  --hfb-text-main: #1C2420;
  --hfb-text-body: #3C4A42;
  --hfb-text-muted: #627269;
  --hfb-text-inv: #FFFFFF;

  /* Bordes & Sombras */
  --hfb-border: #E2E8E0;
  --hfb-border-warm: #EADCD5;
  --hfb-border-focus: #C86D51;
  --hfb-shadow-sm: 0 2px 8px rgba(47, 67, 54, 0.05);
  --hfb-shadow-md: 0 8px 24px rgba(47, 67, 54, 0.08);
  --hfb-shadow-lg: 0 16px 40px rgba(47, 67, 54, 0.12);
  --hfb-shadow-modal: 0 28px 70px rgba(28, 36, 32, 0.28);

  /* Radios Geométricos Orgánicos */
  --hfb-radius-xs: 6px;
  --hfb-radius-sm: 10px;
  --hfb-radius-md: 18px;
  --hfb-radius-lg: 26px;
  --hfb-radius-pill: 9999px;

  /* Tipografía */
  --hfb-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --hfb-container-max: 1200px;
  --hfb-header-h: 76px;
  --hfb-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & FUNDAMENTOS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--hfb-font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hfb-text-main);
  background-color: var(--hfb-bg-canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--hfb-bg-canvas);
  color: var(--hfb-text-body);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: var(--hfb-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--hfb-terracotta);
}

:focus-visible {
  outline: 3px solid var(--hfb-terracotta);
  outline-offset: 2px;
}

.hfb-container {
  width: 100%;
  max-width: var(--hfb-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hfb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hfb-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--hfb-forest);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--hfb-radius-sm);
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.hfb-skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   BANNER DE COOKIES (RGPD / AEPD)
   -------------------------------------------------------------------------- */
.hfb-cookie-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 2px solid var(--hfb-border-warm);
  box-shadow: 0 -8px 30px rgba(47, 67, 54, 0.08);
  padding: 1.25rem;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s var(--hfb-ease);
}

.hfb-cookie-tray.is-visible {
  transform: translateY(0);
}

.hfb-cookie-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hfb-cookie-body {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.hfb-cookie-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--hfb-terracotta);
}

.hfb-cookie-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--hfb-forest);
  margin-bottom: 0.25rem;
}

.hfb-cookie-desc {
  font-size: 0.85rem;
  color: var(--hfb-text-muted);
  line-height: 1.5;
}

.hfb-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hfb-cookie-tray {
    padding: 1.5rem 2rem;
  }
  .hfb-cookie-flex {
    max-width: var(--hfb-container-max);
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   BOTONES & BADGES
   -------------------------------------------------------------------------- */
.hfb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--hfb-radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.hfb-btn-primary {
  background-color: var(--hfb-forest);
  color: #FFFFFF;
}

.hfb-btn-primary:hover {
  background-color: var(--hfb-forest-hover);
  color: #FFFFFF;
  box-shadow: var(--hfb-shadow-md);
  transform: translateY(-1px);
}

.hfb-btn-terracotta {
  background-color: var(--hfb-terracotta);
  color: #FFFFFF;
}

.hfb-btn-terracotta:hover {
  background-color: var(--hfb-terracotta-hover);
  color: #FFFFFF;
  box-shadow: var(--hfb-shadow-md);
  transform: translateY(-1px);
}

.hfb-btn-outline {
  background-color: transparent;
  color: var(--hfb-forest);
  border-color: var(--hfb-forest);
}

.hfb-btn-outline:hover {
  background-color: var(--hfb-forest-light);
  color: var(--hfb-forest);
}

.hfb-btn-soft {
  background-color: var(--hfb-bg-subtle);
  color: var(--hfb-forest);
  border: 1px solid var(--hfb-border);
}

.hfb-btn-soft:hover {
  background-color: #E6EDE4;
}

.hfb-btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.hfb-btn-block {
  width: 100%;
}

/* Badges */
.hfb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--hfb-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hfb-badge-sage {
  background-color: var(--hfb-forest-light);
  color: var(--hfb-forest);
  border: 1px solid rgba(47, 67, 54, 0.15);
}

.hfb-badge-terracotta {
  background-color: var(--hfb-terracotta-soft);
  color: var(--hfb-terracotta-dark);
  border: 1px solid rgba(200, 109, 81, 0.25);
}

.hfb-badge-olive {
  background-color: var(--hfb-olive-soft);
  color: var(--hfb-olive);
  border: 1px solid rgba(104, 122, 79, 0.2);
}

.hfb-badge-amber {
  background-color: var(--hfb-amber-soft);
  color: var(--hfb-amber-text);
  border: 1px solid #F6DDB8;
}

/* --------------------------------------------------------------------------
   HEADER & NAVEGACIÓN
   -------------------------------------------------------------------------- */
.hfb-header {
  position: sticky;
  top: 0;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hfb-border);
  z-index: 1000;
  height: var(--hfb-header-h);
  display: flex;
  align-items: center;
}

.hfb-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hfb-logo-anchor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--hfb-forest);
}

.hfb-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hfb-logo-text {
  display: flex;
  flex-direction: column;
}

.hfb-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--hfb-forest);
}

.hfb-brand-name span {
  color: var(--hfb-terracotta);
}

.hfb-brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--hfb-text-muted);
}

.hfb-nav {
  display: none;
}

.hfb-nav-ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.4rem;
}

.hfb-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hfb-text-muted);
  text-decoration: none;
  padding: 0.45rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.hfb-nav-link:hover, .hfb-nav-link:focus-visible {
  color: var(--hfb-forest);
}

.hfb-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hfb-terracotta);
  transition: width 0.2s ease;
}

.hfb-nav-link:hover::after {
  width: 100%;
}

.hfb-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hfb-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--hfb-radius-sm);
  background: var(--hfb-bg-subtle);
  border: 1px solid var(--hfb-border);
}

.hfb-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--hfb-forest);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hfb-menu-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hfb-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.hfb-menu-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hfb-drawer {
  display: none;
  position: fixed;
  top: var(--hfb-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hfb-bg-canvas);
  padding: 1.5rem 1.25rem;
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--hfb-border);
}

.hfb-drawer.is-open {
  display: flex;
}

.hfb-drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hfb-drawer-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hfb-forest);
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hfb-border);
  display: block;
}

@media (min-width: 960px) {
  .hfb-nav { display: block; }
  .hfb-menu-btn { display: none; }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hfb-hero-section {
  background: linear-gradient(180deg, var(--hfb-bg-canvas) 0%, #F5EFE9 100%);
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--hfb-border);
  position: relative;
}

.hfb-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hfb-hero-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hfb-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hfb-hero-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--hfb-forest);
  letter-spacing: -0.025em;
}

.hfb-hero-body {
  font-size: 1.05rem;
  color: var(--hfb-text-body);
  line-height: 1.62;
}

.hfb-hero-notice {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: #FFFFFF;
  border-left: 4px solid var(--hfb-terracotta);
  border-radius: var(--hfb-radius-xs);
  box-shadow: var(--hfb-shadow-sm);
  font-size: 0.88rem;
  color: var(--hfb-text-muted);
}

.hfb-hero-notice svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--hfb-terracotta);
  margin-top: 2px;
}

.hfb-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

@media (min-width: 540px) {
  .hfb-hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hfb-hero-card {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-lg);
  border: 1px solid var(--hfb-border-warm);
  box-shadow: var(--hfb-shadow-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hfb-card-headline {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-metrics-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.hfb-metric-pill {
  background: var(--hfb-bg-warm);
  border-radius: var(--hfb-radius-md);
  padding: 1rem;
  border: 1px solid var(--hfb-border-warm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hfb-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hfb-forest);
  line-height: 1;
}

.hfb-metric-lbl {
  font-size: 0.8rem;
  color: var(--hfb-text-muted);
  font-weight: 600;
}

@media (min-width: 900px) {
  .hfb-hero-section {
    padding: 4.5rem 0 5rem;
  }
  .hfb-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
  .hfb-hero-headline {
    font-size: 2.45rem;
  }
}

/* --------------------------------------------------------------------------
   SECCIONES COMUNES
   -------------------------------------------------------------------------- */
.hfb-section {
  padding: 4rem 0;
}

.hfb-section-tint {
  background-color: #F8F5F0;
}

.hfb-sec-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.hfb-sec-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hfb-terracotta);
  margin-bottom: 0.5rem;
}

.hfb-sec-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hfb-forest);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.hfb-sec-subtitle {
  font-size: 1.02rem;
  color: var(--hfb-text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hfb-sec-title {
    font-size: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   MÓDULO 1: CONSTRUCTOR DE FÓRMULAS
   -------------------------------------------------------------------------- */
.hfb-builder-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hfb-builder-flow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hfb-step-card {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  box-shadow: var(--hfb-shadow-sm);
  padding: 1.5rem;
}

.hfb-step-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--hfb-border);
  padding-bottom: 0.85rem;
}

.hfb-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hfb-forest);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hfb-step-labels h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-step-labels p {
  font-size: 0.85rem;
  color: var(--hfb-text-muted);
}

.hfb-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hfb-options-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hfb-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--hfb-radius-sm);
  border: 2px solid var(--hfb-border);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.16s ease;
  min-height: 48px;
}

.hfb-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hfb-option-card:hover {
  border-color: var(--hfb-sage);
  background: var(--hfb-bg-subtle);
}

.hfb-option-card.is-selected {
  border-color: var(--hfb-terracotta);
  background: var(--hfb-bg-warm);
  box-shadow: 0 0 0 1px var(--hfb-terracotta);
}

.hfb-opt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.hfb-opt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hfb-forest);
}

.hfb-opt-desc {
  font-size: 0.8rem;
  color: var(--hfb-text-muted);
  line-height: 1.42;
}

.hfb-opt-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hfb-terracotta-dark);
  margin-top: 0.4rem;
}

.hfb-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--hfb-border);
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hfb-option-card.is-selected .hfb-indicator {
  background: var(--hfb-terracotta);
  border-color: var(--hfb-terracotta);
}

.hfb-option-card.is-selected .hfb-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

.hfb-option-card.is-check .hfb-indicator {
  border-radius: 4px;
}

.hfb-option-card.is-check.is-selected .hfb-indicator::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  width: auto;
  height: auto;
}

/* Panel de Salida */
.hfb-output-panel {
  position: sticky;
  top: calc(var(--hfb-header-h) + 1.5rem);
  background: #FFFFFF;
  border-radius: var(--hfb-radius-lg);
  border: 2px solid var(--hfb-border-warm);
  box-shadow: var(--hfb-shadow-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hfb-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hfb-format-toggle {
  display: flex;
  background: var(--hfb-bg-subtle);
  border-radius: var(--hfb-radius-pill);
  padding: 3px;
  border: 1px solid var(--hfb-border);
}

.hfb-toggle-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--hfb-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hfb-text-muted);
  transition: all 0.15s ease;
}

.hfb-toggle-btn.is-active {
  background: var(--hfb-forest);
  color: #FFFFFF;
  box-shadow: var(--hfb-shadow-sm);
}

.hfb-output-recipe-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hfb-forest);
  line-height: 1.28;
}

.hfb-recipe-meta {
  font-size: 0.85rem;
  color: var(--hfb-text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Ficha Nutricional */
.hfb-nutri-card {
  background: var(--hfb-bg-canvas);
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  padding: 1.25rem;
}

.hfb-nutri-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--hfb-forest);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.hfb-nutri-header h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hfb-forest);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hfb-cal-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-macro-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hfb-macro-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hfb-macro-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hfb-text-muted);
}

.hfb-macro-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hfb-text-main);
}

.hfb-bar-track {
  width: 100%;
  height: 6px;
  background: var(--hfb-border);
  border-radius: 3px;
  overflow: hidden;
}

.hfb-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.hfb-fill-protein { background: var(--hfb-terracotta); }
.hfb-fill-fat { background: #DDA15E; }
.hfb-fill-carbs { background: var(--hfb-sage); }
.hfb-fill-fiber { background: var(--hfb-forest); }

.hfb-prep-box {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-sm);
  padding: 1rem;
  border: 1px dashed var(--hfb-border);
}

.hfb-prep-box h6 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hfb-forest);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hfb-prep-box ol {
  padding-left: 1.25rem;
  font-size: 0.82rem;
  color: var(--hfb-text-body);
  line-height: 1.5;
}

.hfb-tip-callout {
  background: var(--hfb-amber-soft);
  border: 1px solid #F6DDB8;
  border-radius: var(--hfb-radius-sm);
  padding: 0.9rem;
  font-size: 0.82rem;
  color: var(--hfb-amber-text);
  line-height: 1.5;
}

.hfb-tip-callout strong {
  color: #794400;
  display: block;
  margin-bottom: 0.2rem;
}

.hfb-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 960px) {
  .hfb-builder-wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   BLOQUE 2: BASES CIENTÍFICAS
   -------------------------------------------------------------------------- */
.hfb-science-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hfb-science-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hfb-science-card {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--hfb-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hfb-science-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hfb-shadow-md);
}

.hfb-science-icon {
  width: 36px;
  height: 36px;
  color: var(--hfb-terracotta);
}

.hfb-science-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-science-card p {
  font-size: 0.88rem;
  color: var(--hfb-text-body);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   INFOGRAFÍA VECTORIAL PURA (SIN HUMANOS): DIAGRAMAS SVG
   -------------------------------------------------------------------------- */
.hfb-diagrams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .hfb-diagrams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hfb-diagram-box {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  padding: 1.5rem;
  box-shadow: var(--hfb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hfb-diagram-badge {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hfb-terracotta-dark);
}

.hfb-diagram-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-diagram-frame {
  background: var(--hfb-bg-canvas);
  border-radius: var(--hfb-radius-sm);
  border: 1px solid var(--hfb-border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hfb-diagram-caption {
  font-size: 0.84rem;
  color: var(--hfb-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   NUEVA SECCIÓN: METODOLOGÍA NUTRICIONAL & FUENTES ACADÉMICAS
   -------------------------------------------------------------------------- */
.hfb-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 840px) {
  .hfb-method-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hfb-method-content {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hfb-method-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-method-content p {
  font-size: 0.92rem;
  color: var(--hfb-text-body);
  line-height: 1.65;
}

.hfb-biblio-card {
  background: var(--hfb-bg-warm);
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border-warm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hfb-biblio-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-biblio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--hfb-text-body);
  line-height: 1.5;
}

.hfb-biblio-list li {
  padding-left: 1.2rem;
  position: relative;
}

.hfb-biblio-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--hfb-terracotta);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   NUEVA SECCIÓN: TABLA INTERACTIVA DE DENSIDAD DE ELECTROLITOS
   -------------------------------------------------------------------------- */
.hfb-table-section {
  padding: 4rem 0;
  background: var(--hfb-bg-canvas);
}

.hfb-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hfb-tab-chip {
  padding: 0.5rem 1.1rem;
  border-radius: var(--hfb-radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--hfb-border);
  background: #FFFFFF;
  color: var(--hfb-text-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.hfb-tab-chip:hover {
  border-color: var(--hfb-sage);
  color: var(--hfb-forest);
}

.hfb-tab-chip.is-active {
  background: var(--hfb-forest);
  color: #FFFFFF;
  border-color: var(--hfb-forest);
  box-shadow: var(--hfb-shadow-sm);
}

.hfb-table-wrapper {
  overflow-x: auto;
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  background: #FFFFFF;
  box-shadow: var(--hfb-shadow-sm);
}

.hfb-electrolyte-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  white-space: nowrap;
}

.hfb-electrolyte-table th {
  background: var(--hfb-bg-subtle);
  color: var(--hfb-forest);
  font-weight: 800;
  padding: 0.9rem 1.1rem;
  border-bottom: 2px solid var(--hfb-border);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.hfb-electrolyte-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hfb-border);
  color: var(--hfb-text-body);
}

.hfb-row-drainer {
  background-color: rgba(234, 239, 234, 0.4);
}

.hfb-row-drainer:hover {
  background-color: rgba(234, 239, 234, 0.8);
}

.hfb-row-sodium {
  background-color: rgba(247, 235, 231, 0.45);
}

.hfb-row-sodium:hover {
  background-color: rgba(247, 235, 231, 0.85);
}

.hfb-ratio-badge {
  display: inline-block;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--hfb-radius-xs);
  font-size: 0.78rem;
}

.hfb-ratio-high {
  background: #D9E8D9;
  color: var(--hfb-forest);
}

.hfb-ratio-low {
  background: #F8D5CB;
  color: var(--hfb-terracotta-dark);
}

/* --------------------------------------------------------------------------
   BLOQUE 3: MONITOR HÍDRICO & EQUILIBRIO DE SODIO
   -------------------------------------------------------------------------- */
.hfb-balancer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hfb-calc-card {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-lg);
  border: 1px solid var(--hfb-border);
  box-shadow: var(--hfb-shadow-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hfb-calc-header {
  border-bottom: 1px solid var(--hfb-border);
  padding-bottom: 1rem;
}

.hfb-calc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hfb-forest);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hfb-calc-desc {
  font-size: 0.88rem;
  color: var(--hfb-text-muted);
}

.hfb-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hfb-input-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hfb-forest);
}

.hfb-input-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hfb-terracotta-dark);
  background: var(--hfb-terracotta-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--hfb-radius-pill);
}

.hfb-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--hfb-border);
  border-radius: 4px;
  outline: none;
}

.hfb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hfb-terracotta);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.hfb-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--hfb-terracotta);
  cursor: pointer;
}

.hfb-range:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}

.hfb-range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--hfb-text-muted);
}

.hfb-climate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hfb-climate-card {
  border: 1px solid var(--hfb-border);
  border-radius: var(--hfb-radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--hfb-bg-subtle);
  transition: all 0.15s ease;
}

.hfb-climate-card input {
  position: absolute;
  opacity: 0;
}

.hfb-climate-card.is-selected {
  border-color: var(--hfb-terracotta);
  background: var(--hfb-terracotta-soft);
  box-shadow: 0 0 0 1px var(--hfb-terracotta);
}

.hfb-climate-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hfb-forest);
}

.hfb-water-result {
  background: linear-gradient(135deg, var(--hfb-bg-canvas) 0%, var(--hfb-terracotta-soft) 100%);
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border-warm);
  padding: 1.5rem;
  text-align: center;
}

.hfb-water-goal {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--hfb-forest);
  line-height: 1;
  margin: 0.4rem 0;
}

.hfb-water-goal-lbl {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hfb-forest);
}

.hfb-schedule-box {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-sm);
  padding: 1rem;
  border: 1px solid var(--hfb-border);
}

.hfb-schedule-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.hfb-schedule-li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--hfb-border);
}

.hfb-schedule-li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Checklist de Sodio */
.hfb-sodium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 500px) {
  .hfb-sodium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hfb-sodium-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: var(--hfb-radius-sm);
  border: 1px solid var(--hfb-border);
  background: var(--hfb-bg-canvas);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
}

.hfb-sodium-pill input {
  position: absolute;
  opacity: 0;
}

.hfb-sodium-pill.is-checked {
  background: var(--hfb-terracotta-soft);
  border-color: var(--hfb-border-warm);
}

.hfb-sodium-pill h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hfb-forest);
  margin-bottom: 0.15rem;
}

.hfb-sodium-pill p {
  font-size: 0.75rem;
  color: var(--hfb-text-muted);
}

.hfb-sodium-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hfb-terracotta-dark);
}

.hfb-retention-result {
  background: #FFF5F2;
  border: 1px solid #F6D2C7;
  border-radius: var(--hfb-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hfb-antidote-box {
  background: #FFFFFF;
  border: 1px solid var(--hfb-border);
  border-radius: var(--hfb-radius-sm);
  padding: 1rem;
}

.hfb-antidote-box h6 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hfb-forest);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hfb-antidote-box p {
  font-size: 0.82rem;
  color: var(--hfb-text-body);
  line-height: 1.5;
}

@media (min-width: 960px) {
  .hfb-balancer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   BLOQUE 4: PROTOCOLOS EDUCATIVOS & PRECIOS
   -------------------------------------------------------------------------- */
.hfb-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.hfb-price-card {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-lg);
  border: 1px solid var(--hfb-border);
  box-shadow: var(--hfb-shadow-md);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hfb-price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hfb-shadow-lg);
}

.hfb-price-featured {
  border: 2px solid var(--hfb-terracotta);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--hfb-bg-warm) 100%);
}

.hfb-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hfb-terracotta);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--hfb-radius-pill);
}

.hfb-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.25rem 0;
}

.hfb-price-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--hfb-forest);
  line-height: 1;
}

.hfb-features-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hfb-feature-li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--hfb-text-body);
}

.hfb-feature-li svg {
  width: 18px;
  height: 18px;
  color: var(--hfb-terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.hfb-results-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--hfb-text-muted);
  max-width: 680px;
  margin: 2rem auto 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hfb-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   SELLOS DE PAGO Y CONFIANZA
   -------------------------------------------------------------------------- */
.hfb-payment-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1.5rem;
  background: var(--hfb-bg-subtle);
  border-radius: var(--hfb-radius-md);
  border: 1px solid var(--hfb-border);
  margin-top: 2rem;
}

.hfb-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hfb-forest);
}

.hfb-trust-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FOOTER & DESCARGO MÉDICO OBLIGATORIO
   -------------------------------------------------------------------------- */
.hfb-footer {
  background-color: #1C2420;
  color: #D6DDD8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hfb-med-disclaimer {
  background: rgba(200, 109, 81, 0.12);
  border: 1px solid rgba(200, 109, 81, 0.35);
  border-left: 5px solid var(--hfb-terracotta);
  border-radius: var(--hfb-radius-sm);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.hfb-disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFB39E;
  margin-bottom: 0.6rem;
}

.hfb-disclaimer-copy {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #F8FAF8;
}

.hfb-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.hfb-footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hfb-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hfb-footer-links a, .hfb-footer-btn-link {
  color: #A6B7AE;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.hfb-footer-links a:hover, .hfb-footer-btn-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.hfb-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #7A8E83;
  text-align: center;
}

@media (min-width: 768px) {
  .hfb-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .hfb-footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   MODALES SEMÁNTICOS
   -------------------------------------------------------------------------- */
.hfb-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 36, 32, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.hfb-modal-overlay.is-active {
  display: flex;
}

.hfb-modal-box {
  background: #FFFFFF;
  border-radius: var(--hfb-radius-lg);
  box-shadow: var(--hfb-shadow-modal);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: hfbModalIn 0.2s ease-out;
}

@keyframes hfbModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hfb-modal-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--hfb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hfb-bg-warm);
}

.hfb-modal-head h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hfb-forest);
}

.hfb-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--hfb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hfb-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hfb-modal-close:hover {
  background: var(--hfb-terracotta-soft);
  color: var(--hfb-terracotta);
}

.hfb-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hfb-text-body);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hfb-modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--hfb-border);
  background: var(--hfb-bg-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Plantilla de Correo de Reembolso */
.hfb-email-sample {
  background: var(--hfb-bg-canvas);
  border: 1px dashed var(--hfb-border);
  border-radius: var(--hfb-radius-sm);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--hfb-text-main);
  line-height: 1.5;
  user-select: all;
}

/* Toast de notificación de copiado */
.hfb-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--hfb-forest);
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--hfb-radius-pill);
  box-shadow: var(--hfb-shadow-lg);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 4000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hfb-toast.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   MODO IMPRESIÓN LIMPIO (@media print)
   -------------------------------------------------------------------------- */
@media print {
  .hfb-header,
  .hfb-hero-section,
  .hfb-section-tint,
  .hfb-table-section,
  .hfb-footer,
  .hfb-cookie-tray,
  .hfb-builder-flow,
  .hfb-format-toggle,
  .hfb-panel-actions,
  .hfb-payment-trust-bar {
    display: none !important;
  }

  body, html {
    background: #FFF !important;
    color: #000 !important;
  }

  .hfb-output-panel {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
    max-width: 100% !important;
  }
}
