/* ==========================================================================
   CucuDrive Web — Identidad visual azul noche (cucudrive.com)
   Paleta fiel a docs/DISENO-INTERFAZ.md:
   - Fondo:      #0F172A
   - Panel:      #111C33
   - Tarjeta:    #1E293B
   - Borde:      #334155
   - Azul Cucu:  #4A9BEA
   - Ámbar pico: #F2A033
   - Éxito:      #22C55E
   ========================================================================== */

:root {
  --bg: #0b1222;
  --surface: #0f172a;
  --panel: #111c33;
  --card: #182338;
  --card-hover: #1e2c46;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(74, 155, 234, 0.45);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --blue: #4a9bea;
  --blue-soft: rgba(74, 155, 234, 0.14);
  --steel: #8fa9d1;
  --navy: #0d2c6e;
  --beak: #f2a033;
  --beak-soft: rgba(242, 160, 51, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.55);
  --max-w: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(74, 155, 234, 0.16), transparent 65%),
    radial-gradient(760px 440px at 85% 0%, rgba(242, 160, 51, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 34, 0.82);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 155, 234, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.active {
  background: var(--blue-soft);
  color: var(--blue);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4a9bea, #2f7bd1);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(74, 155, 234, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5ba7f2, #3a86dc);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* --- Hero --- */
.hero {
  padding: 64px 0 54px;
}

.hero-top {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #6bb5ff, #4a9bea 55%, #f2a033);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 22px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 680px;
}

.notice-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: rgba(17, 28, 51, 0.9);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 15px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 26px;
}

.notice-bar svg {
  flex-shrink: 0;
  color: var(--blue);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.83rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Interactive Showcase Window --- */
.showcase {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shot-tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shot-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.shot-tab.active {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(74, 155, 234, 0.55);
}

.shot-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1120;
  cursor: zoom-in;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-frame.mobile-mode {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, rgba(74, 155, 234, 0.14), #0b1120 70%);
}

.shot-frame.mobile-mode img {
  max-width: 340px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.shot-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 2px;
  font-size: 0.88rem;
  color: var(--muted);
}

.zoom-hint {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
}

/* --- Sections --- */
section.band {
  padding: 64px 0;
}

section.band-alt {
  background: rgba(17, 28, 51, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* --- Feature Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 14px;
}

.icon-box.beak {
  background: var(--beak-soft);
  color: var(--beak);
}

.icon-box.green {
  background: var(--green-soft);
  color: var(--green);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, #4a9bea, #2563eb);
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Downloads --- */
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card.featured {
  border-color: rgba(74, 155, 234, 0.45);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-title h3 {
  margin: 0;
  font-size: 1.15rem;
}

.dl-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.version-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(74, 155, 234, 0.3);
}

.dl-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dl-list li {
  margin-bottom: 5px;
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  overflow-x: auto;
}

.cmd-box code {
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--border-strong);
}

.sha-line {
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

/* --- FAQ --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

details.faq-item[open] {
  border-color: var(--border-strong);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 600;
  line-height: 1;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* --- Docs / Guide / Privacy Pages --- */
.doc-page {
  padding: 48px 0 72px;
}

.doc-shell {
  max-width: 820px;
  margin: 0 auto;
}

.doc-header {
  margin-bottom: 28px;
}

.doc-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.doc-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
}

.doc-card.highlight-warn {
  border-color: rgba(242, 160, 51, 0.45);
}

.doc-card.highlight-ok {
  border-color: rgba(34, 197, 94, 0.42);
}

.doc-card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-card ol,
.doc-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.doc-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.doc-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.callout {
  background: var(--beak-soft);
  border: 1px solid rgba(242, 160, 51, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.inline-code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.86em;
  color: #cbd5e1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 1180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-height: 82vh;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--text);
  font-size: 0.92rem;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 34, 0.92);
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-sub {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #64748b;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .grid-3,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .grid-3,
  .grid-2,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 42px 0 36px;
  }
  .showcase {
    padding: 12px;
  }
  .navbar-inner {
    height: 60px;
  }
}
