/* ayuda-sheet.css — "Centro de ayuda" premium BOTTOM SHEET (FAQ / guía del cliente).
   Abierto desde Cuenta → Centro de ayuda en index.html y shop-products.html.
   Markup inyectado por js/ayuda-sheet.js. Estética alineada con el metas-sheet (ms-):
   primario de marca #81c408, radios 12px, grabber, safe-area. */

.hc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10071; /* > panel Cuenta (10025), < metas sheet (10072) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Sin backdrop-filter: el blur de pantalla completa recalienta la GPU en
     WKWebView y iOS baja el brillo por temperatura (dimming térmico). */
  background: rgba(18, 24, 20, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hc-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hc-sheet {
  width: 100%;
  max-width: 560px;
  /* altura fija: home / preguntas / respuesta no brincan entre vistas */
  height: 82dvh;
  max-height: 82dvh;
  background: #f4f8ef;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hc-overlay.open .hc-sheet {
  transform: translateY(0);
}

/* ── Hero: gradiente verde de marca hasta el borde redondeado ── */
.hc-hero {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  background: linear-gradient(150deg, #2f7d12 0%, #4d9c14 48%, #6cb01a 100%);
  color: #fff;
  /* padding-top libra la fila de botones (back/close, top 12px + 32px) en toda vista */
  padding: 50px 20px 16px;
  flex-shrink: 0;
}
.hc-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 3;
}
.hc-back,
.hc-close {
  position: absolute;
  top: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease-in-out;
}
.hc-back { left: 14px; }
.hc-close { right: 14px; }
.hc-back:active,
.hc-close:active { background: rgba(255, 255, 255, 0.35); }
.hc-back[hidden] { display: none; }

.hc-hero-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hc-hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 2px;
}
.hc-hero-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ── Cuerpo con scroll interno ── */
.hc-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px 24px;
}

/* Transición entre vistas (nodo nuevo por render) */
.hc-swap {
  animation: hcSwap 0.22s ease;
}
.hc-swap.is-back {
  animation-name: hcSwapBack;
}
@keyframes hcSwap {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hcSwapBack {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Cards de sección (home) ── */
.hc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e7eede;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(31, 42, 36, 0.05);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.hc-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(31, 42, 36, 0.08);
}
.hc-card-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #81c408 0%, #5a9006 100%);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(90, 144, 6, 0.55);
}
.hc-card-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hc-card-tt {
  font-size: 15px;
  font-weight: 700;
  color: #1f2a24;
}
.hc-card-sub {
  font-size: 12.5px;
  color: #7b8a82;
}
.hc-chev {
  margin-left: auto;
  flex-shrink: 0;
  color: #b9c4bc;
  font-size: 13px;
}

/* ── Filas de pregunta ── */
.hc-q-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 15px 14px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e7eede;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(31, 42, 36, 0.05);
  font-size: 14.5px;
  font-weight: 600;
  color: #2a352e;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease-in-out;
}
.hc-q-row:active { transform: scale(0.98); }
.hc-q-row > span { flex: 1; min-width: 0; }

/* ── Vista de respuesta ── */
.hc-answer-q {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: #1f2a24;
  margin: 2px 0 12px;
}
.hc-answer p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a564e;
  margin: 0 0 12px;
}
.hc-answer b { color: #5a9006; }

.hc-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #81c408 0%, #5a9006 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px -6px rgba(90, 144, 6, 0.55);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.hc-action:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px -4px rgba(90, 144, 6, 0.55);
}
a.hc-action { color: #fff; }
a.hc-action:hover { color: #fff; }

.hc-wa-hint {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #7b8a82;
  text-decoration: none;
  touch-action: manipulation;
}
.hc-wa-hint b { color: #5a9006; }
.hc-wa-hint:hover { color: #7b8a82; }

/* ── Card de contacto (home): "¿Necesitas más ayuda?" ── */
.hc-contact {
  background: #fff;
  border: 1px solid #e7eede;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(31, 42, 36, 0.05);
  padding: 14px 14px 4px;
  margin-top: 18px;
}
.hc-contact-tt {
  font-size: 15px;
  font-weight: 800;
  color: #1f2a24;
}
.hc-contact-sub {
  font-size: 12.5px;
  color: #7b8a82;
  margin: 2px 0 6px;
}
.hc-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  border-top: 1px solid #eef4e3;
  font-size: 14px;
  font-weight: 600;
  color: #2a352e;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hc-contact-row:hover { color: #2a352e; }
.hc-contact-row:first-of-type { border-top: none; }
.hc-contact-row.is-static {
  color: #7b8a82;
  font-weight: 600;
}
.hc-contact-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef5e6;
  color: #5a9006;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
