/* ==========================================================================
   Manual de Configuración del Calendario — Conexia
   Estilos: variables, layout responsive, animaciones, dark mode, print.
   ========================================================================== */

/* -------- Reset mínimo -------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

/* -------- Variables: tema claro -------- */
:root {
  --primary: #0B3C8C;
  --primary-600: #0A348A;
  --primary-700: #072A73;
  --accent: #00B8D9;
  --accent-2: #5B8DEF;
  --grad: linear-gradient(135deg, #0B3C8C 0%, #5B8DEF 50%, #00B8D9 100%);
  --grad-soft: linear-gradient(135deg, rgba(11,60,140,0.08), rgba(0,184,217,0.08));

  --bg: #F6F8FC;
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-code: #F0F3FA;
  --border: #E3E8F2;
  --border-strong: #C9D2E4;

  --text: #0A0F1E;
  --text-soft: #3A4564;
  --text-mute: #6A778F;

  --shadow-sm: 0 1px 2px rgba(10,15,30,0.04), 0 1px 3px rgba(10,15,30,0.06);
  --shadow-md: 0 6px 20px -8px rgba(10,15,30,0.18);
  --shadow-lg: 0 24px 50px -20px rgba(10,15,30,0.28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1240px;
  --sidebar-w: 280px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s;
  --t-base: 0.32s;
}

/* -------- Variables: tema oscuro -------- */
[data-theme="dark"] {
  --bg: #0A0F1E;
  --bg-elev: #0F1630;
  --bg-card: #131B3A;
  --bg-code: #0B1229;
  --border: #1E2A4E;
  --border-strong: #2A396A;

  --text: #ECF1FB;
  --text-soft: #B7C2DC;
  --text-mute: #8190B3;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 28px -10px rgba(0,0,0,0.6);
  --shadow-lg: 0 28px 60px -20px rgba(0,0,0,0.75);

  --grad-soft: linear-gradient(135deg, rgba(11,60,140,0.22), rgba(0,184,217,0.18));
}

/* Respetar preferencia del sistema si no hay override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1E;
    --bg-elev: #0F1630;
    --bg-card: #131B3A;
    --bg-code: #0B1229;
    --border: #1E2A4E;
    --border-strong: #2A396A;
    --text: #ECF1FB;
    --text-soft: #B7C2DC;
    --text-mute: #8190B3;
    --grad-soft: linear-gradient(135deg, rgba(11,60,140,0.22), rgba(0,184,217,0.18));
  }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* -------- Progress bar -------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 184, 217, 0.5);
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: inline-block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; letter-spacing: 0.02em; }
.brand-text small { font-size: 11px; color: var(--text-mute); letter-spacing: 0.12em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--bg-code);
  border-color: var(--border);
  color: var(--primary);
  transform: translateY(-1px);
}
[data-theme="dark"] .icon-btn:hover { color: var(--accent); }

/* Mostrar/ocultar iconos según tema */
.icon-sun { display: none; }
.icon-moon { display: inline; }
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(0, 184, 217, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(0, 184, 217, 0.7);
  color: #fff; text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-code);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-ghost:hover { color: var(--accent); }

/* -------- Hero -------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 120px);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--grad-soft);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  animation: blob 22s var(--ease) infinite;
}
.blob-1 { width: 520px; height: 520px; background: #5B8DEF; top: -120px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: #00B8D9; bottom: -140px; right: -100px; animation-delay: -8s; }
.blob-3 { width: 320px; height: 320px; background: #0B3C8C; top: 30%; right: 25%; animation-delay: -14s; opacity: 0.4; }

@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 13px; font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--primary); }
[data-theme="dark"] .chip:hover { color: var(--accent); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.4rem; }
.hero-meta { font-size: 13px; color: var(--text-mute); margin: 0; }

/* Mini-calendario ilustrativo */
.hero-card {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  animation: floaty 6s var(--ease) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
.mini-cal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.mini-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.6rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.mini-dots { display: inline-flex; gap: 4px; }
.mini-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong);
}
.mini-dots span:first-child { background: #ff5f57; }
.mini-dots span:nth-child(2) { background: #ffbd2e; }
.mini-dots span:last-child { background: #28c941; }
.mini-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; font-size: 12px;
}
.mini-cal-grid > span {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mini-cal-grid .d { font-weight: 700; color: var(--text-mute); font-size: 11px; }
.mini-cal-grid .today {
  background: var(--grad); color: #fff; font-weight: 700;
}
.mini-cal-grid .busy {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--primary);
}
[data-theme="dark"] .mini-cal-grid .busy { color: var(--accent); }
.mini-event {
  margin-top: 0.9rem;
  padding: 0.7rem;
  background: var(--grad-soft);
  border-radius: 12px;
  display: flex; align-items: center; gap: 0.7rem;
}
.me-pill {
  background: var(--grad); color: #fff;
  padding: 0.3rem 0.6rem; border-radius: 8px;
  font-weight: 700; font-size: 12px;
}
.me-body { line-height: 1.2; }
.me-body strong { font-size: 13px; display: block; }
.me-body small { color: var(--text-mute); font-size: 11px; }

/* -------- Layout principal: sidebar + contenido -------- */
.main-grid {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-top: 48px;
  padding-bottom: 80px;
}

/* -------- Sidebar TOC -------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.toc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.toc-header h2 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); margin: 0; font-weight: 700;
}
.close-menu { display: none; }
.toc-list, .toc-sub {
  list-style: none; padding: 0; margin: 0;
}
.toc-list > li { margin-bottom: 2px; }
.toc-list a, .toc-sub a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.toc-list a:hover, .toc-sub a:hover {
  background: var(--bg-code);
  color: var(--primary);
  border-left-color: var(--accent);
  text-decoration: none;
  transform: translateX(2px);
}
[data-theme="dark"] .toc-list a:hover, [data-theme="dark"] .toc-sub a:hover { color: var(--accent); }
.toc-list a.active, .toc-sub a.active {
  background: var(--grad-soft);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
[data-theme="dark"] .toc-list a.active, [data-theme="dark"] .toc-sub a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.toc-sub { margin: 4px 0 8px 14px; padding-left: 8px; border-left: 1px dashed var(--border); }
.toc-sub a { font-size: 13px; padding: 0.35rem 0.7rem; }

/* overlay solo en mobile */
.sidebar-overlay { display: none; }

/* -------- Contenido -------- */
.content { min-width: 0; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 24px);
  position: relative;
}
.step-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.step-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(0, 184, 217, 0.55);
}
.step h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0;
  font-weight: 800;
}
.step h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
[data-theme="dark"] .step h3 { color: var(--accent); }
.step h4 {
  font-size: 1.02rem; margin-top: 1.4rem;
  color: var(--text);
  font-weight: 700;
}
.lead { font-size: 1.08rem; color: var(--text-soft); }

/* Sub-step cards */
.sub-step {
  margin-top: 1.8rem;
  padding: 1.4rem;
  background: color-mix(in srgb, var(--bg-code) 55%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.sub-step h3 { margin-top: 0; }

/* Cards grid (info cards) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
  border-radius: var(--radius);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1.5px;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card:hover::before { opacity: 1; }
.info-card h3, .info-card h4 {
  font-size: 1rem; margin: 0.5rem 0 0.3rem;
  color: var(--text); font-weight: 700;
}
.info-card p { font-size: 14px; color: var(--text-soft); margin: 0; }
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--primary);
}
[data-theme="dark"] .info-icon { color: var(--accent); }

/* -------- Figuras (capturas) -------- */
.shot {
  margin: 1.2rem 0;
  padding: 0;
}
.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-code);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.shot img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.shot figcaption {
  margin-top: 0.5rem;
  font-size: 13px; color: var(--text-mute);
  text-align: center; font-style: italic;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

/* -------- Callouts -------- */
.callout {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin: 1.2rem 0;
  background: var(--bg-code);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.callout strong { color: var(--primary); }
[data-theme="dark"] .callout strong { color: var(--accent); }
.callout-info { border-color: var(--accent); }
.callout-warn {
  background: color-mix(in srgb, #ffbd2e 15%, transparent);
  border-color: #ffbd2e;
}
.callout-warn strong { color: #b77700; }
[data-theme="dark"] .callout-warn strong { color: #ffd97a; }
.callout-ok {
  background: color-mix(in srgb, #28c941 15%, transparent);
  border-color: #28c941;
}
.callout-ok strong { color: #0f6a24; }
[data-theme="dark"] .callout-ok strong { color: #7ce599; }

/* -------- Listas check -------- */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/70% no-repeat, linear-gradient(#000,#000);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/70% no-repeat;
}

/* -------- Code / kbd / copy -------- */
code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.92em;
  color: var(--primary);
}
[data-theme="dark"] code { color: var(--accent); }
kbd {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86em;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}
.copy {
  cursor: copy;
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.copy::after {
  content: "📋";
  font-size: 0.8em;
  margin-left: 0.35em;
  opacity: 0.5;
  transition: opacity var(--t-fast) var(--ease);
}
.copy:hover { background: var(--grad-soft); }
.copy:hover::after { opacity: 1; }
.copy.copied { background: color-mix(in srgb, #28c941 20%, transparent); }

/* -------- Tabla -------- */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table thead th {
  background: var(--grad-soft);
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme="dark"] .spec-table thead th { color: var(--accent); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--bg-code); }

/* -------- FAQ -------- */
.faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 300;
  color: var(--text-mute);
  transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 1rem; color: var(--text-soft); margin: 0; }

/* -------- Footer -------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2.5rem;
  padding: 48px 0 32px;
}
.footer-brand img { height: 36px; margin-bottom: 0.8rem; }
.footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-light { display: none; }
[data-theme="dark"] .footer-logo-dark { display: inline-block; }
.footer-brand p { font-size: 13px; color: var(--text-mute); max-width: 40ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-cols h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute); margin-bottom: 0.8rem; font-weight: 700;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.4rem; font-size: 14px; }
.footer-cols a { color: var(--text-soft); }
.footer-cols a:hover { color: var(--primary); }
[data-theme="dark"] .footer-cols a:hover { color: var(--accent); }
.footer-logos { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-logos img {
  height: 30px; width: auto;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.footer-logos img:hover { filter: none; transform: scale(1.06); }
.eco-logo-dark { display: none; }
[data-theme="dark"] .eco-logo-light { display: none; }
[data-theme="dark"] .eco-logo-dark { display: inline-block; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-mute);
}
.footer-bottom > .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.muted { opacity: 0.7; }

/* -------- Back-to-top -------- */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* -------- Lightbox -------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 2rem;
  animation: fadein var(--t-base) var(--ease);
}
.lightbox.open { display: flex; }
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lb-figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.lb-figure img {
  max-width: 100%; max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  animation: zoomin 0.3s var(--ease);
}
@keyframes zoomin {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lb-figure figcaption {
  color: #E3E8F2;
  font-size: 14px;
  text-align: center;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
  backdrop-filter: blur(6px);
}
.lb-close:hover, .lb-nav:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.06);
}
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* -------- Toast -------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translate(-50%, 24px);
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  z-index: 110;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* -------- Scroll Reveal -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; max-width: 320px; }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 85%; max-width: 320px;
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform var(--t-base) var(--ease);
    z-index: 70;
    max-height: 100vh;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(10, 15, 30, 0.55);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .close-menu { display: inline-flex; }
  .hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .step { padding: 20px; }
  .hero-title { font-size: 2rem; }
  .brand-text small { display: none; }
  .lb-close, .lb-nav { width: 40px; height: 40px; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 0.5rem; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .blob { animation: none; }
  .hero-card { animation: none; }
}

/* -------- Print -------- */
@media print {
  :root { --bg: #fff; --bg-card: #fff; --bg-elev: #fff; --text: #000; --text-soft: #222; }
  .site-header, .sidebar, .sidebar-overlay, .back-top, .lightbox, .progress-bar,
  .header-actions, .hero-ctas, .hero-card, .hero-bg { display: none !important; }
  .main-grid { grid-template-columns: 1fr; padding: 0; }
  .hero { padding: 20px 0; }
  .step, .sub-step {
    box-shadow: none; border: 1px solid #ddd;
    break-inside: avoid; page-break-inside: avoid;
  }
  .shot img { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .step-badge { background: #000 !important; color: #fff !important; box-shadow: none; }
  .grad-text { color: #000 !important; -webkit-text-fill-color: #000 !important; }
}
