:root {
  --bg: #0b0b0d;
  --panel: #141417;
  --surface: #1c1c20;
  --line: #2a2a30;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff8c1a;
  --accent-soft: #2a1b0c;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-lang="en"] [data-l="es"], html[data-lang="es"] [data-l="en"] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 13, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.primary:hover { background: #ff9d3a; }
.top nav .btn { padding: 8px 16px; color: #111; }
.langSwitch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langSwitch button { border: 0; background: transparent; border-radius: 999px; padding: 5px 10px; font: 700 12px/1 inherit; color: var(--muted); cursor: pointer; }
.langSwitch button.on { background: var(--accent); color: #111; }

/* Portada */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--accent); background: var(--accent-soft); border: 1px solid #4a2c10; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 16px 0; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.soon { margin-top: 18px; color: var(--muted); font-size: 14px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; border: 8px solid #26262b; background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.phone img { width: 100%; }
.phones .phone:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.phones .phone:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }

/* Resumen de funciones */
.features { padding: 40px 0 20px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card:hover { border-color: #4a2c10; transform: translateY(-2px); }
.card .ico { font-size: 28px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Bloque del editor web */
.webband { margin: 56px 0; background: linear-gradient(135deg, #1d1206, #141417 60%); border: 1px solid #4a2c10; border-radius: 26px; padding: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.webband h2 { margin: 0 0 10px; font-size: 32px; }
.webband ul { padding-left: 20px; color: var(--muted); }
.webband li { margin: 6px 0; }
.mock { background: #0e0e10; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mock .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; display: block; }
.mock svg { display: block; width: 100%; height: auto; }

/* Tutorial */
.tutorial { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 30px 0 60px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.toc b { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--panel); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); background: var(--panel); }
.lesson { padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .num { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .08em; }
.lesson h2 { margin: 4px 0 10px; font-size: 30px; letter-spacing: -.01em; }
.lesson h3 { margin: 22px 0 8px; font-size: 19px; }
.lesson p, .lesson li { color: #d4d4d8; }
.lesson ol, .lesson ul { padding-left: 22px; }
.lesson li { margin: 6px 0; }
.lesson .media { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.lesson .media .shot { border-radius: 26px; border: 6px solid #26262b; overflow: hidden; background: #000; }
.tip { background: var(--accent-soft); border: 1px solid #4a2c10; border-radius: 14px; padding: 12px 16px; margin: 16px 0; color: #f5d4b0; }
.tip b { color: var(--accent); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.key { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: #d4d4d8; }
.key b { display: block; color: var(--text); margin-bottom: 2px; }
.pill { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 13px; color: var(--text); white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; font-size: 14px; color: #d4d4d8; }
.swatches span { display: flex; align-items: center; gap: 6px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Preguntas */
.faq { padding: 20px 0 60px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: #d4d4d8; margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .webband, .tutorial { grid-template-columns: 1fr; }
  .phones { height: 430px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 190px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
  .lesson .media { grid-template-columns: 1fr; }
  .lesson .media .shot { max-width: 260px; }
  .webband { padding: 24px; }
}
@media (max-width: 620px) {
  .top nav a:not(.btn) { display: none; }
  .top nav { gap: 10px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}
