/* Gramola · web informativa y tutorial de instalación (tokens del sistema de diseño: Archivo, rojo, papel, tinta) */
:root {
  --bg: #f3f2f2; --paper: #fff; --ink: #201e1d; --red: #ec3013; --red7: #ae1800;
  --n2: #eae7e7; --n3: #d7d3d3; --n5: #9b9797; --n7: #605d5d;
  --gut: clamp(16px, 5vw, 96px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; font-size: 18px; line-height: 1.45; }
img { max-width: 100%; height: auto; display: block; }
/* Capturas siempre en su proporción real */
.shot, .gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Captura del móvil bajo cada paso, alineada con su columna */
.cols3 > div { display: flex; flex-direction: column; }
.cols3 .phone { align-self: center; width: min(260px, 70%); aspect-ratio: 390 / 844; object-fit: cover; height: auto; margin-top: 24px; box-shadow: 0 10px 24px rgba(45, 43, 43, .18); }
a { color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker.red { color: var(--red7); }
.num { font-weight: 800; color: var(--red); font-size: 15px; letter-spacing: .06em; }

/* Barra superior */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 2px solid var(--ink); }
.top .logo { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--red); }

/* Botones */
.btn { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; border: 0; background: var(--red); color: #fff;
  font: inherit; font-weight: 800; font-size: 20px; padding: 18px 22px; text-decoration: none; cursor: pointer; }
.btn.dark { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { background: var(--n3); color: var(--n7); cursor: default; filter: none; }
.btn.block { display: flex; width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(32px, 6vw, 88px) 0; }
.hero h1 { font-weight: 300; font-size: clamp(48px, 7.4vw, 120px); line-height: .95; letter-spacing: -0.04em; margin: 18px 0 22px; }
.hero h1 b { font-weight: 800; color: var(--red); letter-spacing: -0.03em; }
.hero p.lead { font-size: clamp(18px, 1.7vw, 24px); max-width: 30ch; margin: 0 0 28px; }
.hero .shot { box-shadow: 0 18px 40px rgba(45, 43, 43, .25); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
section.block { padding: clamp(40px, 6vw, 88px) 0; border-top: 2px solid var(--ink); }
section.block h2 { font-weight: 300; font-size: clamp(36px, 4.6vw, 72px); letter-spacing: -0.035em; line-height: 1; margin: 10px 0 30px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.cols3 > div { border-top: 2px solid var(--ink); padding: 18px 28px 0 0; }
.cols3 h3 { font-size: 24px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.01em; }
.cols3 p { margin: 0; color: var(--n7); }

/* Modos: tarjetas como el menú de la tele */
.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--paper); }
.modes > div { padding: 18px 16px 20px; border-right: 2px solid var(--ink); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.modes > div:last-child { border-right: 0; }
.modes > div:first-child { background: var(--red); color: #fff; }
.modes b { font-size: 22px; line-height: 1.1; display: block; }
.modes span { font-size: 15px; }
.modes .n { font-weight: 800; font-size: 14px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { box-shadow: 0 10px 24px rgba(45, 43, 43, .18); }
.gallery figcaption { font-size: 14px; font-weight: 600; margin-top: 8px; }
.phones { display: flex; gap: 16px; margin-top: 16px; }
.phones img { width: 180px; box-shadow: 0 10px 24px rgba(45, 43, 43, .18); }

/* Instalar */
.install { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--red); color: #fff; padding: clamp(28px, 4vw, 56px); }
.install h2 { color: #fff; margin-top: 6px !important; }
.install .qr { background: #fff; padding: 18px; justify-self: end; box-shadow: 0 18px 40px rgba(45, 43, 43, .3); }
.install .qr canvas { display: block; width: 260px; height: 260px; image-rendering: pixelated; }
.install .qr p { color: var(--ink); text-align: center; font-weight: 800; margin: 12px 0 0; font-size: 16px; }
.install ul { padding-left: 20px; margin: 0 0 24px; }
.install .btn { background: #fff; color: var(--ink); }
.only-mobile { display: none; }

/* FAQ */
details { border-top: 2px solid var(--ink); padding: 16px 0; }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { font-weight: 800; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--red); }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; max-width: 70ch; color: var(--n7); }

/* Pie */
footer.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 40px; border-top: 2px solid var(--ink); font-weight: 600; font-size: 15px; }
footer.foot img { height: 24px; width: auto; position: relative; top: -3px; }
footer.foot .repo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
footer.foot .repo svg { width: 18px; height: 18px; }
footer.foot .repo:hover { color: var(--red); }

@media (max-width: 960px) {
  .hero, .install { grid-template-columns: 1fr; }
  .install .qr { display: none; }
  .only-mobile { display: block; }
  .cols3, .gallery { grid-template-columns: 1fr; }
  .cols3 > div { padding: 18px 0 18px; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes > div { border-bottom: 2px solid var(--ink); min-height: 130px; }
  .modes > div:nth-child(2n) { border-right: 0; }
  .modes > div:nth-last-child(-n+2) { border-bottom: 0; }
  .top nav { display: none; }
  .cols3 .phone { width: 62%; }
}
