/* Estilo común de qinvix.com (home y páginas de apps) */
:root {
	--navy: #0b2a43;
	--navy-2: #14405f;
	--ground: #f3f6f8;
	--ground-2: #e4ebf0;
	--ink: #0c1c2c;
	--teal: #1fd1b2;
	--white: #ffffff;
	--gutter: clamp(20px, 4vw, 56px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', system-ui, sans-serif; font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Movimiento: solo si hay JS; sin él todo se ve */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Botones: planos, esquinas rectas */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; font: 800 1.05rem/1 'Manrope', sans-serif; text-decoration: none; background: var(--ink); color: var(--white); border: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(.97); }
.btn.on-dark { background: var(--teal); color: var(--ink); }
.link { font-weight: 800; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Barra */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; color: var(--white); }
.bar .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.bar .brand img { width: 48px; height: 48px; object-fit: contain; }
.bar nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.bar nav a { font-weight: 600; text-decoration: none; padding: 10px 0; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Primera pantalla */
.hero { position: relative; min-height: min(100svh, 800px); background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(48px, 7vw, 96px); padding-top: 150px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-weight: 800; font-size: clamp(2.9rem, 7.4vw, 7.2rem); line-height: .98; letter-spacing: -.035em; max-width: 11em; }
.hero h1 br { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero p { font-size: 1.3rem; max-width: 30em; margin-bottom: 32px; }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); list-style: none; }
.shelf a { display: block; transition: transform .3s var(--ease); }
.shelf a:hover { transform: translateY(-8px); }
.shelf img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22%; }

/* Apps */
.apps-head { background: var(--ground); padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
h2 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.apps-head p { font-size: 1.25rem; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; background: var(--ground); }
.app:nth-of-type(even) { background: var(--ground-2); }
.app .text { padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); display: flex; flex-direction: column; align-items: flex-start; }
.app .icon { width: clamp(88px, 9vw, 132px); aspect-ratio: 1; border-radius: 22%; margin-bottom: 28px; }
.app h3 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; }
.app .text p { max-width: 28em; margin-bottom: 20px; }
.app .status { font-weight: 800; margin-bottom: 28px; }
.shots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 2vw, 28px); height: clamp(380px, 38vw, 560px); overflow: hidden; align-self: end; }
.shots img { width: clamp(150px, 15vw, 240px); border-radius: 28px 28px 0 0; }
.shots img:nth-child(even) { margin-bottom: -64px; }

/* Principios */
.why { background: var(--teal); padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.why h2 { margin-bottom: 32px; }
.why .intro p + p { margin-top: 18px; }
.why .points { display: grid; gap: 48px; }
.why h3 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px; }

/* Contacto y pie */
.contact { background: var(--navy); color: var(--white); padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.contact h2 { font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -.04em; }
.contact p { font-size: 1.3rem; max-width: 30em; }
.contact .actions { display: flex; justify-content: flex-end; }
.contact .btn { font-size: clamp(1.1rem, 2.2vw, 1.6rem); min-height: 72px; padding: 0 40px; }
.foot { background: var(--navy); color: var(--white); padding-bottom: 28px; }
.foot .name { font-weight: 800; font-size: 21vw; line-height: .8; letter-spacing: -.05em; color: var(--navy-2); white-space: nowrap; overflow: hidden; user-select: none; }
.foot .name::before { content: 'Qinvix'; }
.foot .small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: .95rem; }

@media (max-width: 900px) {
	.hero { padding-top: 120px; }
	.hero h1 br { display: none; }
	.hero-row, .apps-head, .app, .why { grid-template-columns: 1fr; }
	.hero-row { gap: 40px; align-items: start; }
	.app .text { padding-bottom: 40px; }
	.shots { height: clamp(300px, 80vw, 420px); }
	.shots img { width: clamp(130px, 36vw, 200px); }
	.contact { grid-template-columns: 1fr; }
	.contact .actions { justify-content: flex-start; }
	.contact .btn { width: 100%; }
}
@media (max-width: 600px) {
	.hero { min-height: 0; }
	.bar nav a:nth-child(2) { display: none; }
	.bar nav a { white-space: nowrap; }
}
/* Logo grande en la primera pantalla */
.hero-logo { position: absolute; right: var(--gutter); top: 120px; width: clamp(180px, 20vw, 300px); height: auto; }
@media (max-width: 900px) { .hero-logo { display: none; } }

/* Botones de tienda y enlaces secundarios */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.status { font-weight: 800; }

/* Páginas de detalle de cada app */
.hero.detail { min-height: 0; padding-bottom: 0; gap: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.detail-grid .shots { gap: clamp(10px, 1.4vw, 20px); }
.detail-grid .shots img { width: clamp(96px, 11vw, 176px); border-radius: 22px 22px 0 0; }
.detail-text { padding-bottom: clamp(56px, 8vw, 110px); }
.detail-text .icon { width: clamp(96px, 10vw, 150px); aspect-ratio: 1; border-radius: 22%; margin-bottom: 32px; }
.detail-text h1 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: none; }
.tagline { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.25; margin: 18px 0 20px; max-width: 20em; }
.hero .intro { max-width: 32em; font-size: 1.2rem; margin-bottom: 28px; }
.hero .status { margin-bottom: 20px; }
.features { background: var(--ground); padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.features .list { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 5vw, 72px); }
.features h3, .faq h3 { font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }
.facts { background: var(--teal); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); }
.facts p { font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; max-width: 46em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq { background: var(--ground-2); padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .list { display: grid; gap: 40px; }
.contact .links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact .actions { flex-direction: column; align-items: flex-end; gap: 24px; }
@media (max-width: 900px) {
	.detail-grid, .features, .faq { grid-template-columns: 1fr; }
	.detail-grid .shots img { width: clamp(90px, 28vw, 170px); }
	.features .list { grid-template-columns: 1fr; gap: 40px; }
	.contact .actions { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .shelf a { transition: none; }
}
.contact h2 { margin-bottom: 28px; }

/* Páginas legales y de soporte */
.doc-hero { min-height: 0; gap: 20px; padding-top: 150px; padding-bottom: clamp(48px, 7vw, 96px); }
.doc-hero h1 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); max-width: 16em; }
.doc-hero .updated { font-size: 1.1rem; }
.doc { background: var(--ground); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc-summary { position: sticky; top: 32px; }
.doc-summary p { font-size: 1.35rem; font-weight: 600; line-height: 1.4; }
.doc-summary a, .doc-body a { text-underline-offset: 4px; text-decoration-thickness: 2px; font-weight: 600; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; margin: 56px 0 14px; }
.doc-body h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin: 32px 0 8px; }
.doc-body p, .doc-body li { max-width: 40em; }
.doc-body p { margin-bottom: 16px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin-bottom: 16px; }
.doc-body li { margin-bottom: 8px; }
.doc-body code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--ground-2); padding: 2px 6px; }
.doc-body .qa { margin-bottom: 36px; }
.doc-body .qa h3 { margin-top: 0; }
.doc-body table { border-collapse: collapse; width: 100%; max-width: 46em; margin-bottom: 16px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 14px; vertical-align: top; }
.doc-body tr:nth-child(odd) td { background: var(--ground-2); }
.foot .small a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
	.doc { grid-template-columns: 1fr; }
	.doc-summary { position: static; }
	.doc-hero { padding-top: 120px; }
}
.doc-body .lang-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 96px; }
.doc-body .note { font-weight: 600; font-size: 1.15rem; margin-bottom: 24px; }
.doc-body .updated-note { opacity: .8; }
@media (max-width: 600px) { .doc-hero h1 { font-size: 1.9rem; } }
