/* Printa BMP · CSS de página: solo lo que va dentro de las imágenes y piezas que el kit no trae. */

/* El logo de Printa BMP en el menú y el pie */
.nav__logo img { display: block; height: 36px; width: auto; }
.footer .nav__logo img { height: 40px; }
@media (max-width: 639px) { .nav__logo img { height: 30px; } }

/* Ventana de la app con una captura real del panel */
.win { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px -32px rgb(14 15 51 / .45); }
.win__bar { display: flex; align-items: center; gap: var(--s-3); height: 36px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line); background: var(--p-surface); font: 500 13px/1 var(--font-mono); color: var(--muted); }
.win__dots { display: flex; gap: 6px; } .win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7d9e6; }
.win__dots i:nth-child(1) { background: #00aeef; } .win__dots i:nth-child(2) { background: #e6007e; } .win__dots i:nth-child(3) { background: #ffe500; }
.win img { display: block; width: 100%; height: auto; }
.hero--centred .hero__window > .win { position: absolute; z-index: 1; left: 50%; top: var(--s-6); width: min(1040px, calc(100% - 2 * var(--s-6))); transform: translateX(-50%); }
@media (max-width: 639px) {
  .hero--centred .hero__window > .win { top: var(--s-4); width: calc(100% - 2 * var(--s-4)); left: var(--s-4); transform: none; }
  .hero--centred .hero__window > .win img { width: 200%; max-width: none; }
}

/* El tablero del taller a lo ancho: la ventana llena lo que queda de la pantalla y se corta abajo */
#taller .wrap { display: flex; flex-direction: column; }
#taller .win--wide { margin-top: var(--s-7); flex: 1 1 0; min-height: 0; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent); }
#taller .win--wide img { object-fit: cover; object-position: left top; height: 100%; }
#taller .muted-p { color: var(--muted); }
@media (max-width: 1023px) { #taller .win--wide img { width: 160%; max-width: none; height: auto; } }

/* Capturas dentro de las tarjetas: la parte de arriba a la izquierda, a su tamaño */
.panel.shot { --p-h: 300px; overflow: hidden; background: var(--p-surface); }
.panel.shot .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 639px) { .panel.shot { --p-h: 190px; } }

/* Cifras (counter-rolls) */
.stats, #cifras .stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-content: start; }
#cifras .stats > .stat { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
/* una columna: cada cifra en su fila, sobre la línea de la columna */
.stats .t-stat { font-size: var(--t-h2); }

/* Dos teléfonos: el seguimiento del cliente y la estación del operario */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.phone { border-radius: 28px; overflow: hidden; border: 6px solid #1a1e40; background: #fff; aspect-ratio: 400 / 760; }
.phone .frame__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 639px) { .phones { gap: var(--s-3); } .phone { border-width: 4px; border-radius: 20px; aspect-ratio: 400 / 640; } }

/* Lista de módulos por grupo */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.mods__group { display: grid; gap: var(--s-3); align-content: start; }
.mods__list { list-style: none; margin: 0; padding: 0; display: grid; }
.mods__list a { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.mods__list a b { display: block; font-weight: 500; font-size: 17px; }
.mods__list a span span { display: block; color: var(--muted); font-size: 15px; }
.mods__list a:hover b { color: var(--action); }
.mod-ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--p-surface); fill: none; stroke: var(--p-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mods__list a:hover .mod-ic { stroke: var(--action); }
.mods__list--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-5); }
.related { margin-top: var(--s-8); display: grid; gap: var(--s-2); }
@media (max-width: 1023px) { .mods { grid-template-columns: 1fr 1fr; } .mods__list--row { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .mods { grid-template-columns: 1fr; gap: var(--s-4); } .mods__list a { padding: var(--s-3) 0; } }

#modulos { --h: 1; }
@media (min-width: 640px) and (max-width: 1279px) { #modulos { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #precios { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .mods__list a { padding: var(--s-5) 0; } }

/* Índice de módulos */
.modgrid { margin-top: var(--s-7); row-gap: var(--s-5); }
.modcard { display: grid; gap: var(--s-2); align-content: start; color: inherit; text-decoration: none; }
.modcard h2 { margin-top: var(--s-2); font-family: var(--font-text); font-weight: 500; }
.modcard p { color: var(--ink); margin: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .modgrid > .span-3 { grid-column: span 6; } }

/* Páginas internas: la cabecera ocupa el primer screen como el hero */
.page-head { padding-top: calc(var(--nav) + var(--hgap)); }
.h1-sm { font-size: clamp(34px, 2.4vw + 18px, 52px); }
.plans { margin-top: var(--s-7); }

/* Captura de un módulo en el hero de su página */
.frame--shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); align-self: start; aspect-ratio: 1200 / 760; min-width: 0; }
.frame--tall { aspect-ratio: 1200 / 1000; }
.phone-stage { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-6); display: grid; justify-items: center; align-self: start; min-width: 0; }
.frame--shot .frame__img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.frame--phone { width: min(300px, 100%); border: 8px solid #1a1e40; border-radius: 32px; overflow: hidden; aspect-ratio: 400 / 760; align-self: start; }
.frame--phone .frame__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 1023px) { .frame--phone { width: min(260px, 70%); aspect-ratio: 400 / 560; } }

/* Tutoriales */
.tut { color: inherit; text-decoration: none; }
.tut__poster { --p-h: 220px; position: relative; overflow: hidden; background: #0e0f33; }
.tut__poster .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut__time { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 8px; background: rgb(14 15 51 / .85); color: #fff; font: 500 13px/1 var(--font-mono); }
.video { border-radius: var(--r-lg); overflow: hidden; background: #0e0f33; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.chap { display: flex; gap: var(--s-3); width: 100%; min-height: 44px; align-items: center; padding: var(--s-2) 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: 400 15px/1.3 var(--font-text); color: var(--ink); text-align: left; cursor: pointer; }
.chap .mono { color: var(--muted); font-size: 13px; min-width: 40px; }
.chap:hover { color: var(--action); }
@media (max-width: 639px) { .chapters { grid-template-columns: 1fr; } }

/* Contacto */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 639px) { .form__row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form textarea { min-height: 96px; }

/* Soporte */
.support { display: grid; gap: var(--s-3); align-content: start; }
.support p { margin: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .support.span-3 { grid-column: span 6; } }

/* Textos legales */
.legal p { max-width: 68ch; }

/* Ajustes por ancho */
#cifras .stats > .stat { justify-items: start; justify-content: start; text-align: left; width: 100%; }
@media (min-width: 1024px) and (max-width: 1279px) { .phone { aspect-ratio: 400 / 900; } }
@media (max-width: 639px) {
  .mods__list a span span { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  #precios { --h: 1; }
  #precios .card--plan > p.muted { display: none; }
  #precios .card--plan { gap: var(--s-3); }
  #precios .checks li { font-size: 15px; }
}

.hero--centred .hero__lead { color: var(--ink); }
.phones--one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.legal-links { display: inline-flex; gap: var(--s-5); }
@media (max-width: 639px) {
  .btn--xl { white-space: normal; height: auto; min-height: 48px; padding-block: var(--s-3); text-align: center; }
  .footer__lede { font-size: 22px; }
}
@media (max-width: 639px) { #preguntas .faq__item:nth-child(n+4) { display: none; } }
@media (max-width: 639px) { #precios .card--plan > p.muted { display: none; } }
@media (max-width: 1023px) { .grid.hero-split > :is(.phone-stage, .frame--shot) { grid-column: 1 / -1; width: 100%; justify-self: stretch; } }
