/* =========================================================
   AVENIR FORGE — estilos del sitio
   Cambia los colores de la marca en las variables de :root
   ========================================================= */

:root {
  --ink: #0E1726;          /* azul noche (fondo oscuro) */
  --ink-2: #16233A;
  --ember: #FF5A1F;        /* naranja forja */
  --gold: #FFC24B;         /* dorado chispa */
  --paper: #FBF8F3;        /* fondo claro cálido */
  --text: #1C2433;
  --muted: #5B6577;
  --line: #E6E1D8;
  --white: #FFFFFF;
  --ok: #1E9E62;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 23, 38, .10);
  --max: 1120px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: 80px 0; }
.section--dark { background: var(--ink); color: #E9EDF5; }
.section--dark .muted { color: #A9B3C5; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ember); margin-bottom: .8rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--ember), #FF8A3D); color: var(--white); box-shadow: 0 8px 20px rgba(255, 90, 31, .35); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--wa { background: #25D366; color: #0B3D1E; }
.btn--small { padding: .55rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(14, 23, 38, .92);
  backdrop-filter: blur(8px); color: var(--white);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--gold); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--ink); padding: 1rem 16px 1.4rem; gap: 1rem; display: none;
  }
  .nav.is-open { display: flex; }
}

/* ---------- Portada ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 194, 75, .25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 90, 31, .25), transparent 60%),
    var(--ink);
  color: var(--white); padding: 96px 0 88px; overflow: hidden;
}
.hero p { color: #C9D2E3; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__card {
  background: linear-gradient(160deg, #1B2B47, #0F1A2C); border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero__card .chip { display: inline-block; background: rgba(255,194,75,.15); color: var(--gold); padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.gradient-text { background: linear-gradient(90deg, var(--ember), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section--dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); box-shadow: none; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(255, 90, 31, .12); margin-bottom: 14px;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--white);
  background: linear-gradient(135deg, var(--ember), var(--gold));
}

/* ---------- Precios ---------- */
.price { display: flex; flex-direction: column; }
.price--featured { border: 2px solid var(--ember); position: relative; }
.price--featured .badge { position: absolute; top: -12px; right: 16px; }
.price__amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; margin: .2rem 0 .8rem; }
.price__amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.price li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.badge { display: inline-block; background: var(--ember); color: var(--white); font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em; }

/* ---------- Medios de pago ---------- */
.pay { display: flex; flex-wrap: wrap; gap: 10px; }
.pay span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .95rem;
}
.pay span.soon { opacity: .6; border-style: dashed; }

/* ---------- Preguntas frecuentes ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Llamado final ---------- */
.cta { background: linear-gradient(135deg, var(--ember), #FF8A3D 55%, var(--gold)); color: var(--white); border-radius: 24px; padding: 48px 32px; }
.cta p { color: rgba(255,255,255,.92); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #A9B3C5; padding: 48px 0 32px; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--white); font-family: var(--font-head); margin: 0 0 .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal .todo { background: #FFF3CD; padding: 0 .3rem; border-radius: 4px; }

/* ---------- Herramienta de enlaces ---------- */
.form-grid { display: grid; gap: 16px; }
label { font-weight: 700; display: block; margin-bottom: .35rem; }
input[type="text"], input[type="url"], textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F4EFE7; }
td .link { word-break: break-all; font-size: .85rem; color: var(--muted); }
td:nth-child(2) { white-space: pre-line; }
.table-wrap { margin: 16px 0 24px; }
.btn-row + .hint { margin-top: 1rem; }
/* Menú simple (páginas legales): siempre visible */
.nav.nav--simple { position: static; display: flex; flex-direction: row; background: none; padding: 0; }
.grid--2 { align-items: center; }
/* Tienda de mazos */
.hero__note { font-size: .9rem; color: #A9B3C5; margin-top: 1rem; }
.shot { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.btn-row--center { justify-content: center; margin-top: 28px; }
