/* Home: secciones de la configuración favorita del builder. Las demos de producto están en scenes.css. */

.lm { display: inline-flex; align-items: center; gap: 8px; color: var(--m-ink); font-weight: 500; font-size: 14px; text-decoration: none; }
.lm .arw { background: var(--m-ink); color: #fff; margin: 0; width: 22px; height: 22px; border-radius: 6px; }
.lm .arw svg { width: 12px; height: 12px; }

/* ---------- 1. hero centrado con forma de mesh ---------- */
.herom { overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--lav) 100%); padding: 0; }
.herom::before { content: ""; position: absolute; top: 0; left: -6%; width: 16%; height: 46%; background: var(--g); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); opacity: .18; }
.herom .mesh.shape { z-index: 0; height: auto; bottom: 156px; } /* llega hasta debajo de los botones y termina antes de la tira de logos */
.hero-c .h1 { font-size: clamp(2.05rem, 5vw, 4.2rem); }
.hero-c .h1 em { white-space: nowrap; }
.hero-c { position: relative; text-align: center; padding-top: 120px; padding-bottom: 56px; }
.hero-c .h1 { max-width: 22ch; margin: 0 auto; }
.hero-c .lead { margin: 22px auto 0; }
.hero-c .ctas { justify-content: center; }
.strip { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; padding: 64px 0 56px; }
.strip .k { margin: 0; flex: none; }
.smq { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.smt { display: flex; align-items: center; gap: 64px; width: max-content; animation: mq 30s linear infinite; }
.smq:hover .smt { animation-play-state: paused; }
.smt img { height: 32px; width: auto; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 2. statement ---------- */
.sec.stmt { padding-top: 112px; padding-bottom: 160px; } /* 112 visibles arriba y abajo (la hoja siguiente sube 48) */
.stmt .big { font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.15; max-width: 24ch; }
.stmt .big span { color: var(--m); }
.stmt .lead { margin-top: 20px; }

/* ---------- 3. dos puertas ---------- */
.doors { margin-top: 36px; }
.doors .card { padding: 30px; }
.doors .card h3 { font-size: 28px; margin-bottom: 10px; }
.doors .card > p:not(.k) { margin-bottom: 20px; }
.mesh .doors .card .k { color: var(--m-ink); }

/* ---------- 4. productos: coverflow ---------- */
.prods { overflow: hidden; }
.cov { position: relative; height: 520px; perspective: 1600px; transform-style: preserve-3d; margin-top: 34px; outline-offset: 8px; }
.cov .cc { position: absolute; top: 0; left: 50%; width: 420px; height: 470px; margin-left: -210px; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--ln); box-shadow: 0 30px 60px -34px rgba(12, 9, 35, .45); transition: box-shadow .4s; cursor: pointer; display: flex; flex-direction: column; transform-origin: 50% 50%; will-change: transform; }
.cov .cc .sfit { flex: 0 0 250px; }
.cov .cc .sfit::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cov .cc > .cb { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.cov .cc > .cb .pill { align-self: flex-start; }
.cov .cc > .cb h3 { font-family: var(--fs); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.cov .cc > .cb p { color: var(--mu); font-size: 14.5px; }
.cov .cc > .cb .lm { margin-top: 6px; }
.cov .cc.side > .cb { opacity: .6; }
.cov .cc.side .lm { visibility: hidden; } /* el link solo se usa en la tarjeta activa */
.cov .cc.side .xpb { visibility: hidden; }
/* hover: la tarjeta activa crece; JS calcula escala y desplazamiento para que no salga de la pantalla */
.cov .cc.grow { box-shadow: 0 50px 90px -40px rgba(12, 9, 35, .6); z-index: 20 !important; filter: none !important; opacity: 1 !important; }
.cov { cursor: grab; touch-action: pan-y; user-select: none; pointer-events: none; } /* el contenedor queda por delante de las tarjetas en 3D: el mouse lo reciben las tarjetas */
.cov .cc { pointer-events: auto; }
.cov.drag { cursor: grabbing; }
.cov.drag .cc { transition: none; }
.covhint { text-align: center; font-family: var(--fm); font-size: 12px; color: var(--mu); margin-top: 10px; }

.cbt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xpb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ln); border-radius: 9px; padding: 5px 10px; background: var(--lav); color: var(--n); font: 500 12.5px/1.2 var(--fb); cursor: pointer; transition: background .2s, border-color .2s; }
.xpb:hover { background: #fff; border-color: var(--n); }
.cov .cc > .cb .lm.lv { margin-top: 0; font-size: 13px; }
.covx-b { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.covx-i { background: var(--lav); border: 1px solid var(--ln); border-radius: 20px; padding: 22px; display: grid; gap: 10px; text-align: left; }
.covx-i h3 { font-size: 24px; }
.covx-i .k { margin: 8px 0 0; }
.covx-i ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.covx-a { display: grid; gap: 10px; margin-top: 8px; justify-items: start; }
.covn { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 6px; }
.covn .dots { display: flex; gap: 6px; }
.covn .dots { gap: 0; }
.covn .dots button { position: relative; width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; transition: width .3s; }
.covn .dots button::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 8px; border-radius: 4px; background: var(--ln); transition: background .3s; }
.covn .dots button[aria-current="true"] { width: 42px; }
.covn .dots button[aria-current="true"]::before { background: var(--m); }
.ar2, .cnav button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--n); color: #fff; font-size: 16px; cursor: pointer; }
.covx { display: none; margin-top: 30px; }
.prodx .cov, .prodx .covn { display: none; }
.prodx .covx { display: block; }
.covx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.covx-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.covx-tabs button { border: 1px solid var(--ln); background: #fff; color: var(--n); border-radius: 10px; padding: 8px 14px; font: 500 14px/1.2 var(--fb); cursor: pointer; }
.covx-tabs button[aria-pressed="true"] { background: var(--n); color: #fff; border-color: var(--n); }
.covx-x { border: 0; background: var(--lav); color: var(--n); border-radius: 10px; padding: 8px 14px; font: 14px/1.2 var(--fb); cursor: pointer; }
.covx-st { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 960 / 560; width: 100%; max-width: calc((100svh - 230px) * 960 / 560); margin: 0 auto; box-shadow: 0 40px 80px -40px rgba(12, 9, 35, .55); }
.covx-st .sfit { position: absolute; inset: 0; }
.covx-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.covx-cap p { color: var(--mu); }
.brainrow { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--mu); text-decoration: none; text-align: center; }
.brainrow b { font-weight: 500; color: var(--n); }
.brainrow:hover span:last-child { color: var(--n); }

/* ---------- 5. servicios: tarjetas que montan sobre la banda ---------- */
.ride { padding-top: 0; }
.ride .band { border-radius: 48px; margin: 0 16px; }
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-top: 96px; padding-bottom: 170px; }
.band-in .h2 { margin: 0; }
.ridecards { margin-top: -120px; position: relative; z-index: 2; }
.ridecards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; }
.svc .lm { margin-top: auto; }
.card.svc, .card.svcw { text-decoration: none; transition: transform .25s, box-shadow .25s; }
.card.svc:hover, .card.svcw:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(12, 9, 35, .45); }
.svc .ill { height: 128px; border-radius: 12px; display: flex; align-items: flex-start; padding: 10px; position: relative; overflow: hidden; background: linear-gradient(135deg in oklab, #0C0923, #393B8F, #677CBD, #F2226E, #79F2E6); }
.svc .ill .art { position: absolute; left: 50%; top: 56%; width: 78%; max-width: 170px; transform: translate(-50%, -50%); }
.svc .ill .pill { position: relative; z-index: 1; }

.svc:nth-child(2) .ill { background: linear-gradient(160deg in oklab, #0C0923, #393B8F 40%, #F2226E); }
.svc:nth-child(3) .ill { background: linear-gradient(110deg in oklab, #393B8F, #677CBD 45%, #79F2E6); }
.svc:nth-child(4) .ill { background: linear-gradient(135deg in oklab, #F2226E, #393B8F 60%, #0C0923); }
.svc:nth-child(5) .ill { background: linear-gradient(200deg in oklab, #0C0923, #393B8F 50%, #677CBD); }
.svc h3 { font-size: 19px; margin: 16px 0 8px; line-height: 1.2; }
.svc p { font-size: 14px; margin-bottom: 14px; }
.wide { margin-top: 14px; }
.svcw { display: flex; gap: 16px; align-items: center; }
.svcw .tx { flex: 1; display: grid; gap: 2px; }
.svcw .tx b { font-weight: 500; font-size: 19px; }
.svcw .tx span { color: var(--mu); font-size: 14px; }

/* ---------- 6. expertise ---------- */
.xsplit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.xl { display: grid; gap: 8px; }
.xi { border-radius: 14px; color: rgba(255, 255, 255, .62); transition: background .25s, color .25s, box-shadow .25s; }
.xh { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 14px 18px; }
.xh:focus-visible { outline: 2px solid #fff; border-radius: 14px; }
.xn { font-family: var(--fm); font-size: 13px; padding-top: 4px; }
.xt { font-family: var(--fs); font-size: 20px; font-weight: 500; }
.xd { display: none; padding: 0 18px 16px 70px; font-size: 14.5px; color: var(--mu); }
.xd .lm { display: inline-flex; margin-top: 12px; }
.xi.on { background: #fff; color: var(--n); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.xi.on .xd { display: block; }
.xi.on .xn { color: var(--m-ink); }
.xi:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- 7. framework ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 40px 0 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: linear-gradient(90deg in oklab, var(--m), var(--na)); }
.tl .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--m); display: grid; place-items: center; font-family: var(--fm); font-size: 12px; position: relative; margin-bottom: 16px; }
.tl h3 { font-size: 22px; margin-bottom: 6px; }
.tl .muted { margin-bottom: 10px; }
.tl .get { font-size: 14px; }
.tl .get b { font-weight: 500; }

/* ---------- 7. Primero el ROI ---------- */
.roi-h { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.roi-h .h2 { margin: 0 auto; max-width: 24ch; }
.roi-p { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roi-p li { display: grid; gap: 6px; align-content: start; padding: 26px; border-radius: 18px; background: var(--a); color: var(--n); }
.roi-p li.pr2 { background: var(--m-btn); color: #fff; }
.roi-p li.pr3 { background: var(--na); color: #fff; }
.roi-p li.pr2 .pn, .roi-p li.pr2 > span:last-child { opacity: 1; } /* dimmed text on magenta drops below 4.5:1 */
.roi-p .pn { font-family: var(--fm); font-size: 12px; opacity: .75; }
.roi-p b { font-size: 21px; font-weight: 600; line-height: 1.2; }
.roi-p li > span:last-child { font-size: 15px; opacity: .88; }
.roi-c { margin: 22px auto 0; max-width: 820px; background: #fff; border-radius: 22px; padding: 22px 24px 14px; border: 1px solid var(--ln); box-shadow: 0 30px 60px -44px rgba(12, 9, 35, .45); }
.roichart { width: 100%; height: auto; display: block; }
.roichart .ct { font: 500 13px var(--fm); letter-spacing: .14em; fill: #3A8F88; }
.roichart .lb { font: 500 17px var(--fb); }
.roichart .lb.inv { fill: #B42350; }
.roichart .lb.roi { font: 600 22px var(--fs); fill: #1F6B65; }
.roichart .sm { font: 13px var(--fb); fill: #3A6B67; }
.roichart .pl { font: 500 14px var(--fb); fill: #fff; }
.roichart .mx { font: 13px var(--fm); fill: var(--mu); }
.roi-c figcaption { font-size: 12px; color: var(--mu); margin-top: 6px; text-align: center; }

/* ---------- 8. casos ---------- */
.chead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.chead .h2 { margin: 0; }
.cbig { border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; min-height: 320px; color: #fff; background: linear-gradient(135deg in oklab, #0C0923, #393B8F, #677CBD, #F2226E, #79F2E6); }
.cbig .k { color: var(--a); }
.cbig h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: 6px 0 12px; }
.cbig .cp { opacity: .9; margin-bottom: 18px; }
.cbig .lm { color: #fff; }
.cbig .lm .arw { background: rgba(255, 255, 255, .2); }
.cq { margin: 0; padding: 28px; border-radius: 18px; background: rgba(12, 9, 35, .35); border: 1px solid rgba(255, 255, 255, .18); }
.cq blockquote { margin: 0 0 14px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; }
.cq figcaption { font-size: 14px; opacity: .85; }

/* ---------- 9. marcas ---------- */
.brands { background: var(--lav); }
.brands .wrap { padding-bottom: 36px; }
.bmq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bmq .tr3 { display: flex; gap: 16px; width: max-content; animation: mq 34s linear infinite; }
.bmq:hover .tr3 { animation-play-state: paused; }
.bmq .tl3 { flex: 0 0 220px; height: 104px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 0 26px; border: 1px solid var(--ln); }
.bmq .tl3 img { max-width: 100%; max-height: 42px; width: auto; }
.bmq .tl3.dk { background: var(--n); border-color: var(--n); }
.bmq .tl3.dk img { max-height: 26px; }

/* ---------- 10. objeciones ---------- */
.osplit { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
details.q { border-bottom: 1px solid var(--ln); }
details.q summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 500; font-size: 1.08rem; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 1.5rem; color: var(--m); }
details.q[open] summary::after { content: "–"; }
details.q p { margin: 0 0 20px; color: var(--mu); max-width: 66ch; }

/* ---------- 11. CTA ---------- */
.ctacard { max-width: 640px; margin: 0 auto; padding: 40px; text-align: center; }
.ctacard .k { color: var(--m-ink); }
.ctacard .h2 { margin: 0 auto 4px; max-width: 18ch; }
/* Formulario de HubSpot (iframe). Colores y tipografía se definen en el estilo del form en HubSpot.
   El iframe trae 40 px de margen propio: se lo estira hasta el borde de la tarjeta para alinear los campos. */
.hsbox { margin: 6px -40px -40px; text-align: left; min-height: 420px; }
.ctaform { max-width: 720px; }
.formc .hsbox { margin: -28px; }

/* ---------- responsive ---------- */
@media (min-width: 981px) and (max-width: 1100px) { .herom .mesh.shape { width: clamp(90px, 15%, 170px); } }
@media (max-width: 980px) {
	.herom .mesh.shape { width: 42%; height: 15%; opacity: .75; }
	.hero-c { padding-top: 84px; padding-bottom: 40px; }
	.strip { flex-direction: column; align-items: stretch; gap: 18px; padding-bottom: 96px; }
	.strip .k { align-self: center; }
	.cov { height: 500px; }
	.cov .cc { width: 300px; margin-left: -150px; height: 470px; }
	.cov .cc .sfit { flex-basis: 230px; }
	.covx-st { aspect-ratio: auto; height: 300px; }
	.ride .band { margin: 0 8px; border-radius: 32px; }
	.band-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 72px; padding-bottom: 130px; }
	.ridecards { margin-top: -80px; }
	.ridecards.five { grid-template-columns: minmax(0, 1fr); }
	.roi-p { grid-template-columns: minmax(0, 1fr); }
	.roi-c { padding: 14px 12px 10px; }
	.xsplit, .osplit { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.xd { padding-left: 18px; }
	.tl { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tl::before { display: none; }
	.chead { flex-direction: column; align-items: flex-start; }
	.cbig { grid-template-columns: minmax(0, 1fr); padding: 26px; gap: 22px; }
	.ctacard { padding: 32px 22px; }
	.hsbox { margin: 6px -22px -32px; }
	.svcw { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.smt, .bmq .tr3 { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.cov .cc { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .smt [aria-hidden="true"], .bmq .tl3[aria-hidden="true"] { display: none; } }
@media (min-width: 981px) and (max-width: 1180px) { .ridecards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 980px) { .ridecards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- celular ---------- */
@media (max-width: 640px) {
	.sec.stmt { padding-top: 56px; padding-bottom: 104px; }
	.stmt .big { font-size: 1.75rem; }
	.cov { height: 470px; margin-top: 24px; }
	.cov .cc { width: min(84vw, 340px); margin-left: calc(min(84vw, 340px) / -2); height: 440px; }
	.cov .cc .sfit { flex-basis: 240px; }
	.cov .cc > .cb { padding: 16px 18px; }
	.cov .cc > .cb h3 { font-size: 21px; }
	.covhint { display: none; }
	/* servicios: fila deslizable */
	.ridecards.five { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut-r)); padding: 0 var(--gut-r) 8px var(--gut); scrollbar-width: none; }
	.ridecards.five::-webkit-scrollbar { display: none; }
	.ridecards.five > .svc { flex: 0 0 78%; scroll-snap-align: center; }
	.ridecards.five .rv { opacity: 1; transform: none; }
	/* ROI */
	.roi-p li { padding: 18px; }
	.roi-p b { font-size: 19px; }
	.roi-c { overflow-x: auto; padding: 14px 0 10px; }
	.roichart { min-width: 600px; padding: 0 12px; }
	.roi-c figcaption { padding: 0 14px; }
	/* demo ampliada */
	.covx-b { grid-template-columns: minmax(0, 1fr); }
	.covx-st { max-width: none; }
	.covx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.covx-tabs button { flex: none; }
}
@media (min-width: 641px) and (max-width: 1100px) { .covx-b { grid-template-columns: minmax(0, 1fr); } }

/* celular y tablet (also ≤980: wider, the shape covered the lead text): el tide es una franja angosta sobre el borde derecho, de arriba hasta debajo de los botones */
@media (max-width: 980px) {
	.herom .mesh.shape { display: block; width: 17vw; right: 0; opacity: 1; border-radius: 0 0 0 18px; clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%); }
	.hero-c { padding-left: calc(var(--gut) + 12vw); padding-right: calc(var(--gut-r) + 12vw); }
}

/* ---------- expertise: un color por área (sutil sobre el mesh) ---------- */
.xl .xi { --xc: #79F2E6; position: relative; }
.xl .xi:nth-child(2) { --xc: #FF7AA8; }
.xl .xi:nth-child(3) { --xc: #A9B6F0; }
.xl .xi:nth-child(4) { --xc: #FFDF0D; }
.xl .xi:nth-child(5) { --xc: #C9C6E6; }
.xl .xi:nth-child(6) { --xc: #8FE3FF; }
.xl .xi .xn { color: var(--xc); }
.xl .xi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--xc); opacity: .55; transition: opacity .25s, top .25s, bottom .25s; }
.xl .xi:not(.on):hover::before { opacity: 1; }
.xl .xi.on::before { opacity: 0; }
.xl .xi.on { box-shadow: inset 5px 0 0 var(--xc), 0 20px 40px -20px rgba(0, 0, 0, .5); }
.xl .xi.on .xn { color: var(--n); background: var(--xc); border-radius: 6px; padding: 2px 6px; justify-self: start; align-self: start; margin-top: 2px; font-weight: 600; }
.xl .xi.on .xd .lm { color: var(--m-ink); }
