/* ===== Colores por tema ===== */
:root,
[data-theme="dark"] {
  --bg: #050817;
  --bg-2: #0a1033;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-solid: #0d1438;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef1ff;
  --muted: #a3abd0;
  --glass: rgba(10, 16, 48, 0.62);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --glow-a: rgba(64, 92, 255, 0.35);
  --glow-b: rgba(177, 77, 255, 0.28);
  --glow-c: rgba(34, 211, 238, 0.16);
  --accent: #22d3ee;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f6ff;
  --bg-2: #eceeff;
  --surface: #ffffff;
  --surface-2: #f1f2fc;
  --surface-solid: #ffffff;
  --line: #e1e3f3;
  --text: #0f1433;
  --muted: #5a6287;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 26px 60px rgba(38, 31, 102, 0.12);
  --glow-a: rgba(64, 92, 255, 0.16);
  --glow-b: rgba(177, 77, 255, 0.14);
  --glow-c: rgba(34, 211, 238, 0.12);
  --accent: #0e7490;
  color-scheme: light;
}

:root {
  --cyan: #22d3ee;
  --blue: #4f6bff;
  --violet: #b44dff;
  --gradient: linear-gradient(120deg, #22d3ee, #4f6bff 48%, #b44dff);
  --radius: 22px;
  --wrap: min(1180px, calc(100% - 32px));
  --dock-space: 120px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding-bottom: var(--dock-space);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-b), transparent 60%),
    radial-gradient(50rem 36rem at -10% 20%, var(--glow-a), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, var(--glow-c), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color 300ms ease, color 300ms ease;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

a { color: inherit; }

svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; }

kbd {
  padding: 2px 6px;
  font: 600 0.7rem "Inter", sans-serif;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
}

.skip:focus { top: 12px; }

/* Logo según el tema */
html:not([data-theme="light"]) .logo-light,
html[data-theme="light"] .logo-dark { display: none; }

/* ===== Barra superior ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px max(16px, calc((100% - 1180px) / 2));
  transition: background 250ms ease, padding 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--glass);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.brand img {
  display: block;
  width: clamp(150px, 15vw, 196px);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-trigger {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 10px 0 14px;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.search-trigger span { min-width: 120px; text-align: left; }
.search-trigger:hover { color: var(--text); border-color: rgba(79, 107, 255, 0.6); }

.icon-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease;
}

.icon-btn:hover { background: var(--surface-2); }

.count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  background: linear-gradient(135deg, #ff9a3d, #ff4d8d);
  border-radius: 999px;
}

.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 82px;
  height: 44px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.theme-switch svg { position: relative; z-index: 1; width: 18px; height: 18px; transition: color 250ms ease; }
.theme-switch .sun { color: var(--muted); }
.theme-switch .moon { color: #fff; }
[data-theme="light"] .theme-switch .sun { color: #fff; }
[data-theme="light"] .theme-switch .moon { color: var(--muted); }

.knob {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(79, 107, 255, 0.45);
  transition: transform 300ms cubic-bezier(.5, 1.6, .4, 1);
}

[data-theme="light"] .knob { transform: translateX(-36px); }

.top-actions .only-mobile,
.dock .mobile-only { display: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  color: var(--text);
  font: 700 0.98rem "Inter", sans-serif;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  background-size: 140% 100%;
  border: 0;
  box-shadow: 0 14px 30px rgba(79, 107, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 38px rgba(124, 77, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--blue); background: var(--surface); }

/* ===== Portada ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: var(--wrap);
  min-height: min(720px, calc(100vh - 90px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.kicker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.kicker span + span::before {
  margin-right: 22px;
  margin-left: -11px;
  color: var(--muted);
  content: "·";
}


h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 36rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.9;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 92%;
  filter: drop-shadow(0 30px 60px rgba(79, 107, 255, 0.4));
  animation: float 7s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79, 107, 255, 0.35);
}

.r1 {
  width: 88%;
  aspect-ratio: 1;
  border-top-color: var(--accent);
  border-right-color: var(--violet);
  animation: spin 22s linear infinite;
}


.tile {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: linear-gradient(145deg, rgba(79, 107, 255, 0.55), rgba(180, 77, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(79, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

.tile svg { width: 28px; height: 28px; }
.t1 { top: 10%; right: 12%; animation-delay: -1s; }
.t2 { bottom: 14%; left: 8%; animation-delay: -2s; }
.t3 { top: 34%; left: 2%; animation-delay: -3s; }

/* ===== Pilares ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--wrap);
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 4px 22px;
  text-decoration: none;
  border-left: 1px solid var(--line);
  transition: color 200ms ease;
}

.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar > svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.6; }
.pillar:hover strong { color: var(--accent); }

.pillar strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  transition: color 200ms ease;
}

.pillar > span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.pillar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(180, 77, 255, 0.14));
  border: 1px solid rgba(79, 107, 255, 0.35);
  border-radius: 14px;
}

.pillar-icon svg { width: 26px; height: 26px; }

/* ===== Bloques ===== */
.block {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0 0;
}

.block.narrow { width: min(820px, calc(100% - 32px)); }

.block-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }

.block-head > p:last-child,
.contact-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Catálogo: tarjetas compactas para muchos programas */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 22px;
}

.chip {
  padding: 7px 14px;
  color: var(--muted);
  font: 600 0.84rem "Inter", sans-serif;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip:hover { color: var(--text); }

.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 107, 255, 0.5);
  box-shadow: 0 18px 40px rgba(20, 24, 80, 0.35);
}

.app-card[hidden] { display: none; }

.app-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #070a24;
}

.app-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.app-card:hover .app-cover img { transform: scale(1.04); }

.pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  border-radius: 999px;
}

.app-body {
  flex: 1;
  padding: 14px 16px 0;
}

.app-body h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.app-body p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.app-tags span {
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-2);
  border-radius: 6px;
}

.app-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.price.free {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-foot > div { display: flex; gap: 6px; }

.mini-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.mini-btn svg { width: 17px; height: 17px; }
.mini-btn:hover { transform: translateY(-1px); }
.mini-btn.wa:hover { color: #fff; background: #1f8f4e; }

.mini-btn.primary {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 107, 255, 0.35);
}

/* Tarjetas de lo que viene */
.app-card.soon {
  background: transparent;
  border-style: dashed;
}

.app-card.soon:hover { box-shadow: none; }

.soon-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--accent);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(127, 140, 255, 0.06) 14px 28px),
    var(--surface);
}

.soon-cover svg { width: 30px; height: 30px; opacity: 0.8; }

.app-foot .notify {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.app-foot .notify svg { width: 16px; height: 16px; }

/* Portadas generadas para la vista de prueba */
.gen-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.gen-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.05) 23px 24px), repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, 0.05) 23px 24px);
}

.gen-cover svg {
  position: relative;
  width: 44px;
  height: 44px;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.55));
}

.demo-pill { background: rgba(255, 255, 255, 0.18); }

.h1 { background: radial-gradient(circle at 70% 30%, #22d3ee, transparent 65%), #0e3a8a; }
.h2 { background: radial-gradient(circle at 70% 30%, #c026d3, transparent 65%), #3b0764; }
.h3 { background: radial-gradient(circle at 70% 30%, #6366f1, transparent 65%), #0f172a; }
.h4 { background: radial-gradient(circle at 70% 30%, #06b6d4, transparent 65%), #164e63; }
.h5 { background: radial-gradient(circle at 70% 30%, #a855f7, transparent 65%), #312e81; }
.h6 { background: radial-gradient(circle at 70% 30%, #38bdf8, transparent 65%), #1e3a8a; }
.h7 { background: radial-gradient(circle at 70% 30%, #f472b6, transparent 65%), #4a044e; }
.h8 { background: radial-gradient(circle at 70% 30%, #22c55e, transparent 65%), #052e16; }

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.catalog-more .btn { height: 46px; font-size: 0.92rem; }
.catalog-more svg { transition: transform 200ms ease; }
.catalog-more [aria-expanded="true"] svg { transform: rotate(-90deg); }
.catalog-more [aria-expanded="false"] svg { transform: rotate(90deg); }

.catalog-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

/* Página de catálogo */
.catalog-page {
  width: var(--wrap);
  margin: 0 auto;
  padding: 8px 0 0;
}

.crumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

.catalog-hero { margin: 26px 0 30px; }
.catalog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.catalog-hero .lead { margin-top: 12px; }

.catalog-tools {
  position: sticky;
  top: 70px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.catalog-tools .catalog-bar { margin: 0; }

.catalog-search {
  display: flex;
  flex: 1 1 240px;
  gap: 10px;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.catalog-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.25); }

.catalog-search input {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font: inherit;
  background: transparent;
  border: 0;
  outline: none;
}

.catalog-sort {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.catalog-sort select {
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  font: inherit;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.catalog-sort option { color: #0f1433; }

.catalog-count {
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding: 28px 32px;
  background:
    radial-gradient(26rem 14rem at 100% 0%, var(--glow-b), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.cta-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

/* Página de un programa */
html:has(.product-page) { scroll-padding-top: 150px; }

.app-body h3 a { text-decoration: none; }
.app-body h3 a:hover { color: var(--accent); }

.product-page > .crumbs,
.pd-hero,
.pd-tabs,
.pd-highlights,
.pd-final {
  width: var(--wrap);
  margin-right: auto;
  margin-left: auto;
}

.product-page > .crumbs { padding-top: 8px; }

.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 48px 0 64px;
}

.pd-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.pd-meta span {
  padding: 3px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient);
  border-radius: 999px;
}

.badge-grad {
  padding: 3px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gradient);
  border-radius: 999px;
}

.pd-info h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); }

.pd-tagline {
  max-width: 30rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.pd-tagline em { color: var(--text); font-style: normal; font-weight: 600; }

.pd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
}

.pd-cta .btn { height: 54px; padding: 0 28px; }
.square-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.square-btn:hover { color: #fff; background: #1f8f4e; transform: translateY(-2px); }
.square-btn svg { width: 22px; height: 22px; }
.pd-cta .square-btn { width: 54px; height: 54px; border-radius: 999px; }

.link-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  color: var(--text);
  font: 600 0.98rem "Inter", sans-serif;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.link-btn svg { transition: transform 160ms ease; }
.link-btn:hover svg { transform: translateX(3px); }

.link-btn:hover { color: var(--accent); }

.pd-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pd-visual img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(20, 30, 120, 0.45);
}

.pd-tabs {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.pd-tabs a {
  flex: none;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pd-tabs a:hover { color: var(--text); border-bottom-color: var(--accent); }

.pd-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.pd-highlights svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.6; }
.pd-highlights h3 { margin-top: 14px; font-size: 1rem; }
.pd-highlights p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }

.pd-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-steps li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.pd-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  background: var(--gradient);
  border-radius: 12px;
}

.pd-steps h3 { font-size: 1rem; }
.pd-steps p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }

.pd-gallery {
  display: grid;
  grid-auto-columns: minmax(280px, 42%);
  grid-auto-flow: column;
  gap: 16px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.pd-gallery figure { margin: 0; scroll-snap-align: start; }

.shot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  color: var(--muted);
  font-size: 0.82rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(127, 140, 255, 0.05) 14px 28px),
    var(--surface);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.shot svg { width: 32px; height: 32px; color: var(--accent); }
.pd-gallery figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; }

.pd-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.pd-split h2 { margin-bottom: 22px; }

.specs { display: grid; margin: 0; }

.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt { color: var(--muted); font-size: 0.9rem; }
.specs dd { margin: 0; font-size: 0.92rem; font-weight: 600; }

.tbd {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  color: #d98a0b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 178, 61, 0.14);
  border-radius: 6px;
}

.changelog {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.changelog li { position: relative; padding-bottom: 18px; }

.changelog li::before {
  position: absolute;
  top: 6px;
  left: -29px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.cl-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cl-head time { color: var(--muted); font-size: 0.85rem; }
.changelog p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

.pd-final .pd-cta { margin-top: 0; }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease;
}

.service:hover { transform: translateY(-4px); border-color: rgba(79, 107, 255, 0.55); }
.service > svg { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.6; }
.service h3 { margin-top: 18px; font-size: 1.15rem; }
.service p { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; }

.services-more { margin-top: 26px; }

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border-top: 2px solid var(--line);
}

.steps li:first-child { border-top-color: var(--accent); }

.steps span {
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 { margin-top: 8px; font-size: 1.1rem; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 0.93rem; }

/* Preguntas */
.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--accent); font-size: 1.3rem; line-height: 1; content: "+"; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(30rem 20rem at 100% 0%, var(--glow-b), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.contact-links { display: grid; gap: 12px; margin-top: 28px; }

.contact-links a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}

.contact-links svg { color: var(--accent); }

.contact-form { display: grid; gap: 14px; }

.contact-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.contact-form small { color: var(--muted); font-weight: 400; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-form select option { color: #0f1433; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.25);
}

.contact-form .btn { margin-top: 6px; border-radius: 14px; }

/* Pie */
.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 80px 16px 30px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer img { width: 140px; opacity: 0.85; }
.footer p { margin: 0; }

/* ===== Menú flotante ===== */
.dock {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(79, 107, 255, 0.12), 0 -6px 40px rgba(79, 107, 255, 0.18);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}

.dock a,
.dock button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 58px;
  padding: 0 14px;
  color: var(--muted);
  font: 600 0.78rem "Inter", sans-serif;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

.dock a:hover, .dock button:hover { color: var(--text); background: var(--surface-2); }

.dock a.active {
  flex-direction: row;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  background: var(--gradient);
  box-shadow: 0 8px 24px rgba(79, 107, 255, 0.45);
}

.dock .dock-cta {
  flex-direction: row;
  gap: 8px;
  margin-left: 8px;
  padding: 0 22px;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(120deg, #22d3ee, #4f6bff);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}

.dock .dock-cta:hover { color: #fff; background: linear-gradient(120deg, #4f6bff, #b44dff); }

/* Hoja «Más» */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(3, 5, 18, 0.45);
}

.sheet-panel {
  position: absolute;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: rise 220ms ease;
}

.sheet-panel a,
.sheet-panel button {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  color: var(--text);
  font: 600 1rem "Inter", sans-serif;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.sheet-panel a:hover, .sheet-panel button:hover { background: var(--surface-2); }
.sheet-panel svg { color: var(--accent); }

/* ===== Paleta de búsqueda ===== */
.palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 12vh 16px 16px;
  background: rgba(3, 5, 18, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.palette[hidden] { display: none; }

.palette-panel {
  width: min(620px, 100%);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 107, 255, 0.2);
  animation: rise 180ms ease;
}

.palette-input {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.palette-input svg { color: var(--muted); }

.palette-input input {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font: 500 1.05rem "Inter", sans-serif;
  background: transparent;
  border: 0;
  outline: none;
}

.palette-results {
  max-height: min(380px, 50vh);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.palette-results .group {
  padding: 10px 12px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.palette-results [role="option"] {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.palette-results [role="option"] small { display: block; color: var(--muted); font-size: 0.82rem; }

.palette-results [role="option"] .opt-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 10px;
}

.palette-results [aria-selected="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--cyan); }
.palette-results .empty { padding: 22px; color: var(--muted); text-align: center; }

.palette-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

/* ===== Video demo ===== */
.demo {
  width: min(860px, calc(100% - 32px));
  padding: 0;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.demo::backdrop { background: rgba(3, 5, 18, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.demo .close { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(0, 0, 0, 0.35); color: #fff; }

.demo-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: url("img/vision-pro-cover.webp") center / cover;
}

.demo-screen > svg { width: 72px; height: 72px; stroke-width: 1.4; filter: drop-shadow(0 0 20px rgba(79, 107, 255, 0.8)); }
.demo-screen p { margin: 0; padding: 12px 18px; background: rgba(5, 8, 23, 0.7); border-radius: 14px; }
.demo-screen strong { display: block; }

/* ===== Aviso flotante ===== */
.toast {
  position: fixed;
  bottom: calc(110px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 90;
  max-width: min(440px, calc(100% - 32px));
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.92rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Animaciones ===== */
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Tamaños intermedios ===== */
@media (max-width: 1080px) {
  .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { row-gap: 18px; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock a, .dock button { min-width: 76px; padding: 0 10px; }
}

/* ===== Celulares ===== */
@media (max-width: 760px) {
  :root { --dock-space: 104px; }

  .search-trigger { display: none; }
  .top-actions .only-mobile { display: grid; }
  .dock .mobile-only { display: flex; }
  .dock .desktop-only { display: none; }
  .theme-switch { display: none; }
  .topbar { padding-top: 12px; padding-bottom: 12px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 8px;
    text-align: center;
  }

  .hero-visual { order: -1; width: min(72%, 300px); margin: 0 auto; }
  .tile { width: 46px; height: 46px; border-radius: 12px; }
  .tile svg { width: 22px; height: 22px; }
  .kicker { justify-content: center; gap: 6px 14px; font-size: 0.68rem; letter-spacing: 0.12em; }
  .kicker span + span::before { margin-right: 14px; margin-left: -7px; }
  .lead { margin-right: auto; margin-left: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta { gap: 22px; }
  .hero-cta .btn { flex: none; padding: 0 22px; }

  .services, .steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .pillar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 14px; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .catalog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
  .catalog-bar { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .app-body { padding: 12px 12px 0; }
  .app-foot { padding: 10px 12px; }
  .app-card.soon .price { display: none; }
  .catalog-tools { position: static; padding: 10px; }
  .pd-hero, .pd-split { grid-template-columns: 1fr; }
  .pd-hero { padding-top: 20px; }
  .pd-visual { order: -1; margin-bottom: 18px; }
  .pd-hero .pd-cta { justify-content: space-between; }
  .pd-hero .pd-cta .btn-primary { flex: 1; }
  .pd-final .pd-cta { width: 100%; }
  .pd-final .pd-cta .btn-primary { flex: 1; }
  .pd-tabs { top: 62px; }
  .pd-highlights { gap: 24px 18px; margin-top: 36px; }
  .pd-tabs { gap: 22px; }
  .pd-steps { grid-template-columns: 1fr; }
  .pd-gallery { grid-auto-columns: 82%; }
  .catalog-tools .catalog-bar { order: 3; width: 100%; margin-right: 0; padding-right: 0; }
  .catalog-sort { margin-left: 0; }
  .catalog-sort span { display: none; }
  .cta-band { padding: 22px; }
  .contact { grid-template-columns: 1fr; }

  .dock {
    right: 10px;
    left: 10px;
    justify-content: space-between;
    padding: 6px;
    border-radius: 24px;
    transform: none;
  }

  .dock a,
  .dock button,
  .dock a.active,
  .dock .dock-cta {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0 4px;
    font-size: 0.7rem;
    border-radius: 18px;
  }

  .dock .dock-cta { color: var(--muted); background: transparent; box-shadow: none; }
  .dock .dock-cta.active { color: #fff; background: var(--gradient); }
  .dock .dock-cta span { font-size: 0; }
  .dock .dock-cta span::after { font-size: 0.7rem; content: "Contacto"; }
}

/* Página automática de un programa */
.pp-price { font-family: "Sora", sans-serif; font-size: 1.3rem; }
.pp-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 24px; }
.pp-cover svg { width: 72px; height: 72px; }
.pp-details p { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.pp-missing { text-align: center; }
.pp-missing p { margin: 10px 0 24px; color: var(--muted); }
.pd-split.pp-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
