:root {
  --bg: #0b0b0e;
  --bg-2: #121217;
  --card: #17171e;
  --card-2: #1e1e27;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #a3a3b0;
  --faint: #6e6e7c;
  --accent: #8e8cff;
  --accent-2: #6b5cf2;
  --ok: #3ddc84;
  --warn: #ffb648;
  --bad: #ff5d6c;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--head-bg, rgba(11, 11, 14, 0.82)); color: var(--head-text, var(--text)); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px var(--head); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; color: inherit; opacity: .72; font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover, .nav a.active { opacity: 1; background: var(--line); }
.account-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.account-btn:hover { border-color: var(--accent); }
.account-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 900px) {
  .top-inner { gap: 10px; }
  .menu-btn { display: flex; }
  .brand { flex: 1; }
  .brand span { font-size: 16px; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--head-bg-solid, var(--bg)); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  #accountLabel { display: none; }
  .account-btn { padding: 8px; }
}

main { min-height: 70vh; outline: none; }
main:focus, main:focus-visible { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 7vw, 80px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-more { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: #0b0b0e; }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: #0b0b0e; }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 7px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-danger { color: var(--bad); border-color: rgba(255,93,108,.35); background: transparent; }

/* Hero carousel */
.hero { position: relative; margin-top: 20px; }
.hero-track { position: relative; height: clamp(360px, 52vw, 560px); border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: flex-end; }
.slide.on { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%), linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.slide-text { position: relative; z-index: 2; padding: clamp(24px, 5vw, 64px); max-width: 640px; }
.slide-text h1 { font-size: clamp(32px, 5.4vw, 64px); }
.slide-text p { color: rgba(255,255,255,.85); font-size: clamp(15px, 1.6vw, 19px); margin: 14px 0 24px; }
.dots { position: absolute; right: 24px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.dots button.on { width: 26px; background: #fff; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; border-radius: var(--radius); padding: 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile .glow { position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; filter: blur(40px); opacity: .55; }
.tile h3 { position: relative; font-size: 22px; }
.tile p { position: relative; color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.tile span { position: relative; color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 140px; } }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-img { aspect-ratio: 1 / 1; background: var(--card-2) center / cover no-repeat; position: relative; }
.card-img .badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 18px; }
.card-body p { color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { font-weight: 700; font-size: 15px; }
.price small { color: var(--muted); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.badge.ok { background: rgba(61,220,132,.14); color: var(--ok); }
.badge.warn { background: rgba(255,182,72,.14); color: var(--warn); }
.badge.bad { background: rgba(255,93,108,.14); color: var(--bad); }
.badge.soft { background: rgba(255,255,255,.07); color: var(--muted); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--muted); }
.chip.on, .chip:hover { color: var(--text); border-color: var(--text); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { border-radius: 20px; border: 1px solid var(--line); background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.best { border-color: var(--accent); background: linear-gradient(180deg, rgba(142,140,255,.12), var(--card) 55%); }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan h3 { font-size: 24px; }
.plan .amount { font: 700 44px/1 var(--head); }
.plan .amount small { font: 500 16px var(--body); color: var(--muted); }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; background: rgba(142,140,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%238e8cff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.note { color: var(--faint); font-size: 13.5px; margin-top: 14px; }

/* Banner (DIManager) */
.band { border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(107,92,242,.35), rgba(0,0,0,0) 55%), var(--card); padding: clamp(26px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.6vw, 40px); }
.band p { color: var(--muted); margin: 12px 0 22px; font-size: 16.5px; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.band li b { color: var(--text); display: block; font-weight: 600; }
.band .num { flex: 0 0 30px; height: 30px; border-radius: 9px; background: rgba(142,140,255,.16); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* News */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.news article { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.news .img { aspect-ratio: 16 / 9; background: var(--card-2) center / cover; }
.news .txt { padding: 18px; display: grid; gap: 8px; }
.news time { color: var(--faint); font-size: 13px; }
.news h3 { font-size: 18px; }
.news p { color: var(--muted); font-size: 14.5px; }

/* Product page */
.p-hero { margin-top: 20px; border-radius: 22px; overflow: hidden; position: relative; min-height: clamp(280px, 40vw, 440px); display: flex; align-items: flex-end; background: var(--card) center / cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,14,.95), rgba(11,11,14,.2) 60%, rgba(11,11,14,0)); }
.p-hero .in { position: relative; z-index: 1; padding: clamp(22px, 4vw, 48px); display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.p-icon { width: clamp(84px, 11vw, 128px); aspect-ratio: 1; border-radius: 22px; background: var(--card-2) center / cover; box-shadow: 0 18px 40px rgba(0,0,0,.5); border: 1px solid var(--line-2); flex: none; }
.p-hero h1 { font-size: clamp(30px, 4.6vw, 54px); }
.p-hero .meta { color: var(--muted); margin-top: 6px; }
.p-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; }
.p-layout .prose { color: var(--muted); font-size: 16.5px; white-space: pre-line; }
.p-side { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 22px; display: grid; gap: 14px; align-self: start; position: sticky; top: 84px; }
.p-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.p-side dt { color: var(--faint); }
.p-side dd { margin: 0; text-align: right; }
.inst-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.inst { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px; }
.inst .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--card-2) center / cover; flex: none; }
.inst small { color: var(--faint); display: block; }
@media (max-width: 860px) { .p-layout { grid-template-columns: 1fr; } .p-side { position: static; } }

/* Forms */
.auth { max-width: 440px; margin: clamp(32px, 8vw, 80px) auto 0; border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: clamp(22px, 5vw, 36px); }
.auth h1 { font-size: 28px; }
.auth > p { color: var(--muted); margin: 8px 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.field input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none; width: 100%; }
.field input:focus { border-color: var(--accent); }
.auth .btn { width: 100%; margin-top: 6px; }
.auth .switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; display: grid; gap: 8px; }
.auth .switch a { color: var(--accent); font-weight: 600; cursor: pointer; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.msg.err { background: rgba(255,93,108,.12); color: #ffb3ba; }
.msg.ok { background: rgba(61,220,132,.12); color: #a9f0c9; }
.msg.info { background: rgba(142,140,255,.12); color: #cfceff; }

/* Account */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.acc-head h1 { font-size: clamp(28px, 4vw, 40px); }
.acc-head p { color: var(--muted); margin-top: 6px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 26px 0 24px; overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.lic { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 22px; display: grid; gap: 16px; margin-bottom: 16px; }
.lic-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.lic-top h3 { font-size: 20px; }
.lic-top p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.lic-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; }
.stat small { color: var(--faint); font-size: 12.5px; display: block; }
.stat b { font-size: 15.5px; font-weight: 600; }
.machines { display: grid; gap: 8px; }
.machine { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border-radius: 12px; padding: 10px 14px; }
.machine div small { display: block; color: var(--faint); font-size: 12.5px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 22px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.owned .card-img { aspect-ratio: 1; }

/* Legal / prose pages */
.doc { max-width: 780px; margin: 40px auto 0; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.doc .upd { color: var(--faint); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* Footer */
.foot { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--foot-bg, var(--bg-2)); color: var(--foot-text, var(--muted)); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-inner h4 { font-size: 14px; color: inherit; margin-bottom: 12px; font-family: var(--body); font-weight: 600; }
.foot-inner a { display: block; color: inherit; opacity: .85; font-size: 14px; padding: 4px 0; }
.foot-inner a:hover { opacity: 1; }
.foot-brand p { color: inherit; opacity: .85; font-size: 14px; margin: 8px 0 14px; max-width: 300px; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0; }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot-bottom a { color: var(--muted); }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Loading */
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.center { text-align: center; }
.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== 0.32.8: páginas por diseño ===== */
:root { --accent-soft: rgba(142,140,255,.16); --btn-text: #0b0b0e; }
body { background: var(--bg); }
.brand-logo { display: none; width: 30px; height: 30px; border-radius: 8px; background: center / contain no-repeat; }
.brand-logo.custom { display: block; }
.brand-logo.custom + .brand-mark { display: none; }
.foot-brand strong { color: inherit; font-size: 16px; }
.foot-bottom { color: inherit; opacity: .75; }
.foot .social a { color: inherit; }
.social a svg { width: 18px; height: 18px; }
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-color, .bg-img, .bg-ov { position: absolute; inset: 0; pointer-events: none; }
.bg-img { background-position: center; }
.bg-img.fixed { background-attachment: fixed; }
.sec { position: relative; }
.sec > .sec-in { position: relative; z-index: 1; }
.sec.bleed > .bg-color, .sec.bleed > .bg-img, .sec.bleed > .bg-ov { border-radius: 0; }
.pad-none { padding: 0; }
.pad-small { padding: 20px 0; }
.pad-normal { padding: clamp(32px, 5vw, 56px) 0; }
.pad-large { padding: clamp(60px, 10vw, 120px) 0; }
.align-center { text-align: center; }
.align-center .section-head { justify-content: center; text-align: center; }
.align-center .section-head > div { margin: 0 auto; }
.align-center .grid, .align-center .plans, .align-center .tiles, .align-center .features { text-align: left; }
.align-right { text-align: right; }
.center-head { justify-content: center; text-align: center; }
.hero { margin-top: 0; }
.hero-wide .hero-track { border-radius: 0; }
.sec-hero.wide .sec-in { padding: 0; }
.slide-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%), linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.slide-shade.c { background: radial-gradient(80% 90% at 50% 60%, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.slide::after { display: none; }
.slide-text { color: #fff; }
.slide-center { justify-content: center; text-align: center; }
.slide-center .slide-text { margin: 0 auto; }
.slide-right { justify-content: flex-end; text-align: right; }
.tiles { grid-template-columns: repeat(4, 1fr); }
.tile-img { position: absolute; inset: 0; background: center / cover; opacity: .55; }
.grid[style*="--cols:"]:not([style*="--cols:0"]) { grid-template-columns: repeat(var(--cols), 1fr); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text); opacity: .9; }
.btn-accent { background: var(--accent); color: var(--btn-text); }
.card, .tile, .plan, .lic, .p-side, .news article, .auth, .band, .feature, .cta, .contact { border-radius: var(--radius); }
.doc-block { margin: 0 auto 0 0; }
.doc-block.center, .align-center .doc-block { margin: 0 auto; }
.t-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.doc-block .upd { color: var(--faint); margin-bottom: 20px; }
.rich p, .rich li { color: var(--muted); font-size: 16.5px; }
.rich p + p, .rich ul + p, .rich p + ul { margin-top: 12px; }
.rich ul { padding-left: 20px; display: grid; gap: 6px; margin: 0; }
.rich a, .doc-block a { color: var(--accent); }
.rich b { color: var(--text); }
.img-block { width: 100%; border-radius: var(--radius); background: var(--card) center / cover no-repeat; }
.caption { color: var(--faint); font-size: 14px; margin-top: 10px; }
.empty-img { display: grid; place-items: center; color: var(--faint); background: repeating-linear-gradient(45deg, var(--card), var(--card) 12px, var(--card-2) 12px, var(--card-2) 24px); border-radius: var(--radius); font-size: 14px; }
.cta { border: 1px solid var(--line); background: var(--card); padding: clamp(24px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3.2vw, 36px); }
.cta p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.cta.center { flex-direction: column; text-align: center; }
.sec.bleed .cta { background: transparent; border-color: transparent; }
.features { display: grid; gap: 18px; }
.feature { border: 1px solid var(--line); background: var(--card); padding: 22px; display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }
.f-img { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--card-2) center / cover; margin-bottom: 6px; }
.gallery { display: grid; gap: 12px; }
.gallery figure { margin: 0; }
.g-img { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--card-2) center / cover; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.post { min-width: 0; }
.post blockquote { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; }
.post-yt { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.post-yt iframe { width: 100%; height: 100%; border: 0; }
.post-fb iframe { width: 100%; height: 560px; border: 0; border-radius: var(--radius); background: #fff; }
.social-sec h2 { font-size: clamp(24px, 3vw, 34px); }
.social-sec .muted { margin-top: 6px; }
.social-big { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social-sec.center .social-big { justify-content: center; }
.sb { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; }
.sb:hover { border-color: var(--accent); }
.sb svg { width: 20px; height: 20px; }
.contact { border: 1px solid var(--line); background: var(--card); padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.contact h2 { font-size: clamp(24px, 3.2vw, 36px); }
.contact p { margin: 10px 0 20px; }
.contact-side { display: grid; gap: 16px; }
.contact-side small { display: block; color: var(--faint); font-size: 13px; margin-bottom: 4px; }
.contact .social { display: flex; gap: 10px; }
.contact .social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.embed { width: 100%; border: 0; border-radius: var(--radius); background: transparent; }
#view:empty { display: none; }
.band { background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), rgba(0,0,0,0) 55%), var(--card); }
.band .num { background: var(--accent-soft); }
.plan.best { background: linear-gradient(180deg, var(--accent-soft), var(--card) 55%); }
.plan li::before { background-color: var(--accent-soft); }
/* temas claros */
html.light .badge { background: rgba(255,255,255,.85); color: #111; }
html.light .badge.ok { background: rgba(30,170,90,.14); color: #138a48; }
html.light .badge.soft { background: var(--line); color: var(--muted); }
html.light .skeleton { opacity: .6; }
html.light .msg.err { color: #b4232f; } html.light .msg.ok { color: #137a40; } html.light .msg.info { color: #4a46c9; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr) !important; } .grid[style*="--cols:"] { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr !important; } }

/* ===== editor (dentro del iframe) ===== */
html.editing .sec { outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .12s; min-height: 40px; }
html.editing .sec:hover { outline-color: var(--ed, #3d8bff); }
html.editing .sec.selected { outline: 2px solid var(--ed, #3d8bff); outline-offset: -2px; }
html.editing .sec.is-hidden { opacity: .4; }
html.editing .top:hover, html.editing .foot:hover { outline: 1px dashed #3d8bff; outline-offset: -1px; cursor: pointer; }
html.editing .top.ed-selected, html.editing .foot.ed-selected { outline: 2px solid #3d8bff; outline-offset: -2px; }
.ed-bar { display: none; position: absolute; top: 8px; right: 8px; z-index: 20; background: #3d8bff; color: #fff; border-radius: 9px; padding: 3px; gap: 2px; align-items: center; font: 600 12px/1 Inter, system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ed-bar span { padding: 0 8px; white-space: nowrap; }
.ed-bar button { width: 28px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; font-size: 14px; }
.ed-bar button:hover { background: rgba(255,255,255,.22); }
html.editing .sec:hover > .ed-bar, html.editing .sec.selected > .ed-bar { display: flex; }
.ed-ins { display: none; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 21; border: 0; border-radius: 999px; background: #3d8bff; color: #fff; font: 600 12px Inter, system-ui, sans-serif; padding: 6px 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
html.editing .sec:hover > .ed-ins, html.editing .sec.selected > .ed-ins { display: block; }
.ed-add-end { display: flex; justify-content: center; padding: 26px 0 10px; }
.ed-add-end button { border: 2px dashed #3d8bff; background: rgba(61,139,255,.08); color: #3d8bff; border-radius: 12px; padding: 14px 26px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
html.editing [data-edit] { cursor: text; border-radius: 4px; min-width: 20px; }
html.editing [data-edit]:empty::before { content: "Escribe aquí…"; opacity: .45; }
html.editing [data-edit]:hover { box-shadow: 0 0 0 1px rgba(61,139,255,.55); }
html.editing [data-edit]:focus { outline: none; box-shadow: 0 0 0 2px #3d8bff; background: rgba(61,139,255,.08); }
html.editing a, html.editing button { cursor: default; }
.ph { opacity: .5; font-style: italic; }
.preview-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; background: #3d8bff; color: #fff; padding: 9px 16px; border-radius: 999px; font: 600 13px Inter, system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.preview-bar a { color: #fff; text-decoration: underline; margin-left: 6px; }

/* ===== 0.32.9: fondo que se desplaza con la página ===== */
body { position: relative; }
.page-bg.scroll { position: absolute; inset: 0; }

/* ===== 0.32.9: reproductor de sonido ===== */
.player { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.sec.bleed .player { background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(8px); }
.pl-now { display: flex; gap: 18px; align-items: center; }
.pl-cover { width: 104px; height: 104px; border-radius: var(--radius-sm); flex: none; background: linear-gradient(135deg, var(--accent), var(--card-2)) center / cover; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pl-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pl-title { font: 600 19px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { color: var(--muted); font-size: 14px; }
.pl-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pl-controls button { border: 0; background: transparent; color: var(--text); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.pl-controls button svg { width: 18px; height: 18px; }
.pl-controls .pl-play { width: 46px; height: 46px; background: var(--accent); color: var(--btn-text); }
.pl-controls .pl-play svg { width: 22px; height: 22px; }
.pl-controls button:disabled { opacity: .4; cursor: default; }
.pl-time, .pl-dur { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.pl-seek { flex: 1; min-width: 60px; accent-color: var(--accent); }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pl-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.pl-list li:hover { background: var(--line); }
.pl-list li.on { background: var(--accent-soft); }
.pl-n { width: 20px; text-align: center; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-list li.on .pl-n { color: var(--accent); font-weight: 700; }
.pl-c { width: 38px; height: 38px; border-radius: 8px; background: var(--card-2) center / cover; flex: none; }
.pl-t { flex: 1; min-width: 0; display: grid; }
.pl-t b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-t small { color: var(--muted); font-size: 12.5px; }
.pl-sc { font-size: 11px; color: #ff7a1a; font-weight: 600; }
.pl-scframe { width: 100%; height: 120px; border: 0; border-radius: var(--radius-sm); }
.pl-compact .pl-cover { width: 64px; height: 64px; }
.pl-compact .pl-list { display: none; }
@media (max-width: 560px) { .pl-now { flex-direction: column; align-items: stretch; } .pl-cover { width: 100%; height: auto; aspect-ratio: 1; } }
