/* implantaBIM · 100 días — página en código propio. Todo cuelga de #ib100. */

:root {
	--ink: #0b053d;
	--text: #1d1b2e;
	--text-2: #5f5c72;
	--text-3: #8c899c;
	--line: #e6e3ee;
	--gray: #f5f5f7;
	--white: #fff;
	--violet: #6e0fff;
	--violet-2: #8a45ff;
	--violet-deep: #4b06b8;
	--yellow: #ffcd57;
	--green: #12b76a;
	--green-d: #067a46;
	--red: #f04438;
	--red-d: #b42318;
	--lav: #ece5ff;
	/* Un color por hito: línea temporal, escena 3D y fichas. */
	--h0: #9b7bff;
	--h1: #f39bc6;
	--h2: #ffc94d;
	--h3: #6fd08c;
	--h4: #7ea6ff;
	--h5: #6e0fff;
	/* SF Pro en Apple; Inter (autoalojada) en Windows y Android. */
	--f: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--r-xl: 32px;
	--r-lg: 24px;
	--r-md: 16px;
	--lift: 0 1px 1px rgba(11, 5, 61, .04), 0 4px 8px -2px rgba(11, 5, 61, .06), 0 16px 32px -12px rgba(11, 5, 61, .14), 0 40px 80px -32px rgba(11, 5, 61, .22);
	--ease: cubic-bezier(.25, .8, .25, 1);
	--spring: cubic-bezier(.34, 1.45, .55, 1);
}

html { scroll-behavior: smooth; }
body.ib100-body { margin: 0; background: var(--ink); overflow-x: hidden; font-family: var(--f); }
/* Restos que el tema imprime en wp_footer (carrito lateral de OceanWP). */
body.ib100-body > #oceanwp-cart-sidebar-wrap, body.ib100-body > .oceanwp-cart-sidebar-overlay { display: none !important; }

.ib100 {
	font-family: var(--f);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -.011em;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
	overflow-x: clip;
}
.ib100 *, .ib100 *::before, .ib100 *::after { box-sizing: border-box; }
.ib100 :where(h1, h2, h3, h4, h5, p, ol, ul, figure) { margin: 0; }
.ib100 :where(ol, ul) { padding: 0; list-style: none; }
.ib100 img { max-width: 100%; height: auto; display: block; }
:where(.ib100) a { color: inherit; }
.ib100 button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.ib100 :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.ib100 [hidden] { display: none !important; }
.ib100 b, .ib100 strong { font-weight: 600; }

.ib-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ib-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.ib-skip:focus { top: 12px; }

/* Jerarquía: titular 100 · sección 56 · ficha 32 · tarjeta 21 · cuerpo 17 · nota 13 */
.ib100 h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -.028em; }
.ib100 h3 { font-weight: 600; letter-spacing: -.02em; }

/* ---------- Botones ---------- */
.ib-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	border: 0;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -.01em;
	text-decoration: none;
	transition: transform .25s var(--ease), background-color .2s, box-shadow .2s;
}
.ib-btn:hover { transform: scale(1.03); }
.ib-btn:active { transform: scale(.98); }
.ib100 .ib-btn--yellow { background: var(--yellow); color: var(--ink); }
.ib100 .ib-btn--yellow:hover { background: #ffd776; }
.ib100 .ib-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.ib100 .ib-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.ib100 .ib-btn--violet { background: var(--violet); color: #fff; }
.ib100 .ib-btn--violet:hover { background: var(--violet-2); }
.ib-btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* ---------- Portada ---------- */
.ib-hero { position: relative; background: var(--ink); color: #fff; padding: 40px 0 200px; overflow: hidden; isolation: isolate; }
.ib-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -2;
	opacity: .5;
	background-image:
		repeating-linear-gradient(30deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 64px),
		repeating-linear-gradient(150deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 64px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px);
	mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.ib-hero__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -380px; background: radial-gradient(circle, rgba(110, 15, 255, .55), rgba(193, 15, 255, .12) 45%, transparent 68%); }
.ib-hero__inner { position: relative; z-index: 1; }
.ib-logo { display: inline-block; }
.ib-logo img { height: 28px; width: auto; }
.ib-logo--sm img { height: 22px; }
.ib-hero__title { margin-top: clamp(64px, 11vw, 128px); font-size: clamp(48px, 7.2vw, 100px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.ib-hl { color: var(--yellow); white-space: nowrap; }
.ib-hero__lead { margin-top: 28px; max-width: 30em; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; letter-spacing: -.015em; color: rgba(255, 255, 255, .72); }
.ib-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.ib-hero__big {
	position: absolute;
	right: -1vw;
	bottom: 70px;
	z-index: 0;
	font-size: clamp(220px, 34vw, 560px);
	line-height: .8;
	font-weight: 800;
	letter-spacing: -.06em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .12);
	pointer-events: none;
	user-select: none;
}

/* ---------- Marcador ---------- */
.ib-board-wrap { position: relative; z-index: 2; margin-top: -136px; padding-bottom: 112px; }
.ib-board { background: linear-gradient(180deg, #fff 0%, #f6f4fb 100%); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--lift); }
.ib-board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ib-board__head h2 { font-size: 28px; letter-spacing: -.02em; }
.ib-board__head span { font-size: 14px; color: var(--text-3); }

/* Línea temporal de los 100 días */
.ib-tl { position: relative; padding: 26px 26px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--lift); }
.ib-tl__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.ib-tl__day { display: flex; align-items: baseline; white-space: nowrap; font-size: 20px; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; }
.ib-tl__day b { font-size: clamp(56px, 6.4vw, 80px); line-height: .9; font-weight: 700; letter-spacing: -.045em; color: var(--ink); margin: 0 10px 0 10px; font-variant-numeric: tabular-nums; }
.ib-tl__meta { text-align: right; font-size: 15px; color: var(--text-2); }
.ib-tl__pct { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--violet); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.ib-tl__track { position: relative; display: flex; gap: 3px; height: 30px; }
.ib-tl__track i { flex: 1 1 0; min-width: 0; border-radius: 4px; background: color-mix(in srgb, var(--c, var(--h0)) 24%, #fff); transition: background-color .35s var(--ease); }
.ib-tl__track i.gap { margin-left: 6px; }
.ib-tl__track .g0 { --c: var(--h0); }
.ib-tl__track .g1 { --c: var(--h1); }
.ib-tl__track .g2 { --c: var(--h2); }
.ib-tl__track .g3 { --c: var(--h3); }
.ib-tl__track .g4 { --c: var(--h4); }
.ib-tl__track .g5 { --c: var(--h5); }
.ib-tl.is-live .ib-tl__track i.on { background: var(--violet); transition-delay: calc(var(--i) * 14ms); }
.ib-tl.is-live .ib-tl__track i.now { background: var(--yellow); animation: ib-pulse 1.6s ease-in-out infinite; }
@keyframes ib-pulse { 50% { transform: scaleY(1.25); } }
.ib-tl__today { position: absolute; top: -28px; bottom: -6px; left: clamp(0%, calc((var(--dia) - .5) / var(--total) * 100%), 100%); width: 2px; background: var(--ink); border-radius: 2px; }
.ib-tl__today span { position: absolute; bottom: 100%; left: 0; padding: 3px 8px; border-radius: 6px 6px 6px 0; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ib-tl__labels { position: relative; height: 40px; margin-top: 10px; }
.ib-tl__labels li { position: absolute; left: calc((var(--from) - 1) / 100 * 100%); width: calc((var(--to) - var(--from) + 1) / 100 * 100%); padding: 0 6px; font-size: 13px; line-height: 1.3; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ib-tl__labels b { display: block; color: var(--text-2); font-weight: 600; }
.ib-tl__labels li.is-now b { color: var(--violet); }

/* Tarjetas en relieve: se inclinan siguiendo el ratón */
.ib-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; perspective: 1200px; }
.ib-card {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--lift);
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	transition: transform .5s var(--ease), box-shadow .3s;
}
.ib-card:hover { box-shadow: 0 1px 1px rgba(11, 5, 61, .04), 0 8px 16px -4px rgba(11, 5, 61, .08), 0 28px 48px -16px rgba(11, 5, 61, .2), 0 56px 96px -40px rgba(11, 5, 61, .3); }
.ib-card > * { transform: translateZ(18px); }
.ib-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.ib-card h3 { font-size: 21px; line-height: 1.2; }
.ib-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--text-3); }
.ib-leg { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; white-space: nowrap; }
.ib-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.ib-leg i.ko { background: var(--red); }
.ib-leg i.vi { background: var(--violet); }
.ib-pill { padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ib-pill--up { background: #dcfce7; color: var(--green-d); }
.ib-pill--down { background: #fee4e2; color: var(--red-d); }

.ib-budget__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ib-fig > span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 2px; }
.ib-fig b { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ib-fig--ok b { color: var(--green-d); }
.ib-fig--ko b { color: var(--red-d); }
.ib-fig--ink b { color: var(--ink); }
.ib-fig--muted b { color: var(--text-3); }

/* Presupuesto: teclas en relieve. Verde = disponible; rojo = gastado (tecla hundida). */
.ib-keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.ib-keys i { aspect-ratio: 1.35; border-radius: 7px; background: linear-gradient(180deg, #3ddc97 0%, var(--green) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 var(--green-d), 0 5px 8px -2px rgba(6, 122, 70, .45); }
.ib-keys i.spent { background: linear-gradient(180deg, #ff7a70 0%, var(--red) 100%); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .18), 0 1px 0 var(--red-d); transform: translateY(2px); }
.ib-board.is-live .ib-keys i { animation: ib-key-in .5s var(--spring) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes ib-key-in { from { opacity: 0; transform: translateY(-10px) scale(.7); } }
.ib-spend { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.ib-spend li { display: flex; justify-content: space-between; gap: 10px; }
.ib-spend b { color: var(--red-d); font-variant-numeric: tabular-nums; }

/* Horas: una barra por semana y el tope semanal */
.ib-weeks { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 118px; }
.ib-weeks::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--cap); border-top: 2px dashed rgba(240, 68, 56, .6); }
.ib-weeks__cap { position: absolute; z-index: 2; right: 0; bottom: calc(var(--cap) + 4px); font-size: 12px; font-weight: 600; color: var(--red-d); background: #fff; padding: 0 5px; border-radius: 4px; }
.ib-weeks i { flex: 1; position: relative; height: 100%; border-radius: 6px; background: var(--gray); }
.ib-weeks i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(var(--h), 4px); border-radius: 6px; background: linear-gradient(180deg, var(--violet-2), var(--violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--violet-deep); transform-origin: bottom; }
.ib-weeks i.is-over::after { background: linear-gradient(180deg, #ff7a70, var(--red)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--red-d); }
.ib-weeks i.is-future { background: repeating-linear-gradient(-45deg, #f1f0f6 0 4px, #fafafc 4px 8px); }
.ib-weeks i.is-future::after { display: none; }
.ib-weeks i.is-now { box-shadow: 0 0 0 2px var(--ink); }
.ib-board.is-live .ib-weeks i::after { animation: ib-grow .7s var(--spring) both; animation-delay: calc(var(--i) * 40ms + .2s); }
@keyframes ib-grow { from { transform: scaleY(0); } }

/* Embudo: losas apiladas en relieve */
.ib-funnel { display: grid; gap: 12px; justify-items: center; }
.ib-funnel li { display: flex; align-items: center; gap: 10px; width: calc(100% - var(--k) * 14%); min-height: 56px; padding: 0 18px; border-radius: 16px; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 82%, #fff), var(--fc)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 5px 0 color-mix(in srgb, var(--fc) 68%, #000), 0 12px 20px -8px rgba(11, 5, 61, .4); }
.ib-funnel li > span:first-child { flex: 1; font-size: 15px; font-weight: 500; }
.ib-funnel b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ib-funnel small { font-size: 16px; opacity: .65; margin-left: 1px; }
.ib-funnel__consultas { --fc: #9b7bff; }
.ib-funnel__propuestas { --fc: #7a3dff; }
.ib-funnel__contratos { --fc: #2a1a6e; }
.ib-funnel__contratos.is-goal { --fc: var(--green); }
.ib-funnel .ib-pill { background: rgba(255, 255, 255, .22); color: #fff; }
.ib-board.is-live .ib-funnel li { animation: ib-slab .6s var(--spring) both; animation-delay: calc(var(--k) * 120ms + .2s); }
@keyframes ib-slab { from { opacity: 0; transform: translateY(-16px) scale(.94); } }

/* ---------- Plan: escena 3D fija mientras se hace scroll ---------- */
.ib-plan { position: relative; height: calc(100vh * 7); background: radial-gradient(ellipse 80% 70% at 50% 58%, #fff 0%, #f4f0ff 55%, #e9e1ff 100%); }
.ib-plan__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ib-plan__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ib-plan__intro, .ib-hcard, .ib-plan__end { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ib-plan__intro { position: absolute; top: 14vh; left: max(24px, calc((100vw - 1200px) / 2 + 24px)); max-width: 520px; }
.ib-plan__hint { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--text-2); }
.ib-plan__hint span { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--text-3); position: relative; }
.ib-plan__hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: ib-wheel 1.6s ease-in-out infinite; }
@keyframes ib-wheel { 60% { transform: translateY(9px); opacity: 0; } }
.ib-plan:not(.is-static):not(.show-intro) .ib-plan__intro { opacity: 0; transform: translateY(-24px); pointer-events: none; }

.ib-hcard { position: absolute; top: 50%; width: min(400px, 34vw); padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--lift); opacity: 0; transform: translateY(calc(-50% + 30px)); pointer-events: none; }
.ib-hcard::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.ib-hcard.is-left { left: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.ib-hcard.is-right { right: max(80px, calc((100vw - 1200px) / 2 + 80px)); }
.ib-hcard.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.ib-hcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ib-hcard__n { font-weight: 600; color: var(--violet); }
.ib-hcard__state { padding: 4px 10px; border-radius: 999px; background: var(--gray); color: var(--text-2); font-size: 13px; font-weight: 500; }
.ib-hcard.is-en-curso .ib-hcard__state { background: var(--ink); color: var(--yellow); }
.ib-hcard.is-completado .ib-hcard__state { background: #dcfce7; color: var(--green-d); }
.ib-hcard.is-fallido .ib-hcard__state { background: #fee4e2; color: var(--red-d); }
.ib-hcard h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.025em; }
.ib-hcard__q { margin-top: 12px; font-size: 19px; line-height: 1.4; color: var(--text-2); letter-spacing: -.012em; }
.ib-hcard__ent { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.ib-hcard__ent b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.ib-hcard__dates { margin-top: 14px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.ib-plan__end { position: absolute; top: 50%; left: max(24px, calc((100vw - 1200px) / 2 + 24px)); transform: translateY(calc(-50% + 30px)); opacity: 0; pointer-events: none; font-size: 19px; color: var(--text-2); }
.ib-plan.show-end .ib-plan__end { opacity: 1; transform: translateY(-50%); }
.ib-plan__score { font-size: clamp(80px, 10vw, 140px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--text-3); }
.ib-plan__score b { color: var(--ink); font-weight: 700; }
.ib-plan__now { margin-top: 18px; font-size: 17px; }
.ib-plan__now b { color: var(--violet); }

.ib-plan__rail { position: absolute; right: max(20px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.ib-plan__rail button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 8px -2px rgba(11, 5, 61, .2); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color .3s, color .3s, transform .3s var(--spring); }
.ib-plan__rail button[aria-current="true"] { background: var(--violet); color: #fff; transform: scale(1.12); }

/* Sin WebGL, sin JS o con movimiento reducido: fichas en cuadrícula. */
.ib-plan.is-static { height: auto; background: #f6f3ff; }
.ib-plan.is-static .ib-plan__stage { position: static; height: auto; overflow: visible; padding: 104px 0; }
.ib-plan.is-static .ib-plan__canvas, .ib-plan.is-static .ib-plan__end, .ib-plan.is-static .ib-plan__rail, .ib-plan.is-static .ib-plan__hint { display: none; }
.ib-plan.is-static .ib-plan__intro { position: static; max-width: 1200px; margin: 0 auto 40px; padding: 0 24px; }
.ib-plan.is-static .ib-plan__intro h2 { max-width: 16ch; }
.ib-plan.is-static .ib-plan__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ib-plan.is-static .ib-hcard { position: relative; inset: auto; width: auto; opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Capítulos ---------- */
.ib-content { padding: 120px 0; background: var(--white); }
.ib-content__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ib-content__who { font-size: 14px; color: var(--text-3); text-align: right; }
.ib-content__who b { display: block; color: var(--text); }

.ib-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 0 8px; }
.ib-rail::-webkit-scrollbar { display: none; }
.ib-chip-cap { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; width: 270px; min-height: 68px; padding: 12px 16px 12px 12px; border: 0; border-radius: 18px; background: var(--gray); text-align: left; transition: background-color .25s, color .25s, transform .25s var(--ease); }
button.ib-chip-cap:hover { transform: translateY(-2px); }
.ib-chip-cap__n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-size: 15px; font-weight: 600; color: var(--violet); font-variant-numeric: tabular-nums; }
.ib-chip-cap__t { min-width: 0; }
.ib-chip-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.25; font-weight: 600; }
.ib-chip-cap small { display: block; font-size: 13px; color: var(--text-3); margin-top: 1px; }
.ib-chip-cap[aria-current="true"] { background: var(--ink); color: #fff; }
.ib-chip-cap[aria-current="true"] .ib-chip-cap__n { background: var(--violet); color: #fff; }
.ib-chip-cap[aria-current="true"] small { color: rgba(255, 255, 255, .6); }
.ib-chip-cap.is-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.ib-chip-cap.is-soon b { color: var(--text-2); font-weight: 500; }
.ib-chip-cap.is-soon .ib-chip-cap__n { background: var(--gray); color: var(--text-3); }

.ib-gate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 24px; align-items: start; }
.ib-gate__preview { padding: 36px; border-radius: var(--r-xl); background: var(--gray); }
.ib-gate__n { font-size: 15px; font-weight: 600; color: var(--violet); margin-bottom: 8px; }
.ib-gate__preview h3 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.ib-gate__sum { margin-top: 12px; font-size: 19px; line-height: 1.4; color: var(--text-2); max-width: 34em; }
.ib-gate__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 30px; }
.ib-gate__cols h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.ib-gate__steps { counter-reset: s; display: grid; gap: 8px; }
.ib-gate__steps li { counter-increment: s; display: flex; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--text-2); }
.ib-gate__steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 7px; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--violet); }
.ib-gate__mats { display: grid; gap: 8px; }
.ib-gate__mats li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--text-2); }
.ib-gate__mats li::before { content: ""; flex: none; width: 16px; height: 20px; margin-top: 1px; border-radius: 3px 6px 3px 3px; background: linear-gradient(180deg, var(--violet-2), var(--violet)); }

.ib-form { position: relative; display: flex; flex-direction: column; padding: 36px 32px 28px; border-radius: var(--r-xl); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.ib-form::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -220px; top: -240px; background: radial-gradient(circle, rgba(110, 15, 255, .65), transparent 65%); }
.ib-form h3 { font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.ib-form > p { margin-top: 10px; color: rgba(255, 255, 255, .7); }
.ib-field { display: block; margin-top: 24px; }
.ib-field span { display: block; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.ib100 .ib-field input { width: 100%; height: 54px; margin: 0; padding: 0 18px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #fff; font: 400 17px/1 var(--f); box-shadow: none; transition: border-color .2s, background-color .2s; }
.ib100 .ib-field input::placeholder { color: rgba(255, 255, 255, .38); }
.ib100 .ib-field input:focus { outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, .1); }
.ib100 .ib-field input[aria-invalid="true"] { border-color: #ff8fa3; }
.ib-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ib-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .85); cursor: pointer; }
.ib100 .ib-check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; display: grid; place-items: center; cursor: pointer; }
.ib100 .ib-check input:checked { background: var(--yellow); border-color: var(--yellow); }
.ib100 .ib-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.ib-form .ib-btn { width: 100%; margin-top: 22px; }
.ib-form .ib-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ib-form__msg { min-height: 1.4em; margin-top: 10px; font-size: 15px; color: #ffb4c2; }
.ib-form__legal { margin-top: 4px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.ib-form__legal a { color: rgba(255, 255, 255, .8); }

/* ---------- Curso (con acceso) ---------- */
.ib100.tiene-acceso .ib-gate { display: none; }
.ib-course { margin-top: 24px; animation: ib-fade .5s var(--ease); }
@keyframes ib-fade { from { opacity: 0; transform: translateY(12px); } }
.ib-chapter-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 40px; border-radius: var(--r-xl); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.ib-chapter-hero::before { content: ""; position: absolute; z-index: -1; inset: auto -160px -280px auto; width: 600px; height: 600px; background: radial-gradient(circle, rgba(110, 15, 255, .65), transparent 62%); }
.ib-chapter-hero__n { font-size: 15px; font-weight: 600; color: var(--yellow); margin-bottom: 8px; }
.ib-chapter-hero h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -.035em; max-width: 24ch; }
.ib-chapter-hero__sum { margin-top: 12px; color: rgba(255, 255, 255, .7); max-width: 40em; font-size: 19px; line-height: 1.4; }
.ib-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ib-meta span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; }
.ib-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ib-ring > span { width: 80px; height: 80px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.ib-ring small { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .6); margin-top: 3px; letter-spacing: 0; }

.ib-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 28px 0 32px; border-radius: 999px; background: var(--gray); }
.ib-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 15px; color: var(--text-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.ib-tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(11, 5, 61, .12), 0 4px 12px -4px rgba(11, 5, 61, .18); }
.ib-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-tabs .ib-count { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--lav); color: var(--violet-deep); }
.ib-panel { animation: ib-fade .35s var(--ease); }

.ib-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); }
.ib-video img, .ib-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ib-video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(0deg, rgba(11, 5, 61, .5), rgba(11, 5, 61, .05)); }
.ib-video__play span { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.ib-video__play:hover span { transform: scale(1.08); }
.ib-video__play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.ib-video--empty { display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; background: radial-gradient(circle at 70% 20%, rgba(110, 15, 255, .55), transparent 55%), var(--ink); }
.ib-video--empty strong { display: block; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.ib-video--empty .ib-btn { margin-top: 20px; }

.ib-article { max-width: 820px; }
.ib-article__intro { font-size: 21px; line-height: 1.45; letter-spacing: -.015em; color: var(--text-2); }
.ib-article__intro p + p { margin-top: 14px; }
.ib-steps { display: grid; gap: 12px; margin-top: 32px; }
.ib-step { border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s, background-color .25s; }
.ib-step.is-done { background: #fbfaff; box-shadow: inset 0 0 0 1.5px #cdbdff; }
.ib-step > summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; }
.ib-step > summary::-webkit-details-marker { display: none; }
.ib-step__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lav); color: var(--violet-deep); font-size: 18px; font-weight: 600; transition: background-color .25s, color .25s; }
.ib-step.is-done .ib-step__n { background: var(--violet); color: #fff; }
.ib-step > summary h4 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.ib-step__chev { width: 22px; height: 22px; fill: none; stroke: var(--text-3); stroke-width: 2; transition: transform .25s; }
.ib-step[open] .ib-step__chev { transform: rotate(180deg); }
.ib-step__body { padding: 0 24px 26px 80px; }
.ib-step__body > * + * { margin-top: 14px; }
.ib-step__body h5 { font-size: 17px; font-weight: 600; margin-top: 22px; }
.ib-step__body ul, .ib-step__body ol { padding-left: 1.2em; }
.ib-step__body ul { list-style: disc; }
.ib-step__body ol { list-style: decimal; }
.ib-step__body li + li { margin-top: 6px; }
.ib-step__body li::marker { color: var(--violet); }
.ib-step__body a { color: var(--violet-deep); text-underline-offset: 3px; }
.ib-step__body code { font: 500 .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: #f1edfc; }
.ib-step__done { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--lav); color: var(--violet-deep); font-weight: 500; font-size: 15px; }
.ib-step.is-done .ib-step__done { background: var(--violet); color: #fff; }
.ib-step__done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.ib-callout { padding: 16px 18px; border-radius: 14px; background: #e3f6e8; font-size: 16px; }
.ib-callout > strong:first-child { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.ib-callout--aviso { background: #fff4d6; }
.ib-callout--ejemplo { background: var(--gray); }
.ib-callout--ejemplo > strong:first-child { color: var(--violet); }
.ib-callout--pendiente { background: repeating-linear-gradient(-45deg, #fffbea 0 10px, #fff6d3 10px 20px); box-shadow: inset 0 0 0 1.5px #f2cf6b; }
.ib-callout--pendiente > strong:first-child { color: #8a6100; }
.ib-pend { padding: 1px 7px; border-radius: 6px; background: #fff3c2; box-shadow: inset 0 0 0 1px #f2cf6b; color: #7a5600; font-size: .92em; }
.ib-code { border-radius: 16px; background: var(--ink); color: #ece9ff; overflow: hidden; }
.ib-code__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; font-size: 13px; font-weight: 600; color: var(--yellow); background: rgba(255, 255, 255, .05); }
.ib-code pre { margin: 0; padding: 16px; font: 400 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.ib-copy { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 500; }
.ib-copy:hover { background: rgba(255, 255, 255, .2); }
.ib-todo { list-style: none !important; padding: 0 !important; display: grid; gap: 8px; }
.ib-todo li + li { margin-top: 0 !important; }
.ib-todo label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gray); cursor: pointer; }
.ib100 .ib-todo input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid #b9a8f5; background: #fff; display: grid; place-items: center; cursor: pointer; }
.ib100 .ib-todo input:checked { background: var(--violet); border-color: var(--violet); }
.ib100 .ib-todo input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.ib-todo input:checked + span { text-decoration: line-through; color: var(--text-3); }

.ib-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ib-file { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.ib-file__ico { width: 52px; height: 62px; border-radius: 9px 18px 9px 9px; display: grid; place-items: end center; padding-bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--violet); position: relative; }
.ib-file__ico::before { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 0 0 0 6px; background: rgba(255, 255, 255, .35); }
.ib-file__ico[data-t="pdf"] { background: #e5484d; }
.ib-file__ico[data-t="xlsx"] { background: #1f9d55; }
.ib-file__ico[data-t="docx"] { background: #2563eb; }
.ib-file__ico[data-t="txt"], .ib-file__ico[data-t="md"] { background: var(--ink); }
.ib-file h4 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.ib-file p { margin-top: 6px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.ib-file__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ib-file__foot small { font-size: 13px; color: var(--text-3); }
.ib-soon { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--gray); font-size: 13px; color: var(--text-2); }

/* ---------- Pie ---------- */
.ib-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 40px 0; }
.ib-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.ib-social { display: flex; gap: 10px; }
.ib-social a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background-color .2s, transform .2s var(--ease); }
.ib-social a:hover { transform: translateY(-2px); }
.ib-social svg { width: 20px; height: 20px; }
.ib-social--youtube:hover { background: #ff0033; }
.ib-social--linkedin:hover { background: #0a66c2; }
.ib-social--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ib-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.ib-legal a { text-decoration: none; }
.ib-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ib-legal span { color: rgba(255, 255, 255, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.ib-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ib-card--funnel { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
	.ib-gate { grid-template-columns: minmax(0, 1fr); }
	.ib-plan.is-static .ib-plan__cards { grid-template-columns: minmax(0, 1fr); }
	.ib-files { grid-template-columns: minmax(0, 1fr); }
	/* Escena 3D en móvil: el edificio arriba y la ficha abajo. */
	.ib-plan__intro { top: 76px; left: 16px; right: 16px; }
	.ib-hcard, .ib-hcard.is-left, .ib-hcard.is-right { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; padding: 22px; transform: translateY(30px); }
	.ib-hcard.is-on { transform: none; }
	.ib-hcard h3 { font-size: 24px; }
	.ib-hcard__q { font-size: 17px; }
	.ib-hcard__ent { display: none; }
	.ib-plan__end { top: auto; bottom: 32px; left: 16px; transform: translateY(30px); }
	.ib-plan.show-end .ib-plan__end { transform: none; }
	.ib-plan__rail { top: 20px; right: 50%; transform: translateX(50%); grid-auto-flow: column; }
	.ib-plan__rail button { width: 32px; height: 32px; font-size: 13px; }
}
@media (max-width: 640px) {
	.ib100 { font-size: 16px; }
	.ib-wrap { padding: 0 16px; }
	.ib-hero { padding: 28px 0 180px; }
	.ib-logo img { height: 22px; }
	.ib-hero__title { font-size: 42px; margin-top: 64px; }
	.ib-br { display: none; }
	.ib-hero__actions .ib-btn { flex: 1 1 100%; }
	.ib-hero__big { bottom: 120px; right: -14vw; }
	.ib-board { padding: 16px; border-radius: 24px; }
	.ib-board__head { margin-bottom: 16px; }
	.ib-board__head h2 { font-size: 24px; }
	.ib-tl { padding: 18px 16px 12px; }
	.ib-tl__top { margin-bottom: 50px; }
	.ib-tl__day { font-size: 15px; }
	.ib-tl__day b { font-size: 48px; margin: 0 6px; }
	.ib-tl__meta { font-size: 13px; }
	.ib-tl__pct { font-size: 28px; }
	.ib-tl__meta p:last-child { font-size: 13px; }
	.ib-tl__track { gap: 1px; height: 26px; }
	.ib-tl__track i { border-radius: 2px; }
	.ib-tl__track i.gap { margin-left: 3px; }
	.ib-tl__labels { height: 20px; }
	.ib-tl__labels li { padding: 0 2px; font-size: 12px; text-overflow: clip; }
	.ib-tl__labels .ib-long, .ib-tl__labels .ib-date { display: none; }
	.ib-tl__labels b::before { content: "H"; }
	.ib-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ib-card { padding: 20px; }
	.ib-fig b { font-size: 26px; }
	.ib-plan__intro h2 { font-size: 30px; }
	.ib-plan__score { font-size: 72px; }
	.ib-content { padding: 80px 0; }
	.ib-content__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.ib-content__who { text-align: left; }
	.ib-chip-cap { width: 240px; }
	.ib-gate__preview { padding: 24px 20px; border-radius: 24px; }
	.ib-gate__cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.ib-form { padding: 28px 20px 22px; border-radius: 24px; }
	.ib-chapter-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; border-radius: 24px; }
	.ib-chapter-hero__sum { font-size: 17px; }
	.ib-ring { width: 72px; height: 72px; }
	.ib-ring > span { width: 60px; height: 60px; font-size: 18px; }
	.ib-tabs { display: flex; width: 100%; }
	.ib-tabs button { flex: 1; padding: 0 8px; justify-content: center; font-size: 14px; }
	.ib-tabs .ib-count { display: none; }
	.ib-article__intro { font-size: 18px; }
	.ib-step > summary { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
	.ib-step__n { width: 36px; height: 36px; font-size: 16px; }
	.ib-step > summary h4 { font-size: 17px; }
	.ib-step__body { padding: 0 16px 20px; }
	.ib-footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.ib100 *, .ib100 *::before, .ib100 *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
