/* ANVAR Studio — /precios. Se carga después de legal.css (tokens, header, footer, botones y .plans-table). */

:root { --on-ink-accent: #AEB7FF; --ok-ink: #157A42; }

.btn-lg { --bh: 54px; padding: 0 26px; font-size: 17px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 20px -10px rgba(0, 0, 0, .5); }
@media (hover: hover) { .btn-light:hover { background: #EEF0FF; } }

.link { color: var(--cobalt); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }
.fine { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.fine a, .block p a:not(.btn), .dots a, .no-list a { color: var(--cobalt); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Migas ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before {
  content: ""; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6l6 6-6 6' fill='none' stroke='%236B6B8C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: inherit; text-underline-offset: 3px; }
.crumbs a[aria-current="page"] { color: var(--ink); font-weight: 500; text-decoration: none; }

/* ---------- La lista completa (pizarra) ---------- */
.board {
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: var(--r-panel);
  background: var(--ink); color: #fff;
  box-shadow: var(--sh-2);
}
.board :focus-visible { outline-color: var(--on-ink-accent); }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.board-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.01em; }
.board-head p { font-size: 15px; color: rgba(255, 255, 255, .72); }

.board-table { width: 100%; margin-top: clamp(14px, 2vw, 22px); border-collapse: collapse; }
.board-table th, .board-table td { padding: 16px 14px; text-align: left; vertical-align: baseline; }
.board-table th:first-child { padding-left: 0; }
.board-table tr > :last-child { padding-right: 0; }
.board-table thead th { font-size: 14px; font-weight: 500; line-height: 1.35; color: rgba(255, 255, 255, .66); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.board-table tbody tr + tr > * { border-top: 1px solid rgba(255, 255, 255, .1); }
.board-table tbody th { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.board-table tbody th a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { .board-table tbody th a:hover { text-decoration-color: #fff; } }
.board-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-table td.num { font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.board-table .pick { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--on-ink-accent); }
.board-table .sale { font-size: inherit; padding: 2px 8px; }

.board-notes { margin-top: clamp(14px, 2vw, 20px); padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 6px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.board-notes a { color: #fff; font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* En pantallas angostas cada plan se lee como una ficha: etiqueta a la izquierda, monto a la derecha */
@media (max-width: 760px) {
  .board-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .board-table, .board-table tbody, .board-table tr, .board-table th, .board-table td { display: block; }
  .board-table tbody tr { padding: 16px 0 10px; }
  .board-table tbody tr + tr { border-top: 1px solid rgba(255, 255, 255, .14); }
  .board-table tbody tr + tr > * { border-top: 0; }
  .board-table tbody th, .board-table td { padding: 0; }
  .board-table tbody th { margin-bottom: 8px; }
  .board-table td.num { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; font-size: 18px; }
  .board-table td.num::before { content: attr(data-label); font-size: 15px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
}

/* ---------- Saltos ---------- */
.jump { margin-top: clamp(22px, 3vw, 32px); }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--panel);
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) { .jump a:hover { color: var(--ink); background: #E7E9F0; } }
.jump a:active { transform: scale(.97); }

/* ---------- Bloques ---------- */
.block { padding-top: clamp(52px, 6.5vw, 80px); }
.block h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.1; letter-spacing: -.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.block > p, .block > ul, .block > ol, .block > div, .block > .btn { margin-top: 16px; }
.block > p { line-height: 1.7; }
.block-lead { max-width: 64ch; color: var(--ink-2); font-size: 18px; }
.prose { max-width: 72ch; }

.dots { display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 22px; line-height: 1.65; }
.dots li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }

/* Sí / no con ícono y texto, nunca solo color */
.yes-list, .no-list { display: grid; gap: 9px; }
.yes-list li, .no-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; }
.yes-list li::before, .no-list li::before, .cmp td::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px;
  background: center / contain no-repeat;
}
.yes-list li::before, .cmp td.si::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%231E9E57' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.no-list li::before, .cmp td.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%236B6B8C' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.no-list li { color: var(--ink-2); }
.no-list strong { color: var(--ink); }
.block > .no-list li { font-size: 16.5px; line-height: 1.6; }
.block > .no-list li + li { margin-top: 2px; }

/* ---------- Planes ---------- */
.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-panel);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.plan h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 400; }
.plan-for { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }
.plan-pick { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--on-ink-accent); }
.plan-price { margin: 18px 0 0; }
.plan-price div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; box-shadow: 0 -1px 0 var(--line); }
.plan-price dt { font-size: 14.5px; color: var(--ink-2); }
.plan-price dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.plan-price div:first-child { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0; box-shadow: none; }
.plan-price div:first-child dd { order: -1; text-align: left; font-size: clamp(36px, 3.3vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.plan-price div:last-child { flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-price div:last-child dd { text-align: left; font-size: 14.5px; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.plan h4 { margin-top: 22px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.plan .yes-list li.is-base { font-weight: 600; }
.plan-cta { margin-top: auto; width: 100%; white-space: normal; text-align: center; }
.plan .no-list { margin-bottom: 26px; }

.plan-featured { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.plan-featured :focus-visible { outline-color: var(--on-ink-accent); }
.plan-featured .plan-for, .plan-featured .plan-price dt, .plan-featured .plan-price div:last-child dd, .plan-featured .no-list li { color: rgba(255, 255, 255, .72); }
.plan-featured .plan-price div { box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
.plan-featured .plan-price div:first-child { box-shadow: none; }
.plan-featured .yes-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23AEB7FF' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-featured .no-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%23A3A3C2' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan a:not(.btn) { color: var(--cobalt); font-weight: 500; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

/* ---------- Comparación ---------- */
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
.cmp caption { text-align: left; padding: 16px 20px 4px; font-size: 14.5px; color: var(--ink-2); }
.cmp th, .cmp td { padding: 12px 16px; text-align: left; vertical-align: top; line-height: 1.45; }
.cmp thead th { font-family: var(--serif); font-weight: 400; font-size: 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp thead th:first-child { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.cmp tbody tr + tr > * { border-top: 1px solid var(--line); }
.cmp tbody th { font-weight: 500; }
.cmp th:first-child { padding-left: 20px; width: 46%; }
.cmp td { position: relative; padding-left: 44px; white-space: nowrap; }
.cmp td::before { left: 16px; top: 13px; }
.cmp td.si { font-weight: 600; color: var(--ok-ink); }
.cmp td.no { color: var(--ink-3); }
.table-scroll:focus-visible { outline-offset: 2px; }

/* Tablas de texto (pago anual, WhatsApp) sobre la base de legal.css */
.wa-table tbody th { font-family: var(--sans); font-size: 16px; font-weight: 500; white-space: normal; width: 52%; }
.wa-table td { font-size: 15.5px; }

/* ---------- Cupos fundadores ---------- */
.block.founders-box {
  margin-top: clamp(52px, 6.5vw, 80px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-panel);
  background: var(--cobalt-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.founders-box > .btn { margin-top: 20px; }

/* ---------- Garantía y pasos ---------- */
.guarantee {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 22px; border-radius: 18px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt), var(--sh-1);
}
.guarantee svg { flex-shrink: 0; margin-top: 1px; color: var(--cobalt); }
.guarantee p { font-size: 17.5px; line-height: 1.55; }
.steps-list { counter-reset: paso; display: grid; gap: 10px; }
.steps-list li { position: relative; padding-left: 40px; line-height: 1.6; }
.steps-list li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cobalt-soft); color: var(--cobalt);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1;
}

/* ---------- Próximamente ---------- */
.soon { display: grid; gap: 10px; }
.soon li { padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.soon h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.soon p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1; }

/* ---------- Preguntas ---------- */
.qa { box-shadow: 0 -1px 0 var(--line); }
.qa details { box-shadow: 0 1px 0 var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 10px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2316163A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .22s var(--ease-out);
}
.qa details[open] summary::after { transform: rotate(180deg); }
.qa details p { padding: 0 44px 18px 0; line-height: 1.7; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact {
  margin: clamp(56px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-panel);
  background: var(--ink); color: #fff;
}
.contact :focus-visible { outline-color: var(--on-ink-accent); }
.contact h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; }
.contact p { margin-top: 8px; max-width: 60ch; color: rgba(255, 255, 255, .78); line-height: 1.6; }
.contact p a { color: #fff; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.contact .btn { flex-shrink: 0; }

@media (max-width: 760px) {
  .contact { flex-direction: column; align-items: stretch; }
  .qa details p { padding-right: 0; }
  .block-lead { font-size: 17px; }
  .guarantee { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .jump a:active { transform: none; }
}

@media print {
  .jump, .plan-cta, .contact .btn, .founders-box > .btn { display: none !important; }
  .board, .plan-featured, .contact { background: none !important; color: inherit !important; box-shadow: none; border: 1px solid #ccc; }
  .board-table thead th, .board-notes, .board-head p, .board-table tbody th a, .board-notes a, .contact p, .contact p a,
  .plan-featured .plan-for, .plan-featured .plan-price dt, .plan-featured .no-list li { color: inherit !important; }
  .plan { break-inside: avoid; }
  .qa details > p { display: block; }
}

/* Ventas + IA frente al asistente de Meta: nota bajo los planes (no es una garantía, va sin borde cobalto) */
.meta-note { margin-top: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.meta-note p { font-size: 16px; color: var(--ink-2); }
.meta-note strong { color: var(--ink); }
.fine + .meta-note { margin-top: 20px; }

/* Lo que todavía no existe: rótulo "Próximamente", nunca el check verde de incluido */
.cmp td.pr { color: var(--ink-2); font-weight: 500; }
.cmp td.pr::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%2355557A' stroke-width='2.2'/%3E%3Cpath d='M12 8.6V12l2.4 1.6' fill='none' stroke='%2355557A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.yes-list li.is-soon { color: var(--ink-2); }
.yes-list li.is-soon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%2355557A' stroke-width='2.2'/%3E%3Cpath d='M12 8.6V12l2.4 1.6' fill='none' stroke='%2355557A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.yes-list li.is-soon .tag { margin-right: 4px; vertical-align: 1px; min-height: 22px; font-size: 12.5px; }
/* Acción arriba del pliegue (en el celular la tabla larga empuja todo lo demás) */
.doc-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.doc-cta .link { color: var(--cobalt-press); font-weight: 600; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
