/* encuesta-sheet.css — Micro-encuesta de bienvenida con premio (clientes nuevos).
   Se abre sola a las 24 h de instalar la app o al tocar el push. Markup inyectado
   por js/encuesta-sheet.js. Estética alineada con metas-sheet (ms-), ayuda-sheet
   (hc-) y rating-sheet (rt-): primario #81c408, grabber, safe-area.
   Prefijo propio: enc-  (ver commit d7c40fa: dos hojas con el mismo prefijo se
   apagan entre sí; este prefijo se verificó libre en todo el repo). */

.enc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10074; /* > rating sheet (10073): es lo último que se abre */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Sin backdrop-filter: el blur a pantalla completa recalienta la GPU en WKWebView. */
  background: rgba(18, 24, 20, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.enc-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.enc-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  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);
}
.enc-overlay.open .enc-sheet {
  transform: translateY(0);
}

/* ── Hero ── */
.enc-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: 46px 20px 20px;
  flex-shrink: 0;
  text-align: center;
}
.enc-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;
}
.enc-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  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;
  z-index: 3;
}
.enc-close:active { background: rgba(255, 255, 255, 0.35); }

.enc-gift {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}
.enc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.enc-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  margin-top: 3px;
}
.enc-sub {
  font-size: 13.5px;
  opacity: 0.92;
  margin-top: 5px;
}

/* ── Cuerpo ── */
.enc-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 6px;
}
.enc-q {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #2f4f1d;
  text-align: center;
  margin-bottom: 14px;
}

/* Opciones: un tap y listo */
.enc-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e6ecdd;
  border-radius: 18px;
  padding: 14px 14px;
  margin-bottom: 10px;
  min-height: 64px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease-in-out, border-color 0.18s ease-in-out, background 0.18s ease-in-out;
}
.enc-opt:active {
  transform: scale(0.985);
  border-color: #81c408;
  background: #f7fbef;
}
.enc-opt.is-picked {
  border-color: #81c408;
  background: #eef7de;
}
.enc-opt[disabled] { opacity: 0.55; }
.enc-opt-ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 15px;
  background: #f1f7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
.enc-opt-txt { flex: 1; min-width: 0; }
.enc-opt-tt {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #33452a;
  line-height: 1.2;
}
.enc-opt-sub {
  display: block;
  font-size: 12.5px;
  color: #7c8a74;
  line-height: 1.3;
  margin-top: 2px;
}
.enc-opt-chev {
  color: #c3d0b4;
  font-size: 14px;
  flex-shrink: 0;
}

.enc-error {
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0 2px;
}
.enc-error[hidden] { display: none; }

/* ── Pie ── */
.enc-foot {
  flex-shrink: 0;
  padding: 8px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #f4f8ef;
}
.enc-legal {
  font-size: 11.5px;
  color: #8a967f;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 4px;
}
.enc-skip {
  width: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #7c8a74;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.enc-skip:active { color: #4a5c41; }

/* ── Pantalla de premio ── */
.enc-win {
  text-align: center;
  padding: 6px 0 10px;
  animation: encReveal 0.36s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes encReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.enc-win-ic {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eef7de;
  color: #81c408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.enc-win-tt {
  font-family: 'Raleway', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #2f4f1d;
}
.enc-win-sub {
  font-size: 13.5px;
  color: #6b7a63;
  margin-top: 6px;
  line-height: 1.4;
}

/* Tarjeta del cupón */
.enc-coupon {
  margin: 16px 0 12px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px dashed #81c408;
  padding: 16px 14px;
}
.enc-coupon-pct {
  font-family: 'Raleway', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #5d9412;
  line-height: 1;
}
.enc-coupon-for {
  font-size: 13px;
  font-weight: 700;
  color: #33452a;
  margin-top: 4px;
}
.enc-coupon-code {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f1f7e6;
  color: #3d6b06;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.enc-coupon-rules {
  font-size: 12px;
  color: #7c8a74;
  line-height: 1.45;
  margin-top: 10px;
}
.enc-coupon-timer {
  font-size: 12.5px;
  font-weight: 700;
  color: #c2410c;
  margin-top: 8px;
}
.enc-cta {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: #81c408;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease-in-out;
}
.enc-cta:active { transform: scale(0.98); }

/* Badge de modo prueba (solo lo ve el dueño desde el panel) */
.enc-testbadge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #92680a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
