/* ==========================================================================
   GoLoop Digital · páginas internas (planes, páginas, diagnóstico, kit,
   términos, privacidad, gracias, empezar, panel).
   Mismo diseño que el inicio (DESIGN.md): letra del sistema, negro y amarillo
   ordenados, encabezado oscuro que no es fijo, botones píldora, tarjetas
   redondeadas y nada de sombras duras, marcas de resaltador ni manchas.
   El inicio usa inicio.css; los nombres de clase de aquí se conservan porque
   las páginas los usan en su HTML y en sus estilos propios.
   ========================================================================== */
:root {
  --y: #FFD84D;
  --y-soft: #FFF3C2;
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #222226;
  --bone: #F5F4F0;
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --line: rgba(11, 11, 12, .10);
  --line-d: rgba(255, 255, 255, .14);
  --mute: #5C5C63;
  --mute-d: #A3A3A8;
  --wa: #25D366;
  --head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 22px;
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--y); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
/* En línea para no partir la frase; el relleno agranda la zona que se toca (44 px) sin mover el texto */
.plink { display: inline; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botones: píldoras, sin sombras duras ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 17px/1 var(--body); letter-spacing: -.01em; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }
.btn--k { background: var(--ink); color: var(--white); }
.btn--k:hover { box-shadow: 0 0 0 5px rgba(11, 11, 12, .12); }
.btn--y { background: var(--y); color: var(--ink); }
.btn--y:hover { box-shadow: 0 0 0 5px rgba(255, 216, 77, .28); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { box-shadow: 0 0 0 5px rgba(11, 11, 12, .08); }
.sec--dark .btn--line, .btn--line.on-dark { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.sec--dark .btn--line:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Encabezado oscuro, igual al del inicio (no es fijo) ---------- */
.header { position: relative; z-index: 30; background: var(--ink); color: var(--white); }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__txt { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand__txt b { font-weight: 700; box-shadow: inset 0 -5px 0 var(--y); }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header .nav__cta, .header .btn--k { min-height: 40px; padding: 0 16px; font-size: 15px; background: var(--white); color: var(--ink); white-space: nowrap; }
.header .nav__cta:hover, .header .btn--k:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--mute-d); font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.lang span { color: var(--mute-d); }
.lang .on { color: var(--white); }
.lang i { font-style: normal; opacity: .5; }
.lang:hover { border-color: rgba(255, 255, 255, .35); }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: 72px 0 76px; }
.sec--white { background: var(--white); }
.sec--dark { background: var(--ink); color: var(--white); }
.sec--y { background: var(--ink); color: var(--white); }
.kicker { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.sec--dark .kicker, .sec--y .kicker { color: var(--mute-d); }
.h2 { max-width: 860px; font: 700 clamp(34px, 8.6vw, 56px)/1.04 var(--head); letter-spacing: -.035em; text-wrap: balance; }
.lead { margin-top: 14px; max-width: 46ch; font-size: clamp(17px, 4.4vw, 20px); line-height: 1.45; color: var(--mute); }
.sec--dark .lead, .sec--y .lead { color: var(--mute-d); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mute-d); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); flex: none; }

/* ---------- Tarjetas y ejemplos ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { position: relative; display: block; background: var(--white); border-radius: var(--r); padding: 22px; color: inherit; transition: transform .2s ease; }
.sec--white .card { background: var(--bone); }
a.card:hover { transform: translateY(-3px); }
.card h3 { margin: 8px 0 6px; font: 700 19px/1.25 var(--head); letter-spacing: -.02em; }
.card p { color: var(--mute); font-size: 15.5px; line-height: 1.5; }
.ex__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.ex__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; background: var(--y-soft); color: var(--ink); padding: 4px 7px; border-radius: 6px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 26px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; padding: 0 20px; }
.sec--white .faq details { background: var(--bone); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font: 600 17px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--mute); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--mute); font-size: 16px; line-height: 1.55; }

/* ---------- Cómo se paga (planes) ---------- */
.terms { max-width: 760px; margin: 24px auto 0; padding: 22px 24px; background: var(--white); border-radius: var(--r); color: var(--ink); text-align: left; }
.terms h3 { margin: 0 0 12px; font: 700 19px/1.25 var(--head); letter-spacing: -.02em; }
.terms ul { display: grid; gap: 10px; }
.terms li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.terms li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; }
.terms li:nth-child(5) { padding: 10px 12px 10px 36px; background: var(--bone); border-radius: 12px; }
.terms li:nth-child(5)::before { content: "→"; left: 12px; top: 10px; }

/* ---------- Botones de pago (se muestran cuando PAY_ENABLED es true) ---------- */
.pay { display: grid; gap: 8px; margin-top: 12px; }
.paybtn { min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: 600 16px/1.2 var(--body); cursor: pointer; transition: box-shadow .2s ease, transform .15s ease; }
.paybtn:hover { box-shadow: 0 0 0 5px rgba(11, 11, 12, .1); }
.paybtn:active { transform: scale(.97); }
.paybtn--k { background: var(--ink); color: var(--white); }
.paybtn:disabled { opacity: .55; cursor: wait; }
.pay__note { margin: 2px 0 0; font-size: 13.5px; color: var(--mute); }

/* ---------- Quién te escribe (páginas) ---------- */
.pf__who { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 22px auto 0; text-align: left; }
.pf__who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.pf__who p { margin: 0; font-size: 16px; color: var(--white); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--mute-d); border-top: 1px solid var(--line-d); padding: 26px 0 30px; font-size: 13.5px; }
.footer a { color: var(--white); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }

/* ---------- Computadora ---------- */
@media (min-width: 900px) {
  .sec { padding: 104px 0 110px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
}
@media (max-width: 980px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid3 { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .header__in { gap: 10px; }
  .header__tools > .nav__cta { display: none; }
  .brand__txt { font-size: 15px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) { .brand__txt { font-size: 13.5px; } .brand img { width: 30px; height: 30px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
