/* ==========================================================================
   CucuDrive — Nueva web (propuesta)
   Paleta de marca: azul noche, azul Cucu #4A9BEA, ámbar del pico #F2A033
   ========================================================================== */

:root {
  --bg: #070d1a;
  --bg-alt: #0a1222;
  --surface: rgba(19, 30, 52, 0.62);
  --surface-solid: #111b30;
  --line: rgba(148, 170, 205, 0.13);
  --line-strong: rgba(148, 170, 205, 0.24);
  --text: #e8eef8;
  --muted: #95a4bc;
  --dim: #66758e;
  --blue: #4a9bea;
  --blue-light: #8cc6ff;
  --amber: #f2a033;
  --green: #34d399;
  --discord: #5865f2;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: #fff; }
code { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: 0.86rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(180deg, #5aa8f2, #3b86d6);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px rgba(74,155,234,.7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 30px -8px rgba(74,155,234,.9); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 8px 24px -8px rgba(88,101,242,.8); }
.btn-discord:hover { color: #fff; background: #6773f4; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 26, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; padding: 7px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.nav-end { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; color: var(--dim); font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: .2s; }
.lang button.is-active { background: rgba(255,255,255,.1); color: var(--text); }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; text-align: center; isolation: isolate; }
.hero-copy { max-width: 860px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035);
  color: var(--muted); font-size: 0.86rem; transition: border-color .2s, background .2s;
}
.badge:hover { color: var(--text); border-color: rgba(140,198,255,.45); background: rgba(255,255,255,.06); }
.badge strong { color: var(--text); font-weight: 600; }
.badge-new { background: rgba(242,160,51,.16); color: var(--amber); font-weight: 700; font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.02; font-weight: 800; }
.hero h1 > span { display: block; }
.grad {
  background: linear-gradient(100deg, #8cc6ff 0%, #4a9bea 45%, #f2a033 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.lead { max-width: 660px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.03rem, 1.6vw, 1.2rem); line-height: 1.65; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--dim); font-size: 0.88rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: ""; width: 14px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.hero-shot { position: relative; max-width: 1040px; margin: 64px auto 0; }
.window {
  border-radius: 16px; overflow: hidden; background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 40px 120px -30px rgba(74,155,234,.45), 0 30px 60px -30px rgba(0,0,0,.8);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #0d1628; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3650; }
.window-bar i:first-child { background: #f2685e; }
.window-bar i:nth-child(2) { background: #f2be4a; }
.window-bar i:nth-child(3) { background: #4ec26a; }
.window-bar span { flex: 1; margin-right: 47px; color: var(--dim); font-size: 0.78rem; font-weight: 500; }
.phone {
  position: absolute; right: -36px; bottom: -40px; width: 22%; max-width: 210px;
  border-radius: 26px; border: 6px solid #1b2639;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px var(--line-strong);
}

/* ---------- Cifras ---------- */
.stats { padding: 88px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.035em; font-weight: 750; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 40px 0 112px; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }
.head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.head-left { text-align: left; margin: 0; }
.eyebrow { color: var(--blue-light); font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.head h2, .privacy h2, .community h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.035em; }
.head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(74,155,234,.10), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile-sync { grid-column: span 4; grid-row: span 1; }
.tile-cloud { grid-column: span 2; }
.tile-backup { grid-column: span 6; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; }
.tile-backup .tile-icon { margin: 0; grid-row: span 2; }
.tile-backup p { grid-column: 2; }
.tile-backup .versions { grid-column: 3; grid-row: 1 / span 2; }
.tile h3 { font-size: 1.16rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 0.96rem; }

.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid; }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon.blue { color: var(--blue-light); background: rgba(74,155,234,.12); border-color: rgba(74,155,234,.3); }
.tile-icon.green { color: var(--green); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.28); }
.tile-icon.amber { color: var(--amber); background: rgba(242,160,51,.1); border-color: rgba(242,160,51,.3); }

.sync-demo { margin-top: 24px; display: grid; gap: 8px; }
.sync-demo .row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: rgba(7,13,26,.55); border: 1px solid var(--line); font-size: 0.86rem;
  animation: slide-in .7s var(--ease) both;
}
.sync-demo .row:nth-child(2) { animation-delay: .12s; }
.sync-demo .row:nth-child(3) { animation-delay: .24s; }
.sync-demo code { flex: 1; color: var(--text); font-size: 0.84rem; }
.sync-demo em { font-style: normal; font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.up { background: var(--blue); box-shadow: 0 0 0 4px rgba(74,155,234,.18); }
.dot.down { background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.dot.skip { background: var(--amber); box-shadow: 0 0 0 4px rgba(242,160,51,.16); }
.row:nth-child(1) em { color: var(--blue-light); background: rgba(74,155,234,.12); }
.row:nth-child(2) em { color: var(--green); background: rgba(52,211,153,.1); }
.row:nth-child(3) em { color: var(--amber); background: rgba(242,160,51,.1); }

.versions { display: flex; gap: 6px; align-items: flex-end; }
.v { display: grid; place-items: end center; width: 42px; padding-bottom: 6px; border-radius: 8px 8px 4px 4px; font-size: 0.7rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); height: 40px; font-family: var(--mono); }
.v.full { height: 78px; color: var(--amber); background: rgba(242,160,51,.1); border-color: rgba(242,160,51,.3); }
.v.now { color: var(--blue-light); background: rgba(74,155,234,.14); border-color: rgba(74,155,234,.4); }

.mount { margin-top: 24px; border-radius: 12px; border: 1px solid var(--line); background: rgba(7,13,26,.55); overflow: hidden; font-size: 0.86rem; }
.mount-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mount-head em { margin-left: auto; font-style: normal; font-size: 0.74rem; color: var(--green); background: rgba(52,211,153,.1); padding: 3px 9px; border-radius: 999px; }
.cloud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.mount-row { padding: 9px 14px; color: var(--muted); }
.mount-row + .mount-row { border-top: 1px solid var(--line); }

/* ---------- Tour ---------- */
.tour { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; }
.tour-tab {
  text-align: left; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer;
  display: grid; gap: 3px; position: relative; transition: background .25s, border-color .25s;
}
.tour-tab strong { font-size: 1rem; color: var(--muted); transition: color .25s; }
.tour-tab span { font-size: 0.88rem; color: var(--dim); line-height: 1.45; }
.tour-tab:hover strong { color: var(--text); }
.tour-tab.is-active { background: var(--surface); border-color: var(--line-strong); }
.tour-tab.is-active strong { color: var(--text); }
.tour-tab.is-active span { color: var(--muted); }
.tour-tab.is-active::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--blue); }

.tour-view {
  position: relative; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  background: radial-gradient(circle at 50% 0%, rgba(74,155,234,.12), transparent 60%), var(--surface-solid);
  aspect-ratio: 1800 / 1140; display: grid; place-items: center;
  box-shadow: 0 30px 80px -40px rgba(74,155,234,.5);
}
.tour-view img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.tour-view.is-mobile img { width: auto; height: 92%; object-fit: contain; border-radius: 18px; border: 5px solid #1b2639; }
.tour-view.is-loading img { opacity: 0; }
.zoom { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(7,13,26,.7); border: 1px solid var(--line-strong); opacity: 0; transition: opacity .2s; }
.tour-view:hover .zoom, .tour-view:focus-visible .zoom { opacity: 1; }

/* ---------- Privacidad ---------- */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: 0.96rem; }
.checks li::before { content: ""; flex: none; margin-top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52,211,153,.14) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.link-arrow { font-weight: 600; font-size: 0.95rem; }

.flow {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0;
  padding: 48px 32px 88px; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(74,155,234,.12), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.node { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 12px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line-strong); }
.node svg, .nobody svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node svg { color: var(--blue-light); margin-bottom: 4px; }
.node-g svg { color: var(--green); }
.node strong { font-size: 0.98rem; }
.node span { color: var(--dim); font-size: 0.8rem; }
.wire { position: relative; width: 110px; height: 2px; background: linear-gradient(90deg, rgba(74,155,234,.6), rgba(52,211,153,.6)); }
.wire i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--blue); animation: travel 2.4s linear infinite; }
.wire i:nth-child(2) { animation-delay: .8s; }
.wire i:nth-child(3) { animation-delay: 1.6s; }
.wire b { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); font-size: 0.68rem; letter-spacing: .1em; color: var(--dim); font-weight: 700; }
.nobody {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 0.84rem; background: rgba(242,104,94,.07); border: 1px dashed rgba(242,104,94,.35); white-space: nowrap;
}
.nobody svg { width: 18px; height: 18px; color: #f2867d; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 30px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.steps .n { display: block; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--blue-light); margin-bottom: 30px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.96rem; margin-bottom: 12px; }

/* ---------- Descargas ---------- */
.dl { max-width: 820px; margin: 0 auto; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); padding: 10px; box-shadow: 0 40px 100px -50px rgba(74,155,234,.55); }
.dl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: rgba(7,13,26,.6); border: 1px solid var(--line); }
.dl-tab { border: 0; background: transparent; padding: 11px; border-radius: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; }
.dl-tab:hover { color: var(--text); }
.dl-tab.is-active { background: rgba(255,255,255,.09); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.dl-panel { padding: 30px 26px 22px; animation: fade .4s var(--ease); }
.dl-main { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; }
.dl-main h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-main .muted { margin-top: 6px; font-size: 0.94rem; }
.dl-main .checks { margin: 18px 0 0; }
.dl-main .btn { flex: none; }
.ver { font-size: 0.74rem; font-weight: 700; color: var(--blue-light); background: rgba(74,155,234,.12); border: 1px solid rgba(74,155,234,.28); padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.cmd { margin-top: 26px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-md); background: #050a14; border: 1px solid var(--line); }
.cmd .prompt { color: var(--green); font-family: var(--mono); font-size: 0.88rem; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.86rem; color: var(--text); scrollbar-width: none; }
.copy { flex: none; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); border-radius: 9px; padding: 7px 13px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: .2s; }
.copy:hover { background: rgba(255,255,255,.1); }
.copy.is-done { color: var(--green); border-color: rgba(52,211,153,.4); }
.sha { margin-top: 16px; font-size: 0.82rem; color: var(--dim); }
.sha summary { cursor: pointer; list-style: none; display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sha summary::-webkit-details-marker { display: none; }
.sha summary:hover { color: var(--muted); }
.sha code { display: block; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: #050a14; border: 1px solid var(--line); color: var(--muted); word-break: break-all; font-size: 0.78rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.head-left p:not(.eyebrow) { font-size: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.04rem; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-light); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* ---------- Comunidad ---------- */
.community {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 52px; border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(88,101,242,.35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(74,155,234,.18), transparent 70%), var(--surface-solid);
  border: 1px solid rgba(88,101,242,.35);
}
.community h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.community p { color: var(--muted); margin-top: 10px; max-width: 540px; }
.community-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: none; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--dim); font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 16px; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--muted); font-size: 0.93rem; padding: 4px 0; }
.footer-grid > div > a:not(.brand):hover { color: var(--text); }
.footer-sub { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-sub p { color: var(--dim); font-size: 0.82rem; }

/* ---------- Páginas de contenido (ayuda, guía, legales…) ---------- */
.btn-secondary { background: rgba(255,255,255,.06); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }

.doc-page { position: relative; isolation: isolate; padding: 0 0 112px; }
.doc-glow {
  position: absolute; inset: -68px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 300px at 50% 0%, rgba(74,155,234,.22), transparent 70%), radial-gradient(380px 260px at 80% 10%, rgba(242,160,51,.07), transparent 70%);
}
.doc-shell { max-width: 860px; }

.doc-header { text-align: center; padding: 72px 0 48px; }
.doc-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; font-weight: 800; }
.doc-header p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 1.1rem; }
.doc-header .eyebrow { display: inline-block; }
.doc-card h2 .inline-code { font-size: .9em; padding: 0; background: none; border: 0; color: var(--blue-light); }
.doc-header h1 .inline-code, .doc-header h1 code { font: inherit; font-family: var(--mono); font-size: .86em; letter-spacing: -0.04em; padding: 0; background: none; border: 0; color: var(--blue-light); }

.doc-card {
  position: relative; margin-bottom: 18px; padding: 34px 38px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.doc-card h2 { font-size: 1.45rem; letter-spacing: -0.025em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.doc-card h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.doc-card p, .doc-card li { color: #b8c4d6; font-size: 1rem; line-height: 1.72; }
.doc-card p + p { margin-top: 12px; }
.doc-card strong { color: var(--text); font-weight: 600; }
.doc-card ul, .doc-card ol { margin: 12px 0; padding-left: 22px; }
.doc-card li { margin: 6px 0; padding-left: 4px; }
.doc-card li::marker { color: var(--blue); }
.doc-card ol li::marker { font-weight: 700; font-family: var(--mono); font-size: .9em; }
.doc-card a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(140,198,255,.35); text-underline-offset: 3px; }
.doc-card a:not(.btn):hover { text-decoration-color: currentColor; }
.doc-card .btn { text-decoration: none; }
.doc-figure { margin: 24px auto 4px; max-width: 560px; text-align: center; }
.doc-figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 22px 54px -22px rgba(0,0,0,.78); display: block; }
.doc-figure figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--dim); }

/* Tarjetas destacadas: fondo neutro y solo una marca lateral de color */
.doc-card.highlight-ok { border-color: rgba(74,155,234,.28); }
.doc-card.highlight-warn { border-color: rgba(242,160,51,.26); }
.doc-card.highlight-ok::before, .doc-card.highlight-warn::before { content: ""; position: absolute; left: -1px; top: 30px; width: 3px; height: 30px; border-radius: 3px; background: var(--blue); }
.doc-card.highlight-warn::before { background: var(--amber); }

.doc-subhead { font-size: 0.82rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-light); margin: 28px 0 10px !important; }

.inline-code { font-size: .86em; padding: 2px 7px; border-radius: 6px; background: rgba(140,198,255,.09); border: 1px solid rgba(140,198,255,.16); color: var(--blue-light); word-break: break-word; }

.callout {
  margin: 18px 0; padding: 16px 18px 16px 48px; border-radius: var(--r-md); position: relative;
  background: rgba(74,155,234,.08); border: 1px solid rgba(74,155,234,.25); color: #c7d4e6; font-size: 0.96rem; line-height: 1.65;
}
.callout::before { content: "i"; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem/1 var(--mono); background: rgba(74,155,234,.25); color: var(--blue-light); }

.cmd-box { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 8px 8px 8px 16px; border-radius: var(--r-md); background: #050a14; border: 1px solid var(--line); }
.cmd-box code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.86rem; color: var(--text); scrollbar-width: none; }
.cmd-box code::before { content: "$ "; color: var(--green); }
.copy-btn { flex: none; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); border-radius: 9px; padding: 7px 13px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: .2s; }
.copy-btn:hover { background: rgba(255,255,255,.1); }
.copy-btn.is-done { color: var(--green); border-color: rgba(52,211,153,.4); }

.step-num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 700 .95rem/1 var(--mono); color: var(--blue-light); background: rgba(74,155,234,.12); border: 1px solid rgba(74,155,234,.3); }

/* Ayuda: buscador y atajos */
.help-toolbar { position: sticky; top: 76px; z-index: 5; margin: 0 0 28px; padding: 12px; border-radius: var(--r-lg); background: rgba(10,18,34,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-strong); }
.help-search {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: var(--r-md); border: 1px solid var(--line); background: #050a14 no-repeat 16px center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a4bc' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  color: var(--text); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s;
}
.help-search:focus { border-color: rgba(140,198,255,.5); }
.help-search::placeholder { color: var(--dim); }
.anchor-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.anchor-pills a { padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: .2s; }
.anchor-pills a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.help-empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

/* Novedades */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.post-meta time { color: var(--dim); font-size: 0.86rem; margin-left: 4px; }
.post-badge { font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--blue-light); background: rgba(74,155,234,.12); border: 1px solid rgba(74,155,234,.28); }
.post-badge.green { color: var(--green); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.28); }
.post-card h2 { font-size: 1.6rem; line-height: 1.2; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(10,18,34,.75); border: 1px solid var(--line); }
.pager[hidden] { display: none; }
.pager-info { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.pager-btns { display: flex; gap: 8px; }
.pager-btns button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

@media (max-width: 640px) {
  .doc-header { padding: 48px 0 32px; }
  .doc-card { padding: 26px 20px; }
  .doc-card h2 { font-size: 1.25rem; align-items: flex-start; }
  .help-toolbar { position: static; padding: 10px; }
  .doc-page { padding-bottom: 80px; }
}

/* ---------- Visor ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3,6,14,.86); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 14px; border: 1px solid var(--line-strong); }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-solid); display: grid; place-items: center; cursor: pointer; }

/* ---------- Modal compartir en foros ---------- */
.share-modal {
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  background: var(--surface-solid); color: var(--text);
  width: min(760px, 94vw); max-height: 90vh; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85);
}
.share-modal::backdrop { background: rgba(3,6,14,.84); backdrop-filter: blur(8px); }
.share-modal[open] { display: flex; flex-direction: column; }
.share-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--line);
}
.share-head h3 { font-size: 1.32rem; letter-spacing: -0.025em; }
.share-head p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.share-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.share-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.share-body-wrap { padding: 20px 26px 26px; overflow-y: auto; display: grid; gap: 18px; }
.share-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 4px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.share-tab {
  border: 0; background: transparent; color: var(--muted); font: inherit;
  font-size: 0.9rem; font-weight: 600; padding: 9px 12px; border-radius: 10px;
  cursor: pointer; transition: .2s;
}
.share-tab:hover { color: var(--text); }
.share-tab.is-active { background: rgba(74,155,234,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(140,198,255,.32); }
.share-field { display: grid; gap: 8px; }
.share-field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-field-head label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-light); }
.share-input, .share-textarea {
  width: 100%; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #050a14; color: var(--text); font-family: var(--mono);
  font-size: 0.84rem; line-height: 1.55; padding: 12px 14px; outline: none;
}
.share-input:focus, .share-textarea:focus { border-color: rgba(140,198,255,.5); }
.share-textarea { resize: vertical; min-height: 240px; }
.share-hint { color: var(--dim); font-size: 0.82rem; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .drawer { display: grid; gap: 2px; padding: 0 16px; max-height: 0; overflow: hidden; background: rgba(7,13,26,.96); transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .drawer.is-open { max-height: 420px; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); }
  .drawer a { color: var(--text); padding: 12px 8px; border-radius: 10px; font-weight: 500; }
  .drawer a:hover { background: rgba(255,255,255,.05); }
  .nav:has(.drawer.is-open) { background: rgba(7,13,26,.96); }
  .drawer a[aria-current="page"] { background: rgba(255,255,255,.07); }
}

@media (max-width: 980px) {

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .tile-sync, .tile-cloud { grid-column: span 3; }
  .tile { grid-column: span 3; }
  .tile:last-child { grid-column: span 6; }

  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .tour-tab { flex: none; padding: 10px 16px; border-radius: 999px; border-color: var(--line); }
  .tour-tab span { display: none; }
  .tour-tab.is-active::before { display: none; }

  .privacy, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .hero-cta .btn { width: 100%; }
  .hero-shot { margin-top: 44px; }
  /* En móvil se enseña la captura de Android, que a este tamaño sí se lee */
  .hero-shot .window { display: none; }
  .phone { position: static; display: block; width: 72%; max-width: 300px; margin: 0 auto; border-width: 5px; border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(74,155,234,.55), 0 0 0 1px var(--line-strong); }
  .window-bar span { display: none; }
  .section { padding: 80px 0; }
  .section-tight { padding: 24px 0 80px; }
  .head { margin-bottom: 40px; }
  .stat { padding: 22px 16px; }

  .bento { grid-template-columns: 1fr; }
  .tile, .tile-sync, .tile-cloud, .tile:last-child, .tile-backup { grid-column: auto; }
  .tile { padding: 24px; }
  .tile-backup { display: block; }
  .tile-backup .tile-icon { margin-bottom: 20px; }
  .tile-backup .versions { margin-top: 22px; }

  .tour-tabs { margin: 0 -16px; padding: 0 16px; }

  .flow { grid-template-columns: 1fr; justify-items: center; padding: 32px 24px 84px; gap: 0; }
  .node { width: 100%; max-width: 240px; }
  .wire { width: 2px; height: 64px; background: linear-gradient(180deg, rgba(74,155,234,.6), rgba(52,211,153,.6)); }
  .wire i { left: -3px !important; animation-name: travel-v; }
  .wire b { left: 14px; top: 50%; transform: translateY(-50%); }

  .dl { padding: 6px; border-radius: 22px; }
  .dl-panel { padding: 24px 14px 16px; }
  .dl-main { flex-direction: column; gap: 24px; }
  .dl-main .btn { width: 100%; }

  .community { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .community-actions { width: 100%; }
  .community .btn { width: 100%; }
  .share-head { padding: 18px 18px 14px; }
  .share-body-wrap { padding: 16px 18px 20px; }
  .share-textarea { min-height: 190px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes travel-v { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }

/* Botón flotante volver arriba */
.back-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(17, 27, 48, 0.88);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover,
.back-top:focus-visible {
  border-color: var(--blue);
  background: rgba(23, 39, 70, 0.96);
  color: var(--blue-light);
  box-shadow: 0 12px 30px rgba(74, 155, 234, 0.24);
  transform: translateY(-2px);
  outline: none;
}
.back-top:active {
  transform: translateY(0);
}
@media (max-width: 640px) {
  .back-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}
