/* Landing de producto ZeroCopy. Hereda tipografía y paleta del theme.json. */

.zc-hero,
.zc-section {
	--zc-canvas: var(--wp--preset--color--orbytes-canvas, #f3f5fa);
	--zc-surface: var(--wp--preset--color--orbytes-surface, #fff);
	--zc-ink: var(--wp--preset--color--orbytes-ink, #18223d);
	--zc-muted: var(--wp--preset--color--orbytes-muted, #56627a);
	--zc-accent: var(--wp--preset--color--orbytes-accent, #3546bd);
	--zc-tint: var(--wp--preset--color--orbytes-tint, #e7ecff);
	font-family: inherit;
	color: var(--zc-ink);
}

/* Entradas: el contenido se revela al entrar en pantalla. Solo con JS activo. */
.zc-js .zc-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: var(--zc-delay, 0ms);
}

.zc-js .zc-reveal.zc-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.zc-js .zc-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.zc-wrap {
	max-inline-size: 72rem;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
	box-sizing: border-box;
}

/* Hero */

.zc-hero {
	padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2.5rem, 6vw, 4.5rem);
}

.zc-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	gap: clamp(2rem, 3.5vw, 3rem);
	text-align: center;
}

.zc-hero__accent {
	color: var(--zc-accent);
}

.zc-hero__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 1.25rem 0 0;
}

.zc-hero__title {
	max-inline-size: 19ch;
	margin-inline: auto;
	margin: 0 0 1.5rem;
	font-size: clamp(1.9rem, 5.4vw, 4.6rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.zc-hero__lead {
	max-inline-size: 48ch;
	margin: 0 auto 1.75rem;
	color: var(--zc-ink);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.zc-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-block-end: 1.25rem;
}

.zc-button {
	display: inline-flex;
	align-items: center;
	min-block-size: 3rem;
	padding-inline: 1.5rem;
	border-radius: 0.75rem;
	color: var(--zc-surface);
	background: var(--zc-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 160ms ease;
}

.zc-button--ghost,
.zc-actions .zc-button--ghost {
	background: var(--zc-tint);
	color: var(--zc-ink);
}

.zc-button--ghost:hover {
	background: var(--zc-line);
	color: var(--zc-ink);
}

.zc-button:hover,
.zc-button:focus-visible {
	color: var(--zc-surface);
	background: var(--zc-accent);
}

.zc-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--zc-accent);
	font-size: 0.9375rem;
	font-weight: 600;
	text-underline-offset: 0.25em;
}

.zc-link__icon { flex: none; }

.zc-inline-icon {
	display: inline-block;
	vertical-align: -0.125em;
	margin-inline-end: 0.3125rem;
}

.zc-micro {
	margin: 0;
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

/* Fragmento de interfaz en el hero */

.zc-hero__ui {
	margin: 0;
	inline-size: 100%;
}

.zc-hero__ui img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	border-radius: 0.875rem;
}

.zc-card {
	padding: 1.25rem 1.375rem;
	border-radius: 0.875rem;
	background: var(--zc-surface);
}

.zc-card--soft { background: var(--zc-tint); }

.zc-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.zc-card__title {
	font-family: var(--wp--preset--font-family--dm-sans, "DM Sans"), system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.zc-chip {
	padding: 0.1875rem 0.5rem;
	border-radius: 999px;
	color: var(--zc-accent);
	background: var(--zc-tint);
	font-size: 0.8125rem;
	font-weight: 700;
}

.zc-chip--warn {
	color: #8a5a00;
	background: #ffe8bd;
}

.zc-card__meta {
	margin: 0.375rem 0 1rem;
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

.zc-bar {
	block-size: 0.5rem;
	border-radius: 999px;
	background: var(--zc-canvas);
	overflow: hidden;
}

.zc-bar span {
	display: block;
	block-size: 100%;
	border-radius: 999px;
	background: var(--zc-accent);
	transform-origin: left center;
}

.zc-bar span.zc-bar-fill {
	animation: zc-fill 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) 180ms both;
}

@keyframes zc-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
	.zc-bar span.zc-bar-fill { animation: none; }
}

.zc-queue {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.125rem;
	border-radius: 0.75rem;
	background: var(--zc-surface);
	font-size: 0.8125rem;
}

.zc-queue__label {
	color: var(--zc-muted);
	font-weight: 700;
}

.zc-queue__items {
	font-weight: 600;
}

.zc-queue__state {
	color: var(--zc-muted);
}

.zc-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.125rem 0 0;
}

.zc-stats dt {
	color: var(--zc-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.zc-stats dd {
	margin: 0.1875rem 0 0;
	font-size: 0.9375rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

/* Secciones */

.zc-section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.zc-section--surface { background: var(--zc-surface); }

.zc-section--ink {
	color: var(--zc-canvas);
	background: var(--zc-ink);
}

.zc-section--ink a {
	color: var(--zc-canvas);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.zc-section--ink a:hover,
.zc-section--ink a:focus-visible { color: #fff; }

.zc-section--ink .zc-title,
.zc-section--ink .zc-text,
.zc-section--ink .zc-subtitle,
.zc-section--ink .zc-list { color: var(--zc-canvas); }

.zc-title {
	max-inline-size: 22ch;
	margin: 0 0 1.125rem;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.zc-text {
	max-inline-size: 62ch;
	margin: 0 0 1.125rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.zc-text--wide { max-inline-size: 62ch; }

.zc-subtitle {
	margin: 1.75rem 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: -0.005em;
}

.zc-note {
	max-inline-size: 62ch;
	margin: 0 0 1.5rem;
	color: var(--zc-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.zc-split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.zc-list {
	display: grid;
	gap: 0.75rem;
	max-inline-size: 60ch;
	margin: 0 0 1.25rem;
	padding-inline-start: 1.125rem;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.zc-list--plain { list-style: none; padding-inline-start: 0; }

.zc-list--plain li {
	position: relative;
	padding-inline-start: 1.125rem;
}

.zc-list--plain li::before {
	content: '';
	position: absolute;
	inset-block-start: 0.6em;
	inset-inline-start: 0;
	inline-size: 0.25rem;
	block-size: 0.25rem;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.5;
}

/* Destinos y widget */

.zc-destinos {
	display: grid;
	gap: 0.75rem;
}

.zc-destino {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.125rem 1rem;
	padding: 1rem 1.125rem;
	border-radius: 0.75rem;
	background: var(--zc-surface);
}

.zc-destino--off { background: var(--zc-canvas); }

.zc-destino__name {
	font-size: 0.9375rem;
	font-weight: 700;
}

.zc-destino__path {
	grid-column: 1;
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

.zc-destino__state {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	color: var(--zc-accent);
	font-size: 0.8125rem;
	font-weight: 700;
}

.zc-destino--off .zc-destino__state { color: var(--zc-muted); }

.zc-widget { align-self: center; }

.zc-widget__capsule {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 1.125rem;
	border-radius: 999px;
	color: var(--zc-surface);
	background: var(--zc-ink);
	font-size: 0.9375rem;
	font-weight: 650;
}

.zc-widget__dot {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 999px;
	background: #7fd3a3;
}

.zc-widget__pct {
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}

.zc-widget__hint {
	margin: 1rem 0 0;
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

/* Garantías y pasos */

.zc-guarantees {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-block-start: 2.5rem;
}

.zc-guarantee h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

.zc-guarantee p {
	margin: 0;
	color: var(--zc-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.zc-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 2.5rem 0 0;
	padding-inline-start: 1.5rem;
	list-style: decimal;
}

.zc-steps li::marker {
	color: var(--zc-accent);
	font-weight: 700;
}

.zc-steps h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

.zc-steps p {
	margin: 0;
	color: var(--zc-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Tabla */

.zc-table-wrap { overflow-x: auto; }

.zc-table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.zc-table th,
.zc-table td {
	padding: 0.875rem 1rem;
	text-align: start;
	vertical-align: top;
}

.zc-table thead th {
	color: var(--zc-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.zc-table tbody tr + tr th,
.zc-table tbody tr + tr td { border-block-start: 1px solid var(--wp--preset--color--orbytes-line, #dce2ef); }

.zc-table tbody th {
	font-weight: 600;
}

.zc-table tbody td { color: var(--zc-muted); }

.zc-table tbody td:last-child {
	color: var(--zc-ink);
	font-weight: 650;
}

/* Fragmento de Reanudar */

.zc-recover {
	margin-block-start: 2.25rem;
	padding: 1.25rem 1.375rem;
	border-radius: 0.875rem;
	background: var(--zc-surface);
}

.zc-recover__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25rem 1rem;
	padding-block: 0.875rem;
}

.zc-recover__name {
	font-size: 0.9375rem;
	font-weight: 700;
}

.zc-recover__meta {
	grid-column: 1;
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

.zc-recover__action {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	padding: 0.4375rem 0.75rem;
	border-radius: 0.5rem;
	color: var(--zc-surface);
	background: var(--zc-accent);
	font-size: 0.8125rem;
	font-weight: 700;
}

.zc-recover__note {
	margin: 0.75rem 0 0;
	color: var(--zc-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Aportes */

.zc-costs {
	display: grid;
	gap: clamp(1.5rem, 2.5vw, 2.25rem);
	margin: 2.5rem 0 0;
}

.zc-cost {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.zc-cost dt {
	font-family: var(--wp--preset--font-family--dm-sans, "DM Sans"), system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--zc-ink);
}

.zc-cost dd {
	margin: 0;
	max-inline-size: 56ch;
	color: var(--zc-ink);
	font-size: 1.0625rem;
	line-height: 1.55;
}

@media (max-width: 780px) {
	.zc-cost {
		grid-template-columns: 1fr;
	}
}

.zc-donate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	margin-block-start: 2.5rem;
}

.zc-donate__note {
	color: var(--zc-muted);
	font-size: 0.8125rem;
}

/* Benchmarks */

.zc-table--bench tbody td[data-label='Estado'] {
	color: var(--zc-muted);
	font-weight: 600;
}

.zc-table--bench tbody td[data-label='ZeroCopy'],
.zc-table--bench tbody td[data-label='API Shell'],
.zc-table--bench tbody td[data-label='Diferencia'] {
	font-variant-numeric: tabular-nums;
}

.zc-steps--bare {
	margin-block-start: 1rem;
	padding-inline-start: 1.25rem;
	list-style: decimal;
}

.zc-steps--bare h3 { margin-block-start: 0; }

/* FAQ */

.zc-faq {
	display: grid;
	gap: 0.25rem;
	max-inline-size: 62rem;
	margin-block-start: 1.5rem;
}

.zc-faq details {
	padding: 1.125rem 1.25rem;
	border-radius: 0.75rem;
	transition: background-color 160ms ease;
}

.zc-faq details[open] { background: var(--zc-canvas); }

.zc-faq summary {
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 600;
	list-style: none;
}

.zc-faq summary::-webkit-details-marker { display: none; }

.zc-faq details[open] summary { margin-block-end: 0.75rem; }

.zc-faq details p {
	max-inline-size: 68ch;
	margin: 0;
	color: var(--zc-ink);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Cierre */

.zc-final {
	max-inline-size: 46rem;
	text-align: start;
}

.zc-final .zc-text { margin-block-end: 1.75rem; }

.zc-final .zc-micro { margin-block-start: 1.25rem; }

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.875em;
}

/* Capturas como cards */

.zc-shots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-block-start: 0.5rem;
}

.zc-shot-card {
	margin: 0;
}

.zc-shot-card a {
	display: block;
	overflow: hidden;
	border-radius: 0.75rem;
	background: var(--zc-surface);
	transition: transform 180ms ease;
}

.zc-shot-card a:hover,
.zc-shot-card a:focus-visible {
	transform: translateY(-3px);
}

.zc-shot-card img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 10;
}

.zc-shot-card figcaption {
	margin-block-start: 0.625rem;
	color: var(--zc-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.zc-shot-card figcaption strong {
	display: block;
	color: var(--zc-ink);
	font-size: 0.9375rem;
	font-weight: 650;
}

@media (max-width: 860px) {
	.zc-shots {
		grid-template-columns: 1fr;
	}

	.zc-shot-card img { block-size: auto; }
}

/* Imágenes de la interfaz */

.zc-shot {
	margin: 2.25rem 0 0;
}

.zc-shot img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	border-radius: 0.875rem;
}

.zc-widget .zc-shot { margin-block-start: 1.5rem; }

/* Huecos reservados para capturas reales. */

.zc-slot {
	display: grid;
	place-content: center;
	gap: 0.375rem;
	min-block-size: 15rem;
	margin-block-start: 2.25rem;
	padding: 1.5rem;
	border-radius: 0.875rem;
	background: var(--zc-surface);
	text-align: center;
}

.zc-section--surface .zc-slot { background: var(--zc-canvas); }

.zc-section--ink .zc-slot {
	color: var(--zc-canvas);
	background: #ffffff14;
}

.zc-widget .zc-slot { min-block-size: 9rem; }

.zc-slot__label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--zc-muted);
}

.zc-section--ink .zc-slot__label,
.zc-section--ink .zc-slot__spec { color: var(--zc-canvas); }

.zc-slot__spec {
	font-size: 0.8125rem;
	color: var(--zc-muted);
}

@media (max-width: 700px) {
	.zc-table thead { display: none; }

	.zc-table,
	.zc-table tbody,
	.zc-table tr,
	.zc-table th,
	.zc-table td {
		display: block;
		inline-size: auto;
	}

	.zc-table tr {
		padding-block: 1rem;
	}

	.zc-table tr + tr { border-block-start: 1px solid var(--wp--preset--color--orbytes-line, #dce2ef); }

	.zc-table tbody th {
		padding: 0 0 0.5rem;
		font-size: 1.0625rem;
	}

	.zc-table tbody td {
		padding: 0.125rem 0;
		font-size: 0.9375rem;
	}

	.zc-table tbody td::before {
		content: attr(data-label) ': ';
		color: var(--zc-muted);
		font-weight: 600;
	}
}

@media (max-width: 860px) {
	.zc-hero__grid,
	.zc-split,
	.zc-guarantees,
	.zc-steps {
		grid-template-columns: 1fr;
	}

	.zc-hero { padding-block: 2.5rem 3rem; }

	.zc-hero__title { max-inline-size: none; }

	.zc-stats { grid-template-columns: 1fr 1fr; }
}

/* Solo para lectores de pantalla */

.zc-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
