/* Páginas de producto, Dolphia Brain y hub /products/. Usa también home.css (statement, tl, q, ctacard, lm). */

/* ---------- hero con media a la derecha ---------- */
.phero { overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--lav) 100%); padding: 0; }
.phero .mesh.shape { z-index: 0; height: auto; bottom: 96px; } /* llega hasta debajo de los botones */
.hg { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 104px; padding-bottom: 144px; }
.hg .pill { margin-bottom: 14px; }
.hg .lead { margin-top: 20px; }
.fine { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-family: var(--fm); font-size: 12px; color: var(--mu); }
.fine span::before { content: "✓ "; color: var(--m); }
.vw, .hstage { position: relative; border-radius: 22px; overflow: hidden; background: var(--n); box-shadow: 0 40px 80px -40px rgba(12, 9, 35, .55); aspect-ratio: 16 / 9; }
.vw video { width: 100%; height: 100%; object-fit: cover; }
.hstage { aspect-ratio: 960 / 560; }
.hstage .sfit { position: absolute; inset: 0; }
.vc { margin-top: 10px; font-size: 13px; color: var(--mu); }
/* Hero con video: más ancho para el video, que llega hasta el borde derecho del menú. */
@media (min-width: 981px) {
	.hg.hvid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
	.hg.hvid .hv { margin-right: min(0px, max(-68px, calc((var(--wrap) - 100vw) / 2))); }
	.hg.hvid .h1 { font-size: clamp(40px, 4.4vw, 62px); }
}
.hubhero .hero-c { padding-bottom: 120px; }
/* same as the home hero (home.css): between 981 and 1100 the full-size shape covered the centered lead */
@media (min-width: 981px) and (max-width: 1100px) { .hubhero .mesh.shape { width: clamp(90px, 15%, 170px); } }

/* ---------- encabezados de sección ---------- */
.shead { margin-bottom: 32px; max-width: 760px; }
.shead .lead { margin-top: 14px; }
.mesh .shead .lead { color: rgba(255, 255, 255, .86); }

/* ---------- features ---------- */
.feats .card h3 { font-size: 20px; margin-bottom: 8px; }
.feats .card p { font-size: 15px; }
.feats .fn { font-family: var(--fm); font-size: 12px; color: var(--m-ink); display: block; margin-bottom: 8px; }
.mesh .feats .card { background: rgba(255, 255, 255, .96); }

/* ---------- steps: la línea de tiempo admite 3 o 4 pasos ---------- */
.tl { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }

/* ---------- split ---------- */
.psplit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.psplit .close { margin-top: 22px; font-weight: 500; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.blist li { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--ln); border-radius: 16px; background: #fff; }
.blist b { font-family: var(--fs); font-weight: 500; font-size: 18px; }
.blist span { color: var(--mu); font-size: 15px; }
.blist.on-dark { margin-top: 26px; }
.blist.on-dark li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.blist.on-dark span { color: rgba(255, 255, 255, .8); }

/* ---------- agents (MCP) ---------- */
.agsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.agw { display: grid; gap: 14px; }
.agc, .agr { background: #fff; color: var(--n); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.agl { font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); margin-bottom: 12px; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; max-width: 88%; }
.msg.u { background: var(--lav); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.a { background: var(--n); color: #fff; border-bottom-left-radius: 4px; }
.tool { font-family: var(--fm); font-size: 12px; color: var(--mu); margin: 10px 0; }
.tool code { background: var(--lav); padding: 2px 6px; border-radius: 6px; }
.tool em { color: #0F7B55; font-style: normal; }
.rt { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ln); font-size: 14px; }
.rt:first-of-type { border-top: 0; }
.rt i { width: 8px; height: 8px; border-radius: 50%; background: #0F7B55; }
.rt b { font-weight: 500; }
.rt span { font-family: var(--fm); font-size: 11.5px; color: var(--mu); }

/* ---------- diagram (Dolphia Brain) ---------- */
.dgm { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; padding: 32px; border-radius: 24px; background: rgba(12, 9, 35, .35); border: 1px solid rgba(255, 255, 255, .16); }
.dcol { display: grid; gap: 10px; }
.dcol .agl { color: var(--a); }
.dn { display: block; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--n); font-weight: 500; font-size: 15px; position: relative; }
.dcol:first-child .dn::after, .dcol:last-child .dn::before { content: ""; position: absolute; top: 50%; width: 32px; height: 2px; background: linear-gradient(90deg in oklab, var(--a), var(--m)); }
.dcol:first-child .dn::after { left: 100%; }
.dcol:last-child .dn::before { right: 100%; }
.dhub { display: grid; place-items: center; }
.dcore, .bv-core { display: grid; place-items: center; text-align: center; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--m), var(--na) 70%); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(255, 255, 255, .04); }
.dcore b, .bv-core b { font-family: var(--fs); font-size: 18px; line-height: 1.1; display: block; }
.dcore small, .bv-core small { font-family: var(--fm); font-size: 12px; opacity: .8; }
.dnote { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.brainviz { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; display: grid; place-items: center; }
.brainviz i { position: absolute; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--ln); box-shadow: 0 12px 24px -14px rgba(12, 9, 35, .4); transform: rotate(calc(var(--a) * 1deg)) translateY(-170px) rotate(calc(var(--a) * -1deg)); }
.brainviz i::after { content: ""; position: absolute; inset: 14px; border-radius: 5px; background: linear-gradient(135deg in oklab, var(--na), var(--m)); }
.brainviz::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 2px dashed rgba(57, 59, 143, .25); }

/* ---------- hub ---------- */
.hubgrid { gap: 18px; }
.hubc { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.hubc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(12, 9, 35, .5); }
.hth { display: block; height: 220px; flex: none; }
.hb { display: grid; gap: 8px; padding: 20px 22px 22px; }
.hb .pill { justify-self: start; }
.hb b { font-size: 22px; font-weight: 600; }
.hb .muted { font-size: 15px; }
.brainc { justify-content: flex-end; background: var(--lav); }

/* heredado de la landing: botón primario */
.bp { background: var(--m); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.hg, .psplit, .agsplit { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.hg { padding-top: 84px; padding-bottom: 112px; }
	.phero .mesh.shape { height: 12%; }
	.tl { grid-template-columns: minmax(0, 1fr); }
	.dgm { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 22px; }
	.dcol .dn::after, .dcol .dn::before { display: none; }
	.brainviz { max-width: 300px; }
	.brainviz i { transform: rotate(calc(var(--a) * 1deg)) translateY(-120px) rotate(calc(var(--a) * -1deg)); }
	.dcore, .bv-core { width: 140px; height: 140px; }
}

/* ---------- fit (servicios) ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit .card { padding: 30px; }
.fitq { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; }
.fitn { margin-top: 16px; font-size: 14.5px; }
.fitn b { color: var(--n); font-weight: 500; }
.fitg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fitg li { padding-left: 26px; position: relative; }
.fitg li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--g); }
.stagepill { margin-bottom: 14px; }

/* ---------- hub de servicios y expertise ---------- */
.stg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 34px 0; border-top: 1px solid var(--ln); }
.stg:first-of-type { border-top: 0; }
.stg h2 { font-size: 26px; }
.stg .muted { font-size: 14.5px; margin-top: 6px; }
.stg .grid { gap: 14px; }
.svl { display: grid; gap: 6px; padding: 22px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.svl:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(12, 9, 35, .45); }
.svl b { font-family: var(--fs); font-weight: 500; font-size: 20px; }
.xa { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 34px 0; border-top: 1px solid var(--ln); scroll-margin-top: 110px; }
.xa:first-of-type { border-top: 0; }
.xa .xn { font-family: var(--fm); color: var(--m-ink); font-size: 14px; padding-top: 6px; }
.xa h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.xa .lead { margin-top: 10px; }
.xa ul { margin: 16px 0 0; padding-left: 18px; color: var(--mu); display: grid; gap: 6px; }
.xa .rel { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.xtoc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.xtoc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ln); background: #fff; text-decoration: none; font-size: 14px; }
.xtoc a:hover { border-color: var(--m); color: var(--m-ink); }
@media (max-width: 980px) {
	.fit, .stg { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.xa { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.stv { list-style: none; margin: 0; padding: 26px; display: grid; gap: 12px; border-radius: 24px; background: #fff; border: 1px solid var(--ln); box-shadow: 0 40px 80px -48px rgba(12, 9, 35, .5); }
.stv li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 16px; border-radius: 16px; color: var(--mu); }
.stv li .dot { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ln); display: grid; place-items: center; font-family: var(--fm); font-size: 12px; }
.stv li b { font-family: var(--fs); font-weight: 500; font-size: 19px; }
.stv li small { color: var(--mu); font-size: 13.5px; }
.stv li.on { background: var(--lav); color: var(--n); }
.stv li.on .dot { border-color: var(--m-ink); color: var(--m-ink); }
.xa .rel a { text-decoration: none; padding: 6px 12px; font-size: 12px; border-radius: 999px; transition: border-color .2s, color .2s; }
.xa .rel a:hover { border-color: var(--m); color: var(--m-ink); }

/* ---------- blog, artículo, casos, about, contact ---------- */
.posts { gap: 18px; }
.post { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 20px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(12, 9, 35, .45); }
.pth { display: block; height: 150px; border-radius: 12px; margin-bottom: 6px; background: linear-gradient(135deg in oklab, #0C0923, #393B8F, #677CBD, #F2226E, #79F2E6); }
.post:nth-child(3n+2) .pth { background: linear-gradient(160deg in oklab, #0C0923, #393B8F 40%, #F2226E); }
.post:nth-child(3n) .pth { background: linear-gradient(110deg in oklab, #393B8F, #677CBD 45%, #79F2E6); }
.post b, .post .pm, .post .muted, .post .lm { margin: 0 8px; }
.post b { font-size: 19px; font-weight: 600; line-height: 1.25; }
.post .muted { font-size: 14.5px; }
.pm { font-family: var(--fm); font-size: 12px; color: var(--mu); }
.pgn { margin-top: 32px; }
.pgn .nav-links { display: flex; gap: 8px; justify-content: center; }
.pgn .page-numbers { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ln); text-decoration: none; }
.pgn .current { background: var(--n); color: #fff; }
.sec.art { padding-top: 96px; } /* article wrapper only: svg.art (service illustrations) shares the class */
.arth { max-width: 760px; margin: 0 auto 36px; } /* same measure as .prose, so title and body align */
.arth .k { text-decoration: none; }
.arth .h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--fs); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin-top: 1.8em; letter-spacing: -.01em; }
.prose h3 { font-family: var(--fs); font-weight: 500; font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--m); font-family: var(--fl); font-style: italic; font-size: 1.2em; }
.prose a { color: var(--m-ink); }
.psplit .prose { margin: 0; }
.casel { display: grid; gap: 18px; }
.casel .cbig { text-decoration: none; }
.cnum { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; margin: 6px 0 12px; }
.casel h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.casehero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.h1c { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.famc { display: grid; gap: 6px; text-decoration: none; padding: 24px; }
.famc b { font-size: 22px; }
.famc.on { border-color: var(--m); }
.contact { align-items: start; }
.csteps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.csteps li { counter-increment: s; display: flex; gap: 12px; align-items: center; }
.csteps li::before { content: "0" counter(s); font-family: var(--fm); font-size: 12px; color: var(--m-ink); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--m); display: grid; place-items: center; flex: none; }
.formc { padding: 28px; min-height: 360px; }
@media (max-width: 980px) { .sec.art { padding-top: 64px; } .prose { font-size: 16.5px; } }

/* ---------- celular: heroes de producto y servicio ---------- */
@media (max-width: 640px) {
	.phero .mesh.shape { display: none; }
	.hg { padding-top: 64px; padding-bottom: 88px; gap: 24px; }
	.hg .ctas { gap: 10px; }
	.hg .ctas .btn { flex: 1 1 auto; justify-content: center; }
	.stv { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; gap: 6px; border-radius: 18px; }
	.stv li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 10px 6px; gap: 4px; }
	.stv li .dot { grid-row: auto; width: 28px; height: 28px; }
	.stv li b { font-size: 15px; }
	.stv li small { display: none; }
	.hubhero .hero-c { padding-bottom: 72px; }
	.fit .card { padding: 22px; }
	.shead { margin-bottom: 22px; }
}

/* ---------- chips del statement ---------- */
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--lav); border: 1px solid var(--ln); font-size: 14px; }
.chips li:nth-child(3n+1) { border-color: rgba(242, 34, 110, .35); }
.stmt .close { margin-top: 20px; font-weight: 500; }
/* ---------- cita ---------- */
.qsec { padding-top: 24px; }
.bq { margin: 0 auto; max-width: 860px; text-align: center; }
.bq blockquote { margin: 0 0 16px; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.3; }
.bq figcaption { color: var(--mu); }
.bq figcaption b { color: var(--n); font-weight: 600; }
/* ---------- reporte de ejemplo ---------- */
.rlist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.rlist li { padding-left: 24px; position: relative; }
.rlist li::before { content: "✓"; position: absolute; left: 0; color: var(--m-ink); font-weight: 700; }
.rep { background: #fff; border: 1px solid var(--ln); border-radius: 20px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 40px 80px -48px rgba(12, 9, 35, .5); font-size: 14px; }
.rep-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--fm); font-size: 12px; color: var(--mu); }
.rep-h b { font-size: 34px; color: #B42318; font-family: var(--fs); }
.rep-h small { font-size: 14px; color: var(--mu); }
.rep-c { display: flex; flex-wrap: wrap; gap: 6px; }
.sev { font-family: var(--fm); font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.sev.crit { background: #FDE2E1; color: #9F1D14; } .sev.high { background: #FFEBD6; color: #8A4100; } .sev.imp { background: #FFF6C2; color: #6B5600; } .sev.ok { background: #DCF5EA; color: #0F6B47; }
.rep-b { display: grid; gap: 6px; }
.rep-b div { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; }
.rep-b i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--na) var(--v), var(--lav) var(--v)); }
.rep-b em { font-style: normal; font-family: var(--fm); font-size: 12px; color: var(--mu); text-align: right; }
.rep-f { border: 1px solid var(--ln); border-left: 4px solid #D92D20; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.rep-f.high { border-left-color: #E07B00; } .rep-f.ok { border-left-color: #12A26B; }
.rep-f div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rep-f b { font-weight: 600; }
.rep-f small { color: var(--mu); font-size: 12.5px; }
/* ---------- planes ---------- */
.tiers { gap: 16px; }
.tier { display: grid; gap: 8px; align-content: start; padding: 26px; border-top: 4px solid var(--a); }
.tier.t2 { border-top-color: var(--m); } .tier.t3 { border-top-color: var(--na); background: var(--lav); }
.tier .tn { font-family: var(--fm); font-size: 12px; color: var(--mu); }
.tier h3 { font-size: 22px; }
.tier .tq { font-weight: 600; color: var(--n); }
.tier .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 980px) { .tiers { grid-template-columns: minmax(0, 1fr); } .rep-b div { grid-template-columns: 96px 1fr 28px; } }

/* ---------- paleta: cada tarjeta, etiqueta y paso toma un color distinto ---------- */
.feats .card, .chips li, .tl li, .blist li { --fc: #79F2E6; --ft: #0C0923; --fb2: #EAFBF9; }
.feats .card:nth-child(5n+2), .chips li:nth-child(5n+2), .tl li:nth-child(5n+2), .blist li:nth-child(5n+2) { --fc: var(--m-btn); --ft: #fff; --fb2: #FDECF2; } /* --m-btn: white text passes 4.5:1 */
.feats .card:nth-child(5n+3), .chips li:nth-child(5n+3), .tl li:nth-child(5n+3), .blist li:nth-child(5n+3) { --fc: #393B8F; --ft: #fff; --fb2: #ECEDF8; }
.feats .card:nth-child(5n+4), .chips li:nth-child(5n+4), .tl li:nth-child(5n+4), .blist li:nth-child(5n+4) { --fc: #FFDF0D; --ft: #0C0923; --fb2: #FFF9D6; }
.feats .card:nth-child(5n+5), .chips li:nth-child(5n+5), .tl li:nth-child(5n+5), .blist li:nth-child(5n+5) { --fc: #677CBD; --ft: var(--n); --fb2: #EEF1FA; } /* white on periwinkle is 4.0:1 */
.feats .card { border-top: 4px solid var(--fc); }
.feats .fn { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: var(--fc); color: var(--ft); font-weight: 600; }
.chips li, .chips li:nth-child(3n+1) { background: var(--fb2); border-color: color-mix(in oklab, var(--fc) 45%, #fff); }
.tl li .dot { border-color: var(--fc); background: var(--fc); color: var(--ft); }
.blist li { border-left: 4px solid var(--fc); }
.mesh .blist.on-dark li { border-left-color: var(--fc); }
.tl::before { background: linear-gradient(90deg in oklab, #79F2E6, #F2226E 35%, #393B8F 65%, #FFDF0D); }

/* 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) {
	.phero .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%); }
	.phero .hg > .rv:first-child { padding-right: 15vw; }
	.hubhero .hero-c { padding-left: calc(var(--gut) + 12vw); padding-right: calc(var(--gut-r) + 12vw); }
}

/* ---------- /expertise/: el mismo color por área que en la home ---------- */
.xa { --xc: #79F2E6; --xt: #0C0923; }
.xa:nth-of-type(2) { --xc: var(--m-btn); --xt: #fff; }
.xa:nth-of-type(3) { --xc: #677CBD; --xt: var(--n); }
.xa:nth-of-type(4) { --xc: #FFDF0D; --xt: #0C0923; }
.xa:nth-of-type(5) { --xc: #393B8F; --xt: #fff; }
.xa:nth-of-type(6) { --xc: #8FE3FF; --xt: #0C0923; }
.xa .xn { display: inline-grid; place-items: center; width: 40px; height: 28px; padding: 0; line-height: 1; border-radius: 8px; background: var(--xc); color: var(--xt); font-weight: 600; align-self: start; margin-top: 3px; }
.xa h2 { box-shadow: inset 0 -6px 0 color-mix(in oklab, var(--xc) 28%, transparent); display: inline; }
.xa ul li::marker { color: var(--xc); }
.xtoc a { border-left: 3px solid var(--tc, var(--ln)); }
.xtoc a:nth-child(1) { --tc: #79F2E6; } .xtoc a:nth-child(2) { --tc: #F2226E; } .xtoc a:nth-child(3) { --tc: #677CBD; }
.xtoc a:nth-child(4) { --tc: #FFDF0D; } .xtoc a:nth-child(5) { --tc: #393B8F; } .xtoc a:nth-child(6) { --tc: #8FE3FF; }
.xa .rel { align-items: flex-start; }
.xa .rel a { display: inline-flex; height: auto; align-items: center; background: #fff; border: 1px solid var(--ln); color: var(--n); }

/* ---------- reglas de aprobación ---------- */
.rpanel { background: #fff; border: 1px solid var(--ln); border-radius: 20px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 40px 80px -48px rgba(12, 9, 35, .5); }
.rp-t { font-size: 20px; font-weight: 600; }
.rp-m { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--lav); }
.rp-m button { border: 0; border-radius: 9px; padding: 9px 10px; font: 500 13.5px var(--fb); background: transparent; color: var(--mu); cursor: pointer; }
.rp-m button[aria-checked="true"] { background: var(--n); color: #fff; }
.rp-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; transition: opacity .25s; }
.rpanel.all .rp-l { opacity: .35; }
.rp-l li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ln); border-left: 4px solid var(--fc, var(--a)); }
.rp-l li:nth-child(2) { --fc: var(--m); } .rp-l li:nth-child(3) { --fc: var(--na); } .rp-l li:nth-child(4) { --fc: var(--y); } .rp-l li:nth-child(5) { --fc: var(--p); }
.rp-l b { font-family: var(--fm); font-weight: 500; }
.rp-log { font-size: 12.5px; color: var(--mu); }
/* ---------- tabla ---------- */
.tbl { overflow-x: auto; border: 1px solid var(--ln); border-radius: 18px; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.tbl th { text-align: left; font: 500 12px var(--fm); letter-spacing: .06em; text-transform: uppercase; color: var(--mu); background: var(--lav); padding: 12px 16px; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--ln); }
.tbl td.q { font-family: var(--fl); font-style: italic; }
.tbl td.code { font-family: var(--fm); font-size: 13.5px; }
.tnote { margin-top: 12px; font-size: 13px; color: var(--mu); }
/* ---------- calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: 22px; background: var(--lav); border: 1px solid var(--ln); }
.calc-in { display: grid; gap: 18px; }
.calc-in label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 14.5px; }
.calc-in output { font: 600 16px var(--fm); color: var(--n); }
.calc-in input { grid-column: 1 / -1; width: 100%; accent-color: var(--m-btn); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; background: #fff; border-top: 4px solid var(--a); }
.co.c2 { border-top-color: var(--na); } .co.c3 { border-top-color: var(--y); }
.co.c4 { background: var(--n); color: #fff; border-top-color: var(--m); }
.co b { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; }
.co span { font-size: 13.5px; color: var(--mu); }
.co.c4 span { color: rgba(255, 255, 255, .78); }
@media (max-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.rp-l b { white-space: nowrap; }

/* ---------- cifras: tarjetas cuyo título es un número (Trazo, sección #numbers) ---------- */
#numbers .feats .card h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }

/* expertise: las 6 píldoras del hero no entran en el ancho del texto (quedaban 5 + 1).
   En pantallas anchas salen del ancho del texto y van en una sola fila; en tablet, dos filas de 3. */
@media (min-width: 1240px) {
	.hubhero .xtoc { flex-wrap: nowrap; width: max-content; margin-inline: 0; position: relative; left: 50%; transform: translateX(-50%); }
}
@media (min-width: 700px) and (max-width: 1239px) {
	.hubhero .xtoc { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; }
}

/* /cases/: featured case with its video, testimonial cards and the partnership story. */
.fcase { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.fstats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fstats li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: baseline; color: rgba(255, 255, 255, .9); }
.fstats b { font: 600 20px/1.1 var(--fs); color: var(--a); }
.fv .vc { color: rgba(255, 255, 255, .86); }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wcard { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.wcard .vw { border-radius: 14px; box-shadow: none; }
.wtx { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wtx blockquote { margin: 0; font-size: 21px; line-height: 1.3; color: var(--n); }
.wtx .by { margin: 0; font-size: 14px; }
.wtx .lm { margin-top: auto; }
.pgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.pgrid .lead { margin: 14px 0 24px; }
video::cue { font-family: var(--fb); font-size: 18px; background: rgba(12, 9, 35, .78); }
@media (max-width: 980px) {
	.fcase, .pgrid { grid-template-columns: minmax(0, 1fr); }
	.fcase .fv { order: -1; }
	.wgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { video::cue { font-size: 14px; } }
