/* ══════════════════════════════════════════════════════════════
   producto.css — páginas /productos/*  (DEC-398)

   Consume tokens.css. NO redefine color ni tipografía: si algo
   hay que cambiar de marca, se cambia en tokens.css y esto sigue.
   ══════════════════════════════════════════════════════════════ */

/* ── Barra de utilidad ─────────────────────────────────────── */
.util-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.util-inner {
  display: flex; gap: 1.25rem; align-items: center;
  justify-content: flex-end; min-height: 38px; flex-wrap: wrap;
}
.util-bar a, .util-btn {
  color: var(--muted); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  font: inherit; padding: .25rem 0;
}
.util-bar a:hover, .util-btn:hover { color: var(--primary); }
.util-btn[aria-pressed="true"] { color: var(--primary); font-weight: 600; }

/* ── Nav: submenú de productos ─────────────────────────────── */
.has-menu { position: relative; }
.has-menu > a::after { content: " ▾"; font-size: .8em; opacity: .7; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px); box-shadow: 0 12px 32px rgba(0,0,0,.10);
  padding: .5rem; margin: .35rem 0 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.submenu a:hover { background: var(--highlight); color: var(--primary); }
.submenu a[data-soon]::after {
  content: "en desarrollo"; display: inline-block; margin-left: .5rem;
  font-size: .7rem; color: var(--warning); background: var(--warning-bg);
  padding: .05rem .4rem; border-radius: 999px; vertical-align: middle;
}
.nav-cta { display: flex; gap: .6rem; align-items: center; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .7rem 1.35rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: .95rem;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hero ──────────────────────────────────────────────────── */
.p-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 4rem 0 3.25rem; }
.p-eyebrow {
  text-transform: uppercase; letter-spacing: .09em; font-size: .74rem;
  font-weight: 700; color: var(--primary); margin: 0 0 .9rem;
}
.p-hero h1 {
  font-family: 'Satoshi', Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 .9rem; color: var(--text);
}
.p-promesa { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); margin: 0 0 1.9rem; max-width: 46ch; }
.p-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Cuerpo ────────────────────────────────────────────────── */
.p-body { padding: 3rem 0 4rem; max-width: 760px; }
.p-sec { margin-bottom: 3rem; }
.p-sec h2 {
  font-family: 'Satoshi', Inter, system-ui, sans-serif;
  font-size: 1.5rem; margin: 0 0 .9rem; color: var(--text);
}
.p-lead { font-size: 1.05rem; line-height: 1.65; color: var(--muted); margin: 0 0 1rem; }

.p-pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.p-pasos li { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: start; }
.p-num {
  grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--highlight); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.p-pasos strong { color: var(--text); }
.p-pasos span:not(.p-num) { color: var(--muted); line-height: 1.55; }

.p-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.p-list li { padding-left: 1.6rem; position: relative; color: var(--muted); line-height: 1.55; }
.p-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.p-list--no li::before { content: "—"; color: var(--warning); }

/* Sección de límites: es la que da credibilidad, se marca visualmente */
.p-sec--limite {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem 1.5rem;
}

.p-precio-cifra {
  font-family: 'Satoshi', Inter, system-ui, sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 0 0 .5rem;
}

.p-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.p-chips a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: .9rem;
}
.p-chips a:hover { border-color: var(--primary); color: var(--primary); }
.chip-soon { color: var(--warning); font-size: .72rem; }

.p-footer {
  border-top: 1px solid var(--border); background: var(--surface-2);
  padding: 2rem 0; color: var(--muted); font-size: .9rem;
}
.p-footer a { color: var(--muted); }

/* ── Alto contraste ────────────────────────────────────────── */
:root[data-contrast="high"] {
  --muted: #2B2723;
  --border: #6F6A63;
  --primary: #0A4F4A;
  --surface-2: #FFFFFF;
}
:root[data-contrast="high"] .p-lead,
:root[data-contrast="high"] .p-list li { color: var(--muted); }

@media (max-width: 720px) {
  .nav-cta .btn-ghost { display: none; }
  .p-body { padding: 2rem 0 3rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: .5rem; }
}

/* ── Tablas de precios ─────────────────────────────────────── */
.p-tabla-wrap { overflow-x: auto; }
.p-tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.p-tabla th, .p-tabla td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.p-tabla th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.p-tabla .td-k { font-weight: 600; color: var(--text); }
.p-tabla tbody tr:hover { background: var(--surface-2); }
.p-pie { font-size: .92rem; margin-top: .9rem; }
