/* ==========================================================================
   XCORP · landing.css
   Hoja compartida de las 48 landings de catálogo:
     /resenas/<ciudad|sector>/   ·  /comprar-seguidores/<red>/  ·  /crear-web/<ciudad|sector>/
   Sustituye al <style> en línea que clonaban todas (y que dejaba sin estilo
   .btn, .price-table, .net-uses, .cw-list y los acentos de cada familia).

   Sistema: el ACENTO lo define el tema real de la página (verde Maps, color de
   la red social, violeta de marca). Todo lo demás es cromo tranquilo.
   ========================================================================== */

:root {
  --bg: #07070a;
  --surface: #101016;
  --surface-2: #16161d;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --fg: #e8e8ee;
  --muted: rgba(232, 232, 238, .58);
  --muted-2: rgba(232, 232, 238, .38);

  /* Marca (cromo compartido de site.css) */
  --g1: #ff2e88;
  --g2: #8b5cf6;

  /* Acento por defecto; cada familia lo redefine abajo.
     --acc-ink es SIEMPRE tinta oscura: todos los acentos se eligieron con
     luminancia suficiente para dar >=4.5:1 sobre ella (AA en texto normal). */
  --acc: #a78bfa;
  --acc-ink: #06070a;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 920px;
  --step: clamp(28px, 5vw, 46px);
  --r: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --- Acento semántico por familia ----------------------------------------
   Cada valor es el color real del tema de la página, ajustado en luminancia
   para cumplir AA en los dos usos: texto de acento sobre el fondo negro y
   tinta oscura sobre el botón relleno. Los tonos oficiales de Facebook,
   Instagram y el violeta de marca eran demasiado oscuros sobre #07070a
   (3,3 / 4,0 / 4,3:1) y van aclarados; siguen leyéndose como su marca. */
body[data-fam="resenas"] { --acc: #34a853; }            /* verde Google Maps */
body[data-fam="web"]     { --acc: #a78bfa; }            /* violeta de marca  */
body[data-fam="redes"]   { --acc: #ff2e88; }            /* fallback          */

body[data-net="instagram"]  { --acc: #f0407d; }
body[data-net="tiktok"]     { --acc: #25f4ee; }
body[data-net="youtube"]    { --acc: #ff0033; }
body[data-net="spotify"]    { --acc: #1ed760; }
body[data-net="twitter"]    { --acc: #4a99e9; }
body[data-net="facebook"]   { --acc: #5b8def; }
body[data-net="twitch"]     { --acc: #a970ff; }
body[data-net="threads"]    { --acc: #d8d8e0; }
body[data-net="soundcloud"] { --acc: #ff7700; }
body[data-net="linkedin"]   { --acc: #3d9bd4; }
body[data-net="reddit"]     { --acc: #ff5c1c; }

/* --- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* Lavado ambiental del acento detrás del hero. Fijo y sin coste de layout. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 60vh;
  background:
    radial-gradient(70% 90% at 18% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%),
    radial-gradient(50% 70% at 92% 4%, rgba(139, 92, 246, .10), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
/* Sin color-mix (navegadores viejos): degradado plano equivalente */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  body::before { background: radial-gradient(70% 90% at 18% 0%, rgba(139, 92, 246, .14), transparent 70%); }
}

main {
  position: relative;
  z-index: 1;
  display: block;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px 8px;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
main .wrap { max-width: none; padding: 0; }

p { margin: 0 0 14px; }
strong { color: #fff; font-weight: 650; }

a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(30px, 6vw, 58px) 0 6px;
  text-align: left;
}

/* FIRMA · etiqueta de taxonomía: dice cuál de las 48 fichas estás leyendo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--acc);
  border-radius: 3px;
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: #fff; font-weight: 600; }
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 17ch;
  color: #fff;
  text-wrap: balance;
}

/* Acentos del titular: una sola regla, tres nombres de clase heredados */
.grad,
.net-accent,
.cw-accent,
.sec-accent {
  color: var(--acc);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.16rem);
  max-width: 62ch;
  margin: 0 0 26px;
}
.lead strong { color: var(--fg); font-weight: 600; }

/* --- Botones (unifica .cta y .btn de las tres familias) ------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 0 0 6px;
}

.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: #fff;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s, background .18s;
}
.cta:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--acc);
  background: var(--surface);
  color: #fff;
}

.cta:not(.ghost),
.btn-primary {
  border-color: transparent;
  background: var(--acc);
  color: var(--acc-ink);
  font-weight: 700;
}
.cta:not(.ghost):hover,
.btn-primary:hover {
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 10px 30px -12px var(--acc);
}

.cta.ghost,
.btn:not(.btn-primary) { color: var(--fg); }

/* --- Secciones ----------------------------------------------------------- */
/* .blk existe en /resenas/; las otras dos familias usan <section> pelado */
.blk,
main > section:not(.hero) {
  position: relative;
  padding: var(--step) 0 0;
  margin-top: var(--step);
  border-top: 1px solid var(--line);
}

/* FIRMA · espina de acento en el borde de cada sección */
.blk::before,
main > section:not(.hero)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--acc);
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.42rem, 2.6vw, 1.78rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: #fff;
  text-wrap: balance;
}

h3 {
  font-family: var(--display);
  font-size: 1.09rem;
  font-weight: 650;
  letter-spacing: -.008em;
  margin: 26px 0 7px;
  color: #fff;
}

/* --- Tarjetas (rejilla con ritmo, no 4 cajas iguales) -------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0 4px;
}

.card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 26px;
  height: 2px;
  background: var(--acc);
  opacity: .55;
  transition: width .25s var(--ease), opacity .2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card:hover::before { width: 52px; opacity: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }

/* Ritmo: la primera tarjeta ocupa el ancho completo y abre el bloque */
.grid > .card:first-child { grid-column: 1 / -1; }

/* --- Listas de contenido (.net-uses, .cw-list, .sec-list) ----------------- */
.net-uses,
.cw-list,
.sec-list {
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.net-uses li,
.cw-list li,
.sec-list li {
  position: relative;
  padding: 11px 16px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: .98rem;
}
.net-uses li::before,
.cw-list li::before,
.sec-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--acc);
}
.net-uses li strong,
.cw-list li strong,
.sec-list li strong { color: var(--fg); }

/* Listas numeradas de "Cómo funciona": el orden SÍ es información */
main ol {
  counter-reset: step;
  list-style: none;
  margin: 16px 0 4px;
  padding: 0;
  display: grid;
  gap: 9px;
}
main ol li {
  counter-increment: step;
  position: relative;
  padding: 11px 16px 11px 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
}
main ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--acc);
}

/* --- Tabla de precios (dato como material de diseño) --------------------- */
.tbl-wrap {
  margin: 18px 0 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.price-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: .96rem;
}
.price-table thead th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .028);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
.price-table thead th:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.price-table td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: baseline;
}
.price-table tbody tr:first-child td { border-top: 0; }
.price-table td:first-child { color: var(--fg); font-weight: 600; }
/* Cifras en mono y tabulares: la columna de precio se lee como una lista */
.price-table td:nth-child(2),
.price-table td:nth-child(3) {
  font-family: var(--mono);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table td:last-child { color: var(--acc); font-weight: 600; }
.price-table tbody tr { transition: background .16s; }
.price-table tbody tr:hover { background: rgba(255, 255, 255, .022); }

/* --- FAQ ----------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 17px;
  margin: 0 0 9px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  position: relative;
  padding: 14px 34px 14px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--acc);
  border-bottom: 2px solid var(--acc);
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 14px; margin: 0; color: var(--muted); }

/* --- Enlaces relacionados ------------------------------------------------ */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}
.related a {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.related a:hover {
  transform: translateY(-1px);
  border-color: var(--acc);
  background: var(--surface-2);
  color: #fff;
}
section.related { display: flex; }

/* --- Pie ----------------------------------------------------------------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--step) + 10px);
  padding: 22px 20px 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}
footer a {
  margin: 0 7px;
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: #fff; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .grid > .card:first-child { grid-column: auto; }
  .hero h1 { max-width: none; }
  .cta, .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  main { padding-left: 15px; padding-right: 15px; }
  .price-table { min-width: 340px; }
}

/* --- Accesibilidad ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .cta:hover, .btn:hover, .card:hover, .related a:hover { transform: none; }
}
