/* ═══════════════════════════════════════════════════════════════
   SUPPORT PAGE (support.html, <body class="support-page">)
   A help center on the site's light surfaces: the navy hero carries
   the search, a sticky filter rail sits beside the article index,
   and an article opens in place of the index. App screenshots are
   dark, so they sit as framed panels like the how-it-works mocks.
   Layers on styles.css; everything here is prefixed .support-.
   ═══════════════════════════════════════════════════════════════ */

.support-page {
  --support-line: rgba(58, 75, 93, 0.12);
  --support-muted: rgba(58, 75, 93, 0.7);
  --support-faint: rgba(58, 75, 93, 0.06);
}

.support-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── Hero with search ─── */
.support-hero {
  padding: 9rem 1.5rem 4rem;
  text-align: center;
}

.support-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.support-hero p {
  margin: 0 auto 2rem;
}

.support-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.support-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: rgba(58, 75, 93, 0.55);
  pointer-events: none;
}

.support-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--salud-blue);
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  transition: border-color 0.2s;
}

.support-search input::placeholder { color: rgba(58, 75, 93, 0.5); }
.support-search input:focus { outline: none; border-color: var(--emerald-500); }

.support-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.support-quick a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
}

.support-quick a:hover,
.support-quick a:focus-visible {
  border-color: var(--salud-green);
  color: var(--salud-green);
}

/* ─── Layout: filter rail + main column ─── */
.support-center {
  padding-top: 3.5rem;
}

.support-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.support-filters {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-filter h3,
.support-toc h3,
.support-contact-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-500);
  margin-bottom: 0.6rem;
}

.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.support-chips button {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--support-line);
  background: #fff;
  color: var(--salud-blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.support-chips button:hover { border-color: var(--emerald-500); }

.support-chips button[aria-pressed="true"] {
  background: var(--salud-blue);
  border-color: var(--salud-blue);
  color: #fff;
}

.support-chips button:focus-visible,
.support-list a:focus-visible,
.support-toc a:focus-visible,
.support-back:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

.support-toc ul { list-style: none; }

.support-toc a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--support-muted);
}

.support-toc a:hover { color: var(--emerald-500); }

.support-contact-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(58, 75, 93, 0.08);
}

.support-contact-card p {
  font-size: 0.88rem;
  color: var(--support-muted);
  margin-bottom: 0.5rem;
}

.support-contact-card a {
  font-weight: 600;
  color: var(--emerald-500);
  overflow-wrap: anywhere;
}

.support-main { min-width: 0; }

.support-count {
  font-size: 0.85rem;
  color: var(--support-muted);
  margin-bottom: 1.25rem;
  min-height: 1.4em;
}

/* ─── Article index ─── */
.support-category { margin-bottom: 2.75rem; scroll-margin-top: 6rem; }

.support-category h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.support-list {
  list-style: none;
  background: #fff;
  border: 1px solid rgba(58, 75, 93, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.support-list li + li { border-top: 1px solid var(--support-faint); }

.support-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  transition: background 0.2s;
}

.support-list a:hover { background: rgba(177, 211, 84, 0.1); }

.support-row-text { min-width: 0; }
.support-row-title { display: block; font-weight: 600; }

.support-row-summary {
  display: block;
  font-size: 0.88rem;
  color: var(--support-muted);
  line-height: 1.5;
}

.support-row-tags {
  display: flex;
  gap: 0.35rem;
  flex: none;
}

.support-tag {
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--support-faint);
  color: var(--support-muted);
}

.support-tag.is-core { background: rgba(16, 185, 129, 0.12); color: #047857; }
.support-tag.is-pro { background: rgba(247, 143, 43, 0.14); color: #b45309; }
.support-tag.is-partner { background: rgba(177, 211, 84, 0.25); color: #4d6212; }

.support-empty { color: var(--support-muted); padding: 1rem 0 3rem; }
.support-empty a { color: var(--emerald-500); text-decoration: underline; }

/* ─── Article view ─── */
.support-article {
  background: #fff;
  border: 1px solid rgba(58, 75, 93, 0.08);
  border-radius: 20px;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  scroll-margin-top: 6rem;
}

.support-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--emerald-500);
}

.support-article h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.support-lede {
  font-size: 1.05rem;
  color: var(--support-muted);
  max-width: 68ch;
  margin-bottom: 1rem;
}

.support-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--support-line);
}

.support-prose > * { max-width: 68ch; }
.support-prose > .support-shots,
.support-prose > .support-table { max-width: none; }

.support-prose h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.support-prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

.support-prose p,
.support-prose li {
  color: rgba(58, 75, 93, 0.85);
  line-height: 1.7;
}

.support-prose p { margin-bottom: 1rem; }
.support-prose ol, .support-prose ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.support-prose li { margin-bottom: 0.5rem; }
.support-prose strong { color: var(--salud-blue); }
.support-prose a { color: #047857; text-decoration: underline; }

.support-prose code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--support-faint);
  font-size: 0.9em;
}

.support-shots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.support-shot { min-width: 0; }
.support-shot.is-phone { flex: 0 1 230px; }
.support-shot.is-wide { flex: 1 1 100%; }
.support-shot.is-video.is-phone { flex: 0 1 270px; }

.support-shot img,
.support-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #0b1220;
  box-shadow: 0 12px 32px rgba(58, 75, 93, 0.18);
}

.support-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--support-muted);
}

.support-callout {
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  border-left: 4px solid var(--salud-blue);
  background: var(--support-faint);
  color: rgba(58, 75, 93, 0.85);
  line-height: 1.6;
}

.support-callout.is-tip,
.support-callout.is-core { border-left-color: var(--emerald-500); background: rgba(16, 185, 129, 0.08); }
.support-callout.is-pro,
.support-callout.is-important { border-left-color: var(--salud-orange); background: rgba(247, 143, 43, 0.09); }

.support-table { overflow-x: auto; margin-bottom: 1.25rem; }

.support-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.support-table th,
.support-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--support-line);
}

.support-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--support-muted);
}

.support-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--support-line);
  color: var(--support-muted);
  font-size: 0.95rem;
}

.support-article-footer a { color: #047857; font-weight: 600; text-decoration: underline; }

/* ─── Contact band ─── */
.support-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.support-cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #fff;
  margin-bottom: 1rem;
}

.support-cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.support-cta-inner .btn { font-size: 1rem; padding: 0.8rem 1.75rem; }

.support-cta-inner .support-cta-note {
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .support-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .support-filters { position: static; }
  .support-toc { display: none; }
  .support-contact-card { display: none; }
  /* Reading an article on a narrow screen: the filters would sit above it. */
  .support-reading .support-filters { display: none; }
}

@media (max-width: 600px) {
  /* .section and .container each add a 1.5rem gutter; one is enough here. */
  .support-center { padding-left: 0; padding-right: 0; }
  .support-layout { padding: 0 1rem; }
  .support-hero { padding: 7.5rem 1.25rem 3rem; }
  .support-list a { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .support-shot.is-phone { flex: 0 1 calc(50% - 0.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .support-chips button,
  .support-list a,
  .support-search input { transition: none; }
}

/* ─── Mobile / Desktop carousel ───
   A step captured on a phone and in a browser shows one view at a time,
   opening on Mobile. The slide not in view is removed from layout so the
   block is only as tall as what is showing. */
.support-carousel {
  margin: 1rem 0 1.5rem;
  max-width: none;
}

.support-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.support-carousel-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--support-faint);
  border: 1px solid var(--support-line);
}

.support-carousel-tabs button {
  padding: 0.35rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--support-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.support-carousel-tabs button[aria-pressed="true"] {
  background: var(--salud-blue);
  color: #fff;
}

.support-carousel button:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

.support-carousel .support-slide { margin: 0; }

.support-carousel[data-view="mobile"] .support-slide[data-view="desktop"],
.support-carousel[data-view="desktop"] .support-slide[data-view="mobile"] { display: none; }

.support-carousel .support-slide { animation: support-slide-in 0.25s ease; }

@keyframes support-slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .support-carousel .support-slide { animation: none; }
  .support-carousel-tabs button { transition: none; }
}
