/* =========================================================
   CumplimientoTech — estilos
   Paleta: noche institucional, oro de sello, azul de señal
   ========================================================= */
:root {
	--night: #081629;
	--ink: #0f2644;
	--ink-2: #163257;
	--gold: #d4a94a;
	--gold-soft: #e9cf8f;
	--signal: #2e9bff;
	--clear: #3ccb8f;
	--warn: #f2b33d;
	--paper: #f2f4f7;
	--white: #ffffff;
	--text: #13213a;
	--muted: #5a6a80;
	--on-dark: #e8eef7;
	--on-dark-muted: #9fb0c8;
	--line-dark: rgba(255, 255, 255, .12);
	--line-light: #dbe1ea;

	--f-display: "Spectral", Georgia, "Times New Roman", serif;
	--f-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1180px;
	--radius-lg: 18px;
	--radius: 10px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .ct-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.ct-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.ct-skip:focus { top: 12px; }

.ct-wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ct-wrap--mid { max-width: 860px; }
.ct-wrap--narrow { max-width: 760px; }
.ct-center { text-align: center; }

.ct-section { padding: clamp(72px, 10vw, 128px) 0; }
.ct-section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.ct-h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
.ct-lead { font-size: 1.15rem; color: var(--muted); margin-top: 18px; max-width: 62ch; }

/* ---------- Botones ---------- */
.ct-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.ct-btn:active { transform: translateY(1px); }
.ct-btn--gold { background: var(--gold); color: var(--night); }
.ct-btn--gold:hover { background: var(--gold-soft); }
.ct-btn--line { border-color: rgba(255,255,255,.35); color: var(--white); }
.ct-btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.ct-btn--block { width: 100%; }
.ct-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Encabezado ---------- */
.ct-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	padding-top: env(safe-area-inset-top, 0px);
	color: var(--white);
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ct-header.is-solid { background: rgba(8, 22, 41, .94); box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ct-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ct-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.ct-brand__img { max-height: 44px; width: auto; }
.ct-brand__name { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; }
.ct-brand__name b { font-weight: 600; color: var(--gold); }
.ct-brand__check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ct-draw 1s .4s var(--ease) forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }

.ct-nav { display: flex; align-items: center; gap: 28px; }
.ct-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ct-nav__list a { text-decoration: none; font-size: .96rem; color: var(--on-dark); padding: 6px 0; position: relative; }
.ct-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.ct-nav__list a:hover::after, .ct-nav__list a.is-current::after { transform: scaleX(1); }
.ct-nav__cta { min-height: 44px; padding: 0 20px; font-size: .94rem; }

.ct-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: transparent; border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.ct-burger__bar { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.ct-burger__bar:nth-child(1) { top: 15px; } .ct-burger__bar:nth-child(2) { top: 22px; } .ct-burger__bar:nth-child(3) { top: 29px; }
.ct-burger[aria-expanded="true"] .ct-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ct-burger[aria-expanded="true"] .ct-burger__bar:nth-child(2) { opacity: 0; }
.ct-burger[aria-expanded="true"] .ct-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.ct-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(1200px 600px at 78% 30%, #13305a 0%, rgba(19,48,90,0) 60%), var(--night);
	color: var(--white);
	padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 90px)) 0 0;
}
.ct-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .28; }
.ct-hero.has-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,22,41,.96) 0%, rgba(8,22,41,.75) 55%, rgba(8,22,41,.55) 100%); }
.ct-hero__grid-bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
	opacity: .5;
}
.ct-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.ct-hero__copy { padding-bottom: clamp(56px, 8vw, 110px); }
.ct-hero__kicker { color: var(--gold); font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.ct-hero__title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; max-width: 15ch; }
.ct-hero__lead { margin-top: 24px; font-size: 1.18rem; color: var(--on-dark); max-width: 54ch; }
.ct-hero__note { margin-top: 18px; color: var(--on-dark-muted); font-size: .95rem; }

.ct-hero__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 520px; }
.ct-hero__photo { margin: 0 -60px 0 0; position: relative; width: min(100%, 470px); }
.ct-hero__photo::before {
	content: ""; position: absolute; left: 50%; top: 4%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%; border: 1.5px solid rgba(212,169,74,.55);
	background: radial-gradient(circle, rgba(46,155,255,.18) 0%, rgba(46,155,255,0) 65%);
}
.ct-hero__photo::after {
	content: ""; position: absolute; left: 50%; top: calc(4% - 16px); width: calc(92% + 32px); aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%; border: 1px dashed rgba(212,169,74,.3);
	animation: ct-spin 60s linear infinite;
}
@keyframes ct-spin { to { transform: translateX(-50%) rotate(360deg); } }
.ct-hero__photo img { position: relative; z-index: 1; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }

/* Consola animada */
.ct-console {
	position: absolute; left: -40px; bottom: 40px; z-index: 2; width: min(290px, 70%);
	background: rgba(15, 38, 68, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
	padding: 18px 18px 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
	font-size: .9rem;
}
.ct-console__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ct-console__title { font-weight: 600; }
.ct-console__tag { font-size: .75rem; color: var(--gold); border: 1px solid rgba(212,169,74,.5); border-radius: 999px; padding: 2px 10px; }
.ct-console__subject { display: grid; gap: 2px; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: var(--radius); margin-bottom: 12px; }
.ct-console__label { font-size: .75rem; color: var(--on-dark-muted); }
.ct-console__name { font-weight: 600; min-height: 1.4em; transition: opacity .3s; }
.ct-console__name.is-swap { opacity: 0; }
.ct-console__lists { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ct-console__lists li { display: flex; justify-content: space-between; align-items: center; color: var(--on-dark-muted); transition: color .3s; }
.ct-console__lists i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); position: relative; flex: none; transition: background-color .3s, border-color .3s; }
.ct-console__lists li.is-checking { color: var(--white); }
.ct-console__lists li.is-checking i { border-color: var(--signal); border-top-color: transparent; animation: ct-rot .7s linear infinite; }
.ct-console__lists li.is-clear { color: var(--on-dark); }
.ct-console__lists li.is-clear i { background: var(--clear); border-color: var(--clear); }
.ct-console__lists li.is-clear i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--night); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ct-console__lists li.is-hit { color: var(--white); }
.ct-console__lists li.is-hit i { background: var(--warn); border-color: var(--warn); }
.ct-console__lists li.is-hit i::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--night); font-weight: 700; font-size: .72rem; }
@keyframes ct-rot { to { transform: rotate(360deg); } }
.ct-console__result { margin-top: 12px; padding: 9px 12px; border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--on-dark-muted); min-height: 2.6em; transition: background-color .3s, color .3s; }
.ct-console__result.is-clear { background: rgba(60,203,143,.14); color: #bff0da; }
.ct-console__result.is-hit { background: rgba(242,179,61,.16); color: #ffe2a8; }
.ct-console__foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: .78rem; color: var(--on-dark-muted); }
.ct-console__foot b { color: var(--white); font-variant-numeric: tabular-nums; }

/* Entrada orquestada de la portada (un solo momento) */
.js .ct-hero__copy > *, .js .ct-hero__photo, .js .ct-console { opacity: 0; transform: translateY(18px); }
.is-loaded .ct-hero__copy > *, .is-loaded .ct-hero__photo, .is-loaded .ct-console { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-loaded .ct-hero__copy > :nth-child(2) { transition-delay: .08s; }
.is-loaded .ct-hero__copy > :nth-child(3) { transition-delay: .16s; }
.is-loaded .ct-hero__copy > :nth-child(4) { transition-delay: .24s; }
.is-loaded .ct-hero__copy > :nth-child(5) { transition-delay: .3s; }
.is-loaded .ct-hero__photo { transition-delay: .2s; }
.is-loaded .ct-console { transition-delay: .55s; }

/* ---------- Credenciales ---------- */
.ct-creds { background: var(--ink); color: var(--white); border-top: 1px solid rgba(212,169,74,.4); }
.ct-creds__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ct-cred { padding: 28px 24px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line-dark); }
.ct-cred:first-child { border-left: 0; padding-left: 0; }
.ct-cred strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.ct-cred > span { color: var(--on-dark-muted); font-size: .94rem; line-height: 1.45; }

/* ---------- Por qué ---------- */
.ct-why { background: var(--paper); }
.ct-why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.ct-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ct-checks li { padding: 20px 0 20px 44px; border-top: 1px solid var(--line-light); position: relative; color: var(--muted); }
.ct-checks li:last-child { border-bottom: 1px solid var(--line-light); }
.ct-checks li::before {
	content: ""; position: absolute; left: 0; top: 22px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23d4a94a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.ct-checks b { color: var(--text); font-weight: 600; }

/* ---------- Servicios ---------- */
.ct-tabs__list { display: inline-flex; gap: 6px; padding: 6px; background: var(--paper); border-radius: 999px; margin-bottom: 36px; flex-wrap: wrap; }
.ct-tabs__tab { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.ct-tabs__tab[aria-selected="true"] { background: var(--night); color: var(--white); }
.ct-tabs__panel { animation: ct-panel .45s var(--ease); }
@keyframes ct-panel { from { opacity: 0; transform: translateY(8px); } }

.ct-svc-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.ct-svc { padding: 28px; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--white); }
.ct-svc h3 { font-size: 1.4rem; margin-bottom: 12px; }
.ct-svc p { color: var(--muted); }
.ct-svc--lead { grid-row: span 2; background: var(--night); color: var(--white); border-color: var(--night); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; }
.ct-svc--lead h3 { font-size: 1.85rem; }
.ct-svc--lead p { color: var(--on-dark); }
.ct-svc--lead ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 28px; display: grid; gap: 10px; }
.ct-svc--lead li { padding-left: 24px; position: relative; color: var(--on-dark); }
.ct-svc--lead li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--gold); }
.ct-svc-grid > .ct-svc:nth-child(4) { grid-column: 2 / span 2; }

/* ---------- Método ---------- */
.ct-method { background: var(--night); color: var(--white); }
.ct-method .ct-lead { color: var(--on-dark-muted); }
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; --progress: 0; }
.ct-steps::before, .ct-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; }
.ct-steps::before { background: var(--line-dark); }
.ct-steps::after { background: var(--gold); transform-origin: left; transform: scaleX(var(--progress)); transition: transform .15s linear; }
.ct-step { position: relative; z-index: 1; }
.ct-step__num {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	font-family: var(--f-display); font-size: 1.35rem; background: var(--night); border: 2px solid var(--line-dark);
	margin-bottom: 22px; transition: border-color .4s, background-color .4s, color .4s;
}
.ct-step.is-on .ct-step__num { border-color: var(--gold); background: var(--gold); color: var(--night); }
.ct-step h3 { font-size: 1.45rem; }
.ct-step__time { color: var(--gold); font-size: .92rem; margin: 6px 0 12px; }
.ct-step p:last-child { color: var(--on-dark-muted); }

/* ---------- Plataforma ---------- */
.ct-platform { background: var(--paper); }
.ct-platform__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.ct-modules { display: grid; gap: 8px; margin-top: 32px; }
.ct-modules button {
	text-align: left; border: 1px solid var(--line-light); background: var(--white); padding: 15px 18px 15px 46px;
	border-radius: var(--radius); cursor: pointer; font-weight: 500; color: var(--text); position: relative;
	transition: border-color .25s, background-color .25s, color .25s;
}
.ct-modules button::before { content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--line-light); transition: border-color .25s, background-color .25s; }
.ct-modules button:hover { border-color: var(--ink-2); }
.ct-modules button[aria-selected="true"] { background: var(--night); color: var(--white); border-color: var(--night); }
.ct-modules button[aria-selected="true"]::before { border-color: var(--gold); background: var(--gold); }

.ct-screen { background: var(--night); border-radius: var(--radius-lg); color: var(--white); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8,22,41,.55); }
.ct-screen__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); font-size: .88rem; color: var(--on-dark-muted); }
.ct-screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ct-screen__bar span { margin-left: 10px; }
.ct-screen__body { position: relative; min-height: 400px; padding: 30px; }
.ct-screen__pane { position: absolute; inset: 30px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.ct-screen__pane.is-active { opacity: 1; visibility: visible; transform: none; }
.ct-screen__pane > p:first-child { color: var(--on-dark); font-size: 1.05rem; max-width: 46ch; }
.ct-screen__meta { margin-top: 14px; color: var(--on-dark-muted); font-size: .9rem; }

.ct-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--line-dark); position: relative; }
.ct-bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: 78%; border-top: 1.5px dashed rgba(242,179,61,.6); }
.ct-bars i { flex: 1; height: var(--h); background: var(--ink-2); border-radius: 5px 5px 0 0; transform-origin: bottom; }
.ct-bars i.is-alert { background: var(--warn); }
.is-active .ct-bars i { animation: ct-grow .7s var(--ease) both; }
.is-active .ct-bars i:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes ct-grow { from { transform: scaleY(0); } }

.ct-seg { display: flex; height: 54px; margin-top: 34px; border-radius: 10px; overflow: hidden; }
.ct-seg span { width: var(--w); display: flex; align-items: center; padding-left: 14px; font-size: .9rem; font-weight: 600; color: var(--night); }
.ct-seg span:nth-child(1) { background: var(--clear); } .ct-seg span:nth-child(2) { background: var(--gold); } .ct-seg span:nth-child(3) { background: var(--warn); padding-left: 8px; }
.is-active .ct-seg span { animation: ct-widen .8s var(--ease) both; transform-origin: left; }
@keyframes ct-widen { from { transform: scaleX(0); } }

.ct-tags { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ct-tags li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); }

.ct-doc { margin-top: 30px; width: 220px; padding: 22px; border-radius: 10px; background: var(--white); display: grid; gap: 10px; position: relative; }
.ct-doc i { display: block; height: 8px; border-radius: 4px; background: #dfe5ee; }
.ct-doc i.short { width: 55%; }
.ct-doc b { position: absolute; right: -18px; bottom: -14px; background: var(--gold); color: var(--night); font-size: .8rem; padding: 6px 12px; border-radius: 999px; transform: rotate(-6deg); }

.ct-cal { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.ct-cal li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--on-dark-muted); }
.ct-cal span { color: var(--white); font-weight: 600; }

/* ---------- Video ---------- */
.ct-video { background: var(--night); color: var(--white); }
.ct-video__frame { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.ct-video__frame iframe, .ct-video__file { width: 100%; height: 100%; border: 0; object-fit: cover; }
.ct-video__lazy { position: relative; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--ink); }
.ct-video__lazy img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.ct-video__lazy:hover img { opacity: 1; }
.ct-video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(212,169,74,.5); animation: ct-pulse 2.4s infinite; }
@keyframes ct-pulse { 70% { box-shadow: 0 0 0 22px rgba(212,169,74,0); } 100% { box-shadow: 0 0 0 0 rgba(212,169,74,0); } }

/* ---------- Experiencia ---------- */
.ct-about { background: var(--white); }
.ct-about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ct-about__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); background: linear-gradient(180deg, var(--ink) 0%, var(--night) 100%); border-radius: var(--radius-lg); overflow: hidden; padding-top: 30px; }
.ct-about__photo img { width: 100%; height: auto; }
.ct-about__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(8,22,41,.95)); color: var(--white); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; }
.ct-about__photo figcaption span { font-family: var(--f-body); font-size: .92rem; color: var(--gold); }
.ct-cases { display: grid; gap: 0; margin-top: 36px; }
.ct-case { padding: 22px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.ct-case h3 { font-size: 1.3rem; }
.ct-case p { color: var(--muted); }
.ct-edu { margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--paper); }
.ct-edu h3 { font-size: 1.3rem; margin-bottom: 12px; }
.ct-edu ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Preguntas ---------- */
.ct-faq { background: var(--paper); }
.ct-faq__list { margin-top: 44px; border-top: 1px solid var(--line-light); }
.ct-qa { border-bottom: 1px solid var(--line-light); }
.ct-qa summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-family: var(--f-display); font-size: 1.3rem; position: relative; }
.ct-qa summary::-webkit-details-marker { display: none; }
.ct-qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border: solid var(--text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.ct-qa[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.ct-qa p { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }
.ct-qa[open] p { animation: ct-panel .4s var(--ease); }

/* ---------- Contacto ---------- */
.ct-contact { background: var(--night); color: var(--white); }
.ct-contact .ct-lead { color: var(--on-dark-muted); }
.ct-contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ct-contact__ways { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.ct-contact__ways li { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; gap: 2px; }
.ct-contact__ways span { font-size: .88rem; color: var(--on-dark-muted); }
.ct-contact__ways a { color: var(--white); text-decoration: none; font-size: 1.15rem; word-break: break-word; }
.ct-contact__ways a:hover { color: var(--gold); }

.ct-form { background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: grid; gap: 7px; font-size: .92rem; color: var(--on-dark); }
.ct-field em { color: var(--on-dark-muted); font-style: normal; }
.ct-field input, .ct-field select, .ct-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
	border: 1.5px solid rgba(255,255,255,.16); background: rgba(8,22,41,.6); color: var(--white);
	transition: border-color .2s, background-color .2s;
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239fb0c8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.ct-field select option { color: var(--text); }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #6f82a0; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--gold); background: rgba(8,22,41,.9); }
.ct-field.has-error input, .ct-field.has-error textarea { border-color: #ff7a7a; }
.ct-field__err { color: #ffb0b0; font-size: .85rem; }
.ct-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--on-dark-muted); }
.ct-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.ct-consent a { color: var(--gold); }
.ct-consent.has-error span { color: #ffb0b0; }
.ct-form__status { min-height: 1.4em; font-size: .95rem; }
.ct-form__status.is-ok { color: #bff0da; }
.ct-form__status.is-err { color: #ffb0b0; }

/* ---------- Pie ---------- */
.ct-footer { background: #06111f; color: var(--on-dark-muted); padding: 64px 0 28px; }
.ct-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ct-footer__brand .ct-brand__name { color: var(--white); }
.ct-footer__brand p { margin-top: 12px; max-width: 40ch; }
.ct-footer__title { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.ct-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-footer__list a { text-decoration: none; }
.ct-footer__list a:hover { color: var(--gold); }
.ct-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.ct-footer__legal a { text-decoration: none; }

/* Botón flotante de WhatsApp */
.ct-wa {
	position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
	width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white);
	display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
	transform: scale(0); transition: transform .4s var(--ease);
}
.ct-wa.is-shown { transform: scale(1); }
.ct-wa:hover { transform: scale(1.06); }

/* ---------- Páginas internas ---------- */
.ct-page { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 72px) 0 96px; min-height: 70vh; }
body:not(.home) .ct-header { background: var(--night); }
.ct-page--center { text-align: center; }
.ct-page--center .ct-actions { justify-content: center; }
.ct-page__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
.ct-page__title a { text-decoration: none; }
.ct-prose { font-size: 1.08rem; color: #2b3b55; }
.ct-prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.ct-prose p, .ct-prose ul, .ct-prose ol { margin: 0 0 16px; }
.ct-prose a { color: var(--ink-2); }
.ct-entry { padding: 28px 0; border-bottom: 1px solid var(--line-light); }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.ct-hero__photo { width: min(100%, 420px); margin-right: -30px; }
}
@media (max-width: 1080px) {
	.ct-nav__list { gap: 18px; }
	.ct-svc-grid { grid-template-columns: 1fr 1fr; }
	.ct-svc--lead { grid-row: auto; grid-column: 1 / -1; }
	.ct-svc-grid > .ct-svc:nth-child(4) { grid-column: auto; }
}
@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.ct-burger { display: block; }
	.ct-nav {
		position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--night); padding: 12px 20px 28px; border-top: 1px solid var(--line-dark);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.ct-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.ct-nav__list { flex-direction: column; gap: 0; }
	.ct-nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
	.ct-nav__list a::after { display: none; }
	.ct-nav__cta { margin-top: 20px; min-height: 52px; }
	.ct-header.menu-open { background: var(--night); }

	.ct-hero__inner { grid-template-columns: 1fr; }
	.ct-hero__copy { padding-bottom: 12px; }
	.ct-hero__visual { min-height: 0; justify-content: center; flex-direction: column; align-items: center; }
	.ct-hero__photo { width: min(78%, 400px); margin: 0; }
	.ct-console { position: relative; left: auto; bottom: auto; width: min(100%, 420px); margin: -70px auto 48px; }

	.ct-creds__row { grid-template-columns: 1fr 1fr; }
	.ct-cred { padding: 22px 16px; }
	.ct-cred:nth-child(odd) { border-left: 0; padding-left: 0; }
	.ct-cred:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

	.ct-why__grid, .ct-platform__grid, .ct-about__grid, .ct-contact__grid { grid-template-columns: 1fr; }
	.ct-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.ct-steps::before, .ct-steps::after { display: none; }
	.ct-about__photo { position: relative; top: auto; max-width: 420px; }
	.ct-footer__grid { grid-template-columns: 1fr 1fr; }
	.ct-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	body { font-size: 1rem; }
	.ct-actions .ct-btn { width: 100%; }
	.ct-svc-grid { grid-template-columns: 1fr; }
	.ct-svc--lead { padding: 28px; }
	.ct-steps { grid-template-columns: 1fr; }
	.ct-case { grid-template-columns: 1fr; gap: 6px; }
	.ct-form__row { grid-template-columns: 1fr; }
	.ct-tabs__list { display: flex; }
	.ct-tabs__tab { flex: 1; padding: 12px 10px; font-size: .92rem; }
	.ct-screen__body { min-height: 420px; padding: 22px; }
	.ct-screen__pane { inset: 22px; }
	.ct-footer__grid { grid-template-columns: 1fr; }
	.ct-cred strong { font-size: 1.4rem; }
}


/* =========================================================
   v1.1 — Desarrollo web con el mismo peso que cumplimiento
   ========================================================= */

/* Consola: indicador de línea de servicio */
.ct-console__modes { display: flex; gap: 6px; margin: -4px 0 12px; }
.ct-console__modes span { font-size: .74rem; padding: 3px 10px; border-radius: 999px; color: var(--on-dark-muted); background: rgba(255,255,255,.05); transition: background-color .3s, color .3s; }
.ct-console__modes span.is-on { background: var(--gold); color: var(--night); font-weight: 600; }
.ct-console__lists li span { transition: opacity .25s; }
.ct-console__lists.is-swap li span, .ct-console__title.is-swap { opacity: 0; }
.ct-console__title { transition: opacity .25s; }

/* Servicios: dos líneas con el mismo peso */
.ct-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ct-line { border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; }
.ct-line--comp { background: var(--paper); color: var(--text); }
.ct-line--tech { background: var(--night); color: var(--white); }
.ct-line__head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.ct-line--tech .ct-line__head { border-color: var(--line-dark); }
.ct-line__head svg { flex: none; margin-top: 4px; color: var(--night); }
.ct-line--tech .ct-line__head svg { color: var(--white); }
.ct-line__head h3 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); }
.ct-line__head p { margin-top: 6px; color: var(--muted); }
.ct-line--tech .ct-line__head p { color: var(--on-dark-muted); }
.ct-line__list { list-style: none; margin: 0; padding: 0; display: grid; }
.ct-line__list li { padding: 18px 0; border-bottom: 1px solid var(--line-light); color: var(--muted); }
.ct-line--tech .ct-line__list li { border-color: var(--line-dark); color: var(--on-dark-muted); }
.ct-line__list b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.ct-line--tech .ct-line__list b { color: var(--white); }
.ct-line__link { margin-top: 26px; align-self: flex-start; font-weight: 600; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.ct-line--tech .ct-line__link { color: var(--gold-soft); }
.ct-line__link:hover { border-bottom-color: currentColor; }

/* Desarrollo */
.ct-dev { background: var(--night); color: var(--white); overflow: hidden; }
.ct-dev .ct-lead { color: var(--on-dark-muted); }
.ct-dev__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 52px); }

.ct-flow { background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); }
.ct-flow__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.ct-flow__tabs button { border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.ct-flow__tabs button:hover { border-color: rgba(255,255,255,.4); }
.ct-flow__tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 600; }

.ct-flow__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; --p: 0; }
.ct-flow__track::before, .ct-flow__track::after { content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; }
.ct-flow__track::before { background: var(--line-dark); }
.ct-flow__track::after { background: linear-gradient(90deg, var(--gold), var(--signal)); transform-origin: left; transform: scaleX(var(--p)); transition: transform .55s var(--ease); }
.ct-flow__track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 0 6px; }
.ct-flow__track i { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-dark); display: grid; place-items: center; transition: background-color .35s, border-color .35s, transform .35s var(--ease); }
.ct-flow__track i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background-color .35s; }
.ct-flow__track li.is-active i { border-color: var(--signal); transform: scale(1.1); }
.ct-flow__track li.is-active i::after { background: var(--signal); }
.ct-flow__track li.is-done i { border-color: var(--gold); background: var(--gold); }
.ct-flow__track li.is-done i::after { width: 7px; height: 12px; border-radius: 0; background: transparent; border: solid var(--night); border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.ct-flow__track span { font-size: .95rem; color: var(--on-dark-muted); transition: color .35s, opacity .25s; }
.ct-flow__track li.is-done span, .ct-flow__track li.is-active span { color: var(--white); }
.ct-flow__track.is-swap span { opacity: 0; }

.ct-flow__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.ct-flow__before, .ct-flow__after { padding: 22px 24px; border-radius: var(--radius); }
.ct-flow__before { background: rgba(255,255,255,.04); }
.ct-flow__after { background: rgba(212,169,74,.1); border: 1px solid rgba(212,169,74,.45); }
.ct-flow__compare h3 { font-family: var(--f-body); font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--on-dark-muted); }
.ct-flow__after h3 { color: var(--gold); }
.ct-flow__compare p { color: var(--on-dark); transition: opacity .25s; }
.ct-flow__compare.is-swap p { opacity: 0; }

.ct-build { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.ct-build li { padding: 28px 22px 4px; border-left: 1px solid var(--line-dark); }
.ct-build li:first-child { border-left: 0; padding-left: 0; }
.ct-build svg { color: var(--gold); margin-bottom: 14px; }
.ct-build h3 { font-size: 1.25rem; margin-bottom: 6px; }
.ct-build p { color: var(--on-dark-muted); font-size: .95rem; }

/* Proyectos */
.ct-projects { background: var(--white); }
.ct-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ct-proj { border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.ct-proj:hover { border-color: #b9c4d4; }
.ct-proj--feature { grid-column: span 2; flex-direction: row; }
.ct-proj--feature .ct-proj__shot { flex: 1.15; min-height: 300px; }
.ct-proj--feature .ct-proj__body { flex: 1; align-self: center; }
.ct-proj__shot { position: relative; background: var(--night); min-height: 200px; padding: 16px; overflow: hidden; color: var(--white); }
.ct-proj__body { padding: 24px 26px 28px; }
.ct-proj__type { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.ct-proj__type::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.ct-proj h3 { font-size: 1.4rem; margin: 8px 0 8px; }
.ct-proj--feature h3 { font-size: 1.75rem; }
.ct-proj__body > p:not(.ct-proj__type) { color: var(--muted); }
.ct-proj__link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.ct-proj__link:hover { border-bottom-color: var(--ink-2); }

/* Miniaturas de interfaz (dibujadas con CSS) */
.ct-shot__bar { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--on-dark-muted); margin-bottom: 14px; }
.ct-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.ct-shot__bar span { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.ct-shot-site__hero { background: linear-gradient(120deg, var(--ink-2), #1d4273); border-radius: 8px; padding: 22px 18px; display: grid; gap: 8px; }
.ct-shot-site__hero b { display: block; height: 10px; width: 62%; border-radius: 5px; background: rgba(255,255,255,.85); }
.ct-shot-site__hero b.s { width: 40%; background: rgba(255,255,255,.4); }
.ct-shot-site__hero em { display: block; width: 90px; height: 22px; border-radius: 999px; background: var(--gold); margin-top: 6px; }
.ct-shot-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ct-shot-site__cards i { height: 54px; border-radius: 8px; background: rgba(255,255,255,.07); }
.ct-shot-site__sim { position: absolute; right: 18px; bottom: 18px; width: 46%; background: var(--white); color: var(--text); border-radius: 10px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); }
.ct-shot-site__sim span { font-size: .78rem; font-weight: 600; }
.ct-shot-site__sim i { height: 8px; border-radius: 4px; background: #dfe5ee; }
.ct-shot-site__sim b { height: 22px; border-radius: 6px; background: var(--night); }
.ct-proj:hover .ct-shot-site__sim { transform: translateY(-4px); }
.ct-shot-site__sim { transition: transform .4s var(--ease); }

.ct-shot-table ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-shot-table li { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,.06); }
.ct-shot-table li i { width: 45%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); }
.ct-shot-table b { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(46,155,255,.2); color: #9ccfff; font-weight: 600; }
.ct-shot-table b.ok { background: rgba(60,203,143,.2); color: #9ff0c9; }
.ct-shot-table b.wait { background: rgba(242,179,61,.2); color: #ffd98a; }

.ct-shot-engine__rows { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; font-size: .82rem; color: var(--on-dark); }
.ct-shot-engine__rows b { width: 18px; height: 18px; border-radius: 50%; background: var(--clear); position: relative; }
.ct-shot-engine__rows b::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--night); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ct-shot-engine__pdf { position: absolute; right: 16px; bottom: 16px; background: var(--white); color: var(--text); font-size: .74rem; font-weight: 600; padding: 26px 14px 8px; border-radius: 6px; border-top: 6px solid #d9534f; transform: rotate(4deg); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.ct-proj:hover .ct-shot-engine__pdf { transform: rotate(0) translateY(-4px); }

.ct-shot-chart__bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; border-bottom: 1px solid var(--line-dark); }
.ct-shot-chart__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--signal), var(--ink-2)); }

.ct-shot-docs { display: flex; justify-content: center; align-items: center; }
.ct-shot-docs__sheet { width: 34%; aspect-ratio: .75; background: var(--white); border-radius: 6px; padding: 12px 10px; display: grid; align-content: start; gap: 7px; position: relative; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.ct-shot-docs__sheet:nth-child(1) { transform: rotate(-8deg) translateX(30px); }
.ct-shot-docs__sheet:nth-child(2) { z-index: 2; transform: translateY(-6px); }
.ct-shot-docs__sheet:nth-child(3) { transform: rotate(8deg) translateX(-30px); }
.ct-proj:hover .ct-shot-docs__sheet:nth-child(1) { transform: rotate(-12deg) translateX(18px); }
.ct-proj:hover .ct-shot-docs__sheet:nth-child(3) { transform: rotate(12deg) translateX(-18px); }
.ct-shot-docs__sheet i { height: 6px; border-radius: 3px; background: #dfe5ee; }
.ct-shot-docs__sheet i.s { width: 60%; }
.ct-shot-docs__sheet b { position: absolute; right: 8px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); }

.ct-budget { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--paper); border-left: 4px solid var(--gold); }
.ct-budget h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.ct-budget p { color: var(--muted); margin-top: 4px; }

@media (max-width: 1080px) {
	.ct-build { grid-template-columns: repeat(3, 1fr); }
	.ct-build li:nth-child(4) { border-left: 0; padding-left: 0; }
	.ct-proj-grid { grid-template-columns: 1fr 1fr; }
	.ct-proj--feature { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.ct-lines { grid-template-columns: 1fr; }
	.ct-flow__compare { grid-template-columns: 1fr; }
	.ct-flow__track { grid-template-columns: 1fr; gap: 14px; }
	.ct-flow__track::before, .ct-flow__track::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
	.ct-flow__track::after { transform-origin: top; transform: scaleY(var(--p)); }
	.ct-flow__track li { flex-direction: row; text-align: left; gap: 16px; padding: 0; }
	.ct-proj--feature { flex-direction: column; }
	.ct-proj--feature .ct-proj__shot { min-height: 260px; flex: none; }
}
@media (max-width: 620px) {
	.ct-build { grid-template-columns: 1fr 1fr; }
	.ct-build li, .ct-build li:nth-child(4) { border-left: 0; padding-left: 0; padding-right: 12px; }
	.ct-proj-grid { grid-template-columns: 1fr; }
	.ct-flow__tabs button { flex: 1 1 45%; padding: 10px 12px; font-size: .9rem; border-radius: 14px; }
	.ct-shot-site__sim { width: 58%; }
	.ct-budget .ct-btn { width: 100%; }
}


/* =========================================================
   v1.2 — Logo, intro animada y vitrina de imágenes
   ========================================================= */

/* Logo en la cabecera */
.ct-brand { gap: 12px; }
.ct-brand__emblem { position: relative; display: block; width: 46px; height: 44px; flex: none; }
.ct-brand__emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(46,155,255,.35)); transition: transform .4s var(--ease); }
.ct-brand__emblem::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%; background-position: 120% 0;
	-webkit-mask: url("../img/logo-emblema.webp") center / contain no-repeat; mask: url("../img/logo-emblema.webp") center / contain no-repeat;
	animation: ct-shine 7s 2.6s ease-in-out infinite;
}
@keyframes ct-shine { 0%, 82% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.ct-brand:hover .ct-brand__emblem img { transform: rotate(-6deg) scale(1.06); }
.ct-brand__word { height: 24px; width: auto; }
.ct-footer__logo { width: 190px; height: auto; }

/* Intro con el logo (una vez por sesión) */
.ct-intro {
	position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
	background: radial-gradient(700px 420px at 50% 50%, #10305c 0%, var(--night) 70%);
	transition: opacity .6s var(--ease), visibility .6s;
}
.no-intro .ct-intro, .intro-done .ct-intro { opacity: 0; visibility: hidden; pointer-events: none; }
.ct-intro__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(46,155,255,.35), transparent 65%); animation: ct-breathe 1.8s var(--ease) both; }
@keyframes ct-breathe { from { transform: scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); opacity: .7; } }
.ct-intro__logo { position: relative; display: grid; justify-items: center; gap: 22px; }
.ct-intro__emblem { position: relative; width: clamp(120px, 20vw, 170px); aspect-ratio: 200 / 191; animation: ct-emblem-in 1s var(--ease) both; }
.ct-intro__emblem img { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(46,155,255,.55)); }
.ct-intro__emblem::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%; background-position: 120% 0;
	-webkit-mask: url("../img/logo-emblema.webp") center / contain no-repeat; mask: url("../img/logo-emblema.webp") center / contain no-repeat;
	animation: ct-sweep .9s .85s ease-in-out both;
}
@keyframes ct-emblem-in { from { opacity: 0; transform: scale(.55) rotate(-10deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ct-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ct-intro__word { width: clamp(240px, 42vw, 420px); height: auto; clip-path: inset(0 100% 0 0); animation: ct-reveal .8s .55s var(--ease) forwards; }
@keyframes ct-reveal { to { clip-path: inset(0 0 0 0); } }
.ct-intro__line { width: clamp(180px, 30vw, 300px); height: 2px; background: linear-gradient(90deg, transparent, var(--signal), var(--gold), transparent); transform: scaleX(0); animation: ct-line .7s 1s var(--ease) forwards; }
@keyframes ct-line { to { transform: scaleX(1); } }

/* Vitrina animada */
.ct-show { background: var(--night); position: relative; }
.ct-show__stage { position: relative; height: clamp(520px, 56vw, 760px); overflow: hidden; isolation: isolate; }
.ct-show__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); z-index: 0; }
.ct-show__slide.is-active { opacity: 1; z-index: 1; }
.ct-show__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); will-change: transform; }
.ct-show__slide.is-active img { animation: var(--kb, ct-kb-in-right) var(--dur, 7s) linear forwards; }
.ct-show__slide[data-kb="in-right"] { --kb: ct-kb-in-right; }
.ct-show__slide[data-kb="in-left"] { --kb: ct-kb-in-left; }
.ct-show__slide[data-kb="out"] { --kb: ct-kb-out; }
.ct-show__slide[data-kb="in-up"] { --kb: ct-kb-in-up; }
@keyframes ct-kb-in-right { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, 0); } }
@keyframes ct-kb-in-left  { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(2%, 1%); } }
@keyframes ct-kb-out      { from { transform: scale(1.16); } to { transform: scale(1.04); } }
@keyframes ct-kb-soft { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes ct-kb-in-up    { from { transform: scale(1.05) translate(0, 1%); } to { transform: scale(1.13) translate(-1%, -2%); } }

.ct-show__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(0deg, rgba(8,22,41,.95) 0%, rgba(8,22,41,.55) 28%, rgba(8,22,41,0) 55%),
	            linear-gradient(90deg, rgba(8,22,41,.55) 0%, rgba(8,22,41,0) 45%); }
.ct-show__scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 2; pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(46,155,255,.10), transparent);
	animation: ct-scan 6s linear infinite; }
@keyframes ct-scan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }

.ct-show__ui { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 56px); margin-inline: auto; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--white); }
.ct-show__caps { display: grid; max-width: 560px; }
.ct-show__cap { grid-area: 1 / 1; }
.ct-show__cap h3 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.ct-show__cap p { margin-top: 12px; font-size: 1.1rem; color: var(--on-dark); max-width: 46ch; }
.ct-show__cap.is-active h3 { animation: ct-cap-in .8s .15s var(--ease) both; }
.ct-show__cap.is-active p { animation: ct-cap-in .8s .35s var(--ease) both; }
@keyframes ct-cap-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.ct-show__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.ct-show__dot { width: 54px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.ct-show__dot i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.ct-show__dot i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.ct-show__dot.is-done i::after { transform: scaleX(1); }
.ct-show__dot.is-active i::after { animation: ct-progress var(--dur, 7s) linear forwards; }
@keyframes ct-progress { to { transform: scaleX(1); } }
.ct-show__pause { width: 40px; height: 40px; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(8,22,41,.4); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.ct-show__pause:hover { border-color: var(--white); }
.ct-show__pause .i-play, .ct-show.is-paused .ct-show__pause .i-pause { display: none; }
.ct-show.is-paused .ct-show__pause .i-play { display: block; }
.ct-show.is-paused .ct-show__slide.is-active img,
.ct-show.is-paused .ct-show__dot.is-active i::after,
.ct-show.is-hold .ct-show__slide.is-active img,
.ct-show.is-hold .ct-show__dot.is-active i::after { animation-play-state: paused; }

@media (max-width: 760px) {
	.ct-brand__word { height: 19px; }
	.ct-brand__emblem { width: 40px; height: 38px; }
	/* En celular la imagen se ve completa arriba y el texto va debajo */
	.ct-show__stage { height: calc(100vw * .625 + 240px); }
	.ct-show__slide { bottom: 240px; }
	.ct-show__slide.is-active img { animation-name: ct-kb-soft; }
	.ct-show__shade { bottom: 240px; background: linear-gradient(0deg, var(--night) 0%, rgba(8,22,41,0) 30%); }
	.ct-show__scan { bottom: 240px; height: 18%; }
	.ct-show__ui { bottom: 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
	.ct-show__cap h3 { font-size: 1.6rem; }
	.ct-show__cap p { font-size: 1rem; margin-top: 8px; }
	.ct-show__dot { width: 44px; }
}
@media (max-width: 380px) { .ct-brand__word { height: 16px; } }
@media (prefers-reduced-motion: reduce) {
	.ct-show__scan { display: none; }
	.ct-intro { display: none; }
}

/* Páginas de sección vistas por separado */
.ct-pagina-seccion #contenido { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* Movimiento reducido: sin animaciones decorativas */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal], .js .ct-hero__copy > *, .js .ct-hero__photo, .js .ct-console { opacity: 1; transform: none; }
}
