/* /plans sin sesión (Web/Shared/PlansLayout.razor): el escaparate de precios con el aspecto de la portada.
   Solo lo carga la vista anónima; con sesión /plans va dentro del panel y no ve nada de esto.
   Cabecera, botones, fondo y pie copian las reglas de wwwroot/landing/index.html: si cambian allí, cambiar aquí. */
html, body { background: #04030c; }
body { margin: 0; overflow-x: hidden; }

.pub {
  /* Paleta de la portada */
  --bg: #04030c; --card: rgba(18, 16, 44, .62); --line: rgba(169, 163, 214, .16);
  --ink: #f4f2ff; --ink-soft: #a9a3d6; --violet: #8a2be2; --violet-glow: #b04cff; --blue: #2a6bff; --cyan: #4fd1ff; --ok: #5ddc9a;
  --grad: linear-gradient(100deg, #b04cff 0%, #7b5cff 45%, #2a6bff 75%, #4fd1ff 100%);
  --wide: "Michroma", "Sora", system-ui, sans-serif;
  /* Variables que usan Plans.razor y MudBlazor, llevadas a la paleta */
  --mud-palette-background: var(--bg);
  --mud-palette-surface: var(--card);
  --mud-palette-primary: #b04cff;
  --mud-palette-primary-text: #fff;
  --mud-palette-text-primary: var(--ink);
  --mud-palette-text-secondary: var(--ink-soft);
  --mud-palette-divider: var(--line);
  --nyx-text-muted: var(--ink-soft);
  --nyx-text-dim: #8c86bd;
  --nyx-border: var(--line);
  --nyx-surface-1: rgba(255, 255, 255, .035);
  --mud-typography-default-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); font: 16px/1.6 "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
.pub * { box-sizing: border-box; }
.pub a { color: inherit; }
.pub .mud-typography, .pub .mud-button-root, .pub .mud-alert { font-family: inherit; }
.pub .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Fondo: halos y rejilla */
.pub .bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pub .bgfx::before, .pub .bgfx::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; }
.pub .bgfx::before { width: 720px; height: 720px; left: -220px; top: -260px; background: #5b1aa8; }
.pub .bgfx::after { width: 640px; height: 640px; right: -240px; top: 120px; background: #163a9e; opacity: .45; }
.pub .bgfx i { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(169,163,214,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(169,163,214,.06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.pub > header, .pub > main, .pub > footer { position: relative; z-index: 1; }

/* Cabecera */
.pub .nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 3, 12, .62); border-bottom: 1px solid transparent; transition: border-color .3s; }
.pub .nav.scrolled { border-bottom-color: var(--line); }
.pub .nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.pub .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pub .brand img { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(176, 76, 255, .55)); }
.pub .brand span { font-family: var(--wide); font-size: 15px; letter-spacing: .32em; }
.pub .nav .sp { flex: 1; }
.pub .navlink { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.pub .navlink:hover, .pub .navlink.on { color: var(--ink); }
.pub .navlink.on { box-shadow: 0 2px 0 -0 #b04cff; padding-bottom: 2px; }
.pub .langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.pub .langs button { background: none; border: 0; color: var(--ink-soft); font: 600 11px "Sora", sans-serif; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.pub .langs button[aria-pressed="true"] { background: rgba(176, 76, 255, .22); color: var(--ink); }
.pub .langs button:focus-visible, .pub .btn:focus-visible, .pub .navlink:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Botones */
.pub .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 12px;
  font: 700 15px "Sora", sans-serif; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.pub .btn:hover { transform: translateY(-2px); }
.pub .btn-main { background: var(--grad); color: #fff; box-shadow: 0 10px 34px -8px rgba(138, 43, 226, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.pub .btn-main:hover { box-shadow: 0 14px 44px -8px rgba(138, 43, 226, .95), inset 0 1px 0 rgba(255,255,255,.25); }
.pub .btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid var(--line); }
.pub .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(176, 76, 255, .5); }
.pub .btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Contenido de Plans.razor */
.pub .pub-main { flex: 1; padding-top: 64px; padding-bottom: 20px; }
.pub-main > .mud-typography-h5 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin-bottom: 14px !important;
  background: linear-gradient(100deg, #fff 0%, #e6d9ff 40%, #b04cff 75%, #4fd1ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-main > .mud-typography-body2 { font-size: clamp(16px, 1.8vw, 18px); max-width: 640px; color: var(--ink-soft) !important; margin-bottom: 36px !important; }
.pub .pricing-page { max-width: none; gap: 34px; }
.pub .pricing-page h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; font-weight: 800; margin-bottom: 6px; }
.pub .pricing-page .section-hint { font-size: 15px; }

/* Aviso de lanzamiento */
.pub .mud-alert { border-radius: 16px; padding: 12px 18px; color: #e9e3ff; font-size: 15px;
  background: linear-gradient(100deg, rgba(138,43,226,.28), rgba(42,107,255,.18)); border: 1px solid rgba(176,76,255,.42); }
.pub .mud-alert .mud-alert-icon { color: #e6d9ff; }
.pub .mud-alert-text-success { background: linear-gradient(100deg, rgba(93,220,154,.18), rgba(42,107,255,.12)); border-color: rgba(93,220,154,.4); }
.pub .mud-alert-text-success .mud-alert-icon { color: var(--ok); }

/* Tarjetas de plan */
.pub .plan-grid { gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pub .plan-card { padding: 30px 22px 22px; border-radius: 22px; gap: 14px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, box-shadow .3s; }
.pub .plan-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at 50% 0%, rgba(176,76,255,.16), transparent 65%); }
.pub .plan-card:hover { border-color: rgba(176, 76, 255, .5); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(138,43,226,.7); }
.pub .plan-card > * { position: relative; }
.pub .plan-card .plan-name { font-family: var(--wide); font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: #e6d9ff; }
.pub .plan-card .plan-price { font-size: 44px; font-weight: 800; letter-spacing: -.035em; }
.pub .plan-card .plan-price small { font-size: 14px; color: var(--ink-soft); }
.pub .plan-was { font-size: 16px; color: #8c86bd; }
.pub .plan-card dl { gap: 9px; padding-top: 14px; }
.pub .plan-card dl div { font-size: 14px; }
.pub .plan-card dd { color: var(--ink); }
.pub .plan-card .plan-tag { top: -12px; left: 18px; background: var(--grad); font-family: var(--wide); font-weight: 400; font-size: 9.5px;
  letter-spacing: .16em; padding: 5px 11px; box-shadow: 0 8px 22px -8px rgba(138,43,226,.9); }
.pub .plan-buy { margin-top: auto; padding: 0 18px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(138, 43, 226, .8), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s; }
.pub .plan-buy:hover { filter: none; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(138, 43, 226, 1), inset 0 1px 0 rgba(255,255,255,.25); }
.pub .plan-buy:focus-visible, .pub .prepaid-buy:focus-visible, .pub .ded-ask:focus-visible { outline-color: var(--cyan); }

/* Tabla de pago por adelantado */
.pub .pricing-table-wrap { border-radius: 20px; background: rgba(10, 9, 28, .72); border-color: var(--line); }
.pub .pricing-table { font-size: 15px; }
.pub .pricing-table th, .pub .pricing-table td { padding: 15px 18px; }
.pub .pricing-table thead th { color: var(--ink-soft); background: rgba(176,76,255,.08); }
.pub .pricing-table thead tr.group th { color: #e6d9ff; font-family: var(--wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.pub .pricing-table tbody tr { transition: background .2s; }
.pub .pricing-table tbody tr:hover { background: rgba(255,255,255,.03); }
.pub .pricing-table td.then { color: var(--cyan); }
.pub .prepaid-buy { color: var(--ink); text-decoration-color: rgba(176,76,255,.7); }
.pub .prepaid-buy:hover { color: #fff; text-decoration-color: var(--cyan); }
.pub .pricing-table td small { color: var(--ok); font-weight: 700; }

/* Dedicated */
.pub .dedicated { border-radius: 22px; padding: 26px 28px; background: radial-gradient(500px circle at 0% 0%, rgba(42,107,255,.18), transparent 60%), var(--card); }
.pub .dedicated .ded-name { font-family: var(--wide); font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: #e6d9ff; }
.pub .dedicated .ded-ask { color: var(--ink); background: rgba(255,255,255,.04); padding: 10px 20px; border-radius: 12px; text-decoration: none;
  transition: border-color .2s, background .2s; }
.pub .dedicated .ded-ask:hover { background: rgba(255,255,255,.08); border-color: rgba(176,76,255,.5); }

/* Recuadro de Telegram: la franja de llamada de la portada */
.pub .pricing-page > .mud-paper { position: relative; overflow: hidden; padding: 30px !important; border-radius: 26px;
  background: linear-gradient(120deg, #2a0d57 0%, #1b1a6e 55%, #0b3a8a 100%) !important; border: 1px solid rgba(176,76,255,.4) !important; }
.pub .pricing-page > .mud-paper::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(420px circle at 90% 50%, rgba(79,209,255,.35), transparent 60%); }
.pub .pricing-page > .mud-paper > * { position: relative; }
.pub .pricing-page > .mud-paper .mud-typography-body2 { font-size: 16px; color: #ece8ff; }
.pub .pricing-page > .mud-paper .mud-typography-caption { color: #b9b2e8 !important; font-size: 13px; }
.pub .pricing-page > .mud-paper .mud-icon-root { color: #e6d9ff; }
.pub .pricing-page > .mud-paper .mud-button-filled { height: 48px; padding: 0 22px; border-radius: 12px; background: #fff; color: #1b0f3a;
  font-weight: 700; font-size: 15px; text-transform: none; letter-spacing: 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.pub .pricing-page > .mud-paper .mud-button-filled:hover { background: #f1ecff; }
.pub .pricing-page > .mud-paper .mud-button-filled .mud-icon-root { color: #7b2fe0; }

/* Pie */
.pub footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 13px; color: var(--ink-soft); }
.pub footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.pub footer .brand img { width: 28px; height: 28px; }
.pub footer .links { display: flex; gap: 22px; margin-left: auto; }
.pub footer .links a { text-decoration: none; }
.pub footer .links a:hover { color: var(--ink); }
.pub footer .legal { flex-basis: 100%; opacity: .75; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .pub .btn, .pub .plan-card, .pub .plan-buy { transition: none; }
  .pub .btn:hover, .pub .plan-card:hover, .pub .plan-buy:hover { transform: none; }
}

@media (max-width: 860px) {
  .pub .nav .navlink { display: none; }
}
@media (max-width: 720px) {
  .pub .wrap { padding: 0 16px; }
  .pub .nav .wrap { gap: 8px; height: 60px; }
  .pub .nav .brand span { display: none; }
  .pub .nav .btn-sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
  .pub .langs button { padding: 4px 7px; }
  .pub .pub-main { padding-top: 36px; }
  .pub .plan-card .plan-price { font-size: 38px; }
  .pub .dedicated { padding: 22px 20px; }
  .pub .pricing-page > .mud-paper { padding: 24px 20px !important; }
  .pub .pricing-page > .mud-paper .mud-button-filled { width: 100%; }
  .pub footer .links { margin-left: 0; }
}
