/* ============================================================================
   SindicApp — Hoja de estilos del sitio
   Basada en los design tokens del producto (design-system/tokens.yaml)
   Sin dependencias externas: sin CDN, sin fuentes remotas, sin JS de terceros.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta base — identidad SindicApp */
  --primary-50:  #e3f2fd;
  --primary-100: #bbdefb;
  --primary-200: #90caf9;
  --primary-300: #64b5f6;
  --primary-400: #42a5f5;
  --primary:     #1e88e5;
  --primary-600: #1976d2;
  --primary-700: #1565c0;
  --primary-800: #0d47a1;
  --primary-900: #0a2a66;
  --primary-950: #061b44;
  --ink:         #0a1628;

  --secondary:   #3949ab;
  --tertiary:    #d81b60;

  --n-10:  #1c1b1f;
  --n-30:  #48464b;
  --n-50:  #78777a;
  --n-60:  #929094;
  --n-80:  #c9c6ca;
  --n-90:  #e6e1e5;
  --n-95:  #f5eff4;
  --n-98:  #fcf8fd;
  --white: #ffffff;

  --on-primary: #ffffff;
  --surface:    var(--n-98);
  --on-surface: var(--n-10);
  --muted:      #5f5e62;
  --outline:    #d6d2dc;

  /* Tipografía (stack local: sin Google Fonts) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Espaciado y forma */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --sh-1: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --sh-2: 0 1px 3px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --sh-3: 0 2px 6px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --sh-5: 0 4px 12px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

  --wrap: 1180px;
  --ease: cubic-bezier(.2,0,0,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--primary-900); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--primary-700); margin-bottom: .6rem;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--primary-900);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--primary-600); color: #fff; box-shadow: var(--sh-3); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; color: var(--primary-800); border-color: var(--primary-300); }
.btn--outline:hover { background: var(--primary-50); color: var(--primary-900); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--outline);
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary-900); }
.brand img { height: 40px; width: auto; }
.brand b { color: var(--primary); }
.brand span i { font-style: normal; color: var(--ink); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: var(--r-full); font-weight: 500;
  color: var(--n-30); font-size: .95rem; white-space: nowrap;
}
.nav a:hover { background: var(--primary-50); color: var(--primary-800); }
.nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-800); font-weight: 700; }
.hdr .btn { padding: 11px 20px; font-size: .95rem; }
.burger {
  display: none; margin-left: auto; background: none; border: 0; padding: 10px;
  cursor: pointer; color: var(--primary-900);
}
.burger svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--outline);
    padding: 12px 20px 20px; margin: 0; display: none;
    box-shadow: var(--sh-3);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 12px; border-radius: var(--r-md); font-size: 1rem; }
  .nav .btn { margin-top: 8px; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(100,181,246,.30), transparent 62%),
    radial-gradient(700px 420px at 8% 92%, rgba(216,27,96,.16), transparent 60%),
    linear-gradient(160deg, #0a1628 0%, #0d3d8f 52%, #1565c0 100%);
}
.hero__in { padding: 92px 0 84px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 62ch; font-size: 1.2rem; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  padding: 7px 15px; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .btn-row { margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } .hero__in { padding: 64px 0 60px; } }

/* ---------- Mockup de teléfono (hecho con CSS, sin imágenes falsas) ---------- */
.phone {
  width: 268px; max-width: 100%; margin: 0 auto;
  background: #0f1b33; border-radius: 34px; padding: 12px;
  box-shadow: 0 24px 50px rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.10);
}
.phone__scr { background: #fff; border-radius: 24px; overflow: hidden; color: var(--n-10); }
.phone__top {
  background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff;
  padding: 16px 16px 18px;
}
.phone__top small { display: block; opacity: .82; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.phone__top strong { font-size: .98rem; font-weight: 700; }
.phone__body { padding: 14px; display: grid; gap: 10px; }
.sk { border-radius: 12px; background: var(--n-95); padding: 12px; }
.sk__t { height: 9px; border-radius: 5px; background: var(--n-80); margin-bottom: 7px; }
.sk__t--short { width: 45%; }
.sk__t--mid { width: 70%; }
.sk__t--blue { background: var(--primary-200); }
.sk__row { display: flex; gap: 8px; }
.sk__row > * { flex: 1; }
.sk__pill { height: 26px; border-radius: var(--r-full); background: var(--primary-100); }
.phone__tabs { display: flex; justify-content: space-around; padding: 10px 8px 14px; border-top: 1px solid var(--n-90); }
.phone__tabs i { width: 22px; height: 5px; border-radius: 3px; background: var(--n-80); display: block; }
.phone__tabs i:first-child { background: var(--primary); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--outline); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--primary-200); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card__ico {
  width: 46px; height: 46px; border-radius: var(--r-md); margin-bottom: 16px;
  display: grid; place-items: center; background: var(--primary-50); color: var(--primary-800);
  font-size: 1.3rem; font-weight: 700;
}
.card__ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Franjas ---------- */
.band { background: #fff; border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
.band--soft { background: linear-gradient(180deg, #fff, var(--primary-50)); }
.band--dark {
  background: linear-gradient(150deg, #0a1628, #0d3d8f);
  color: #fff;
}
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark .lead, .band--dark .muted { color: rgba(255,255,255,.82); }
.band--dark a { color: var(--primary-200); }
.band--dark .card {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: none;
}
.band--dark .card:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }
.band--dark .card__ico { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Listas con tilde ---------- */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: var(--r-full);
  background: var(--primary-50)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 12px no-repeat;
}
.band--dark .checks li::before {
  background-color: rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--outline); border-radius: var(--r-xl);
  padding: 30px; box-shadow: var(--sh-1); position: relative; display: flex; flex-direction: column;
}
.plan--star { border: 2px solid var(--primary); box-shadow: var(--sh-3); }
.plan__tag {
  position: absolute; top: -13px; left: 30px;
  background: var(--primary); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--r-full);
}
.plan h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.plan__who { color: var(--muted); font-size: .93rem; min-height: 2.6em; }
.plan__price { margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--n-90); }
.plan__price strong { font-size: 1.85rem; font-weight: 700; color: var(--primary-900); letter-spacing: -.02em; }
.plan__price span { color: var(--muted); font-size: .92rem; }
.plan__price em { display: block; font-style: normal; font-size: .82rem; color: var(--n-50); margin-top: 4px; }
.plan .checks { margin: 18px 0 24px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; margin: 26px 0 0; border: 1px solid var(--outline); border-radius: var(--r-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--n-90); }
thead th { background: var(--primary-50); color: var(--primary-900); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.yes { color: var(--primary-700); font-weight: 700; }
.no  { color: var(--n-60); }

/* ---------- Aviso ---------- */
.notice {
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px; margin: 22px 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice--strong { border-left-color: var(--tertiary); background: #fdeef4; }

/* ---------- Pasos ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 54px; margin: 0; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--primary); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.steps h3 { margin-bottom: .25rem; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 660px) { .form__row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; display: block; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--on-surface);
  padding: 13px 15px; border: 1px solid var(--outline);
  border-radius: var(--r-md); background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,136,229,.14);
}
textarea { min-height: 140px; resize: vertical; }
.field small { display: block; margin-top: 5px; color: var(--n-50); font-size: .82rem; font-weight: 400; }

/* ---------- Canales de contacto ---------- */
.chan { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.chan__ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--primary-50); color: var(--primary-800);
  display: grid; place-items: center;
}
.chan__ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.chan b { display: block; font-size: .95rem; }
.chan a { font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .18s var(--ease);
}
.wa:hover { transform: scale(1.06); color: #fff; }
.wa svg { width: 30px; height: 30px; fill: currentColor; }
.wa__t {
  margin-left: -8px; margin-right: 10px;
}

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.74); padding: 56px 0 28px; }
.ftr a { color: rgba(255,255,255,.92); }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 9px; font-size: .94rem; }
.ftr__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ftr__brand img { height: 34px; width: auto; }
.ftr__brand b { color: #fff; font-size: 1.1rem; }
.ftr__legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .86rem; color: rgba(255,255,255,.6);
}
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Página interna: encabezado ---------- */
.phead {
  background: linear-gradient(150deg, #0a1628, #0d3d8f 70%, #1565c0);
  color: #fff; padding: 58px 0 54px;
}
.phead h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 26ch; }
.phead p { color: rgba(255,255,255,.84); max-width: 70ch; margin: 0; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.9); }

/* ---------- Contenido legal ---------- */
.legal { max-width: 860px; }
.legal h2 { margin-top: 42px; font-size: 1.35rem; }
.legal h3 { margin-top: 26px; font-size: 1.05rem; }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal .stamp { color: var(--n-50); font-size: .9rem; }
.todo {
  background: #fff6e0; border: 1px dashed #d9a406; color: #6b4b00;
  border-radius: var(--r-sm); padding: 2px 7px; font-size: .88em; font-weight: 600;
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
