/* Cryptodata — rediseño (Inicio y Programa de Integridad) */

:root {
	--cd-ink: #14202b;
	--cd-navy: #0e2537;
	--cd-dark: #0b1d2b;
	--cd-footer: #071520;
	--cd-accent: #3fb0e0;
	--cd-accent-light: #6cc6ee;
	--cd-link: #1f8fc4;
	--cd-text-2: #4b5a66;
	--cd-text-3: #3c4a55;
	--cd-muted: #5d6c78;
	--cd-on-dark: #b9c8d4;
	--cd-on-dark-2: #8ea3b3;
	--cd-page: #f5f7f9;
	--cd-border: #e3e8ec;
	--cd-border-2: #e6eaee;
	--cd-input: #d5dde3;
	--cd-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
	--cd-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body.cd {
	margin: 0;
	background: var(--cd-page);
	color: var(--cd-ink);
	font-family: var(--cd-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.cd *, .cd *::before, .cd *::after { box-sizing: border-box; }
.cd img { max-width: 100%; height: auto; }
.cd a { color: var(--cd-link); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
.cd a:hover { color: var(--cd-navy); }
.cd h1, .cd h2, .cd h3 { font-family: var(--cd-sans); color: inherit; }
.cd input, .cd textarea, .cd button { font-family: inherit; }

/* Layout */
.cd-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cd-container--narrow { max-width: 960px; }
.cd-section { padding: 112px 0; }
.cd-section--white { background: #fff; }

.cd-eyebrow {
	font-family: var(--cd-mono);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cd-link);
	margin-bottom: 14px;
}
.cd-eyebrow--light { color: var(--cd-accent-light); }
.cd-eyebrow--muted { font-size: 12px; color: var(--cd-muted); margin-bottom: 0; }

.cd-h2 {
	margin: 0;
	font-size: clamp(32px, 3.6vw, 46px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.cd-num { font-family: var(--cd-mono); font-size: 12px; color: var(--cd-link); }

/* Buttons */
.cd .cd-btn {
	display: inline-block;
	padding: 15px 26px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.cd .cd-btn--accent { background: var(--cd-accent); color: #06131d; }
.cd .cd-btn--accent:hover { background: var(--cd-accent-light); color: #06131d; }
.cd .cd-btn--ghost { border: 1px solid #2c4659; color: #fff; font-weight: 600; }
.cd .cd-btn--ghost:hover { border-color: var(--cd-accent-light); color: #fff; }

.cd .cd-btn-header {
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--cd-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.cd .cd-btn-header:hover { background: var(--cd-link); color: #fff; }

/* Header */
.cd-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--cd-border-2);
}
.admin-bar .cd-header { top: 32px; }

.cd-header__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cd-header__logo { display: flex; align-items: center; flex: none; }
.cd-header__logo img { height: 44px; width: auto; display: block; }

.cd-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.cd .cd-nav a:not(.cd-btn-header) { color: var(--cd-ink); }
.cd .cd-nav a:not(.cd-btn-header):hover { color: var(--cd-link); }
.cd .cd-nav a.is-active { color: var(--cd-link); box-shadow: inset 0 -2px 0 var(--cd-accent); padding: 6px 0; }

.cd-header__mobile { display: none; align-items: center; gap: 10px; }
.cd-header__mobile .cd-btn-header { padding: 10px 14px; }

.cd-menu-toggle {
	width: 44px;
	height: 44px;
	border: 1px solid var(--cd-input);
	border-radius: 8px;
	background: #fff;
	color: var(--cd-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.cd-mobile-nav {
	display: flex;
	flex-direction: column;
	padding: 4px 24px 16px;
	background: #fff;
	border-top: 1px solid var(--cd-border-2);
}
.cd-mobile-nav[hidden] { display: none; }
.cd .cd-mobile-nav a {
	color: var(--cd-ink);
	padding: 14px 0;
	border-bottom: 1px solid #eef1f4;
	font-size: 16px;
	font-weight: 600;
}
.cd .cd-mobile-nav a:hover,
.cd .cd-mobile-nav a[aria-current] { color: var(--cd-link); }

@media (max-width: 1199px) {
	.cd-nav { display: none; }
	.cd-header__mobile { display: flex; }
	.cd-header__bar { gap: 10px; }
	.cd-header__logo { margin-right: auto; }
}

@media (max-width: 480px) {
	.cd-header__bar { padding: 0 16px; }
	.cd-header__logo img { height: 38px; }
	.cd-header__mobile .cd-btn-header { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 380px) {
	.cd-hide-xs { display: none; }
}
@media (min-width: 1200px) {
	.cd-mobile-nav { display: none !important; }
}
@media (max-width: 782px) {
	.admin-bar .cd-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .cd-header { top: 0; }
}

/* Hero */
.cd-hero { background: var(--cd-dark); color: #fff; overflow: hidden; }
.cd-hero__grid {
	padding-top: 88px;
	padding-bottom: 96px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	align-items: center;
}
.cd-hero__title {
	margin: 0;
	font-size: clamp(40px, 5.2vw, 64px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.cd-eyebrow + .cd-hero__title { margin-top: 6px; }
.cd-hero__lead {
	margin: 24px 0 0;
	font-size: 19px;
	line-height: 1.55;
	color: var(--cd-on-dark);
	max-width: 520px;
	text-wrap: pretty;
}
.cd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.cd-hero__media { aspect-ratio: 4 / 3; width: 100%; border-radius: 18px; overflow: hidden; }

/* Carrusel del hero */
.cd-slider { position: relative; background: var(--cd-navy); }
.cd-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}
.cd-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.cd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-slide__tag {
	position: absolute;
	left: 20px;
	top: 20px;
	padding: 7px 12px;
	border-radius: 8px;
	background: rgba(6, 19, 29, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--cd-accent-light);
	font-family: var(--cd-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.cd-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.cd-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: width .3s, background-color .3s;
}
.cd-slider__dot:hover { background: rgba(255, 255, 255, .6); }
.cd-slider__dot.is-active { width: 28px; background: var(--cd-accent); }
.cd-slider__dot:focus-visible { outline: 2px solid var(--cd-accent-light); outline-offset: 2px; }

/* Clientes */
.cd-clients { background: #fff; border-bottom: 1px solid var(--cd-border-2); }
.cd-clients__inner {
	padding-top: 40px;
	padding-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	flex-wrap: nowrap;
}

/* Carrusel continuo de logos */
.cd-marquee {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cd-marquee__track {
	display: flex;
	width: max-content;
	animation: cd-marquee 40s linear infinite;
}
.cd-marquee:hover .cd-marquee__track { animation-play-state: paused; }
.cd-marquee__group {
	display: flex;
	align-items: center;
	gap: 56px;
	padding-right: 56px;
}
.cd-marquee__group img { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
.cd-marquee__group img.cd-logo--boxed { height: 72px; }

@keyframes cd-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
	.cd-clients__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.cd-marquee { width: 100%; }
}

/* Servicios */
.cd-section__head {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 24px 64px;
	align-items: end;
	margin-bottom: 56px;
}
.cd-section__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--cd-text-2); text-wrap: pretty; }

.cd-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 600px) {
	.cd-services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
	.cd-services { grid-template-columns: repeat(4, 1fr); }
}

.cd-card {
	background: #fff;
	border: 1px solid var(--cd-border);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.cd-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 37, 55, .08); }
.cd-card--service { padding: 14px; gap: 16px; }
.cd-card__media { aspect-ratio: 3 / 2; width: 100%; border-radius: 10px; overflow: hidden; background: var(--cd-page); }
.cd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-card__body { padding: 0 6px 8px; display: flex; flex-direction: column; gap: 8px; }
.cd-card__title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.cd-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cd-text-2); }

/* Quiénes somos */
.cd-about {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 64px;
	align-items: start;
}
.cd-about__aside { position: sticky; top: 110px; }
.cd-about__title { margin-bottom: 36px; }
.cd-about__media { aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; overflow: hidden; background: #fff; }
.cd-about__media img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cd-about__text {
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--cd-text-3);
	text-wrap: pretty;
}
.cd-about__text p { margin: 0; }
.cd-about__text strong { color: var(--cd-ink); }
.cd-about__text .cd-about__intro { font-size: 20px; line-height: 1.6; color: var(--cd-ink); }
.cd .cd-link-strong { font-weight: 700; border-bottom: 1px solid currentColor; }

.cd-allies { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--cd-border-2); }
.cd-allies .cd-eyebrow { margin-bottom: 20px; }
.cd-allies__logos { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.cd-allies__logos img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }

@media (max-width: 860px) {
	.cd-about__aside { position: static; }
}

/* Contacto */
.cd-contact { background: var(--cd-dark); color: #fff; }
.cd-contact__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 64px;
}
.cd-contact__rows { margin-top: 40px; display: flex; flex-direction: column; font-size: 17px; }
.cd .cd-contact__rows a {
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 0;
	border-top: 1px solid #213a4c;
}
.cd .cd-contact__rows a:last-child { border-bottom: 1px solid #213a4c; }
.cd .cd-contact__rows a:hover { color: var(--cd-accent-light); }
.cd-contact__rows span { font-family: var(--cd-mono); font-size: 12px; color: var(--cd-on-dark-2); }

.cd-contact__card { background: #fff; color: var(--cd-ink); border-radius: 18px; padding: 32px; align-self: start; }

/* Formulario (Contact Form 7) */
.cd .cd-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.cd .cd-form p { margin: 0; }
.cd .cd-form br { display: none; }
.cd .cd-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cd-text-3);
}
.cd .cd-form .wpcf7-form-control-wrap { display: block; }
.cd .cd-form input[type="text"],
.cd .cd-form input[type="email"],
.cd .cd-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--cd-input);
	border-radius: 10px;
	font-size: 16px;
	font-weight: 400;
	color: var(--cd-ink);
	background: #fafbfc;
	outline: none;
	box-shadow: none;
	transition: border-color .2s, background-color .2s;
}
.cd .cd-form textarea { resize: vertical; min-height: 140px; }
.cd .cd-form input:focus,
.cd .cd-form textarea:focus { border-color: var(--cd-accent); background: #fff; }
.cd .cd-form .wpcf7-not-valid { border-color: #d64545; }
.cd .cd-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 500; color: #c03535; }

.cd .cd-form p:has(.wpcf7-submit) { position: relative; margin-top: 6px; }
.cd .cd-form .wpcf7-submit {
	width: 100%;
	padding: 16px;
	border: 0;
	border-radius: 10px;
	background: var(--cd-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s;
}
.cd .cd-form .wpcf7-submit:hover { background: var(--cd-link); }
.cd .cd-form .wpcf7-submit:disabled { opacity: .7; cursor: progress; }
.cd .cd-form .wpcf7-spinner { position: absolute; right: 12px; top: 50%; margin: -12px 0 0; }

.cd .cd-form .wpcf7-response-output {
	order: -1;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
}
.cd .cd-form .wpcf7-response-output:empty { display: none; }
.cd .cd-form.sent .wpcf7-response-output { background: #e8f6fc; color: #0e5a7e; }
.cd .cd-form.invalid .wpcf7-response-output,
.cd .cd-form.unaccepted .wpcf7-response-output,
.cd .cd-form.payment-required .wpcf7-response-output { background: #fff6e5; color: #8a5a00; }
.cd .cd-form.failed .wpcf7-response-output,
.cd .cd-form.aborted .wpcf7-response-output,
.cd .cd-form.spam .wpcf7-response-output { background: #fdecec; color: #a32828; }

/* Programa de Integridad */
.cd-intro { background: var(--cd-dark); color: #fff; }
.cd-intro__inner { padding-top: 88px; padding-bottom: 80px; }
.cd-intro .cd-eyebrow { margin-bottom: 18px; }
.cd-intro__title {
	margin: 0;
	font-size: clamp(40px, 5vw, 60px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.025em;
}
.cd-intro__lead {
	margin: 28px 0 0;
	font-size: 19px;
	line-height: 1.65;
	color: var(--cd-on-dark);
	max-width: 760px;
	text-wrap: pretty;
}
.cd-intro__lead strong { color: #fff; }

.cd-pillars { padding: 80px 0; }
.cd-pillars__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 20px;
}
.cd-card--pillar { padding: 28px; gap: 10px; }
.cd-card--pillar .cd-card__title { font-size: 20px; }
.cd-card--pillar .cd-card__text { line-height: 1.6; }

.cd-docs {
	margin-top: 20px;
	background: var(--cd-navy);
	color: #fff;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.cd-docs__text { flex: 1; min-width: 260px; }
.cd-docs h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.cd-docs p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cd-on-dark); }
.cd .cd-docs .cd-btn { padding: 15px 24px; }

/* Footer */
.cd-footer { background: var(--cd-footer); color: var(--cd-on-dark-2); font-size: 14px; }
.cd-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px;
	display: flex;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	align-items: center;
}
.cd-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.cd .cd-footer__links a { color: #c7d4de; }
.cd .cd-footer__links a:hover { color: var(--cd-accent-light); }

/* Espacio para el widget de chat (fijo abajo a la derecha) */
@media (max-width: 1359px) {
	.cd-footer__inner { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cd-card, .cd a, .cd-slide, .cd-slide.is-active { transition: none; }
	.cd-card:hover { transform: none; }
	.cd-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
	.cd-marquee__group { flex-wrap: wrap; row-gap: 24px; }
	.cd-marquee__group[aria-hidden] { display: none; }
	.cd-marquee { -webkit-mask-image: none; mask-image: none; }
}
