/* ============================================================
   CineMatrix — estilos compartidos
   Paleta calcada de la propia app (lib/theme/app_colors.dart):
   fondo casi negro azulado, superficies ligeramente más claras,
   acento azul. El verde es SOLO de marca (el logo "Matrix"),
   se usa con cuentagotas, nunca como color de interfaz.
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --surface: #141b2a;
  --surface-2: #1b2536;
  --border: #24344d;
  --accent: #3b82f6;
  --accent-dim: #3b82f633;
  --matrix: #39ff88;
  --matrix-dim: #39ff8822;
  --text: #f5f7fa;
  --text-muted: #93a0b4;
  --text-faint: #5b6b83;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Foco visible para teclado ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: #2f6fe0; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #2f6fe0; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--matrix-dim);
  color: var(--matrix);
  margin-left: 4px;
}

/* ---------- Eyebrow / etiquetas mono ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--matrix);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 8px var(--matrix);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

#rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.hero-meta strong { color: var(--text-muted); font-weight: 500; }

/* ---------- Marco de "ventana" para las capturas ---------- */
.window-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.window-frame .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.window-frame .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

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


.shot-placeholder {
  aspect-ratio: var(--ratio, 16 / 10);
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0px, var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.shot-placeholder .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--matrix);
  letter-spacing: 0.04em;
}

.shot-placeholder .label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.shot-placeholder .dims {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- Secciones genéricas ---------- */
section { padding: 44px 0; }

.section-head {
  max-width: 760px;
  margin: 0 0 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0;
}

/* ---------- Posicionamiento (franja corta) ---------- */
.positioning {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.positioning .wrap {
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.positioning p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.positioning strong { color: var(--text); }

/* ---------- Grid de características ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  padding: 28px 24px;
}

.feature .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Filas de capturas alternadas ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.showcase-row:last-child { border-bottom: none; }

.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-shot { order: 1; }

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row.reverse .showcase-text,
  .showcase-row.reverse .showcase-shot {
    order: initial;
    grid-template-columns: 1fr;
  }
  .showcase-row { grid-template-columns: 1fr; }
}

.showcase-text .eyebrow { margin-bottom: 14px; }

.showcase-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 18px;
}

.showcase-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-text li {
  font-size: 16px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.showcase-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Privacidad (resumen + enlace a la política completa) ---------- */
.privacy {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text-muted);
}

.privacy-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--matrix);
}

.privacy-list strong { color: var(--text); }

/* ---------- Capturas apiladas (p. ej. colección 1 + colección 2) ---------- */
.shot-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.pricing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.pricing-card .price span {
  font-size: 18px;
  color: var(--text-faint);
  font-weight: 500;
  font-family: var(--font-body);
}

.pricing-card p.note {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--matrix);
  background: var(--matrix-dim);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img { width: 26px; height: 26px; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

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

.footer-fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-fine a { color: var(--text-faint); text-decoration: underline; }

/* ---------- Página de privacidad: prosa ---------- */
.legal {
  padding: 48px 0 64px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0 0 8px;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 44px 0 14px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal ul { padding-left: 22px; }

.legal a { color: var(--accent); }

.legal code {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ============================================================
   Modal para zoom de imágenes
   ============================================================ */

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.image-button img {
  display: block;
  width: 100%;
  height: auto;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10;
  font-family: var(--font-body);
}

.modal-close:hover {
  opacity: 1;
}
