:root {
  --brand: #0E9F7E; --brand-2: #0B7D63; --brand-soft: #E1F5EE;
  --link: #0A84FF; --accent: #FF9F0A;
  --ink: #1D1D1F; --ink-2: #48484A; --ink-3: #86868B;
  --line: #E5E5EA; --bg: #F5F5F7; --card: #FFFFFF; --card-2: #FAFAFC; --fill: #EFEFF4; --fill-2: #E4E4EB;
  --side: rgba(250, 250, 252, .86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .03);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .2), 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
[data-mode="dark"] {
  --ink: #F5F5F7; --ink-2: #D1D1D6; --ink-3: #98989F;
  --line: #2C2C2E; --bg: #0F0F11; --card: #1C1C1E; --card-2: #232326; --fill: #2C2C2E; --fill-2: #3A3A3C;
  --side: rgba(22, 22, 24, .9); --brand-soft: #0F3B31;
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.45; transition: background .25s, color .25s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(10, 132, 255, .45); outline-offset: 2px; border-radius: 8px; }

/* ================= estructura ================= */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 16px;
  background: var(--side); backdrop-filter: blur(20px) saturate(1.6); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 800; font-size: 21px; letter-spacing: -.02em; padding: 0 8px; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #19C59B, #0A7A60); box-shadow: 0 4px 12px -4px rgba(14, 159, 126, .7); flex: none; }
.side-search { display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 10px; padding: 8px 10px; color: var(--ink-3); }
.side-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.side-search:focus-within { box-shadow: 0 0 0 3px rgba(10, 132, 255, .3); }
.kbd { font-size: 11px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: var(--card); }
.side-nav { display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: background .15s; }
.nav-item:hover { background: var(--fill); }
.nav-item.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-item .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex: none; }
.nav-item small { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--fill); border-radius: 99px; padding: 0 7px; min-width: 22px; text-align: center; }
.assist-cta {
  border: 0; text-align: left; border-radius: 16px; padding: 14px; color: #fff; display: grid; gap: 4px;
  background: radial-gradient(120% 120% at 0% 0%, #7C3AED 0%, #2563EB 55%, #0EA5E9 100%); box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .8);
  position: relative; overflow: hidden; transition: transform .15s;
}
.assist-cta:hover { transform: translateY(-1px); }
.assist-cta::after { content: "✨"; position: absolute; right: 10px; top: 8px; font-size: 22px; opacity: .9; }
.assist-cta b { font-size: 14.5px; padding-right: 26px; }
.assist-cta span { font-size: 12.5px; opacity: .88; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.prefs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 5px 6px; border-radius: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.icon-btn { border: 0; background: var(--fill); border-radius: 9px; width: 34px; display: grid; place-items: center; font-size: 15px; }
.icon-btn:hover { background: var(--fill-2); }
.side-note { margin: 2px 4px 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

.main { min-width: 0; padding: 30px 40px 80px; outline: none; }
.page { max-width: 1160px; margin: 0 auto; animation: in .3s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* ================= tipografía ================= */
.eyebrow { font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.h1 { font-family: var(--font-d); font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 2px 0 20px; }
.sec { margin-top: 42px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-family: var(--font-d); font-size: 22px; letter-spacing: -.02em; }
.sec-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.see-all { color: var(--link); font-size: 14.5px; font-weight: 550; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* ================= portada ================= */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px 36px; color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, #22D3EE 0%, rgba(34, 211, 238, 0) 55%), radial-gradient(80% 120% at 0% 100%, #A3E635 0%, rgba(163, 230, 53, 0) 50%), linear-gradient(135deg, #065F4B, #0E9F7E 55%, #0B8E9F);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; box-shadow: var(--shadow);
}
.hero h1 { font-family: var(--font-d); font-size: 40px; line-height: 1.05; letter-spacing: -.03em; margin: 6px 0 10px; }
.hero p { margin: 0 0 18px; font-size: 16px; color: rgba(255, 255, 255, .88); max-width: 520px; }
.hero .eyebrow { color: rgba(255, 255, 255, .75); }
.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.need { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); transition: background .15s; }
.need:hover { background: rgba(255, 255, 255, .28); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14.5px; transition: filter .15s, transform .1s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-white { background: #fff; color: #065F4B; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-primary { background: var(--link); color: #fff; }
.btn-green { background: var(--brand); color: #fff; }
.btn-soft { background: var(--fill); color: var(--link); }
.btn:hover { filter: brightness(1.06); }
.hero-art { position: relative; height: 230px; }
.mini-sheet { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .45); overflow: hidden; color: #1D1D1F; width: 250px; }
.mini-sheet header { padding: 9px 12px; font-weight: 800; font-size: 12.5px; color: #fff; }
.mini-sheet div { display: grid; grid-template-columns: 1.4fr 1fr; font-size: 11.5px; border-top: 1px solid #EEF1F4; }
.mini-sheet div span { padding: 6px 10px; }
.mini-sheet div span:last-child { text-align: right; font-weight: 700; }
.ms1 { right: 70px; top: 6px; transform: rotate(-5deg); }
.ms2 { right: 0; top: 70px; transform: rotate(4deg); }
.hero-stat { position: absolute; left: 0; bottom: 0; background: rgba(255, 255, 255, .95); color: #1D1D1F; border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); font-size: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: float 5s ease-in-out infinite; }
.hero-stat b { font-size: 20px; font-family: var(--font-d); color: #0B7D63; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* carrusel */
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.carousel::-webkit-scrollbar { display: none; }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow-sm); font-size: 18px; color: var(--ink); display: grid; place-items: center; transition: background .15s; }
.car-btn:hover { background: var(--fill); }
.spot { scroll-snap-align: start; position: relative; border-radius: 20px; padding: 20px; color: #fff; min-height: 220px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.spot:hover { transform: translateY(-3px); }
.spot::before { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.spot .eyebrow { color: rgba(255, 255, 255, .8); position: relative; }
.spot h3 { margin: 6px 0 4px; font-family: var(--font-d); font-size: 22px; letter-spacing: -.02em; line-height: 1.15; position: relative; max-width: 80%; }
.spot p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .88); position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot .emo { position: absolute; right: 18px; top: 16px; font-size: 44px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.spot footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.spot footer small { font-weight: 600; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.get { border: 0; background: var(--fill); color: var(--link); font-weight: 750; font-size: 13px; padding: 6px 15px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; flex: none; }
.spot .get, .kit .get { background: rgba(255, 255, 255, .95); color: #1D1D1F; }

/* iconos de app */
.app-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 3px 8px -3px rgba(0, 0, 0, .25); }
.app-ic.lg { width: 76px; height: 76px; border-radius: 19px; font-size: 38px; }

/* tarjetas de plantilla */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.card-top .txt { flex: 1; min-width: 0; }
.card-top b { display: block; font-size: 15.5px; line-height: 1.25; }
.card-top small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { margin: 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.card-foot .get { margin-left: auto; }
.tagx { font-size: 10.5px; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tagx.pro { background: #E8F1FF; color: #0659C7; }
.tagx.pop { background: #FFF1DB; color: #A35A00; }
[data-mode="dark"] .tagx.pro { background: #0B2A52; color: #8AB8FF; }
[data-mode="dark"] .tagx.pop { background: #3D2A0A; color: #FFC266; }
.fav { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--ink-3); flex: none; transition: transform .15s, background .15s; }
.fav:hover { background: var(--fill); }
.fav.on { color: #FF375F; }
.fav.pop-anim { animation: heart .35s ease; }
@keyframes heart { 40% { transform: scale(1.35); } }

/* filas compactas (ranking) */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; background: var(--card); border-radius: 18px; padding: 4px 18px; box-shadow: var(--shadow-sm); }
.rowi { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rowi:nth-last-child(-n+2) { border-bottom: 0; }
.rowi .rank { width: 20px; text-align: center; font-weight: 800; font-size: 16px; color: var(--ink-3); flex: none; }
.rowi .app-ic { width: 48px; height: 48px; border-radius: 12px; font-size: 23px; }
.rowi .txt { flex: 1; min-width: 0; }
.rowi b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* categorías */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; min-width: 0; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex: none; }
.cat b { display: block; font-size: 13.5px; line-height: 1.2; }
.cat small { color: var(--ink-3); font-size: 12px; }

/* kits */
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit { position: relative; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.kit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kit-top { padding: 18px 18px 46px; color: #fff; position: relative; }
.kit-top .eyebrow { color: rgba(255, 255, 255, .8); }
.kit-top h3 { margin: 4px 0 0; font-family: var(--font-d); font-size: 21px; letter-spacing: -.02em; }
.kit-top .emo { position: absolute; right: 16px; top: 12px; font-size: 38px; }
.kit-stack { display: flex; padding: 0 18px; margin-top: -28px; position: relative; }
.kit-stack .app-ic { width: 52px; height: 52px; font-size: 24px; border-radius: 13px; border: 3px solid var(--card); margin-right: -10px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.kit-stack .more { width: 52px; height: 52px; border-radius: 13px; border: 3px solid var(--card); background: var(--fill); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.kit-body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kit-body p { margin: 0; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.kit-body footer { display: flex; align-items: center; justify-content: space-between; }
.kit-body footer small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.kit-body .get { background: var(--fill); color: var(--link); }

/* explorar */
.toolbar { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 10px 0 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { border: 0; background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-sm); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: background .15s; }
.pill:hover { background: var(--fill); }
.pill.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.pill small { opacity: .6; font-weight: 700; }
.sel { border: 0; background: var(--card); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 32px 8px 14px; font-size: 13.5px; font-weight: 600; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2386868B' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.count-line { color: var(--ink-3); font-size: 13.5px; margin: 0 0 12px; }
.empty { padding: 70px 20px; text-align: center; color: var(--ink-3); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); }
.empty b { display: block; font-size: 40px; margin-bottom: 8px; }

/* ================= ficha (estudio) ================= */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--link); }
.crumbs a:hover { text-decoration: underline; }
.d-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-sm); padding: 20px 22px; display: flex; gap: 18px; align-items: center; }
.d-card .txt { flex: 1; min-width: 0; }
.d-card h1 { margin: 0; font-family: var(--font-d); font-size: 27px; letter-spacing: -.025em; line-height: 1.15; }
.d-card .meta { display: flex; gap: 6px; align-items: center; margin: 4px 0 6px; color: var(--ink-3); font-size: 13.5px; flex-wrap: wrap; }
.d-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 640px; }
.d-act { display: flex; gap: 8px; align-items: center; flex: none; }
.d-act .fav { width: 42px; height: 42px; background: var(--fill); font-size: 19px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 2px 0; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: var(--card); box-shadow: var(--shadow-sm); padding: 5px 11px; border-radius: 999px; }

.studio { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.panel { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card-2); border-bottom: 1px solid var(--line); }
.step { border: 0; background: transparent; padding: 11px 4px 10px; display: grid; justify-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); border-bottom: 2.5px solid transparent; }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: 12px; font-weight: 800; color: var(--ink-2); transition: .2s; }
.step.on { color: var(--ink); border-bottom-color: var(--brand); }
.step.on i { background: var(--brand); color: #fff; }
.step.done i { background: var(--brand-soft); color: var(--brand-2); }
.pane { padding: 16px 18px 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.pane h4 { margin: 0 0 3px; font-size: 16px; }
.pane .hint { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.pane-nav { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--card-2); }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label, .lbl { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.inp { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: var(--card); outline: 0; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2386868B' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cols { display: grid; gap: 6px; }
.colrow { border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); padding: 5px 6px 5px 8px; transition: opacity .15s; }
.colrow.off { opacity: .5; }
.colrow-main { display: flex; align-items: center; gap: 7px; }
.colname { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 7px; font-size: 14px; font-weight: 550; outline: 0; }
.colname:hover { background: var(--card); border-color: var(--line); }
.colname:focus { background: var(--card); border-color: var(--link); }
.ctype { font-size: 10.5px; font-weight: 750; color: var(--ink-3); background: var(--fill); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.ctype.fx { color: var(--brand-2); background: var(--brand-soft); }
.mini { border: 0; background: var(--fill); color: var(--link); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.mini.del { color: #FF375F; }
.opts textarea { width: 100%; min-height: 90px; margin-top: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 7px 9px; font-size: 13.5px; outline: 0; resize: vertical; }
.opts small { color: var(--ink-3); font-size: 12px; }
.addcol { display: grid; grid-template-columns: 1fr 110px; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.addcol .full { grid-column: 1 / -1; }
.switch { position: relative; width: 38px; height: 23px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--fill-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: .2s; }
.switch input:checked + span { background: #34C759; }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow b { font-size: 14px; font-weight: 550; }
.trow small { display: block; font-size: 12px; color: var(--ink-3); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme { border: 0; border-radius: 12px; padding: 0; overflow: hidden; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .15s; }
.theme.on { box-shadow: inset 0 0 0 2px var(--link); }
.theme .sw { height: 30px; display: grid; grid-template-columns: 2fr 1fr; }
.theme span { display: block; padding: 6px 9px; font-size: 12.5px; font-weight: 650; }
.rowsel { display: flex; gap: 6px; flex-wrap: wrap; }
.rowsel button { border: 0; background: var(--fill); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.rowsel button.on { background: var(--ink); color: var(--bg); }

.stage { min-width: 0; display: grid; gap: 14px; }
.xl { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: #1D1D1F; }
.xl-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #1D6F42; color: #fff; font-size: 12.5px; font-weight: 650; }
.xl-bar i { width: 18px; height: 18px; border-radius: 4px; background: #fff; color: #1D6F42; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 11px; }
.xl-bar em { margin-left: auto; font-style: normal; opacity: .8; font-weight: 500; }
.xl-scroll { overflow: auto; height: 470px; }
.xl table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.xl td, .xl th { border-right: 1px solid #E8EBEF; border-bottom: 1px solid #E8EBEF; padding: 6px 9px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.xl .letters th { background: #F3F4F6; color: #8A94A3; font-weight: 600; font-size: 11px; text-align: center; position: sticky; top: 0; z-index: 2; padding: 3px; }
.xl .rn { background: #F3F4F6; color: #8A94A3; font-size: 11px; text-align: center; width: 32px; min-width: 32px; position: sticky; left: 0; z-index: 1; }
.xl .letters th.rn { z-index: 3; }
.xl .t-title td.cell { background: var(--x-dark); color: #fff; font-weight: 800; font-size: 15px; padding: 10px 12px; }
.xl .t-sub td.cell { color: #5B6B7F; font-style: italic; font-size: 11.5px; }
.xl .t-param td.pl { background: var(--x-light); color: var(--x-dark); font-weight: 700; }
.xl .t-param td.pv { background: #FFF4CC; font-weight: 700; text-align: center; box-shadow: inset 0 0 0 1px #E5B93C; }
.xl .t-sec td { color: var(--x-dark); font-weight: 800; font-size: 13.5px; border-bottom: 2px solid var(--x-mid); }
.xl .t-head th.cell { background: var(--x-mid); color: #fff; font-weight: 700; text-align: center; white-space: normal; min-width: 70px; line-height: 1.25; padding: 7px 9px; }
.xl .t-row.band td.cell { background: var(--x-band); }
.xl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.xl td.c { text-align: center; }
.xl .fxp { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--x-mid); background: var(--x-light); padding: 1px 6px; border-radius: 5px; font-style: italic; }
.xl .t-more td { text-align: center; color: #8A94A3; font-size: 12px; background: repeating-linear-gradient(45deg, #FAFBFC, #FAFBFC 6px, #F3F5F8 6px, #F3F5F8 12px); }
.xl .t-tot td.cell { background: var(--x-light); color: var(--x-dark); font-weight: 800; border-top: 2px solid var(--x-mid); }
.xl .t-ext td.el { text-align: right; font-weight: 700; color: #334155; }
.xl .t-ext td.ev { background: var(--x-light); color: var(--x-dark); font-weight: 800; text-align: right; }
.xl .t-ext.final td.ev { background: var(--x-dark); color: #fff; }
.xl .t-tip td.num { background: var(--x-mid); color: #fff; font-weight: 800; text-align: center; }
.xl .t-tip td.tip { background: var(--x-band); white-space: normal; max-width: 640px; }
.xl .bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--x-mid); opacity: .55; vertical-align: middle; }
.xl-tabs { display: flex; gap: 2px; padding: 0 10px; background: #F3F4F6; border-top: 1px solid #E5E7EB; overflow-x: auto; }
.xl-tabs button { border: 0; background: transparent; padding: 8px 14px; font-size: 12.5px; font-weight: 650; color: #6B7280; border-bottom: 3px solid transparent; white-space: nowrap; }
.xl-tabs button:hover { color: #111827; }
.xl-tabs button.on { background: #fff; color: #111827; border-bottom-color: var(--x-mid); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tag.good { background: #DCFCE7; color: #166534; } .tag.warn { background: #FEF3C7; color: #92400E; }
.tag.bad { background: #FEE2E2; color: #991B1B; } .tag.info { background: #DBEAFE; color: #1E40AF; }
.tag.muted { background: #EEF2F6; color: #475569; } .tag.purple { background: #EDE9FE; color: #5B21B6; }
.dlbar { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 12px 14px 12px 16px; box-shadow: var(--shadow-sm); }
.dlbar .xls { width: 42px; height: 42px; border-radius: 11px; background: #1D6F42; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: none; }
.dlbar .meta { flex: 1; min-width: 0; }
.dlbar .meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlbar .meta small { font-size: 12.5px; color: var(--ink-3); }
.dlbar .btn { padding: 12px 22px; font-size: 15px; }
.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 30px; }
.box { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.box h3 { margin: 0 0 10px; font-size: 17px; font-family: var(--font-d); }
.box p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.inc { display: grid; gap: 10px; }
.inc div { display: flex; gap: 11px; align-items: flex-start; }
.inc i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; flex: none; font-size: 14px; }
.inc b { display: block; font-size: 14px; }
.inc span { display: block; font-size: 12.5px; color: var(--ink-3); }
.howto { counter-reset: s; display: grid; gap: 10px; margin-top: 14px; }
.howto div { display: flex; gap: 11px; font-size: 14px; color: var(--ink-2); }
.howto div::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }

/* kit detalle */
.kit-items { display: grid; gap: 8px; }
.kit-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.kit-item .app-ic { width: 42px; height: 42px; font-size: 20px; border-radius: 11px; }
.kit-item .txt { flex: 1; min-width: 0; }
.kit-item b { display: block; font-size: 14px; }
.kit-item small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-item.off { opacity: .5; }
.cover-prev { background: #fff; color: #1D1D1F; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.cover-prev header { padding: 18px 20px; color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.cover-prev .sub { padding: 8px 20px; font-size: 12px; font-style: italic; color: #5B6B7F; }
.cover-prev ol { list-style: none; margin: 0; padding: 6px 20px 18px; display: grid; gap: 2px; }
.cover-prev li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEF1F4; font-size: 13px; }
.cover-prev li i { font-style: normal; width: 24px; height: 24px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.cover-prev li b { color: #0B57D0; text-decoration: underline; }
.cover-prev li span { display: block; color: #64748B; font-size: 12px; }

/* guía: para qué sirve cada plantilla */
.guide-search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 4px 14px; box-shadow: var(--shadow-sm); margin-bottom: 16px; max-width: 560px; }
.guide-search input { border: 0; outline: 0; background: transparent; flex: 1; padding: 10px 0; font-size: 15px; color: var(--ink); }
.guide-search:focus-within { box-shadow: 0 0 0 3px rgba(10, 132, 255, .25); }
.guide { display: grid; gap: 10px; }
.gsec { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.gsec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.gsec summary::-webkit-details-marker { display: none; }
.gsec summary:hover { background: var(--card-2); }
.gsec summary .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex: none; }
.gsec summary .txt { flex: 1; min-width: 0; }
.gsec summary b { display: block; font-size: 16px; }
.gsec summary small { color: var(--ink-3); font-size: 13px; }
.gsec .chev { font-style: normal; font-size: 22px; color: var(--ink-3); transition: transform .2s; }
.gsec[open] .chev { transform: rotate(90deg); }
.glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; padding: 0 18px 10px; border-top: 1px solid var(--line); }
.gitem { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.gitem .app-ic { width: 44px; height: 44px; border-radius: 11px; font-size: 21px; }
.gitem .txt { flex: 1; min-width: 0; }
.gitem b { display: block; font-size: 14.5px; }
.gitem .txt span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.gitem .go { color: var(--ink-3); font-size: 20px; flex: none; }
.gitem:hover b { color: var(--brand-2); }
@media (max-width: 860px) { .glist { grid-template-columns: 1fr; } }

/* asistente */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); animation: fade .2s; }
.modal-box { position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 28px; animation: pop .3s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); font-size: 15px; }
.dots { display: flex; gap: 6px; margin-bottom: 14px; }
.dots i { width: 26px; height: 5px; border-radius: 9px; background: var(--fill-2); }
.dots i.on { background: linear-gradient(90deg, #7C3AED, #2563EB); }
.modal-box h2 { margin: 0 0 4px; font-family: var(--font-d); font-size: 26px; letter-spacing: -.02em; }
.modal-box > p { margin: 0 0 20px; color: var(--ink-3); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { border: 0; text-align: left; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; font-weight: 650; font-size: 14.5px; transition: box-shadow .15s, transform .15s; }
.choice:hover { box-shadow: inset 0 0 0 2px var(--link); transform: translateY(-1px); }
.choice span { font-size: 26px; }
.result-kit { margin-top: 18px; display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 14px; color: #fff; }
.result-kit .txt { flex: 1; }
.result-kit b { display: block; }
.result-kit small { opacity: .88; }
.link-btn { border: 0; background: none; color: var(--link); font-weight: 650; padding: 0; margin-top: 16px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); opacity: 0; z-index: 200; pointer-events: none; background: rgba(29, 29, 31, .94); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); transition: .3s; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #D70015; }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio { grid-template-columns: 1fr; }
  .panel { position: static; }
  .pane { max-height: none; }
  .carousel { grid-auto-columns: calc((100% - 18px) / 2); }
  .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 10px; }
  .brand { font-size: 19px; padding: 0; }
  .side-search { order: 3; flex-basis: 100%; }
  .side-nav { order: 4; flex-basis: 100%; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; padding: 4px 10px 4px 4px; font-size: 13.5px; background: var(--fill); }
  .nav-item .ic { width: 24px; height: 24px; font-size: 13px; }
  .nav-item small { display: none; }
  .assist-cta, .side-note, .kbd { display: none; }
  .side-foot { margin: 0 0 0 auto; order: 2; }
  .prefs { grid-template-columns: auto auto auto; }
  .main { padding: 20px 16px 70px; }
  .hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .hero h1 { font-size: 30px; }
  .hero-art { display: none; }
  .carousel { grid-auto-columns: 86%; }
  .car-btn { display: none; }
  .rows { grid-template-columns: 1fr; }
  .rowi:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .kits { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-card { flex-wrap: wrap; }
  .d-act { width: 100%; }
  .d-act .btn { flex: 1; }
  .info-grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .h1 { font-size: 28px; }
}
@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .seg button { padding: 4px 5px; font-size: 11.5px; }
}

/* licencia */
.lic { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 11px; font-size: 13px; font-weight: 700; background: var(--fill); color: var(--ink-2); }
.lic.on { background: var(--brand-soft); color: var(--brand-2); }
.lic.off { background: linear-gradient(135deg, #FFB547, #FF8A3D); color: #3B2300; }
.act-box { display: grid; gap: 10px; margin-top: 6px; }
.act-row { display: flex; gap: 8px; }
.act-row .inp { flex: 1; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.act-err { color: #FF375F; font-weight: 650; font-size: 13.5px; min-height: 18px; }
.act-price { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #065F4B, #0E9F7E 60%, #13B9A0); }
.act-price b { font-size: 26px; font-family: var(--font-d); }
.act-price span { flex: 1; font-size: 13.5px; opacity: .9; }
@media (max-width: 860px) { .lic { order: 5; } }
.lic.install { border: 0; width: 100%; text-align: left; background: linear-gradient(135deg, #0E9F7E, #13B9A0); color: #fff; cursor: pointer; }

/* ================= Bonos (prompts y presentaciones) ================= */
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.bono-hero { padding: 8px 0 18px; }
.bono-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; margin: 6px 0 8px; }
.bono-hero p { color: var(--ink-2); margin: 0 0 16px; max-width: 620px; }
.bono-q { max-width: 520px; width: 100%; }
.bono-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.bono-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bono-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bono-card b { font-size: 15.5px; }
.bono-card small { color: var(--ink-2); font-size: 13px; }
.bono-p { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fill); color: var(--ink); border-radius: 10px; padding: 10px 12px; margin: 0; max-height: 210px; overflow: auto; flex: 1; }
.bono-card.locked .bono-p { filter: blur(3px); user-select: none; }
.bono-card .btn { align-self: flex-start; }
.bono-lock { margin: 26px 0 10px; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #0E9F7E, #0EA5E9); color: #fff; text-align: center; }
.bono-lock b { font-size: 19px; }
.bono-lock p { margin: 6px 0 14px; opacity: .92; }
.bono-lock .btn-green { background: #fff; color: #065F4B; }
.bono-load { color: var(--ink-2); padding: 30px 0; }
.pres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pres-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pres-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--fill); }
.pres-txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pres-txt small { color: var(--ink-2); }
.pres-txt .btn { align-self: flex-start; margin-top: 6px; }
.xl { min-width: 0; max-width: 100%; }
@media (max-width: 700px) { .xl { width: 100%; } .studio, .studio > *, .pane, .panel { min-width: 0; max-width: 100%; } }
