/* =====================================================================
   AYUDA Y CONFIGURACIÓN - GLOBPAY MERCHANT DASHBOARD
   Tokens: Turquesa #0BB6B5, Menta #E6F8F7, Fondos #FFFFFF / #F7F9FA,
           Bordes #E5E7EB, Texto #111111 / #6B7280
   ===================================================================== */

#view-ayuda {
  display: none;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 40px 0;
  box-sizing: border-box;
}

#view-ayuda.is-active {
  display: block;
}

/* 1. ENCABEZADO DE LA SECCIÓN */
.help-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.help-header-text {
  flex: 1 1 auto;
}

.help-title {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.help-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.4;
}

.help-header-badge {
  display: flex;
  align-items: center;
}

/* Insignias oficiales */
.badge-pilot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: #E6F8F7;
  color: #078A89;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-in-prep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: #F3F4F6;
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* 2. BANNER SUPERIOR: PILOTO GRATUITO */
.help-pilot-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #E6F7F6;
  border: 1px solid #CEEFEA;
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 24px;
  gap: 20px;
  box-sizing: border-box;
}

.help-pilot-banner-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.help-pilot-gift-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-pilot-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.help-pilot-banner-title {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.help-pilot-banner-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.help-pilot-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0BB6B5;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.help-pilot-banner-link:hover {
  color: #088a89;
  transform: translateX(2px);
}

/* 3. GRID PRINCIPAL (2 COLUMNAS) */
.help-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.help-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.help-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TARJETA BASE */
.help-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.help-card-title {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* 4. CENTRO DE AYUDA (3 SUB-CARDS) */
.help-quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.help-quick-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-quick-card:hover {
  border-color: #0BB6B5;
  box-shadow: 0 2px 8px rgba(11, 182, 181, 0.1);
}

.help-quick-icon-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.help-quick-content {
  flex: 1 1 auto;
}

.help-quick-title {
  margin: 0 0 5px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.help-quick-desc {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  color: #6B7280;
  line-height: 1.35;
}

.help-quick-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0BB6B5;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.help-quick-action-link:hover {
  color: #088a89;
  transform: translateX(2px);
}

/* 5. PREGUNTAS FRECUENTES (ACCORDION) */
.help-faq-accordion {
  border-top: 1px solid #F3F4F6;
}

.help-faq-item {
  border-bottom: 1px solid #F3F4F6;
}

.help-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 14px;
  font-family: inherit;
  transition: background-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.help-faq-toggle:focus-visible {
  outline: 2px solid #0BB6B5;
  outline-offset: 4px;
  border-radius: 4px;
}

.help-faq-toggle:hover .help-faq-question {
  color: #0BB6B5;
}

.help-faq-question {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
  transition: color 0.15s ease;
  pointer-events: none;
}

.help-faq-icon {
  font-size: 18px;
  font-weight: 400;
  color: #0BB6B5;
  flex-shrink: 0;
  line-height: 1;
  width: 18px;
  text-align: center;
  user-select: none;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.help-faq-collapse {
  padding: 0 0 16px 0;
  box-sizing: border-box;
}

.help-faq-collapse[hidden] {
  display: none !important;
}

.help-faq-answer {
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
}

.help-faq-extended {
  border-top: 1px solid #F3F4F6;
}

.btn-toggle-all-faqs {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0BB6B5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-toggle-all-faqs:hover {
  color: #088a89;
  transform: translateX(2px);
}

/* 6. COLUMNA DERECHA: DATOS DE TU TIENDA */
.help-store-details-list {
  margin: 0;
  padding: 0;
}

.help-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13.5px;
  gap: 12px;
}

.help-detail-key {
  margin: 0;
  color: #111111;
  font-weight: 500;
  flex-shrink: 0;
}

.help-detail-val {
  margin: 0;
  color: #111111;
  text-align: right;
  word-break: break-word;
  font-weight: 400;
}

.help-store-note {
  margin: 14px 0 0 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

/* 7. COLUMNA DERECHA: ¿NECESITAS AYUDA? */
.help-card-support {
  background-color: #FFFFFF;
}

.help-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.help-support-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-support-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: #0BB6B5;
}

.help-support-title-wrap .help-card-title {
  margin: 0;
}

.help-support-lead {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

.help-support-sub {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}

.btn-send-inquiry {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 8px;
  background-color: #E5E7EB;
  color: #9CA3AF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: not-allowed;
  font-family: inherit;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 8. DESCARGO AL PIE */
.help-footer-disclaimer {
  margin: 24px 0 0 0;
  font-size: 12.5px;
  color: #6B7280;
  text-align: left;
  line-height: 1.4;
}

/* 9. MODAL INFORMATIVO ACCESO PILOTO */
.help-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.help-modal-card {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 28px;
  box-sizing: border-box;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
}

.help-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.help-modal-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.btn-close-help-modal {
  background: none;
  border: none;
  font-size: 18px;
  color: #6B7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-close-help-modal:hover {
  color: #111111;
  background-color: #F3F4F6;
}

.help-modal-lead {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.help-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.45;
}

.benefit-check {
  color: #0BB6B5;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.2;
}

.help-modal-alert {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  font-size: 12.5px;
  color: #475569;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
  margin-top: 18px;
}

.help-modal-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #64748B;
}

.help-modal-footer {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

.btn-dismiss-modal {
  height: 40px;
  padding: 0 24px;
  background-color: #0BB6B5;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.btn-dismiss-modal:hover {
  background-color: #088a89;
}

/* 10. VISTA PILOTO DENTRO DE #view-plan */
.pilot-plan-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.pilot-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.pilot-plan-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
}

/* 11. ADAPTACIÓN RESPONSIVA (TABLET Y MÓVIL) */
@media (max-width: 960px) {
  .help-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-quick-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .help-quick-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .help-quick-card {
    min-height: auto;
  }

  .help-pilot-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .help-pilot-banner-left {
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .help-title {
    font-size: 22px;
  }

  .help-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-card {
    padding: 18px 16px;
  }

  .help-pilot-banner {
    padding: 14px 14px;
    gap: 12px;
  }

  .help-pilot-banner-left {
    gap: 12px;
  }

  .help-pilot-banner-title {
    font-size: 15px;
  }

  .help-pilot-banner-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .help-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 0;
  }

  .help-detail-val {
    text-align: left;
  }

  .help-modal-card {
    padding: 20px 16px;
  }
}
