/* Los seis planes (Services.md): tarjetas, hub /productos, página de cada plan, garantía y panel. */

/* ---------------------------------------------------------------- tarjeta de plan */
.plan-grid__lead { max-width: 46ch; color: var(--ink); margin: 0; }
.plan-grid .section-head--split { align-items: end; }
.plan-grid__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
@media (max-width: 1023px) { .plan-grid__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .plan-grid__cards { grid-template-columns: 1fr; gap: var(--s-4); } }
.plan-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-2); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg);
  background-color: var(--surface); border: 1px solid transparent; overflow: hidden; transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.plan-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(212 17 95 / .16), transparent); opacity: 0; transition: opacity .4s; }
.plan-card:hover { translate: 0 -4px; border-color: rgb(212 17 95 / .25); box-shadow: 0 30px 60px -32px rgb(20 24 51 / .45); }
.plan-card:hover::after { opacity: 1; }
.plan-card.is-featured { background-color: #141833; color: #f5f5f2; }
.plan-card.is-featured :is(h3, .t-stat) { color: #fff; }
.plan-card.is-featured :is(.plan-card__focus, .plan-card__price small, .plan-card__lvl) { color: rgb(245 245 242 / .72); }
.plan-card.is-featured::after { opacity: .9; }
.plan-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.plan-card__link:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.plan-card__top { display: flex; align-items: center; gap: var(--s-3); }
.plan-card__ic { width: 56px; height: 56px; border-radius: 22%; flex: none; box-shadow: 0 16px 30px -14px rgb(20 24 51 / .6);
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1), scale .4s; }
.plan-card:hover .plan-card__ic { scale: 1.06; }
.plan-card__lvl { font: 500 13px/1 var(--font-mono); color: var(--muted); margin-left: auto; }
.plan-card .badge { position: absolute; top: var(--s-5); right: var(--s-5); }
.plan-card.is-featured .plan-card__lvl { margin-left: auto; margin-right: 120px; }
.plan-card h3 { margin: var(--s-2) 0 0; font-size: var(--t-card); }
.plan-card__focus { margin: 0; color: var(--muted); }
.plan-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: var(--s-2) 0 0; }
.plan-card__price small { color: var(--muted); font-size: 14px; }
.plan-card__price .t-stat { font-size: 28px; }
.plan-card__more { margin-left: auto; align-self: center; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(212 17 95 / .1); color: var(--action); transition: background .3s, color .3s; }
.plan-card:hover .plan-card__more { background: var(--action); color: #fff; }
.plan-card.is-featured .plan-card__more { background: rgb(255 90 152 / .18); color: #ff5a98; }
.plan-card__more svg { transition: translate .3s; }
.plan-card:hover .plan-card__more svg { translate: 4px 0; }

/* ---------------------------------------------------------------- hub /productos: constelación */
.hero--plans .hero__window.orbit { position: relative; overflow: hidden; isolation: isolate; min-height: 340px;
  background: radial-gradient(60% 90% at 50% 0%, rgb(212 17 95 / .28), transparent 70%), url(/img/bg-network.webp) center / cover, #0d1026 !important; }
.orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.orbit__lines polyline { fill: none; stroke: rgb(255 90 152 / .45); stroke-width: .25; stroke-dasharray: 1.2 1.2; vector-effect: non-scaling-stroke; animation: orbit-dash 30s linear infinite; }
@keyframes orbit-dash { to { stroke-dashoffset: -60; } }
.orbit__node { position: absolute; z-index: 1; display: grid; justify-items: center; gap: 6px; translate: -50% -50%; text-decoration: none; color: #fff;
  animation: fx-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
.orbit__node img { width: clamp(64px, 7vw, 112px); height: auto; border-radius: 22%; box-shadow: 0 20px 40px -14px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08);
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, scale .4s; }
.orbit__node:hover img { scale: 1.08; box-shadow: 0 24px 50px -12px rgb(212 17 95 / .7), 0 0 0 1px rgb(255 90 152 / .4); }
.orbit__name { font-weight: 600; font-size: 15px; white-space: nowrap; text-shadow: 0 2px 12px rgb(0 0 0 / .6); }
.orbit__price { font: 500 12px/1 var(--font-mono); color: rgb(255 255 255 / .7); white-space: nowrap; }
@media (max-width: 639px) {
  .hero--plans .hero__window.orbit { min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-2); padding: var(--s-5) var(--s-3); }
  .orbit__node { position: static; translate: none; animation: none; }
  .orbit__lines { display: none; }
  .orbit__name { font-size: 12px; white-space: normal; text-align: center; }
  .orbit__price { display: none; }
}

/* ---------------------------------------------------------------- página de un plan */
.hero--plan .hero__bg { inset: 0 0 0 22%; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: rgb(245 245 242 / .6); margin-bottom: var(--s-4); }
.crumbs a { color: rgb(245 245 242 / .8); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.plan-lvl { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 500;
  background: rgb(255 255 255 / .08); color: rgb(245 245 242 / .85); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); backdrop-filter: blur(8px); }
.hero--plan h1 { margin-top: var(--s-4); }
.plan-h__cat { display: block; margin-top: var(--s-2); font-size: .42em; line-height: 1.2; letter-spacing: -0.01em; color: #ff5a98; }
.plan-hero__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: var(--s-4) 0 var(--s-5); }
.plan-hero__price b { font: var(--display-weight) clamp(32px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: var(--display-tracking); }
.plan-hero__price small { font-size: 15px; opacity: .72; }
.plan-hero__art { display: grid; place-items: center; }
.plan-hero__ic { width: min(100%, 300px); height: auto; border-radius: 22%; box-shadow: 0 50px 100px -30px rgb(0 0 0 / .8), 0 0 80px -10px rgb(212 17 95 / .45);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), translate .1s linear; animation: fx-float 7s ease-in-out infinite; }
@media (max-width: 1023px) { .plan-hero__art { display: none; } }

.plan-ideal { font: 500 clamp(22px, 2vw, 30px)/1.3 var(--font-display); letter-spacing: -0.015em; margin: 0; }
.plan-prev { display: flex; align-items: center; gap: var(--s-3); margin: 0; }
.plan-prev img { border-radius: 22%; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); }
.feat-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .feat-grid, .feat-grid[data-n="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .feat-grid, .feat-grid[data-n="3"] { grid-template-columns: 1fr; } }
.feat { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background-color: var(--surface); min-height: 220px; }
.feat__n { font: 500 13px/1 var(--font-mono); color: var(--action); }
.feat h3 { margin: var(--s-4) 0 0; font-size: var(--t-card); }
.feat p { margin: 0; color: var(--muted); }

.infra { align-items: center; }
.infra__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #0d1026; }
.infra__frame > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2,.8,.2,1); }
.infra__frame:hover > img:first-child { scale: 1.04; }
.infra__ic { position: absolute; left: var(--s-6); bottom: var(--s-6); width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .7);
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.infra__list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 2px; }
.infra__list li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.infra__list span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgb(212 17 95 / .1); color: var(--action); font-size: 13px; }

.plan-close__card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px); gap: var(--s-7); align-items: center;
  padding: var(--s-8); border-radius: var(--r-lg); background: radial-gradient(80% 120% at 100% 0%, rgb(212 17 95 / .1), transparent 60%), var(--surface); }
.plan-close__card h2 { margin: 0; }
.plan-close__card p { margin: 0; }
.plan-close__ic { width: 120px; height: 120px; border-radius: 22%; box-shadow: 0 24px 48px -16px rgb(20 24 51 / .6);
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.plan-close__buy { display: grid; gap: var(--s-3); }
.plan-close__buy .plan-hero__price { margin: 0; }
.plan-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .plan-close__card { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-5); } .plan-close__ic { width: 88px; height: 88px; } }

/* ---------------------------------------------------------------- garantía "Cero Estrés" */
.guarantee__lead { color: rgb(245 245 242 / .8); }
.guarantee__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 1023px) { .guarantee__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .guarantee__grid { grid-template-columns: 1fr; } }
.guarantee__item { padding: var(--s-6); border-radius: var(--r-lg); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); backdrop-filter: blur(10px);
  transition: background .3s, translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.guarantee__item:hover { background: rgb(255 255 255 / .08); translate: 0 -3px; box-shadow: inset 0 0 0 1px rgb(255 90 152 / .35); }
.guarantee__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #d4115f, #7a1a5a); box-shadow: 0 10px 24px -8px rgb(212 17 95 / .7); }
.guarantee__ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guarantee__item h3 { margin: var(--s-5) 0 var(--s-2); color: #fff; font-size: var(--t-card); }
.guarantee__item p { margin: 0; color: rgb(245 245 242 / .72); }

/* ---------------------------------------------------------------- panel */
.p-sub { font-size: var(--t-h3); margin: 0 0 var(--s-5); }
.store-card__top { display: flex; gap: var(--s-3); align-items: center; }
.store-card__top img { border-radius: 22%; flex: none; box-shadow: 0 10px 20px -10px rgb(20 24 51 / .6); }
.store-card__top a { color: var(--muted); }
.sub__name { display: flex; gap: var(--s-3); align-items: center; }
.sub__name img { border-radius: 22%; }

@media (prefers-reduced-motion: reduce) { .orbit__node, .plan-hero__ic, .orbit__lines polyline { animation: none; } }

.plan-close > .wrap { justify-content: center; }
.plan-card__focus { min-height: 3em; }
.guarantee > .wrap { justify-content: center; }
.store-card__cat { display: block; color: var(--muted); text-decoration: none; } .store-card__cat:hover { color: var(--action); }

/* antes / ahora: el precio de lista tachado encima del precio actual */
.price-was { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.price-was s { text-decoration-thickness: 1.5px; }
.price-off { padding: 2px 7px; border-radius: 999px; background: var(--action); color: #fff; font: 600 12px/1.3 var(--font-mono, inherit); }
.plan-card.is-featured .price-was { color: rgb(245 245 242 / .72); }
.price { flex-wrap: wrap; }
.plan-hero__price .price-was, .plan-hero .price-was { color: rgb(245 245 242 / .75); }
