/* ZZ Mate — portada pública (templates/core/home.html). Todo bajo .land-*
   para no chocar con el resto del design system. */

html { scroll-behavior: smooth; }
.land { width: 100%; padding: 0; }
.land section[id] { scroll-margin-top: 64px; }
.land h1, .land h2, .land h3 { text-wrap: balance; }
.land-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.land h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); margin: 0 0 14px; letter-spacing: -.01em; }
.land h3 { font-size: 1.5rem; margin: 6px 0 12px; }
.land-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700;
  color: var(--gold-text); margin-bottom: 12px;
}
.land-btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- Hero ---------- */
.land-hero {
  position: relative; overflow: hidden; padding: 64px 0 40px;
  background:
    radial-gradient(ellipse 60% 70% at 88% 18%, #dcebe2 0%, rgba(220, 235, 226, 0) 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, #f1e6cf 0%, rgba(241, 230, 207, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.land-hero::before {
  /* Damero tenue de fondo, se desvanece hacia la izquierda. */
  content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(rgba(15, 107, 79, .05) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  pointer-events: none;
}
.land-hero-grid {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.land-hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; margin: 0 0 22px; letter-spacing: -.02em;
}
.land-hero h1 em { font-style: italic; color: var(--accent); }
.land-lead { font-size: 1.18rem; line-height: 1.6; color: #3d3a33; max-width: 34em; margin: 0 0 30px; }
.land-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.land-ctas .btn-ghost { background: rgba(255, 255, 255, .6); }
.land-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .93rem; }
.land-checks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 7px; }

.land-try {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 60px -28px rgba(18, 55, 38, .35), 0 2px 6px rgba(20, 20, 15, .05);
  max-width: 500px; width: 100%; justify-self: end;
}
.land-try-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.land-badge {
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.land-try-title { color: var(--muted); font-size: .95rem; }
.land-try-title strong { color: var(--text); }
.land-board { max-width: none; border-radius: 10px; }
.land-try-status { margin-top: 14px; min-height: 3em; font-size: .97rem; color: var(--muted); }
.land-try-status.ok { color: var(--accent); font-weight: 600; }
.land-try-status.bad { color: var(--danger); }
.land-try-actions { display: flex; gap: 10px; margin-top: 4px; }
.land-try-actions[hidden], #demo-cta[hidden] { display: none; }

.land-stats {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 52px 0 0; padding: 26px 0 0; border-top: 1px solid var(--border); gap: 18px;
}
.land-stats div { margin: 0; }
.land-stats dt { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #123726; line-height: 1.1; }
.land-stats dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Secciones ---------- */
.land-sec { padding: 96px 0; }
.land-tint { background: #f4efe3; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.land-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.land-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.land-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.land-pains blockquote {
  margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: #2d2b25;
  position: relative;
}
.land-pains blockquote::before {
  content: "✕"; position: absolute; top: -13px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: #f6e3e2; color: var(--danger); font: 700 .8rem/26px var(--font); text-align: center;
}
.land-bridge { text-align: center; font-size: 1.2rem; max-width: 700px; margin: 44px auto 0; color: #3d3a33; }
.land-bridge strong { color: var(--accent); }

.land-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.land-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.land-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.03rem; line-height: 1.55; color: #3d3a33; }
.land-steps li strong { color: var(--text); }
.land-steps span {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  font: 700 1.05rem/38px var(--serif); text-align: center;
}

/* ---------- Tarjetas ilustrativas ---------- */
.land-vis {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  box-shadow: 0 24px 50px -30px rgba(18, 55, 38, .35);
}
.land-vis-cap { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.land-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.land-srs-count { font-family: var(--serif); font-size: 1.3rem; }
.land-srs-count b { font-size: 2.4rem; color: var(--accent); margin-right: 6px; }
.land-srs-q { margin: 14px 0 16px; color: #3d3a33; }
.land-srs-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.land-srs-btns div { border-radius: 12px; padding: 11px 6px; text-align: center; border: 1px solid; }
.land-srs-btns b { display: block; font-size: .92rem; }
.land-srs-btns small { color: var(--muted); font-size: .76rem; }
.land-srs-btns .again { background: #fbeceb; border-color: #f0cfcd; color: var(--danger); }
.land-srs-btns .hard { background: #fbf3e4; border-color: #ecdab6; color: #8a6a35; }
.land-srs-btns .good { background: #e6f2ec; border-color: #c5e0d2; color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.land-srs-btns .easy { background: #eaf0f7; border-color: #cfdcec; color: #3c5f86; }
.land-srs-curve { margin-top: 22px; color: var(--accent); }
.land-srs-curve svg { width: 100%; height: 80px; display: block; }
.land-srs-curve span { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }

.land-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.land-feat.rev .land-feat-txt { order: 2; }
.land-feat-txt p { font-size: 1.06rem; line-height: 1.65; color: #3d3a33; margin: 0; }
.land-feat-txt h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.land-feat-txt em { color: var(--accent); }
.land-kicker { font-weight: 700; color: var(--accent); font-size: .95rem; }

.land-rating { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.land-rating span { color: var(--muted); }
.land-rating b { font-family: var(--serif); font-size: 2.3rem; }
.land-rating em { font-style: normal; color: var(--accent); font-weight: 700; font-size: .9rem; }
.land-bars { display: grid; gap: 12px; }
.land-bars div { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 12px; font-size: .92rem; }
.land-bars i, .land-ops i { position: relative; display: block; height: 9px; border-radius: 99px; background: var(--bg-elev); overflow: hidden; }
.land-bars i::after, .land-ops i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 99px; }
.land-bars .weak i::after { background: var(--gold); }
.land-bars b { text-align: right; }

.land-route-map { width: 100%; height: auto; display: block; }
/* Tu Torneo: las rondas en fila (la 3 y la 6, decisivas) */
.land-rounds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 14px; }
.land-rounds span { display: grid; place-items: center; gap: 2px; min-height: 64px; border-radius: 10px; border: 2px solid var(--border); background: #fff; font: 700 1.2rem/1 var(--serif); color: var(--muted); }
.land-rounds small { font: 600 .62rem/1.1 var(--font); text-align: center; }
.land-rounds .ok { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.land-rounds .now { border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.land-rounds .dec:not(.ok) { border-style: dashed; }
.land-route-map .track { fill: none; stroke: var(--border); stroke-width: 5; stroke-dasharray: 2 10; stroke-linecap: round; }
.land-route-map .done { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.land-route-map .st { fill: #fff; stroke: var(--border); stroke-width: 3; }
.land-route-map .st.on { fill: var(--accent); stroke: var(--accent); }
.land-route-map .st.now { fill: var(--gold); stroke: #fff; stroke-width: 4; }
.land-route-map text { font-size: 13px; fill: var(--muted); font-family: var(--font); }
.land-phases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.land-phases span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted); }
.land-phases .ok { background: #e6f2ec; border-color: #c5e0d2; color: var(--accent); }
.land-phases .cur { border-color: var(--gold); color: #8a6a35; font-weight: 700; }

.land-bots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.land-bots div {
  display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
}
.land-bots i {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; background: #e4efe8; color: var(--accent);
  font: 700 .85rem/42px var(--font); text-align: center; font-style: normal;
}
.land-bots small { color: var(--muted); font-size: .78rem; }
.land-bots .boss { background: linear-gradient(135deg, #17170f, #123726); border-color: transparent; color: #f4efe4; }
.land-bots .boss i { background: var(--gold); color: #17170f; }
.land-bots .boss small { color: #c9c3ad; }

.land-ops { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.land-ops li { display: grid; grid-template-columns: 1fr 64px; gap: 6px 12px; align-items: center; font-size: .93rem; }
.land-ops li span { grid-column: 1 / -1; color: var(--muted); }
.land-ops li span b { color: var(--text); }
.land-ops small { text-align: right; font-weight: 700; }

.land-end { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.land-mini { max-width: 200px; border-radius: 8px; }
.land-toast { border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-top: 10px; }
.land-toast.bad { background: #fbeceb; color: var(--danger); border: 1px solid #f0cfcd; }
.land-toast.good { background: #e6f2ec; color: var(--accent); border: 1px solid #c5e0d2; }

.land-line { width: 100%; height: 120px; display: block; }
.land-line .area { fill: #e6f2ec; }
.land-line .ln { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.land-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.land-kpis div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.land-kpis b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.land-kpis small { color: var(--muted); }

.land-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.land-more div { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--bg-card); }
.land-more b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.land-more span { color: var(--muted); font-size: .93rem; }

/* ---------- Para quién ---------- */
.land-who { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.land-who h2 { margin: 0; }
.land-yes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.land-yes li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; font-size: 1.02rem; }
.land-yes li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 .75rem/22px var(--font); text-align: center;
}

/* ---------- Precios ---------- */
.land-toggle { display: flex; justify-content: center; gap: 4px; margin: -24px auto 34px; background: var(--bg-elev); border-radius: 999px; padding: 4px; width: max-content; }
.land-toggle button { border: none; background: none; padding: 9px 20px; border-radius: 999px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; }
.land-toggle button.on { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 4px rgba(20, 20, 15, .12); }
.land-toggle em { font-style: normal; color: var(--accent); font-size: .8rem; margin-left: 4px; }
.land-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.land-plan { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; }
.land-plan.best { border: 2px solid var(--accent); box-shadow: 0 30px 60px -32px rgba(18, 55, 38, .5); }
.land-plan-tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.land-plan h3 { margin: 0; }
.land-amount { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; margin-top: 10px; line-height: 1.1; }
.land-per { color: var(--muted); margin-bottom: 18px; }
.land-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.land-plan li { padding-left: 26px; position: relative; }
.land-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.land-fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.land-pay { text-align: center; color: var(--muted); font-size: .92rem; margin: 28px 0 0; }

/* ---------- Preguntas ---------- */
.land-faq-wrap .land-head { margin-bottom: 36px; }
.land-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.land-faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.land-faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; font-size: 1.04rem; position: relative; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.land-faq details[open] summary::after { content: "−"; }
.land-faq details p { margin: 0 0 18px; color: #3d3a33; line-height: 1.6; }

/* ---------- Cierre ---------- */
.land-final {
  padding: 96px 0; text-align: center; color: #f4efe4; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #17170f 0%, #123726 100%);
}
.land-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(244, 239, 228, .045) 0 25%, transparent 0 50%) 0 0 / 64px 64px;
}
.land-final .land-in { position: relative; }
.land-final h2 { color: #f4efe4; font-size: clamp(2rem, 4vw, 3rem); }
.land-final p { color: #c9c3ad; font-size: 1.15rem; margin: 0 0 30px; }
.land-btn-light { background: #f4efe4; color: #123726; }
.land-final-sub { margin-top: 18px; color: #c9c3ad; font-size: .92rem; }
.land-final-sub a { color: #e7d3a8; }

/* El footer legal de base.html, pegado al cierre. */
.land + .footer { background: #f4efe3; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .land-hero-grid, .land-split, .land-feat, .land-who { grid-template-columns: 1fr; gap: 36px; }
  .land-try { justify-self: start; max-width: 520px; }
  .land-feat.rev .land-feat-txt { order: 0; }
  .land-feat { margin-bottom: 72px; }
  .land-pains, .land-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .land-in { padding: 0 16px; }
  .land-hero { padding: 36px 0 28px; }
  .land-sec { padding: 64px 0; }
  .land-lead { font-size: 1.05rem; }
  .land-ctas .btn { flex: 1 1 100%; }
  .land-pains, .land-more, .land-bots, .land-plans { grid-template-columns: 1fr; }
  .land-srs-btns { grid-template-columns: 1fr 1fr; }
  .land-bars div { grid-template-columns: 110px 1fr 40px; font-size: .85rem; }
  .land-end { grid-template-columns: 1fr; }
  .land-mini { max-width: 220px; }
  .land-vis { padding: 20px; }
  .land-stats dt { font-size: 1.6rem; }
  .land-stats { grid-template-columns: 1fr 1fr; }
}
