/* Tinto Labs Apps — hoja de estilos única, sin fuentes ni recursos de terceros.

   Diseño «Escritorio», solo en claro: pequeñas ventanas sobre un escritorio claro. Los marcos, la bandeja
   de iconos y los tres puntos remiten al Mac y a la ventana del logo; las capturas reales de las apps son el
   contenido principal. No hay tema oscuro: la web se ve igual con el sistema en claro o en oscuro. */

:root {
  color-scheme: only light;
  /* Paleta derivada de la oficial (pizarra #292e37, azules del logo). Los azules de enlaces y botones y el
     gris de los párrafos están ajustados para pasar 4,5:1 sobre los tres fondos. */
  --bg: #edf2f9;
  --surface: #f9f9fa;
  --wash: #e2eaf6;
  --text: #292e37;
  --muted: #505c6c;
  --link: #024fc4;
  --accent: #0258d5;
  --on-accent: #ffffff;
  --border: #bdcadd;
  --line-strong: #697c96;
  --focus: #024fc4;
  --radius: 18px;
  --logo-blue-start: #0a8dfb;
  --logo-blue-end: #0260fc;
  --logo-dot: #0385fd;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 90% 8%, var(--wash), transparent 40%);
  color: var(--text);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(38px, 5.5vw, 70px); font-weight: 730; }
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; }
h3 { font-size: 23px; font-weight: 680; }
p { margin-top: 12px; color: var(--muted); }
strong { color: var(--text); }
a, button, summary { -webkit-tap-highlight-color: transparent; min-width: 44px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 6px; }
/* Enlaces dentro de un párrafo: con zona táctil de 44 px, que en el móvil se tocan con el dedo. En los
   textos legales quedan en línea (la norma exime a los enlaces dentro de una frase): una caja de 44 px
   en mitad de un párrafo largo rompe el interlineado y se lee peor. */
p a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.legal p a, .legal li a { display: inline; min-height: 0; }

.container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--surface); padding: 12px; }
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Cabecera: marca a la izquierda; Apps, Soporte e idioma a la derecha (en el móvil, solo el idioma: Apps
   y Soporte siguen en el pie). */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 2; }
.site-header > .container { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
/* Como en el logo oficial: «Tinto» en negrita, «Labs» en regular y «Apps» en un distintivo azul. */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 19px; white-space: nowrap; font-weight: 750; min-height: 44px; }
.brand img { width: 38px; height: 38px; background: #f9f9fa; border-radius: 11px; }
.brand-light { font-weight: 400; }
.brand-apps { font-size: 12px; color: var(--on-accent); background: var(--accent); padding: 5px 8px; border-radius: 6px; letter-spacing: .025em; vertical-align: 2px; margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 14px; text-decoration: none; font-weight: 600; }
.nav .lang { justify-content: center; }

/* Botones */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px;
  border-radius: var(--radius); border: 1px solid transparent; font-size: 15px; font-weight: 650; line-height: 1.35;
  text-decoration: none; transition: transform 180ms var(--ease), box-shadow 180ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
/* Compra y prueba sin destino todavía: se ven terminados, pero no llevan a ninguna parte ni lo simulan
   (el lector de pantalla los anuncia como no disponibles). */
.btn[aria-disabled="true"] { cursor: default; }
a.btn:hover { transform: translateY(-2px); }

/* Secciones */
section { padding: 48px 0; }
.section-head { margin-bottom: 28px; }
.section-head .lead { font-size: 17px; margin-top: 10px; }
.eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--link); margin-bottom: 20px; }
.lead { font-size: 18px; line-height: 1.6; max-width: 690px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Portada: mensaje centrado y, debajo, la bandeja con los cuatro iconos. */
.hero { padding: 56px 0 52px; position: relative; overflow: hidden; text-align: center; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 890px; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero .actions { justify-content: center; }
/* Línea de apertura: se dibuja una vez al cargar. */
.motion-line {
  display: block; width: 44px; height: 3px; background: var(--accent); margin: 0 auto 18px;
  transform-origin: left; animation: line-in 550ms var(--ease) both;
}
@keyframes line-in { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.hero-art {
  display: flex; position: relative; justify-content: center; gap: 14px; width: max-content; margin: 30px auto 0;
  padding: 12px 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface);
  box-shadow: 0 10px 24px #0000000c;
}
.hero-art img { width: 50px; height: 50px; transition: transform 180ms var(--ease); }
.hero-art img:hover { transform: translateY(-4px); }

/* Cabecera de las páginas interiores (catálogo, soporte, legal…): alineada a la izquierda y con el mismo
   tamaño de titular que el nombre de cada app, para que no compita con la portada. */
.page-hero { text-align: left; padding: 56px 0 24px; }
.page-hero h1 { font-size: 52px; margin: 0; max-width: 820px; }
.page-hero .lead { margin: 16px 0 0; max-width: 690px; }
.page-hero .actions { justify-content: flex-start; }
.page-hero .lead + .btn { margin-top: 24px; }

/* Tarjetas de apps: una ventana con su barra y sus tres puntos, la captura entera y, debajo, icono,
   nombre, función y precio. La tarjeta completa enlaza a su ficha. */
.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-card {
  display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  align-content: start; align-items: center; position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 24px 24px; color: var(--text);
  text-decoration: none; overflow: hidden; box-shadow: 0 8px 22px #00000008;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}
.app-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(var(--wash), var(--surface)); border-bottom: 1px solid var(--border);
}
.app-card::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; position: absolute; left: 16px; top: 12px;
  background: #7b8292; box-shadow: 14px 0 #5c6473, 28px 0 var(--logo-dot);
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #0000000e; }
.app-card .media {
  grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; aspect-ratio: 1.75;
  background: var(--bg); border-radius: calc(var(--radius) * .65); margin-bottom: 24px; overflow: hidden;
  position: relative; padding: 16px;
}
/* El <picture> se estira con flex, no con height: 100%: Safari calcula ese porcentaje sobre la caja con el
   relleno incluido y la captura tocaba los bordes de arriba y abajo. */
.media picture { display: flex; width: 100%; align-self: stretch; align-items: center; justify-content: center; }
/* Sin `width`: manda el del HTML, que es el tamaño real de la ventana (ver picture() en build.py). Se reduce si no
   cabe y nunca se agranda; `object-fit` evita que se deforme cuando la limita el alto. */
.media img { height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px #00000013); }
/* Una captura aplanada ya lleva su sombra dentro; la del CSS rodearía todo el rectángulo como una caja fantasma. */
.media img.aplanada { filter: none; }
.app-card > img { width: 48px; height: 48px; grid-row: 2 / 4; }
.app-card > h2, .app-card > h3 { font-size: 24px; font-weight: 680; grid-column: 2; grid-row: 2; min-width: 0; overflow-wrap: anywhere; }
.app-card > p { font-size: 15px; line-height: 1.5; grid-column: 2 / -1; grid-row: 3; margin-top: 8px; }
.price { font-size: 14px; font-weight: 650; color: var(--link); grid-column: 3; grid-row: 2; white-space: nowrap; }

/* Paquete: iconos, título y explicación; precio, precio por separado tachado y botón. */
.bundle {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 32px;
  box-shadow: 0 8px 22px #00000008;
}
.bundle p { max-width: 520px; font-size: 16px; }
.bundle > div:last-child { flex-shrink: 0; }
.bundle .actions { margin-top: 16px; }
.icons { display: flex; margin-bottom: 20px; gap: 8px; }
.icons img { width: 40px; height: 40px; }
.price-tag { font-size: 30px; line-height: 1.2; font-weight: 750; color: var(--text); }
.price-tag s { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 12px; }

/* Sobre Tinto Labs (portada) */
.about { border-top: 1px solid var(--border); padding: 64px 0; }
.about .lead { font-size: 18px; }

/* Principios del catálogo: seis tarjetas, tres y tres en escritorio. */
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
/* Seis principios: tres y tres en escritorio (con cuatro por fila quedaban cuatro arriba y dos abajo). */
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principle { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 0 var(--border); }
.principle svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.principle h3 { font-size: 21px; line-height: 1.2; }
.principle p { font-size: 16px; }

/* Ficha de app: presentación a la izquierda y la captura, en su marco de ventana, a la derecha. El HTML va
   en el orden del móvil (nombre, frase, captura, compra, resumen y requisitos), que es el que siguen el
   teclado y los lectores de pantalla; en escritorio la rejilla solo coloca las columnas. */
/* Las filas vacías de arriba y abajo centran el texto frente a una captura más alta que él (las verticales);
   si el texto es más alto, miden cero y es la captura la que se centra. */
/* Los requisitos van ARRIBA de los botones: quien mira si su Mac vale lo decide antes de pulsar,
   no después. Y la versión va justo debajo, que es la señal de que la app se mantiene. */
.app-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: 1fr repeat(7, auto) 1fr;
  grid-template-areas: ". media" "title media" "tagline media" "chips media" "actions media" "note media" "release media" "summary media" ". media";
  column-gap: 48px; padding: 64px 0 24px; align-items: start;
}
.app-hero > .app-title { grid-area: title; }
.app-hero > .tagline { grid-area: tagline; }
.app-hero > .actions { grid-area: actions; }
.app-hero > .buy-note { grid-area: note; }
.app-hero > .release { grid-area: release; }
.app-hero > .app-summary { grid-area: summary; }
.app-hero > .chips { grid-area: chips; }
.app-hero > .chips-req { margin-top: 26px; }
.app-title { display: flex; align-items: center; gap: 18px; }
.app-title img { width: 64px; height: 64px; }
.app-title h1 { font-size: 52px; }
.tagline { font-size: 30px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; color: var(--text); margin-top: 24px; }
.app-hero > .app-hero-media {
  grid-area: media; align-self: center; background: var(--wash); padding: 42px 22px 22px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 18px 45px #00000016;
}
/* Los tres puntos de la barra de la ventana: decorativos, sin texto para el lector de pantalla. */
.app-hero-media::before {
  content: "● ● ●"; content: "● ● ●" / ""; position: absolute; top: 8px; left: 18px; color: var(--muted);
  font-size: 12px; letter-spacing: 4px;
}
.app-hero-media picture { display: block; }
/* El vídeo de la app funcionando es lo más grande de la primera pantalla: ocupa todo el marco. */
.app-hero-media .demo { width: 100%; height: auto; max-height: 560px; border-radius: 8px; }
/* Con vídeo, su columna es algo más ancha: es lo que enseña la app funcionando. */
.app-hero:has(.demo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.app-hero-media .demo.vertical { width: auto; height: 560px; max-width: 100%; margin: 0 auto; }
/* Botón de pausa en el centro del vídeo: el movimiento que dura más de cinco segundos tiene que poder pararse.
   Si el navegador no deja reproducir solo, el mismo botón sirve para arrancarlo. */
.video-toggle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 30%); background: rgb(12 18 28 / 62%); color: #fff;
  cursor: pointer; transition: background 180ms ease, transform 180ms var(--ease);
}
.video-toggle:hover { background: rgb(12 18 28 / 82%); transform: translate(-50%, -50%) scale(1.04); }
.video-toggle svg { width: 22px; height: 22px; fill: currentColor; }
/* Tamaño fijado por el estilo y los atributos width/height: la caja no cambia al llegar la imagen. Las
   verticales (Pulso, Arcadoro) se ven enteras dentro de la misma altura máxima. */
.app-hero-media .hero-shot { display: block; margin: 0 auto; height: auto; max-width: 100%; max-height: 430px; object-fit: contain; }
.buy-note { font-size: 13px; line-height: 1.8; max-width: 560px; }
.buy-note a { display: inline-block; min-height: 44px; line-height: 44px; }
.app-hero .lead { font-size: 16px; }
.lead-corto { display: none; }
/* Resumen largo: abierto en escritorio (sin su título desplegable); en el móvil, tras «Más sobre…». */
.readmore { font-size: 14px; color: var(--link); }
.readmore summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.readmore p { font-size: 16px; }
.chips { padding: 0; list-style: none; display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 20px 0 0; }
.chips li { font-size: 12px; color: var(--muted); }

/* Así se ve: capturas en tarjetas claras, en dos columnas. */
/* Dos columnas iguales y cada tarjeta con su propio alto: si no, la más alta estiraba a las demás y
   dejaba huecos grandes debajo de los pies de foto cortos. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.shot .shot-zoom { height: 240px; display: flex; justify-content: center; align-items: center; width: 100%; }
.shot picture { display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; }
.shot img { height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* Las verticales (paneles de Pulso y Arcadoro, vídeo de Pulso) necesitan más alto para que se lea algo. */
.shot.vertical .shot-zoom { height: 360px; }
.shot figcaption { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 24px; }

/* Qué hace: tres columnas en escritorio; en el móvil, tarjetas que se despliegan. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 0 var(--border); }
.feature h3, .feature > h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.04em; }
.feature p { font-size: 16px; }
.feature summary { list-style: none; min-height: 44px; }
.feature summary::-webkit-details-marker { display: none; }
.feature summary h3 { display: inline; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel, .contact-card { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel h2, .h-sm { font-size: 26px; }
.panel p, .contact-card p { font-size: 16px; }
.panel-accent { background: var(--wash); }
.contact-card .email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 22px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.link-list { list-style: none; margin: 16px 0 0; padding: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Atajos de teclado */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px 24px; margin-top: 20px; }
/* Si la tecla o el gesto es largo («Sacudir el cursor»), el texto pasa debajo en lugar de salirse. */
.keys > div { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.keys .combo { flex: none; white-space: nowrap; }
.keys p { margin: 0; }
/* Lo que no es una tecla —una sacudida, un atajo que eliges tú— va igual, pero sin ser <kbd>. */
kbd { font-family: ui-monospace, monospace; padding: 5px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: var(--bg); white-space: nowrap; }
/* Lo que no es una tecla —una sacudida, un atajo que eliges tú— no se pinta como tecla. */
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--bg); font-size: 15px; }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { padding: 12px 0; font-weight: 650; min-height: 44px; cursor: pointer; }
.faq details p { padding-bottom: 12px; }

/* Textos legales: lectura cómoda, sin tarjetas. */
.legal { width: min(760px, calc(100% - 40px)); padding: 56px 0 72px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 46px); }
.legal h2 { font-size: 23px; letter-spacing: -.02em; margin-top: 40px; }
.legal h3 { font-size: 19px; letter-spacing: -.01em; margin-top: 28px; }
.legal p, .legal li { color: var(--text); font-size: 17px; line-height: 1.7; }
.legal p { margin-top: 14px; }
.legal ul { padding-left: 1.3em; margin: 14px 0 0; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .summary { background: var(--wash); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.legal .summary p { margin: 0; }
.legal code { font-size: .92em; background: var(--wash); padding: 1px 6px; border-radius: 6px; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.legal-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.legal-item:hover { border-color: var(--line-strong); }
.legal-item span { color: var(--muted); font-size: 15px; }

/* Para negocios: servicios, pasos y llamada final, con el mismo sistema. */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 0 var(--border); }
.service h3 { font-size: 21px; line-height: 1.2; }
.service p { font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 760px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.step-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--link); font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 19px; margin-top: 5px; }
.steps p { margin-top: 6px; font-size: 16px; }
.cta { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: 0 8px 22px #00000008; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }
.path-icons { display: flex; gap: 8px; margin-top: 20px; }
.path-icons img { width: 44px; height: 44px; }

/* Capturas ampliables: son botones, así se llega con el teclado y el lector de pantalla las anuncia como
   algo que se puede abrir. El visor es un <dialog> que crea site.js. */
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; color: inherit; }
/* Ojo: el `display` va en [open]. Un `display` suelto anula el `display: none` que el navegador le da al
   <dialog> cerrado, y la cortina se queda encima de la página para siempre. */
.lightbox {
  position: fixed; inset: 0; z-index: 50; place-items: center; padding: 32px; background: rgb(4 8 16 / 88%);
  border: 0; max-width: 100%; max-height: 100%; width: 100%; height: 100%;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox img {
  display: block; max-width: min(1200px, 100%); max-height: calc(100dvh - 64px);
  height: auto; object-fit: contain; border-radius: 12px;
}
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 25%); background: rgb(255 255 255 / 10%); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Pie: marca y descripción, apps, estudio (soporte y negocios) y legal; en el móvil, cuatro enlaces. */
.site-footer { padding: 44px 0 24px; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer > .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer p { font-size: 13px; }
/* Todos los títulos de columna miden lo mismo, lleven enlace o no, para que queden a la misma altura. */
.site-footer h2 { font-size: 15px; letter-spacing: 0; display: flex; align-items: center; min-height: 44px; }
.site-footer h2 a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0; }
.site-footer li a { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer .footer-pitch { margin-top: 8px; max-width: 30em; }
.footer-legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-compact { display: none; }

/* Utilidades */
.mt-12 { margin-top: 12px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.pt-0 { padding-top: 0; }
.pt-32 { padding-top: 32px; }

/* Escritorio */
@media (min-width: 761px) {
  .app-hero > .app-summary { margin-top: 12px; }
  .nav a:hover, .footer-col a:hover { text-decoration: underline; }
}
/* En escritorio el contenido de los desplegables siempre se ve: sin tener que esperar a site.js y sin
   saltos al cargar. Donde el navegador no entiende ::details-content, site.js los abre. */
@supports selector(::details-content) {
  .feature::details-content { display: block; content-visibility: visible; }
  @media (min-width: 761px) {
    .app-summary::details-content { display: block; content-visibility: visible; }
    /* Sin soporte, «Más sobre…» sigue a la vista para poder abrirlo aunque no haya JavaScript. */
    .app-summary > summary { display: none; }
  }
}
/* En el móvil las funciones también se ven abiertas: hacer seis toques para saber qué hace la app
   es pedirle demasiado a quien está de pie con el teléfono. Se abren con CSS, no con JavaScript,
   así que no hay salto al cargar. El desplegable se queda donde se espera: en las preguntas. */
@media (max-width: 760px) {
  .feature > summary { pointer-events: none; }
  .feature > summary::marker, .feature > summary::-webkit-details-marker { content: ""; display: none; }
}

/* Móvil */
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .site-header > .container { min-height: 76px; gap: 6px; flex-wrap: wrap; padding: 10px 0; }
  .brand { font-size: 17px; gap: 4px; }
  .brand img { width: 30px; height: 30px; }
  .brand-apps { font-size: 11px; padding: 4px 6px; margin-left: 2px; }
  .nav { gap: 10px; }
  .nav > a:not(.lang) { display: none; }
  .nav .lang { font-size: 12px; }

  .hero { padding: 40px 0 24px; text-align: left; }
  .hero h1 { font-size: 39px; line-height: 1.08; letter-spacing: -.05em; }
  .hero .lead { font-size: 17px; margin: 20px 0 0; }
  .hero .actions { justify-content: start; }
  .motion-line { margin-left: 0; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .hero-art { margin: 24px 0 0; padding: 10px 14px; gap: 14px; }
  .hero-art img { width: 38px; height: 38px; }
  .page-hero { padding: 40px 0 16px; }
  .page-hero h1 { font-size: 42px; letter-spacing: -.04em; }
  .page-hero .lead { font-size: 17px; }

  .actions { margin-top: 22px; gap: 10px; }
  .btn { font-size: 14px; min-height: 48px; padding: 12px 16px; }
  section { padding: 32px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head .lead { font-size: 16px; }

  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-card { padding: 42px 20px 20px; grid-template-columns: 44px 1fr auto; gap: 4px 12px; }
  .app-card > img { width: 44px; height: 44px; }
  .app-card .media { aspect-ratio: 2.05; margin-bottom: 16px; padding: 12px; }

  .bundle { padding: 24px; display: block; margin-top: 24px; }
  .bundle h3 { font-size: 27px; }
  .bundle p { font-size: 15px; }
  .bundle > div:last-child { margin-top: 24px; }
  .bundle .btn { width: 100%; }
  .bundle .icons { margin-bottom: 16px; }

  .about { padding: 40px 0; }
  .about .lead { font-size: 16px; }

  .app-hero { display: flex; flex-direction: column; padding: 32px 0 8px; gap: 0; }
  .app-title { gap: 12px; }
  .app-title img { width: 52px; height: 52px; }
  .app-title h1 { font-size: 42px; }
  .tagline { font-size: 29px; margin-top: 20px; }
  .app-hero > .app-hero-media { width: 100%; padding: 36px 12px 12px; margin-top: 24px; }
  .app-hero-media .hero-shot { max-height: 240px; }
  .app-hero-media .demo { max-height: 320px; }
  .app-hero-media .demo.vertical { height: 340px; }
  .video-toggle { width: 56px; height: 56px; }
  /* Las capturas verticales necesitan más alto para que se lea algo: siguen enteras y sin deformarse. */
  .app-hero-media .vertical .hero-shot { max-height: 340px; }
  .app-hero > .actions { width: 100%; display: grid; grid-template-columns: 1fr; margin-top: 22px; }
  .app-hero .btn { width: 100%; }
  .buy-note { line-height: 1.65; margin-top: 14px; }
  .app-hero .lead-corto { display: block; font-size: 16px; }
  .app-summary { margin-top: 8px; }
  .chips { margin-top: 12px; }

  .shots { grid-template-columns: 1fr; gap: 16px; }
  .shot { padding: 20px; }
  .shot .shot-zoom { height: 175px; }
  .shot.vertical .shot-zoom { height: 300px; }
  .shot figcaption { margin-top: 16px; }

  .features, .principles, .services { grid-template-columns: 1fr; gap: 10px; }
  .feature, .principle, .service { padding: 18px 20px; }
  .feature summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 12px; }
  .feature summary::after { content: "+"; content: "+" / ""; font-size: 24px; font-weight: 400; color: var(--link); }
  .feature[open] summary::after { content: "−"; content: "−" / ""; }
  .feature h3, .feature > h2, .principle h3, .service h3 { font-size: 18px; letter-spacing: -.02em; }
  .two-col { grid-template-columns: 1fr; }
  .panel, .contact-card { padding: 24px; }
  .panel h2, .h-sm { font-size: 25px; }
  .keys { grid-template-columns: 1fr; gap: 18px; }
  .keys > div { align-items: flex-start; }
  .keys p { font-size: 15px; }
  .pt-32 { padding-top: 24px; }
  .cta { padding: 28px 22px; }
  .legal { width: calc(100% - 36px); padding: 40px 0 56px; }
  .legal p, .legal li { font-size: 16px; }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: calc(100dvh - 24px); }

  .site-footer { padding: 28px 0 20px; }
  .site-footer > .container { display: block; }
  .footer-col, .site-footer .footer-pitch { display: none; }
  .footer-compact { display: flex; gap: 4px; justify-content: space-between; margin: 18px 0; }
  .footer-compact a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding-inline: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
  .site-footer .footer-legal { font-size: 11px; line-height: 1.7; }
  .site-footer .about-col p { font-size: 13px; }
}

/* Menos movimiento: sin animaciones, sin transiciones, sin elevaciones y sin desplazamiento suave. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .app-card:hover, a.btn:hover, .hero-art img:hover { transform: none; }
}

/* Señal de que la app está viva: versión y fecha bajo los botones. Sustituye a la prueba social
   que todavía no tenemos, sin afirmar nada que no se pueda comprobar. */
.release { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.release .dot { width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; flex: none; }

/* Cierre de compra al final de la ficha: quien llega abajo convencido de UNA app ya no tiene
   que conformarse con el botón del paquete. */
.closing { margin-top: 40px; }
.closing-head { display: flex; align-items: center; gap: 18px; }
.closing-head img { width: 56px; height: 56px; flex: none; }
.closing-head h2 { font-size: 26px; margin: 0; }
.closing-head .muted { margin: 4px 0 0; font-size: 16px; }
.closing .actions { margin-top: 20px; }
.closing .small { margin-top: 14px; }

/* El problema del lector, antes de enseñarle la solución. No menciona a nadie: describe su
   escena. Va en cuerpo grande porque es lo primero que se lee después de la cabecera. */
.problema { font-size: 21px; line-height: 1.55; max-width: 760px; color: var(--text); margin: 0; }
.app-name { font-size: 52px; font-weight: 730; letter-spacing: -.04em; line-height: 1.12; color: var(--text); margin: 0; }
@media (max-width: 760px) {
  .problema { font-size: 18px; }
  .app-name { font-size: 38px; }
}

/* Tablas de las páginas de contenido (precios). Con desplazamiento propio en el móvil,
   para que una tabla ancha no obligue a mover la página entera de lado. */
.tabla { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tabla table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabla th, .tabla td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabla th { font-weight: 650; color: var(--text); white-space: nowrap; }
.tabla td { color: var(--muted); }
.tabla tbody tr:last-child td { border-bottom: 0; }
