/* Centro de ayuda — se apoya en landing2.css (variables, botones, nav y footer) */
html { scroll-padding-top: 96px; }
body.help { background: var(--cream); }
.doc a, .help-section a:not(.btn):not(.guide-card) { color: var(--deep); }

.nav-tag {
  color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
.nav-tag:hover { background: rgba(255, 255, 255, 0.22); }
a.btn.nav-login { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); background: transparent; }
a.btn.nav-login:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Hero */
.help-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(109, 93, 252, 0.45), transparent 60%),
    radial-gradient(45% 60% at 8% 100%, rgba(231, 76, 111, 0.22), transparent 65%),
    linear-gradient(160deg, #1a1638 0%, var(--night) 55%, #0c0b18 100%);
  padding: clamp(7rem, 12vw, 8.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.help-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.help-hero .wrap { position: relative; }
.help-kicker { margin: 0 0 0.6rem; font-weight: 600; color: var(--brand-2); font-size: 1rem; }
.help-kicker a { color: var(--brand-2); text-decoration: none; }
.help-kicker a:hover { text-decoration: underline; }
.help-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.02; }
.help-hero h1 em { font-style: normal; color: var(--brand-2); }
.help-hero .lead { margin: 1rem 0 0; max-width: 40rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, 0.82); }
.help-hero.is-doc { padding-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.help-hero.is-doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.doc-meta span {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.88);
}

/* Buscador */
.help-search { position: relative; margin-top: 1.6rem; max-width: 38rem; }
.help-search input {
  width: 100%; box-sizing: border-box; height: 58px; padding: 0 1.2rem 0 3.1rem;
  border-radius: 999px; border: 0; outline: none;
  font: 500 1.02rem var(--font); color: var(--ink); background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.help-search input:focus { box-shadow: 0 0 0 4px rgba(165, 152, 255, 0.45), 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.help-search > svg { position: absolute; left: 1.15rem; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.help-search.is-side input { height: 46px; font-size: 0.95rem; box-shadow: none; border: 1px solid var(--line); padding-left: 2.6rem; }
.help-search.is-side input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.18); }
.help-search.is-side > svg { left: 0.95rem; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-height: min(60vh, 420px); overflow: auto; padding: 0.4rem; display: none;
}
.search-results.is-open { display: block; }
.search-results a {
  display: block; padding: 0.65rem 0.85rem; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.search-results a:hover, .search-results a.is-active { background: var(--cream-2); }
.search-results strong { display: block; font-size: 0.95rem; }
.search-results small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
.search-results mark { background: #e4defe; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 0.9rem; color: var(--muted); font-size: 0.92rem; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.quick-chips a {
  color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
}
.quick-chips a:hover { background: rgba(255, 255, 255, 0.12); }

/* Portada */
.help-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.help-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.help-section > .wrap > p { color: var(--muted); margin: 0.5rem 0 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.guide-card {
  display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card .gi {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-2); color: var(--deep);
}
.guide-card h3 { font-size: 1.25rem; font-weight: 700; margin-top: 0.3rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.guide-card ul { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.9rem; }
.guide-card li { margin: 0.15rem 0; }
.guide-card .go { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--deep); font-size: 0.93rem; }
.guide-card .step-n {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--deep); background: var(--cream-2); padding: 0.2rem 0.6rem; border-radius: 999px;
}

.quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.4rem; }
.quick-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.quick-list a:hover { border-color: var(--brand); }
.quick-list a::after { content: "→"; color: var(--deep); font-weight: 700; }

.soon { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.soon span { padding: 0.35rem 0.8rem; border-radius: 999px; background: #fff; border: 1px dashed rgba(29, 22, 18, 0.2); color: var(--muted); font-size: 0.88rem; font-weight: 600; }

.help-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: clamp(1.4rem, 4vw, 2rem); border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(70% 140% at 95% 10%, rgba(109, 93, 252, 0.55), transparent 65%),
    linear-gradient(140deg, #241c4a, var(--night));
}
.help-contact h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.help-contact p { margin: 0.4rem 0 0; color: rgba(255, 255, 255, 0.8); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }

/* Guía: layout */
.doc-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); align-items: start;
}
.doc-side { position: sticky; top: 92px; display: grid; gap: 1.2rem; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 1rem; scrollbar-width: thin; }
.side-block h4 {
  font-family: var(--font); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.5rem;
}
.side-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-block a {
  display: block; padding: 0.42rem 0.7rem; border-radius: 10px; text-decoration: none;
  color: var(--ink-2); font-size: 0.93rem; font-weight: 500;
}
.side-block a:hover { background: #fff; color: var(--ink); }
.side-block a.is-current { background: #fff; color: var(--deep); font-weight: 700; box-shadow: var(--shadow); }
.toc a { font-size: 0.88rem; padding: 0.32rem 0.7rem; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
.toc a.is-active { border-left-color: var(--brand); color: var(--deep); font-weight: 600; background: transparent; }

/* Guía: artículo */
.doc {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.doc > *:first-child { margin-top: 0; }
.doc h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.doc h2:first-child { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1.15rem; font-weight: 700; margin: 1.7rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-2); font-size: 1rem; }
.doc p { margin: 0.6rem 0; }
.doc ul { padding-left: 1.2rem; margin: 0.6rem 0; }
.doc li { margin: 0.3rem 0; }
.doc strong { color: var(--ink); }

.ui {
  display: inline-block; padding: 0.05rem 0.5rem; border-radius: 7px; white-space: nowrap;
  background: var(--cream-2); color: var(--ink); border: 1px solid rgba(109, 93, 252, 0.22);
  font-weight: 600; font-size: 0.92em; line-height: 1.5;
}
.path { font-weight: 600; color: var(--ink); }
.path b { color: var(--deep); font-weight: 700; padding: 0 0.2rem; }

.pasos { list-style: none; counter-reset: st; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.pasos > li {
  counter-increment: st; position: relative; padding: 0.1rem 0 0 2.75rem; margin: 0; min-height: 2rem;
}
.pasos > li::before {
  content: counter(st); position: absolute; left: 0; top: 0;
  width: 1.95rem; height: 1.95rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 6px 14px -6px rgba(109, 93, 252, 0.8);
}
.pasos > li ul { margin-top: 0.35rem; }

.shot { margin: 1.4rem 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(29, 22, 18, 0.05), 0 18px 40px -22px rgba(29, 22, 18, 0.45);
  cursor: zoom-in; background: var(--cream);
}
.shot figcaption { margin-top: 0.55rem; font-size: 0.88rem; color: var(--muted); text-align: center; }
.shot.is-phone { max-width: 300px; margin-inline: auto; }
.shot.is-phone img { border-radius: 22px; }
.shot-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 620px; margin: 1.4rem auto; }
.shot-duo .shot.is-phone { margin: 0; max-width: none; }

.note {
  display: flex; gap: 0.75rem; margin: 1.2rem 0; padding: 0.95rem 1.1rem; border-radius: 14px;
  background: var(--cream); border: 1px solid rgba(109, 93, 252, 0.18);
}
.note::before { content: "💡"; flex: none; font-size: 1.1rem; line-height: 1.5; }
.note p { margin: 0; font-size: 0.96rem; }
.note p + p { margin-top: 0.4rem; }
.note.is-important { background: var(--warn-bg); border-color: rgba(180, 83, 9, 0.25); }
.note.is-important::before { content: "⚠️"; }
.note.is-ok { background: var(--ok-bg); border-color: rgba(22, 163, 74, 0.25); }
.note.is-ok::before { content: "✅"; }

.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2.4rem; }
.doc-pager a {
  display: block; padding: 1rem 1.15rem; border-radius: 16px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: var(--cream);
}
.doc-pager a:hover { border-color: var(--brand); }
.doc-pager small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.doc-pager strong { font-size: 1.02rem; }
.doc-pager .next { text-align: right; grid-column: 2; }

.doc-help {
  margin-top: 1.6rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--ok-bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.doc-help p { margin: 0; color: var(--ink-2); font-weight: 600; }
.doc-help .btn { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.92rem; }

/* Zoom de capturas */
.zoom {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 1.5rem;
  background: rgba(18, 12, 8, 0.86); cursor: zoom-out;
}
.zoom.is-open { display: grid; }
.zoom img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; }

@media (max-width: 1080px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; max-height: none; overflow: visible; }
  .doc-side .side-block.is-guides { display: none; }
  .toc { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 0.8rem; }
}
@media (max-width: 680px) {
  .guide-grid, .quick-list { grid-template-columns: 1fr; }
  .nav-tag { display: none; }
  .doc { border-radius: 18px; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager .next { grid-column: auto; }
  .help-search input { height: 52px; }
  .ui { white-space: normal; }
}
@media (max-width: 520px) {
  .shot-duo { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
}
