/* ═══════════════════════════════════════════
   Tema v2 — Ayuda (Informacion)
   Prefijo: v2i-
   Las respuestas son HTML de cada tienda con estilos en línea: aquí solo va la base
   (misma que css/Informacion.css) con prioridad mínima (:where) para no pisarlos.
═══════════════════════════════════════════ */

body.theme-v2.v2i-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.v2i-page .v2-main {
  flex: 1 0 auto;
}

/* ── Cabecera con buscador ────────────────── */

.v2i-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.v2i-search {
  position: relative;
  display: block;
  max-width: 460px;
  margin-top: 18px;
}

.v2i-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  display: flex;
  color: var(--v2-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.v2i-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--v2-ink);
  font-family: var(--v2-font);
  font-size: 15px;
  outline: none;
  box-shadow: var(--v2-shadow);
  transition: border-color 0.2s ease;
}

.v2i-search input:focus {
  border-color: var(--v2-ink);
}

/* ── Preguntas ────────────────────────────── */

.v2i-body {
  margin-top: 20px;
}

.v2i-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.v2i-faqs {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
}

.v2i-item[hidden] {
  display: none;
}

.v2i-item:not([hidden]) ~ .v2i-item:not([hidden]) {
  border-top: 1px solid var(--v2-line);
}

.v2i-q-wrap {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.v2i-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--v2-ink);
  font-family: var(--v2-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.v2i-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--v2-soft);
  transition:
    transform 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.v2i-item.is-open .v2i-toggle {
  background: var(--v2-ink);
  color: #fff;
  transform: rotate(45deg);
}

.v2i-a {
  padding: 0 0 18px;
}

.v2i-a[hidden] {
  display: none;
}

/* Base de las respuestas (igual que la vista original). Con :where la prioridad es 0,
   así cualquier estilo que haya puesto la tienda en su HTML manda. */
:where(.v2i-a-content) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #4c4c4c;
  font-family: var(--v2-font);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

:where(.v2i-a-content) :where(p) {
  margin: 0;
}

/* Bloques que sí deben ocupar todo el ancho (listas, párrafos, cuentas) */
:where(.v2i-a-content) > :where(ul, ol, p, div) {
  align-self: stretch;
}

:where(.v2i-a-content) :where(a) {
  color: var(--v2-ink);
  font-weight: 600;
}

.v2i-noresults {
  padding: 20px 0;
  color: var(--v2-muted);
  font-size: 14px;
  text-align: center;
}

.v2i-noresults[hidden] {
  display: none;
}

/* Cuentas bancarias ({{bank_accounts}} → buildBankAccountsHtml) */
:where(.v2i-a-content) .payment-reminder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--v2-soft);
  font-size: 13px;
}

:where(.v2i-a-content) .payment-title {
  margin: 0;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
}

:where(.v2i-a-content) .payment-instruction {
  margin: 0;
  color: var(--v2-muted);
}

:where(.v2i-a-content) .bank-accounts {
  display: grid;
  gap: 8px;
}

:where(.v2i-a-content) .bank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: #fff;
}

:where(.v2i-a-content) .bank-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--v2-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

:where(.v2i-a-content) .bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:where(.v2i-a-content) .bank-logo.ficohsa {
  background: #0054a6;
}

:where(.v2i-a-content) .bank-logo.bac {
  background: #d40628;
}

:where(.v2i-a-content) .bank-info {
  min-width: 0;
}

:where(.v2i-a-content) .bank-number {
  margin: 0;
  color: var(--v2-ink);
  font-weight: 600;
}

:where(.v2i-a-content) .bank-owner {
  margin: 2px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

:where(.v2i-a-content) .payment-note {
  padding: 8px 10px;
  border: 1px dashed #d6d6db;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

:where(.v2i-a-content) .payment-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

:where(.v2i-a-content) .payment-whatsapp-btn img {
  width: 18px;
  height: 18px;
}

/* ── Lateral: contacto y accesos ──────────── */

.v2i-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2i-contact {
  padding: 20px;
  border-radius: 20px;
  background: var(--v2-soft);
}

.v2i-contact h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.v2i-contact p {
  margin: 6px 0 16px;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.5;
}

.v2i-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.v2i-wa:hover {
  background: #178046;
}

.v2i-links {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
}

.v2i-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.v2i-links a + a {
  border-top: 1px solid var(--v2-line);
}

.v2i-links svg {
  color: var(--v2-muted);
}

/* ── Breakpoints ─────────────────────────── */

@media (min-width: 700px) {
  .v2i-faqs {
    padding: 0 24px;
  }

  .v2i-q {
    padding: 18px 0;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .v2i-body {
    margin-top: 28px;
  }

  .v2i-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .v2i-side {
    position: sticky;
    top: 86px;
  }
}
