/**
 * Continuidad visual hero cinematográfico ↔ secciones Sitio Pro (solo laboratorio).
 * No sustituye el theme-loader; armoniza cuando el demo lleva capa café.
 */

body.m6-sitio-cinematic.m6-theme-cafe {
  --primary: #8a4b22;
  --secondary: #a16207;
  --primary-rgb: 138, 75, 34;
}

body.m6-sitio-cinematic.m6-theme-cafe .btn-primary,
body.m6-sitio-cinematic.m6-theme-cafe .btn,
body.m6-sitio-cinematic.m6-theme-cafe a.btn {
  background-color: var(--primary);
  border-color: var(--primary);
}

body.m6-sitio-cinematic.m6-theme-cafe .section h2 {
  color: var(--m6-ink, #2b1a10);
}

/* Opción A (universal): sin franja decorativa salvo continuidad café legacy */
body.m6-sitio-cinematic.m6-theme-cafe .m6-hero-shell::after {
  content: '';
  display: block;
  width: 100%;
  height: clamp(0.35rem, 1vh, 0.75rem);
  margin-top: -1px;
  background: linear-gradient(
    180deg,
    var(--m6-scene-bg, #f6ede2) 0%,
    var(--m6-surface-1, color-mix(in srgb, var(--light, #fff) 92%, var(--primary, #8a4b22) 8%)) 100%
  );
  pointer-events: none;
}

body.m6-sitio-cinematic main > .section:first-of-type,
body.m6-sitio-cinematic #main-content > .section:first-of-type {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 0;
}

body.m6-sitio-cinematic .section {
  scroll-margin-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  body.m6-sitio-cinematic.m6-theme-cafe .fade-in {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}