/* ===== V10 · CENTRO DE AYUDA — usa los tokens de body.bgsc-home (styles.css) ===== */

body.bgsc-home .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Encabezado ---------- */
body.bgsc-home .ay-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(220px, 15vw, 290px); display: flex; align-items: center;
  padding: clamp(16px, 1.6vw, 24px) 0 clamp(22px, 2vw, 30px);
  background: radial-gradient(60% 90% at 75% 40%, rgba(182,0,255,.28), transparent 70%), var(--bg-2);
}
body.bgsc-home .ay-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; }
body.bgsc-home .ay-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,8,23,.95) 0%, rgba(10,8,23,.8) 30%, rgba(10,8,23,.25) 56%, rgba(10,8,23,0) 72%),
    linear-gradient(180deg, rgba(10,8,23,.2) 0%, rgba(10,8,23,0) 30%, rgba(10,8,23,0) 72%, var(--bg) 100%);
}
body.bgsc-home .ay-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: .9rem; color: #e4def8; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
body.bgsc-home .ay-crumbs a:hover { color: #fff; }
body.bgsc-home .ay-crumbs [aria-current] { color: var(--violet); }
body.bgsc-home .ay-crumbs span[aria-hidden] { color: var(--dim); }
body.bgsc-home .ay-hero h1 { margin-top: 12px; font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.45); }
body.bgsc-home .ay-hero h1 em { font-style: normal; background: linear-gradient(90deg, #a35bff, #c47dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.bgsc-home .ay-lead { margin-top: 10px; color: #ece8fb; font-size: clamp(1rem, 1.2vw, 1.15rem); text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* ---------- Buscador + categorías ---------- */
body.bgsc-home .ay-main { padding-top: 18px; padding-bottom: 30px; }
body.bgsc-home .ay-search, body.bgsc-home .ay-chips { display: none; }
html.js body.bgsc-home .ay-search { position: relative; display: flex; align-items: center; max-width: 1310px; margin: 0 auto; min-height: 62px; border-radius: 12px; border: 1px solid var(--violet); background: rgba(16,12,36,.88); box-shadow: 0 0 0 1px rgba(164,107,255,.15) inset; }
body.bgsc-home .ay-search:focus-within { box-shadow: 0 0 0 4px rgba(164,107,255,.2); }
body.bgsc-home .ay-search .ico { position: absolute; left: 22px; width: 24px; height: 24px; color: #e4def8; pointer-events: none; }
body.bgsc-home .ay-search input { width: 100%; height: 60px; padding: 0 20px 0 62px; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 1.05rem; }
body.bgsc-home .ay-search input::placeholder { color: var(--dim); }
html.js body.bgsc-home .ay-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 14px 0 16px; }
body.bgsc-home .ay-chip { min-width: 150px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16,12,36,.85); color: #ece7fc; font-weight: 600; font-size: .92rem; }
body.bgsc-home .ay-chip:hover { border-color: var(--violet); }
body.bgsc-home .ay-chip.is-active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 22px -12px rgba(155,77,255,.9); }

/* ---------- Tarjetas ---------- */
body.bgsc-home .ay-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
body.bgsc-home .ay-side { display: grid; gap: 18px; }
body.bgsc-home .ay-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 16, 48, .92), rgba(14, 10, 32, .96));
}
body.bgsc-home .ay-card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
body.bgsc-home .ay-ico { flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 12px; border: 1px solid rgba(167,128,255,.35); background: linear-gradient(160deg, rgba(139,61,255,.3), rgba(139,61,255,.08)); color: #d58bff; }
body.bgsc-home .ay-ico .ico { width: 38px; height: 38px; stroke-width: 1.5; }
body.bgsc-home .ay-card-head h2 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 800; }
body.bgsc-home .ay-card-head p { margin-top: 4px; color: #d9d2f0; font-size: .95rem; }
body.bgsc-home .ay-note { margin-top: 10px; font-size: .84rem; color: var(--muted); }
body.bgsc-home .btn-block { width: 100%; }

/* ---------- Preguntas ---------- */
body.bgsc-home .ay-list { display: grid; gap: 10px; }
body.bgsc-home .ay-list li[hidden] { display: none; }
body.bgsc-home .ay-list details { border-radius: 10px; border: 1px solid var(--line-2); background: rgba(16,12,36,.7); transition: border-color .2s, background-color .2s; }
body.bgsc-home .ay-list details[open] { border-color: var(--violet); background: rgba(139,61,255,.12); }
body.bgsc-home .ay-list summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1rem; }
body.bgsc-home .ay-list summary::-webkit-details-marker { display: none; }
body.bgsc-home .ay-chev { width: 20px; height: 20px; color: #e4def8; transform: rotate(90deg); transition: transform .2s var(--ease); }
body.bgsc-home .ay-list details[open] .ay-chev { transform: rotate(-90deg); color: var(--violet); }
body.bgsc-home .ay-list details p { padding: 0 18px 14px; color: #e4def8; line-height: 1.55; font-size: .94rem; }
body.bgsc-home .ay-empty { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed rgba(167,128,255,.25); border-radius: 10px; }
body.bgsc-home .ay-empty[hidden] { display: none; }
body.bgsc-home .ay-empty a { color: var(--violet); font-weight: 600; }

/* ---------- PQRS ---------- */
body.bgsc-home .ay-pqrs { scroll-margin-top: calc(var(--header-h) + 16px); margin-top: 26px; }
body.bgsc-home .ay-pqrs-head h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 800; }
body.bgsc-home .ay-pqrs-head h2 span { color: var(--violet); }
body.bgsc-home .ay-pqrs-head p { margin-top: 6px; color: #d9d2f0; max-width: 80ch; }
body.bgsc-home .ay-pqrs-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
body.bgsc-home .ay-form-t { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
body.bgsc-home .ay-form-t .ico { width: 24px; height: 24px; color: var(--violet); }
body.bgsc-home .ay-form { display: grid; gap: 14px; }
body.bgsc-home .ay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.bgsc-home .ay-field { display: grid; gap: 6px; }
body.bgsc-home .ay-field > span { font-size: .86rem; font-weight: 600; color: #ece7fc; }
body.bgsc-home .ay-field small { font-weight: 400; color: var(--muted); }
body.bgsc-home .ay-field input, body.bgsc-home .ay-field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(10,8,23,.7); color: #fff; font: inherit; font-size: .98rem; resize: vertical;
}
body.bgsc-home .ay-field input:focus, body.bgsc-home .ay-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(164,107,255,.2); }
body.bgsc-home .ay-field [aria-invalid="true"] { border-color: #ff8c8c; }
body.bgsc-home .ay-tipos { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.bgsc-home .ay-tipos legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: .86rem; font-weight: 600; color: #ece7fc; }
body.bgsc-home .ay-tipo { position: relative; }
body.bgsc-home .ay-tipo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
body.bgsc-home .ay-tipo span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16,12,36,.85); font-weight: 600; font-size: .9rem; }
body.bgsc-home .ay-tipo input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
body.bgsc-home .ay-tipo input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
body.bgsc-home .ay-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #e4def8; line-height: 1.45; }
body.bgsc-home .ay-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #8b3dff; flex: none; }
body.bgsc-home .ay-check a { color: var(--violet); font-weight: 600; }
body.bgsc-home .ay-err { display: block; font-size: .8rem; color: #ffb0b0; }
body.bgsc-home .ay-alert { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; font-size: .88rem; background: rgba(255,120,120,.1); border: 1px solid rgba(255,140,140,.35); color: #ffc2c2; }
body.bgsc-home .ay-form .btn { justify-self: start; }
/* Campo trampa: invisible para personas, visible para robots */
body.bgsc-home .ay-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

body.bgsc-home .ay-ok { text-align: center; padding: 10px 4px; }
body.bgsc-home .ay-ok-ico { width: 54px; height: 54px; color: #3ccf87; margin: 0 auto 10px; }
body.bgsc-home .ay-ok h3 { font-size: 1.4rem; font-weight: 800; }
body.bgsc-home .ay-ok p { margin-top: 8px; color: #e4def8; }
body.bgsc-home .ay-rad { margin: 10px auto 6px !important; display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px dashed var(--violet); font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; color: #fff !important; background: rgba(139,61,255,.15); user-select: all; }
body.bgsc-home .ay-ok .btn { margin-top: 16px; }

body.bgsc-home .ay-res { margin-bottom: 16px; padding: 14px; border-radius: 10px; border: 1px solid rgba(167,128,255,.25); background: rgba(139,61,255,.08); }
body.bgsc-home .ay-res dl { display: grid; gap: 8px; margin: 0; }
body.bgsc-home .ay-res dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
body.bgsc-home .ay-res dt { color: var(--muted); }
body.bgsc-home .ay-res dd { margin: 0; font-weight: 600; text-align: right; }
body.bgsc-home .ay-res h4 { margin-top: 14px; font-size: .95rem; }
body.bgsc-home .ay-resp { margin-top: 6px; font-size: .9rem; color: #ece7fc; line-height: 1.55; }
body.bgsc-home .ay-est { padding: 3px 10px; border-radius: 999px; font-size: .78rem; border: 1px solid rgba(200,185,255,.3); }
body.bgsc-home .ay-est.is-respondida, body.bgsc-home .ay-est.is-cerrada { border-color: rgba(110,220,160,.4); background: rgba(70,200,130,.12); color: #8be3b2; }
body.bgsc-home .ay-est.is-en_tramite { border-color: rgba(167,128,255,.5); background: rgba(139,61,255,.2); color: var(--lav); }

/* ---------- Banda ---------- */
body.bgsc-home .ay-band {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 22px;
  display: flex; align-items: center; gap: 22px; padding: 18px 24px;
  border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(26,19,56,.95), rgba(30,18,66,.9));
}
body.bgsc-home .ay-band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
body.bgsc-home .ay-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,13,40,.97) 0%, rgba(18,13,40,.9) 40%, rgba(18,13,40,.45) 75%, rgba(18,13,40,.3) 100%); }
body.bgsc-home .ay-band-ico { width: 58px; height: 58px; color: var(--violet); padding-right: 22px; box-sizing: content-box; border-right: 1px solid rgba(167,128,255,.3); flex: none; }
body.bgsc-home .ay-band h2 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 800; }
body.bgsc-home .ay-band h2 span { color: var(--violet); }
body.bgsc-home .ay-band p { margin-top: 4px; color: #e4def8; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
body.bgsc-home .ay-grid, body.bgsc-home .ay-pqrs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
body.bgsc-home .ay-hero-bg { object-position: 75% 30%; }
body.bgsc-home .ay-hero-shade { background: linear-gradient(180deg, rgba(10,8,23,.6) 0%, rgba(10,8,23,.78) 55%, var(--bg) 100%); }
body.bgsc-home .ay-crumbs { font-size: .82rem; }
html.js body.bgsc-home .ay-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
body.bgsc-home .ay-chips::-webkit-scrollbar { display: none; }
body.bgsc-home .ay-chip { flex: none; min-width: 0; }
body.bgsc-home .ay-ico { width: 54px; height: 54px; }
body.bgsc-home .ay-ico .ico { width: 30px; height: 30px; }
body.bgsc-home .ay-row { grid-template-columns: 1fr; }
body.bgsc-home .ay-form .btn { justify-self: stretch; }
body.bgsc-home .ay-band-ico { display: none; }
}
