/* Orbypus · página de planes. Usa los tokens de styles.css (claro/oscuro); aquí solo lo propio de esta página. */
body.pricing { overflow-x: clip; }
.pricing .p-hero { padding: 150px 0 40px; text-align: center; }
.pricing .p-hero h1 { margin: 20px auto 0; max-width: 17ch; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.pricing .p-hero .lede { margin: 24px auto 0; max-width: 62ch; }
.pricing .p-note { margin: 18px auto 0; max-width: 64ch; text-align: center; font-size: 13.5px; color: var(--muted); }
.pricing .btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ── Interruptor mensual / anual ── */
.bill { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 36px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(10px); }
.bill .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(180deg, #5b9dff, var(--blue-2)); box-shadow: 0 8px 26px -8px rgba(59, 130, 255, 0.9); transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
.bill[data-on="anual"] .thumb { transform: translateX(100%); }
.bill button { position: relative; z-index: 1; min-width: 150px; height: 46px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color 0.25s; white-space: nowrap; }
.bill button[aria-pressed="true"] { color: #fff; }
.bill button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.bill em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.18); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.4); }
.bill button[aria-pressed="true"] em { background: rgba(255, 255, 255, 0.22); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ── Tarjetas de plan ── */
.p-plans { padding: 28px 0 70px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { position: relative; display: grid; gap: 16px; padding: 12px 12px 24px; border-radius: 30px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(14px); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.3s; }
.plan::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 157, 255, 0.16), transparent 60%); }
@media (hover: hover) { .plan:hover { transform: translateY(-6px); border-color: rgba(120, 175, 255, 0.55); } .plan:hover::after { opacity: 1; } }
.plan > :not(.art) { margin-inline: 14px; }
.plan.pop { border: 1px solid transparent; background: linear-gradient(var(--win-b), var(--win-b)) padding-box, linear-gradient(140deg, #6aa5ff, #38d0ff 45%, #6366f1) border-box; box-shadow: 0 40px 90px -30px rgba(59, 130, 255, 0.65), 0 0 0 1px rgba(56, 208, 255, 0.08); }
.plan.rec { animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(56, 208, 255, 0.0); } 50% { box-shadow: 0 0 0 5px rgba(56, 208, 255, 0.35), 0 30px 80px -30px rgba(56, 208, 255, 0.6); } }

.plan .art { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 1 / 0.92; color: #fff; isolation: isolate; background: radial-gradient(120% 90% at 85% 0%, rgba(59, 130, 255, 0.45), transparent 55%), linear-gradient(165deg, #0e1c46, #050b1d 85%); }
.plan.pop .art { background: radial-gradient(90% 80% at 20% 0%, #8fd2ff, transparent 60%), radial-gradient(100% 90% at 100% 100%, #6366f1, transparent 60%), linear-gradient(150deg, #2563eb, #1d4ed8 55%, #0b2a8a); }
.plan .art::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.plan .orbs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.plan .orbs .o { fill: none; stroke: rgba(170, 205, 255, 0.5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plan .orbs .o:nth-of-type(even) { stroke-dasharray: 4 7; }
.plan .orbs .s { fill: #fff; filter: drop-shadow(0 0 5px #38d0ff) drop-shadow(0 0 12px rgba(56, 208, 255, 0.9)); }
.plan .art-top { position: absolute; z-index: 2; left: 18px; right: 18px; top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.plan .art-top h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }
.plan .badge { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.plan .art-bot { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; }
.plan .price { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: baseline; gap: 3px; font-family: var(--display); }
.plan .price .cur { font-size: 1.5rem; font-weight: 700; opacity: 0.85; }
.plan .price b { font-size: clamp(1.9rem, 2.5vw, 2.45rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price b.medida { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.plan .price small { font-family: var(--body); font-size: 0.95rem; opacity: 0.8; }
.plan .sub { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.plan .sub s { opacity: 0.7; }
.plan .sub b { font-weight: 700; color: #fff; }

.plan .frase { color: var(--text-2); font-size: 15px; min-height: 4.2em; }
.plan .cta { width: 100%; justify-content: center; }
.plan .cifras { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan .cifras li { padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.plan .cifras b { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.plan .inc-t { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan .feats { list-style: none; padding: 0; margin-top: -6px; }
.plan .feats li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; color: var(--text-2); }
.plan .feats li:last-child { border-bottom: 0; }
.plan .feats svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); stroke-width: 2.6; }

/* ── Buscador de plan ── */
.p-finder { padding: 20px 0 90px; }
.finder { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 36px; border-radius: 32px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(14px); }
.finder h2 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.08; }
.finder .fl > p { margin-top: 12px; color: var(--text-2); }
.finder label { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; margin-top: 26px; font-weight: 600; color: var(--text-2); }
.finder output { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.finder input[type="range"] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) var(--p, 30%), var(--track) var(--p, 30%)); outline: none; cursor: pointer; }
.finder input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 16px rgba(59, 130, 255, 0.6); transition: transform 0.2s; }
.finder input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 16px rgba(59, 130, 255, 0.6); }
.finder input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.finder input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(56, 208, 255, 0.35); }
.finder .fr { position: relative; overflow: hidden; display: grid; align-content: center; gap: 8px; padding: 30px; border-radius: 24px; color: #fff; background: radial-gradient(100% 90% at 0% 0%, rgba(99, 140, 255, 0.55), transparent 60%), linear-gradient(160deg, #10215a, #050b1d); border: 1px solid rgba(160, 185, 255, 0.28); }
.finder .fr-orb { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8fd2ff 30%, #2563eb 75%); opacity: 0.55; filter: blur(2px); box-shadow: 0 0 80px 20px rgba(56, 130, 255, 0.5); animation: orb 9s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-16px, 14px) scale(1.06); } }
.finder .fr > * { position: relative; }
.finder .fr small { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #b9cdf7; }
.finder .rname { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; background: linear-gradient(100deg, #fff, #9be7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finder .rprice { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.finder .rprice b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.finder .rprice small { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 0.95rem; color: #c9d8fb; }
.finder .fr p { color: #d4e1ff; font-size: 14.5px; }
.finder .fr .btn { margin-top: 8px; justify-self: start; }

/* ── Tabla comparativa ── */
.p-compare { padding: 20px 0 90px; }
.p-compare .head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.matrix-wrap { margin-top: 38px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--panel); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; text-align: center; font-size: 15px; }
.matrix th, .matrix td { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.matrix thead th { position: sticky; top: 66px; z-index: 6; padding-top: 20px; padding-bottom: 18px; background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); vertical-align: top; border-bottom: 1px solid var(--line-2); }
.matrix thead th:first-child { border-top-left-radius: 28px; text-align: left; }
.matrix thead th:last-child { border-top-right-radius: 28px; }
.matrix thead th b { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.02em; }
.matrix thead th small { display: block; margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.matrix .corner span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.matrix tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--text-2); width: 32%; }
.matrix .pop { background: rgba(59, 130, 255, 0.07); }
.matrix thead .pop { background: linear-gradient(var(--nav-bg), var(--nav-bg)), rgba(59, 130, 255, 0.2); box-shadow: inset 0 3px 0 var(--blue); }
.matrix .grp th { padding: 0; background: var(--panel-2); border-bottom: 1px solid var(--line-2); text-align: left; }
.matrix .grp button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.matrix .grp button:hover { color: var(--accent); }
.matrix .grp button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.matrix .grp svg { width: 18px; height: 18px; transition: transform 0.3s; }
.matrix .grp button[aria-expanded="false"] svg { transform: rotate(-90deg); }
.matrix .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(56, 208, 255, 0.14); color: var(--accent); }
.matrix .yes svg { width: 14px; height: 14px; stroke-width: 3; }
.matrix .no { color: var(--muted); opacity: 0.6; }
.matrix .val { font-weight: 600; color: var(--text); font-size: 14.5px; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:not(.grp):hover th, .matrix tbody tr:not(.grp):hover td { background: var(--panel-2); }

/* ── Extras y nota de Meta ── */
.p-extra { padding: 0 0 90px; }
.p-extra .head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.extras article { padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); transition: transform 0.3s, border-color 0.3s; }
.extras article:hover { transform: translateY(-4px); border-color: rgba(120, 175, 255, 0.5); }
.extras .ex-p { display: block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; }
.extras .ex-p small { font-family: var(--body); font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-left: 4px; }
.extras h3 { margin-top: 14px; font-size: 1.08rem; font-weight: 700; }
.extras p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.meta-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 22px 26px; border-radius: 22px; border: 1px solid rgba(56, 208, 255, 0.35); background: linear-gradient(120deg, rgba(56, 208, 255, 0.09), transparent 70%); }
.meta-note svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
.meta-note p { color: var(--text-2); font-size: 15.5px; }
.meta-note b { color: var(--text); }

/* ── Empresa ── */
.p-ent { padding: 0 0 90px; }
.ent { position: relative; overflow: hidden; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 30px; padding: 44px; border-radius: 36px; border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 0% 50%, rgba(59, 130, 255, 0.28), transparent 60%), var(--panel); }
.ent-art { position: relative; aspect-ratio: 1; max-width: 320px; width: 100%; justify-self: center; }
.ent-art i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px solid rgba(160, 200, 255, 0.5); animation: spin 40s linear infinite; }
.ent-art i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #38d0ff, 0 0 24px rgba(56, 208, 255, 0.9); }
.ent-art .r1 { width: 100%; height: 100%; transform: rotate(-12deg) scaleY(0.42); }
.ent-art .r2 { width: 78%; height: 78%; border-style: dashed; animation-duration: 26s; animation-direction: reverse; }
.ent-art .r3 { width: 56%; height: 56%; animation-duration: 18s; }
.ent-art .core { width: 22%; height: 22%; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #8fd2ff 35%, #2563eb); box-shadow: 0 0 50px 12px rgba(56, 130, 255, 0.55); animation: none; }
.ent-art .core::after { display: none; }
@keyframes spin { to { rotate: 360deg; } }
.ent-copy h2 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.ent-copy p { margin: 16px 0 26px; color: var(--text-2); max-width: 56ch; }

/* ── Cierre ── */
.p-final { padding: 0 0 110px; }
.pf { position: relative; overflow: hidden; text-align: center; padding: 70px 24px; border-radius: 36px; border: 1px solid var(--line-2); background: radial-gradient(70% 140% at 50% 120%, rgba(59, 130, 255, 0.5), transparent 70%), var(--panel); }
.pf h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.05; }
.pf p { margin: 16px auto 28px; max-width: 52ch; color: var(--text-2); font-size: 1.1rem; }

/* ── Adaptable ── */
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; padding: 26px; }
  .ent { grid-template-columns: 1fr; padding: 30px; }
  .ent-art { max-width: 220px; }
  /* en pantallas angostas la tabla se desliza de lado y la primera columna queda fija */
  .matrix-wrap { overflow-x: auto; }
  .matrix { min-width: 760px; }
  .matrix thead th { position: static; }
  .matrix tbody th[scope="row"], .matrix thead th:first-child { position: sticky; left: 0; z-index: 3; background: var(--bg-2); }
  .matrix .grp th { position: static; background: var(--panel-2); }
}
@media (max-width: 700px) {
  .pricing .p-hero { padding-top: 120px; }
  .plans, .extras { grid-template-columns: 1fr; }
  .bill button { min-width: 0; padding: 0 14px; font-size: 14px; }
  .bill em { display: none; }
  .meta-note { flex-direction: column; }
  .plan .frase { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .plan, .plan.rec, .finder .fr-orb, .ent-art i, .bill .thumb { animation: none !important; transition: none !important; } }

/* Planes en la barra y el plan que recomienda el buscador */
.plan-chip { margin: -4px 0 0; justify-self: start; padding: 5px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(59, 130, 255, 0.16); border: 1px solid rgba(59, 130, 255, 0.4); color: var(--accent); }
.plan-chip[hidden] { display: none; }
