/* Engrane V2 fiel aprobado: maestro vectorial transparente, sin halo ni disco. */
.brand-mark {
  position: relative;
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  background-image: url("/images/mecanica360-engrane-v2-fiel.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.hero-brand-mark { display: block; width: 4rem; height: 4rem; object-fit: contain; }

@keyframes m360-clockwise { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .hero-brand-mark { animation: none; }
}

.hero-visual { min-width: 0; }
.gear-stage { position: relative; width: min(22rem, 78vw); aspect-ratio: 1; margin: 0 auto -4rem; touch-action: none; user-select: none; z-index: 2; }
.gear-halo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-gear { --x: 0px; --y: 0px; --scale: 1; position: absolute; z-index: 2; inset: 25%; width: 50%; height: 50%; padding: 0; border: 0; background: transparent; cursor: grab; transform: translate(var(--x),var(--y)) scale(var(--scale)); transition: transform .7s cubic-bezier(.2,.85,.25,1); }
.hero-gear.dragging { cursor: grabbing; transition: none; }
.hero-gear img { display: block; width: 100%; height: 100%; pointer-events: none; animation: m360-clockwise 7s linear infinite; }
.spark-layer,.center-sparks { position: absolute; inset: 50%; pointer-events: none; }
.spark { position: absolute; width: .3rem; height: .3rem; border-radius: 50%; background: #f5c451; box-shadow: 0 0 .7rem #d7192d; animation: spark-out .55s ease-out forwards; }
.center-sparks .spark { background: #d7192d; box-shadow: 0 0 .8rem #f5c451; }
@keyframes spark-out { from { opacity: 1; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--sx),var(--sy)) scale(.2); } }
@media (prefers-reduced-motion: reduce) { .hero-gear { pointer-events: none; } .hero-gear img { animation: none; } .spark-layer,.center-sparks { display: none; } }

.role-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 1.5rem 0;
}

.access-preview {
  max-width: var(--max);
  margin: 2rem auto 6rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: linear-gradient(120deg, #15171a, #0f1012);
}

.access-preview h2 {
  max-width: 650px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.access-preview > div > p:not(.eyebrow) { color: var(--muted); }
.access-preview a { color: var(--blue); font-weight: 750; }
.access-status { display: grid; border-top: 1px solid var(--line); }
.access-status span { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.access-status b { color: var(--white); }
.access-status em { color: var(--muted); font-size: .85rem; font-style: normal; }
.access-steps article:last-child { grid-column: 1 / -1; }
.demo-note { margin-top: 2rem; padding: 1.5rem; border: 1px solid #6b5730; background: #201c14; }
.demo-note strong { color: var(--gold); }
.demo-note p { color: var(--muted); }
.demo-note button { padding: .8rem 1rem; border: 1px solid #49433a; border-radius: .4rem; background: #28241d; color: #9e978a; font-weight: 750; }

@media (max-width: 900px) {
  .access-preview { margin-inline: 1rem; grid-template-columns: 1fr; gap: 2rem; }
}

/* El menú completo necesita más espacio que las composiciones internas.
   Se compacta antes para preservar la marca y la densidad de la referencia. */
@media (max-width: 1100px) {
  .menu { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    z-index: 10;
    left: 1rem;
    right: 1rem;
    top: 70px;
    padding: 1rem;
    background: #181a1e;
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .site-header nav.open { display: flex; }
}

@media (max-width: 620px) {
  .access-preview { padding: 2rem 1.25rem; }
  .access-steps article:last-child { grid-column: auto; }
}

.table-wrap { max-width: 1180px; margin: 2rem auto; padding: 0 1rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #151515; }
th, td { padding: .9rem; text-align: left; vertical-align: top; border: 1px solid #3b3b3b; }
th { color: #fff; background: #242424; }
td { color: #c9c9c9; min-width: 10rem; }
.legal-body section { margin: 0 0 2rem; }
.legal-head > p { max-width: 62rem; }

.test-guide { max-width: 980px; }
.test-warning { padding: 1.5rem; border: 1px solid #87313a; border-left: 4px solid var(--red); background: #211316; }
.test-warning strong { color: var(--white); font-size: 1.15rem; }
.test-warning p { margin-bottom: 0; color: #c7bbc0; }
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 2rem; border: 1px solid var(--line); background: var(--line); }
.test-grid article { min-width: 0; padding: 1.75rem; background: var(--black); }
.test-grid span { color: var(--blue); font-weight: 800; }
.test-grid h2 { margin: .45rem 0; font-size: 1.35rem; }
.test-grid p { color: var(--muted); }
.report-template { margin-top: 2rem; padding: 2rem; background: var(--panel); border-top: 3px solid var(--gold); }
.report-template dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.report-template dl div { padding: 1rem; background: var(--panel); }
.report-template dt { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-template dd { margin: .25rem 0 0; color: var(--muted); }
.report-template > p { color: var(--muted); }

@media (max-width: 620px) {
  .test-grid, .report-template dl { grid-template-columns: 1fr; }
  .test-grid article, .report-template { padding: 1.25rem; }
}
