/* Tunbuild · landing pública */
:root {
  --ink: #1d2721;
  --ink-2: #26332b;
  --ink-3: #31403a;
  --camel: #b08d57;
  --camel-2: #c9a774;
  --cream: #f6f1e7;
  --cream-2: #efe8da;
  --paper: #fffdf8;
  --line: #e4dccb;
  --text: #1f2a24;
  --muted: #6b665c;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-camel { background: var(--camel); color: #1d2721; }
.btn-camel:hover { background: var(--camel-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--cream-2); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #d9d2c3; }
.btn-google:hover { background: #faf8f3; }
.btn-google svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 231, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: 0 0 36px; }
.brand b { font: 600 15px var(--serif); letter-spacing: .3em; color: var(--ink); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions .login { display: none; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (min-width: 520px) { .top-actions .login { display: inline-flex; } }
@media (max-width: 380px) { .brand b { display: none; } }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--camel); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--camel); border-radius: 2px; }
.hero h1 { font: 500 clamp(40px, 6.4vw, 66px)/1.04 var(--serif); letter-spacing: -.02em; color: var(--ink); margin: 0 0 22px; }
.hero h1 em { font-style: italic; color: var(--camel); }
.lead { font-size: clamp(17px, 2vw, 19px); color: #4b4a42; margin: 0 0 32px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) { .cta .btn { width: 100%; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--muted); font-size: 14px; list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; stroke: var(--camel); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Visual del hero: ventana del panel + teléfono */
.visual { position: relative; min-height: 420px; display: flex; justify-content: center; }
.window { display: none; position: absolute; left: 0; top: 30px; width: 92%; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(29, 39, 33, .35); overflow: hidden; }
.window .bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.window .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8cfbd; }
.window .shot { aspect-ratio: 1114 / 760; overflow: hidden; }
.window .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.window .shot .shot-dark { display: none; }
@media (min-width: 720px) { .visual { min-height: 520px; justify-content: flex-end; } .window { display: block; } }
.phone { position: relative; z-index: 2; width: 250px; padding: 10px; border-radius: 40px; background: #0f1311; box-shadow: 0 40px 70px -30px rgba(29, 39, 33, .55), inset 0 0 0 1px #2a302d; }
.phone img { border-radius: 31px; width: 100%; }
@media (min-width: 720px) { .phone { width: 270px; margin-right: 6px; margin-top: 70px; } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 30px -18px rgba(29, 39, 33, .4); font-size: 13.5px; }
.chip b { display: block; font-weight: 600; color: var(--ink); }
.chip span { color: var(--muted); font-size: 12.5px; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.chip .dot svg { width: 18px; height: 18px; stroke: var(--camel-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-1 { left: -6px; bottom: 70px; }
@media (min-width: 720px) { .chip-1 { left: 0; top: 400px; bottom: auto; } }

/* Protocolos */
.protos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.protos .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; padding-top: 22px; padding-bottom: 22px; }
.protos p { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; width: 100%; text-align: center; }
@media (min-width: 900px) { .protos p { width: auto; } }
.protos span { font: 600 16px var(--serif); color: var(--ink-3); }

/* Secciones */
section.block { padding: 72px 0; }
@media (min-width: 980px) { section.block { padding: 104px 0; } }
.head { max-width: 640px; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font: 500 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 14px; }
.head p { color: var(--muted); font-size: 17px; margin: 0; }
.head.center .eyebrow { justify-content: center; }

/* Pasos */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); font: 500 40px/1 var(--serif); color: var(--camel); display: block; margin-bottom: 18px; }
.step h3 { font: 600 20px/1.3 var(--serif); margin: 0 0 8px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

/* Funciones */
.dark { background: var(--ink); color: #e8e1d2; }
.dark .head h2 { color: #f6f1e7; }
.dark .head p { color: #b5ad9d; }
.features { display: grid; gap: 1px; background: rgba(201, 167, 116, .16); border: 1px solid rgba(201, 167, 116, .16); border-radius: 20px; overflow: hidden; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--ink); padding: 30px 28px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(201, 167, 116, .25); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--camel-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font: 600 19px/1.3 var(--serif); color: #f6f1e7; margin: 0 0 8px; }
.feature p { margin: 0; color: #b5ad9d; font-size: 15px; }

/* Precios */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 980px; margin: 0 auto; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(29, 39, 33, .45); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--ink); color: var(--camel-2); font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font: 600 20px var(--serif); margin: 0 0 6px; color: var(--ink); }
.plan .desc { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; min-height: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.price b { font: 500 42px/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.price span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; stroke: var(--camel); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Preguntas */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font: 600 18px/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--sans); color: var(--camel); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: #4b4a42; }

/* Cierre */
.final { padding: 0 0 72px; }
.final .box { background: var(--ink); border-radius: 26px; padding: 52px 24px; text-align: center; position: relative; overflow: hidden; }
.final .box::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201, 167, 116, .18); right: -140px; top: -200px; }
.final h2 { font: 500 clamp(30px, 4.4vw, 46px)/1.1 var(--serif); color: #f6f1e7; margin: 0 0 14px; position: relative; }
.final h2 em { color: var(--camel-2); }
.final p { color: #b5ad9d; margin: 0 auto 28px; max-width: 520px; position: relative; }
.final .cta { justify-content: center; position: relative; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; }
.lang button { border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 13px var(--sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); background: var(--paper); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Demo animada dentro del teléfono ===== */
.phone-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (min-width: 720px) { .phone-wrap { margin-right: 6px; margin-top: 40px; } .phone-wrap .phone { margin: 0; } }
.demo { position: relative; aspect-ratio: 720 / 1520; border-radius: 31px; overflow: hidden; background: #15191b; color: #ece6da; font-family: var(--sans); }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 18px; opacity: 0; transform: scale(.97); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.scene.active { opacity: 1; transform: none; }
.demo-caption { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 52px; }
.demo-caption b { font: 600 16px var(--serif); color: var(--ink); transition: opacity .3s; }
.demo-dots { display: flex; gap: 8px; }
.demo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #d3c9b5; cursor: pointer; transition: width .3s, background .3s; }
.demo-dots button.on { width: 26px; background: var(--camel); }

/* 1 · Tu marca (los colores e íconos los pone el JS por ejemplo) */
.b-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--ex-grad, linear-gradient(145deg, #c9a774, #94723f)); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px var(--ex-glow, rgba(201, 167, 116, .6)); transition: background .4s, box-shadow .4s; }
.b-icon svg, .b-home i.me svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.b-icon.pop { animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.b-name { margin-top: 20px; font: 600 23px var(--serif); min-height: 32px; display: flex; align-items: center; }
.caret { width: 2px; height: 24px; background: var(--camel-2); margin-left: 3px; animation: blink 1s steps(1) infinite; }
.b-pkg { margin-top: 6px; font: 12px ui-monospace, Menlo, Consolas, monospace; color: #8f8879; min-height: 16px; transition: opacity .3s; }
.b-home { position: absolute; bottom: 34px; left: 22px; right: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.b-home i { aspect-ratio: 1; border-radius: 12px; background: #23292b; }
.b-home i.me { background: var(--ex-grad, linear-gradient(145deg, #c9a774, #94723f)); display: flex; align-items: center; justify-content: center; transition: background .4s; }
.b-home i.me svg { width: 55%; height: 55%; }
.b-home i.me.pop { animation: pop .55s .25s cubic-bezier(.2, 1.4, .4, 1) both; }

/* 2 · Tu diseño: 3 diseños distintos que se van turnando */
.s-design { padding: 0; }
.lay { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 34px 16px 20px; opacity: 0; transform: translateX(30px); transition: opacity .45s ease, transform .45s ease; }
.lay.on { opacity: 1; transform: none; }
.lay.out { opacity: 0; transform: translateX(-30px); }
.lay-tag { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); white-space: nowrap; }
/* Clásico */
.l1 { background: #1d2721; }
.l1-top { display: flex; align-items: center; gap: 8px; font: 600 10.5px var(--sans); letter-spacing: .16em; color: #ece6da; margin-top: 10px; }
.l1-top b { width: 22px; height: 22px; border-radius: 7px; background: #c9a774; }
.l1-status { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.l1-status small { font-size: 10px; letter-spacing: .2em; color: rgba(236, 230, 218, .55); font-weight: 600; }
.l1-status strong { font: 500 21px/1.2 var(--serif); text-align: center; color: #c9a774; }
.l1-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.l1-tiles i { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.l1-btn { height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font: 700 12px var(--sans); letter-spacing: .14em; background: #c9a774; color: #1d2721; }
/* Neón */
.l2 { background: radial-gradient(120% 70% at 50% 45%, #1e1747 0%, #0b0b16 70%); align-items: center; }
.l2-pill { margin-top: 14px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #cfd2ff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(140, 120, 255, .3); padding: 6px 11px; border-radius: 99px; }
.l2-pill b { font-size: 9.5px; color: #8b7bff; }
.l2-orb { margin-top: auto; width: 118px; height: 118px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #8b7bff, #4b2fd6 60%, #2a1a8a); box-shadow: 0 0 0 10px rgba(139, 123, 255, .12), 0 0 46px rgba(139, 123, 255, .55); }
.lay.l2.on .l2-orb { animation: orb 1.6s ease-in-out infinite; }
.l2-orb svg { width: 42px; height: 42px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.l2-name { margin-top: 22px; font: 800 15px var(--sans); letter-spacing: .32em; color: #fff; }
.l2-stats { margin: auto 0 6px; display: flex; gap: 16px; font-size: 11.5px; color: #9aa0d8; font-variant-numeric: tabular-nums; }
@keyframes orb { 50% { box-shadow: 0 0 0 16px rgba(139, 123, 255, .08), 0 0 60px rgba(139, 123, 255, .75); } }
/* Claro */
.l3 { background: #faf6f0; color: #2a2230; }
.l3-head { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font: 700 20px var(--sans); letter-spacing: -.02em; color: #e0607e; }
.l3-head i { width: 30px; height: 30px; border-radius: 50%; background: #f3dde3; }
.l3-card { margin-top: 18px; display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px -12px rgba(80, 40, 60, .35); }
.l3-card b { width: 34px; height: 34px; border-radius: 10px; background: #fde7ec; color: #e0607e; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.l3-card strong { display: block; font-size: 13.5px; }
.l3-card small { font-size: 11px; color: #8a7f86; }
.l3-switch { margin: auto auto 0; width: 92px; height: 50px; border-radius: 99px; background: #e9e1e4; padding: 5px; transition: background .4s; }
.l3-switch i { display: block; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.lay.l3.on .l3-switch { animation: swBg .1s .9s forwards; }
.lay.l3.on .l3-switch i { animation: swDot .4s .9s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes swBg { to { background: #e0607e; } }
@keyframes swDot { to { transform: translateX(42px); } }
.l3-state { text-align: center; margin: 12px 0 auto; font: 600 14px var(--sans); color: #e0607e; }
.l3-nav { display: flex; justify-content: space-around; padding: 12px 6px 4px; border-top: 1px solid #ece4e7; }
.l3-nav i { width: 22px; height: 5px; border-radius: 3px; background: #d9cfd3; }
.l3-nav i.on { background: #e0607e; }

/* 2b · Layout web: código HTML que se convierte en pantalla */
.s-web { padding: 0; }
.w-code { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); background: #0f1214; border: 1px solid #2a3133; border-radius: 14px; overflow: hidden; transition: opacity .5s, transform .5s; }
.w-file { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #181d1f; border-bottom: 1px solid #2a3133; }
.w-file i { width: 7px; height: 7px; border-radius: 50%; background: #3a4244; }
.w-file span { margin-left: 6px; font: 600 10.5px ui-monospace, Menlo, Consolas, monospace; color: #c9a774; }
.w-code pre { margin: 0; padding: 12px 11px 14px; font: 10.5px/1.7 ui-monospace, Menlo, Consolas, monospace; color: #d7d2c7; white-space: pre-wrap; word-break: break-word; }
.w-code .ln { display: block; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.w-code .ln.on { opacity: 1; transform: none; }
.w-code em { font-style: normal; color: #e0607e; }
.w-code u { text-decoration: none; color: #8fb5fa; }
.w-code s { text-decoration: none; color: #9fd2b0; }
.s-web.built .w-code { opacity: 0; transform: translateY(-50%) scale(.9); }
.w-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 24px; background: linear-gradient(180deg, #2b1055 0%, #7b2a8c 45%, #ff7a59 85%, #ffc36a 100%); opacity: 0; transform: scale(1.06); transition: opacity .6s, transform .6s; overflow: hidden; }
.s-web.built .w-result { opacity: 1; transform: none; }
.w-sun { position: absolute; width: 170px; height: 170px; border-radius: 50%; bottom: -70px; background: radial-gradient(circle, #ffe08a, #ff9b5a 60%, transparent 70%); opacity: .8; }
.w-title { margin-top: 26px; font: 900 27px/1 var(--sans); letter-spacing: .04em; color: #fff; text-shadow: 0 4px 18px rgba(255, 90, 160, .6); }
.w-sub { margin-top: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.w-btn { margin-top: 44px; width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); transform: rotate(-6deg); position: relative; z-index: 1; }
.s-web.built .w-btn { animation: tilt 1.4s .4s ease-in-out infinite alternate; }
@keyframes tilt { to { transform: rotate(6deg) scale(1.05); } }
.w-chips { margin-top: auto; display: flex; gap: 6px; position: relative; z-index: 1; }
.w-chips span { font-size: 10.5px; font-weight: 600; color: #3a1640; background: rgba(255, 255, 255, .85); padding: 5px 9px; border-radius: 99px; }

/* 3 · Servidores */
.s-servers { justify-content: flex-start; padding-top: 40px; gap: 9px; }
.sv-title { align-self: flex-start; font: 600 18px var(--serif); margin: 0 4px 6px; }
.sv-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #1f2527; border: 1px solid #2a3133; font-size: 13px; opacity: 0; }
.sv-row b { width: 28px; height: 28px; border-radius: 8px; background: #2a3133; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: #c9a774; letter-spacing: .04em; flex: 0 0 28px; }
.sv-row span { flex: 1; }
.sv-row em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #8f8879; border: 1px solid #343b3d; border-radius: 6px; padding: 2px 6px; }
.s-servers.active .sv-row { animation: slideIn .45s both; }
.s-servers.active .sv-row:nth-of-type(2) { animation-delay: .15s; }
.s-servers.active .sv-row:nth-of-type(3) { animation-delay: .3s; }
.s-servers.active .sv-row:nth-of-type(4) { animation-delay: .45s; }
.s-servers.active .sv-row.new { animation: slideIn .45s 1.4s both, glow 1.6s 1.9s both; }
.sv-toast { position: absolute; left: 14px; right: 14px; bottom: 30px; display: flex; gap: 9px; align-items: center; padding: 11px 13px; border-radius: 14px; background: #2f5a3f; color: #e7f2ea; font-size: 12.5px; font-weight: 500; opacity: 0; }
.sv-toast svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-servers.active .sv-toast { animation: fadeUp .45s 2.1s both; }
@keyframes glow { 0% { border-color: #c9a774; box-shadow: 0 0 0 3px rgba(201, 167, 116, .25); } 100% { border-color: #2a3133; box-shadow: none; } }

/* 4 · Conectar */
.c-label { font-size: 11px; letter-spacing: .24em; font-weight: 600; color: #8f8879; }
.c-state { position: relative; height: 40px; width: 100%; margin-top: 6px; }
.c-state span { position: absolute; inset: 0; text-align: center; font: 500 30px/40px var(--serif); transition: opacity .4s; }
.c-state .off { color: #ece6da; }
.c-state .on { color: #9fd2b0; opacity: 0; }
.c-time { margin-top: 8px; font-size: 13px; color: #8f8879; opacity: 0; font-variant-numeric: tabular-nums; }
.c-power { margin-top: 44px; width: 96px; height: 96px; border-radius: 50%; background: #1f2527; border: 1px solid #343b3d; display: flex; align-items: center; justify-content: center; position: relative; }
.c-power svg { width: 38px; height: 38px; stroke: #ece6da; fill: none; stroke-width: 2; stroke-linecap: round; }
.c-power::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid #c9a774; opacity: 0; }
.s-connect.active .c-power::after { animation: ring 1.1s 2 both; }
.s-connect.active .c-state .off { animation: hide .3s 1.6s forwards; }
.s-connect.active .c-state .on { animation: show .4s 1.7s forwards; }
.s-connect.active .c-time { animation: show .4s 1.8s forwards; }
.s-connect.active .c-power { animation: onBtn .5s 1.6s forwards; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes onBtn { to { background: #2f5a3f; border-color: #3f7553; } }
@keyframes hide { to { opacity: 0; } }
@keyframes show { to { opacity: 1; } }

@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scene, .scene * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ===== Modo oscuro: sigue al sistema; "data-theme" (elegido en el panel) manda ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #111513;
    --cream-2: #1b211e;
    --paper: #181e1b;
    --line: #2a322e;
    --text: #e6e0d4;
    --muted: #a39c8e;
    --ink: #f1ebdf;
    --focus: rgba(201, 167, 116, .3);
  }
  html:not([data-theme="light"]) body { color-scheme: dark; }
  html:not([data-theme="light"]) .top { background: rgba(17, 21, 19, .86); }
  html:not([data-theme="light"]) .btn-primary { background: #c9a774; color: #15120c; }
  html:not([data-theme="light"]) .btn-primary:hover { background: #d8b98a; }
  html:not([data-theme="light"]) .btn-google { border-color: #3a423e; }
  html:not([data-theme="light"]) .lead { color: #c9c2b4; }
  html:not([data-theme="light"]) .protos span { color: #cfc7b8; }
  html:not([data-theme="light"]) .chip .dot { background: #1d2721; }
  html:not([data-theme="light"]) .dark { background: #1d2721; }
  html:not([data-theme="light"]) .feature { background: #1d2721; }
  html:not([data-theme="light"]) .feature .ic { background: #26332b; }
  html:not([data-theme="light"]) .plan.featured { border-color: #c9a774; }
  html:not([data-theme="light"]) .plan .badge { background: #1d2721; border: 1px solid #3a4a40; }
  html:not([data-theme="light"]) .faq details p { color: #c9c2b4; }
  html:not([data-theme="light"]) .final .box { background: #1d2721; border: 1px solid #2a352f; }
  html:not([data-theme="light"]) .demo-dots button { background: #3a423e; }
  html:not([data-theme="light"]) .demo-dots button.on { background: #c9a774; }
  html:not([data-theme="light"]) .window { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
}
:root[data-theme="dark"] {
  --cream: #111513;
  --cream-2: #1b211e;
  --paper: #181e1b;
  --line: #2a322e;
  --text: #e6e0d4;
  --muted: #a39c8e;
  --ink: #f1ebdf;
  --focus: rgba(201, 167, 116, .3);
}
html[data-theme="dark"] body { color-scheme: dark; }
html[data-theme="dark"] .top { background: rgba(17, 21, 19, .86); }
html[data-theme="dark"] .btn-primary { background: #c9a774; color: #15120c; }
html[data-theme="dark"] .btn-primary:hover { background: #d8b98a; }
html[data-theme="dark"] .btn-google { border-color: #3a423e; }
html[data-theme="dark"] .lead { color: #c9c2b4; }
html[data-theme="dark"] .protos span { color: #cfc7b8; }
html[data-theme="dark"] .chip .dot { background: #1d2721; }
html[data-theme="dark"] .dark { background: #1d2721; }
html[data-theme="dark"] .feature { background: #1d2721; }
html[data-theme="dark"] .feature .ic { background: #26332b; }
html[data-theme="dark"] .plan.featured { border-color: #c9a774; }
html[data-theme="dark"] .plan .badge { background: #1d2721; border: 1px solid #3a4a40; }
html[data-theme="dark"] .faq details p { color: #c9c2b4; }
html[data-theme="dark"] .final .box { background: #1d2721; border: 1px solid #2a352f; }
html[data-theme="dark"] .demo-dots button { background: #3a423e; }
html[data-theme="dark"] .demo-dots button.on { background: #c9a774; }
html[data-theme="dark"] .window { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .window .shot .shot-light { display: none; }
  html:not([data-theme="light"]) .window .shot .shot-dark { display: block; }
}
html[data-theme="dark"] .window .shot .shot-light { display: none; }
html[data-theme="dark"] .window .shot .shot-dark { display: block; }
