/* ═══════════════════════════════════════════════════════════════
   PANEL DE AYUDA LATERAL · añadir al final de herramientas.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Botón ¿Cómo funciona? en page-header ── */
.btn-ayuda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 9px 18px;
  background: transparent;
  border: 1.5px solid var(--terra);
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--terra);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-ayuda:hover {
  background: var(--terra);
  color: var(--white);
}
.btn-ayuda svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: stroke .2s ease;
}
.btn-ayuda:hover svg { stroke: var(--white); }

/* ── Overlay ── */
.ayuda-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 41, 37, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ayuda-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel lateral ── */
.ayuda-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--white, #fdfaf5);
  z-index: 301;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(44, 41, 37, .12);
}
.ayuda-panel.visible {
  transform: translateX(0);
}

/* ── Cabecera del panel ── */
.ayuda-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--mist, #ddd6c8);
  flex-shrink: 0;
}
.ayuda-panel__eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra, #a0764e);
  display: block;
  margin-bottom: 4px;
}
.ayuda-panel__titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--charcoal, #2c2925);
  line-height: 1.2;
}
.ayuda-panel__titulo em {
  font-style: italic;
  color: var(--terra, #a0764e);
}
.ayuda-panel__cerrar {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--warm-mid, #6b5c48);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.ayuda-panel__cerrar:hover {
  background: var(--linen, #ede7d9);
}

/* ── Cuerpo con scroll ── */
.ayuda-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 40px;
  -webkit-overflow-scrolling: touch;
}

/* ── Secciones de contenido ── */
.ayuda-seccion {
  margin-bottom: 28px;
}
.ayuda-seccion:last-child {
  margin-bottom: 0;
}
.ayuda-seccion__icono {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}
.ayuda-seccion__titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal, #2c2925);
  margin-bottom: 8px;
}
.ayuda-seccion__texto {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--warm-mid, #6b5c48);
}
.ayuda-seccion__texto strong {
  font-weight: 500;
  color: var(--charcoal, #2c2925);
}

/* ── Pasos numerados ── */
.ayuda-pasos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ayuda-pasos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ayuda-pasos__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terra-l, #f0e6d8);
  color: var(--terra, #a0764e);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ayuda-pasos__desc {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-mid, #6b5c48);
}
.ayuda-pasos__desc strong {
  font-weight: 500;
  color: var(--charcoal, #2c2925);
}

/* ── Separador interno ── */
.ayuda-sep {
  height: 1px;
  background: var(--mist, #ddd6c8);
  margin: 24px 0;
}

/* ── Nota al pie del panel ── */
.ayuda-nota {
  background: var(--sand, #f5f0e8);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-mid, #6b5c48);
}
.ayuda-nota strong {
  font-weight: 500;
  color: var(--terra, #a0764e);
}
