/* Sitio publico de Whatme: landing (/ y /es) y centro de ayuda (/help). */

:root {
  --brand: #1aa38f;
  --brand-dark: #075e54;
  --green: #25d366;
  --hero: linear-gradient(135deg, #1aa38f 0%, #0b7a6b 55%, #075e54 100%);
  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --card: #ffffff;
  --text: #1c2624;
  --heading: #0d1a17;
  --muted: #56645f;
  --rule: #e1e9e6;
  --accent: #0b7a6b;
  --tint: #e3f4ef;
  --shadow: 0 1px 2px rgba(13, 26, 23, 0.06), 0 8px 24px -12px rgba(13, 26, 23, 0.18);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1412;
    --bg-soft: #121c19;
    --card: #15211e;
    --text: #dbe6e2;
    --heading: #f2f8f6;
    --muted: #9aaca7;
    --rule: #22312d;
    --accent: #4fd1b7;
    --tint: #173a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: #fff; color: #075e54; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }

.btn-install { background: #fff; color: #075e54; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35); }
.btn-install.is-soon { cursor: not-allowed; opacity: 0.72; box-shadow: none; }
.btn-install.is-soon:hover, .btn-install.is-soon:active { transform: none; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-primary { background: #075e54; color: #fff; }
.btn-primary:hover { background: #0b7a6b; }
.btn-ghost-dark { border-color: var(--rule); color: var(--heading); background: var(--card); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #1aa38f; color: #04201b; }
  .btn-primary:hover { background: #2bbaa4; }
}

.badge {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.badge-free { background: var(--tint); color: var(--accent); }
.badge-pro { background: #0d1a17; color: #fff; }
@media (prefers-color-scheme: dark) { .badge-pro { background: #f2f8f6; color: #0d1a17; } }

/* -------------------------------------------------------- Barra superior */

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }

/* Fija al pasar el encabezado (la clase la pone el script del pie). */
.topbar.is-stuck {
  position: fixed;
  background: rgba(7, 94, 84, 0.97);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  animation: bar-in 0.4s var(--ease-out);
}
.topbar.is-stuck .topbar-inner { padding-top: 10px; padding-bottom: 10px; }
.topbar.is-stuck .brand img { width: 30px; height: 30px; }
@keyframes bar-in { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .topbar.is-stuck { animation: none; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, 0.92); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .nav-link { padding: 8px 10px; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  padding-top: 120px;
  color: #fff;
  background: var(--hero) top / 100% calc(100% - 220px) no-repeat;
  text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.hero .lead { margin: 22px auto 0; max-width: 32em; font-size: clamp(18px, 2vw, 21px); color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 16px; margin-top: 34px; }
.install { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.95); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9dffcf; box-shadow: 0 0 0 0 rgba(157, 255, 207, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(157, 255, 207, 0); } 100% { box-shadow: 0 0 0 0 rgba(157, 255, 207, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.signup { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.signup a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* Franja fija abajo con el link de afiliado (la clase la pone el script de la landing).
   Mismo verde que el menu fijo de arriba: el negro se perdia en modo oscuro. */
.signup-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 94, 84, 0.97);
  color: #fff;
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0s 0.4s;
}
.signup-bar.is-shown { transform: none; visibility: visible; transition: transform 0.4s var(--ease-out); }
.signup-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
.signup-bar p { margin: 0; font-size: 15px; font-weight: 600; }
.btn-white { background: #fff; color: #075e54; }
.btn-white:hover { background: #e3f4ef; }
@media (prefers-reduced-motion: reduce) { .signup-bar, .signup-bar.is-shown { transition: none; } }
.hero-note { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }

/* Conversacion del hero: el cliente pregunta por un producto, la tienda
   contesta y las palomitas se vuelven azules. Se reproduce una vez. */
.hero-chat { display: none; }
@media (min-width: 1300px) {
  .hero-copy { position: relative; }
  .hero-chat { display: block; position: absolute; inset: 0; pointer-events: none; text-align: left; }
}
.chat { position: absolute; width: 224px; }
.chat-in { left: calc(50% - 610px); top: 0; }
.chat-out { right: calc(50% - 610px); top: 250px; }
.bubble {
  position: relative;
  display: flow-root;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  color: #111b21;
  font-size: 14.5px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.12), 0 18px 34px -16px rgba(2, 30, 26, 0.55);
  animation: bubble-in 0.6s var(--ease-out) both;
}
.bubble::before { content: ""; position: absolute; top: 0; width: 12px; height: 14px; background: inherit; }
.chat-in .bubble { background: #fff; border-top-left-radius: 0; transform-origin: 0 0; animation-delay: 1.45s; }
.chat-in .bubble::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.chat-out .bubble { background: #d9fdd3; border-top-right-radius: 0; transform-origin: 100% 0; animation-delay: 3.5s; }
.chat-out .bubble::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble-link { display: block; color: #027eb5; word-break: break-all; }
.bubble-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 11px; color: #667781; }
.ticks { width: 17px; height: 11px; color: #8696a0; animation: read 0.35s ease 4.5s both; }
.typing {
  position: absolute;
  top: 0;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px -14px rgba(2, 30, 26, 0.55);
  opacity: 0;
  animation: typing 1s var(--ease-out) 0.5s both;
}
.chat-in .typing { left: 0; border-top-left-radius: 0; transform-origin: 0 0; }
.chat-out .typing { right: 0; background: #d9fdd3; border-top-right-radius: 0; transform-origin: 100% 0; animation-delay: 2.45s; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 0.9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0% { opacity: 0; transform: scale(0.6); }
  15%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.85); visibility: hidden; }
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(0.9); filter: blur(6px); } }
@keyframes dot { 0%, 60%, 100% { opacity: 0.45; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes read { to { color: #53bdeb; } }
@media (prefers-reduced-motion: reduce) {
  .tabs.has-pill::before, .browser iframe { transition: none; }
  .bubble, .typing { animation: none; }
  .ticks { animation: none; color: #53bdeb; }
}

/* Demo */
.demo { margin-top: 56px; scroll-margin-top: 16px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); }
.tab { position: relative; padding: 8px 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 600; text-decoration: none; transition: color 0.25s ease, background-color 0.2s ease; }
.tab:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tab[aria-selected="true"] { background: #fff; color: #075e54; }
/* Con JS, la pastilla blanca es un solo elemento que se desliza. */
.tabs.has-pill::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w);
  transform: translateX(var(--x));
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
}
.tabs.has-pill .tab[aria-selected="true"] { background: transparent; }
.browser iframe { transition: opacity 0.35s ease, filter 0.35s ease; }
.browser.is-loading iframe { opacity: 0.45; filter: blur(3px) saturate(0.7); transition-duration: 0.15s; }
.demo-hint { font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.browser { border-radius: var(--radius); overflow: hidden; background: #faf7f2; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5), 0 12px 30px -12px rgba(0, 0, 0, 0.25); text-align: left; }
.browser-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #ece7df; }
.browser-chrome > span { width: 11px; height: 11px; border-radius: 50%; background: #d6cfc4; }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 4px 12px; border-radius: 7px; background: #faf7f2; color: #7a6f63; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 600px) {
  .demo-bar { justify-content: center; text-align: center; }
  .browser iframe { height: 600px; }
}

/* -------------------------------------------------------------- Secciones */

.section { padding: 96px 0; }
.section h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
@media (max-width: 600px) { .section { padding: 72px 0; } }

/* Pasos */
.steps { padding-top: 88px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-list li { position: relative; padding-right: 16px; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--hero); color: #fff; font-size: 18px; font-weight: 800; }
.step-list h3 { font-size: 20px; }
.step-list p { margin-top: 8px; max-width: 30ch; color: var(--muted); }
/* Linea que une cada paso con el siguiente; con scroll se dibuja en orden. */
.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 56px;
  right: -20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--rule));
  transform-origin: 0 50%;
}
@media (max-width: 860px) {
  .step-list { grid-template-columns: 1fr; gap: 36px; }
  .step-list li { padding: 8px 0 0 64px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step-list li:not(:last-child)::after { top: 56px; left: 21px; right: auto; bottom: -24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), var(--rule)); transform-origin: 50% 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step-list li:not(:last-child)::after { animation: draw-x linear both; animation-timeline: view(); animation-range: entry 70% cover 40%; }
    .step-list li:nth-child(2)::after { animation-range: entry 100% cover 50%; }
    @media (max-width: 860px) {
      .step-list li:not(:last-child)::after, .step-list li:nth-child(2)::after { animation-name: draw-y; animation-range: entry 60% cover 50%; }
    }
  }
}
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }

/* Funciones */
.features { background: var(--bg-soft); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 36px; }
.feature { position: relative; padding: 28px 0 40px; border-top: 1px solid var(--rule); }
.feature::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.feature:hover::before { transform: scaleX(1); }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.feature-icon { transition: transform 0.4s var(--ease-out), background-color 0.3s ease, color 0.3s ease; }
.feature:hover .feature-icon { transform: translateY(-2px) rotate(-6deg); background: var(--accent); color: var(--bg); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; letter-spacing: -0.01em; }
.feature-top .badge { margin: 0; }
.feature p { margin-top: 8px; font-size: 16px; color: var(--muted); }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 0 24px; }
  .feature-top { display: contents; }
  .feature-icon { grid-row: span 2; }
  .feature-top .badge { position: absolute; top: 22px; right: 0; }
  .feature h3 { padding-right: 56px; }
  .feature p { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .feature::before, .feature-icon { transition: none; } }

/* Capturas de la App Home */
.showcase { display: grid; gap: 96px; }
.showcase-row { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 56px; }
.showcase-row.reverse { grid-template-columns: 7fr 5fr; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-copy p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.showcase-copy .showcase-note { margin-top: 12px; font-size: 15px; }
.shot { margin: 0; padding: 10px; border-radius: 20px; background: var(--hero); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; border-radius: 12px; background: #f7f7f7; }
/* Seccion de idiomas: el panel del chat en tres idiomas (copia reducida de whatme.css). */
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; padding: 28px 22px 34px; }
.lang-panel { display: grid; gap: 10px; min-width: 0; }
.lang-panel:nth-child(2) { margin-top: 28px; }
.lang-panel:nth-child(3) { margin-top: 56px; }
.lang-chip { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 12px; font-weight: 600; }
.lp-card { overflow: hidden; border-radius: 14px; background: #fff; color: #1f2124; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.4); }
.lp-header { padding: 12px 14px; background: var(--green); color: #fff; }
.lp-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.lp-text { margin: 3px 0 0; font-size: 12px; line-height: 1.35; opacity: 0.92; }
.lp-agents { display: grid; gap: 6px; padding: 10px; }
.lp-agent { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border-radius: 10px; background: #f4f5f6; }
.lp-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; }
.lp-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lp-name { font-size: 13px; font-weight: 600; }
.lp-role { overflow: hidden; font-size: 11px; color: #5c5f62; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 14px 26px; }
  .lang-panel:nth-child(2) { margin-top: 20px; }
  .lang-panel:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .showcase { gap: 64px; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row.reverse .showcase-copy { order: 0; }
}

/* Precios */
.pricing { background: var(--bg-soft); }
.pricing .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.plan-pro { border: 2px solid var(--brand); }
.plan h3 { font-size: 20px; }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--heading); }
.price span { color: var(--muted); font-size: 17px; }
.plan-yearly { margin-top: 2px; font-size: 15px; color: var(--muted); }
.plan-note { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--accent); }
.plan ul { list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.pricing-note { margin-top: 28px; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Preguntas */
.faq h2 { margin-bottom: 32px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); }
/* Abre y cierra con altura animada donde el navegador lo permite. */
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 0.35s var(--ease-out), opacity 0.25s ease, content-visibility 0.35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
}

/* Contacto */
.contact { padding-top: 24px; }
.contact-card { padding: 48px; border-radius: 24px; background: var(--bg-soft); text-align: center; }
.contact-card p { margin: 14px auto 0; max-width: 34em; color: var(--muted); font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 600px) {
  .contact-card { padding: 32px 20px; }
  .contact-actions .btn { width: 100%; white-space: normal; }
}

/* ------------------------------------------------------------------- Pie */

.footer { margin-top: 96px; padding: 32px 0 40px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 7px; }
.footer-brand strong { color: var(--heading); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { width: 100%; font-size: 14px; }

/* --------------------------------------------------------- Centro de ayuda */

.help-hero { padding: 120px 0 56px; background: var(--hero); color: #fff; }
.help-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.help-hero p { margin-top: 12px; font-size: 19px; color: rgba(255, 255, 255, 0.9); }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; }
.toc summary { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--rule); display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (min-width: 901px) { .toc summary { pointer-events: none; } }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-soft); }
  .toc summary { cursor: pointer; }
}

.article { max-width: 720px; }
.article section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.article section:last-of-type { border-bottom: 0; }
.article h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.article h2 .badge { font-size: 13px; }
.article h3 { margin-top: 28px; font-size: 19px; }
.article p, .article ul, .article ol { margin: 14px 0 0; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }
.article code { white-space: nowrap; padding: 1px 6px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--rule); font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.article .ui { font-weight: 600; color: var(--heading); }
.note { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--tint); font-size: 16px; }
.note p { margin: 0; }
.help-contact { padding: 32px; border-radius: 20px; background: var(--bg-soft); }
.help-contact h2 { font-size: 24px; }
.help-contact .contact-actions { justify-content: flex-start; }
