/* Estilos compartidos de las páginas internas del sitio (ayuda y guías).
 *
 * index.html lleva sus estilos inline y NO carga este archivo: los tokens de acá
 * son copia de los suyos (:root, botones, nav, footer, badges). Si cambia la
 * paleta o la tipografía allá, cambiarla también acá.
 *
 * Todo lo que referencia otro archivo es relativo: el sitio cuelga de /unite/.
 */
:root {
  --bg: #fafafa; --bg2: #ffffff; --ink: #111417; --ink2: #3c4046; --muted: #6e737b; --faint: #a3a8b0; --line: rgba(17,20,23,.08); --line2: rgba(17,20,23,.14);
  --primary: #fff200; --primary-soft: rgba(255,242,0,.16); --dark: #0e0f11;
  --r: 24px; --r2: 16px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --t1: 160ms; --t2: 320ms; --t3: 520ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 17px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.wide { max-width: 1280px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0ms !important; animation: none !important; } }

/* Botones (los mismos de la home) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform var(--t1) var(--ease), background var(--t1) var(--ease), box-shadow var(--t2) var(--ease), color var(--t1); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24282d; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(17,20,23,.18); }
.btn-accent { background: #fff; color: var(--ink); border: 2px solid var(--primary); }
.btn-accent:hover { transform: translateY(-1px); background: var(--primary); box-shadow: 0 12px 30px rgba(255,242,0,.35); }
.btn-ghost { color: var(--ink); height: auto; padding: 0; gap: 6px; }
.btn-ghost svg { transition: transform var(--t1) var(--ease); } .btn-ghost:hover svg { transform: translateX(3px); }

/* Nav: en las páginas internas no hay hero, así que nace con el vidrio puesto */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,250,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav .in { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); }
.nav .links a[aria-current="page"] { font-weight: 600; }
.nav .links .btn { height: 38px; padding: 0 16px; font-size: 14px; color: #fff; }
.nav .burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }

/* Cabecera de página */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head .container { display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; max-width: 16ch; }
.page-head .lead { max-width: 620px; }

/* Ayuda: bloques de preguntas */
.help { padding-bottom: clamp(64px, 8vw, 112px); }
.help .in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.help-block h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.help-block h2::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--primary); flex-shrink: 0; }
.faq details { border-top: 1px solid var(--line2); }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform var(--t2) var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--ink2); max-width: 660px; display: flex; flex-direction: column; gap: 10px; }
.faq details a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.faq details a:hover { text-decoration-color: var(--ink); }
.help-end { border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.help-end h2 { font-size: 24px; }
.help-end a.mail { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary); text-decoration-thickness: 3px; }
.help-end ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.help-end ul a { color: var(--ink2); } .help-end ul a:hover { color: var(--ink); }

/* Índice de guías */
.guide-list { padding-bottom: clamp(64px, 8vw, 112px); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease), border-color var(--t2); }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(17,20,23,.08); border-color: var(--line2); }
.guide-card h2 { font-size: 22px; letter-spacing: -0.025em; }
.guide-card p { font-size: 15px; color: var(--muted); }
.guide-card .meta { margin-top: auto; padding-top: 8px; }
.guide-card .go { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Artículo (guías) */
.article { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px clamp(64px, 8vw, 112px); }
.article .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.article .crumbs a:hover { color: var(--ink); }
.article h1 { font-size: clamp(36px, 5.2vw, 56px); letter-spacing: -0.045em; margin-bottom: 18px; }
.meta { font-size: 14px; color: var(--muted); }
.article .meta { display: block; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line2); }
.article h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 48px 0 16px; }
.article p { font-size: 18px; line-height: 1.7; color: var(--ink2); margin: 0 0 18px; text-wrap: pretty; }
.article p.lead { font-size: clamp(19px, 1.8vw, 21px); color: var(--ink); }
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; font-size: 18px; line-height: 1.7; color: var(--ink2); }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--muted); }
.article strong { color: var(--ink); font-weight: 600; }
.article blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--primary); background: var(--bg2); border-radius: 0 var(--r2) var(--r2) 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.article blockquote p { margin: 0; color: inherit; }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.article a:hover { text-decoration-color: var(--ink); }

/* Bloque oscuro de cierre con las tiendas */
.cta-box { margin-top: 56px; border-radius: 28px; background: var(--dark); color: #fff; padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; right: -220px; bottom: -260px; width: 520px; height: 520px; border-radius: 999px; background: radial-gradient(closest-side, rgba(255,242,0,.2), rgba(255,242,0,0) 70%); pointer-events: none; }
.cta-box > * { position: relative; }
.article .cta-box h2, .cta-box h2 { color: #fff; margin: 0; font-size: clamp(24px, 2.8vw, 30px); }
.article .cta-box p, .cta-box p { color: rgba(255,255,255,.72); margin: 0; font-size: 17px; line-height: 1.6; }
.cta-box .badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.article .cta-box a { text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 16px 10px 12px; min-width: 176px; line-height: 1.1; transition: transform var(--t1) var(--ease); }
.badge:hover { transform: translateY(-1px); }
.badge small { display: block; font-size: 10px; letter-spacing: .02em; } .badge strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* Más guías, al pie del artículo */
.more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line2); }
.more h2 { font-size: 15px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.article .more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.article .more a { text-decoration: none; font-weight: 600; color: var(--ink); }
.article .more a:hover { text-decoration: underline; }

/* Footer (el de la home) */
footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
footer .brand img { height: 36px; width: auto; }
footer .about { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
footer .about p { font-size: 14px; color: var(--muted); max-width: 280px; }
footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
footer ul a:hover { color: var(--muted); }
footer .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--faint); }

@media (max-width: 960px) {
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(250,250,250,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 8px 0 16px; }
  .nav .links.open { display: flex; } .nav .links a { padding: 14px 24px; } .nav .links .btn { margin: 8px 24px 0; }
  .nav .burger { display: inline-flex; }
  .guide-grid { grid-template-columns: 1fr; }
  .article { padding-left: 16px; padding-right: 16px; }
  .article p, .article ul, .article ol { font-size: 17px; }
  .cta-box { border-radius: 22px; }
  .badge { min-width: 0; flex: 1 1 150px; }
  footer .cols { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
