.cs-card,
.is-style-card,
.is-style-panel {
	background: var(--cs-card-bg);
	border: 1px solid color-mix(in srgb, var(--cs-color-border) 72%, white);
	border-radius: var(--cs-radius-lg);
	box-shadow: var(--cs-card-shadow);
}

.cs-card {
	padding: clamp(1.2rem, 1.8vw, 1.7rem);
}

.cs-card--compact {
	padding: 1rem;
	border-radius: var(--cs-radius-md);
}

.cs-card--muted {
	background: var(--cs-card-muted-bg);
}

.cs-card--flat {
	box-shadow: var(--cs-shadow-line);
}

.cs-card > :where(* + *),
.cs-surface > :where(* + *),
.cs-panel > :where(* + *) {
	margin-top: var(--cs-rhythm-panel);
}

.cs-card--interactive {
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.cs-card--interactive:hover,
.cs-card--interactive:focus-within {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--cs-color-border-strong) 82%, white);
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07), var(--cs-shadow-line);
}

.cs-surface,
.cs-panel {
	background: var(--cs-surface-bg);
	border: 1px solid color-mix(in srgb, var(--cs-color-border) 76%, white);
	border-radius: var(--cs-radius-lg);
	box-shadow: var(--cs-surface-shadow);
}

.cs-surface--muted,
.cs-panel--muted {
	background: var(--cs-surface-muted-bg);
}

.cs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	gap: 0.46rem;
	min-height: 2.25rem;
	padding: 0.48rem 1.02rem;
	border: 1px solid color-mix(in srgb, var(--cs-color-primary) 14%, transparent);
	border-radius: var(--cs-radius-pill);
	background: var(--cs-button-bg);
	color: var(--cs-color-surface);
	box-shadow: 0 6px 14px rgba(53, 92, 125, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	font-size: 0.81rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.cs-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cs-button-bg-strong);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms ease;
}

.wp-block-button.cs-button-icon .wp-block-button__link,
.cs-button.cs-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.52rem;
}

.wp-block-button.cs-button-icon .wp-block-button__link .cs-inline-lucide,
.cs-button.cs-button-icon .cs-inline-lucide,
.cs-services-grid__link .cs-inline-lucide {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.06rem;
	width: 1.08em;
	height: 1.08em;
	stroke-width: 1.9;
	flex: 0 0 auto;
}

.cs-services-grid__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	line-height: 0;
}

.cs-services-grid__link .cs-services-grid__link-text {
	line-height: 1.2;
}

.cs-services-grid__link > svg,
.cs-services-grid__link > svg.lucide,
.cs-services-grid__link > [data-lucide],
.cs-services-grid__link > .cs-inline-lucide {
	display: block;
	flex: 0 0 auto;
	align-self: center;
	width: 0.92em;
	height: 0.92em;
	position: relative;
	top: 0.03em;
}

.cs-button:hover,
.cs-button:focus-visible {
	transform: translateY(-0.5px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: var(--cs-color-surface);
}

.cs-button:hover::before,
.cs-button:focus-visible::before {
	transform: scaleX(1);
}

.cs-button:active {
	transform: translateY(0);
	box-shadow: 0 5px 14px rgba(53, 92, 125, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cs-button:focus-visible,
.cs-card:focus-within,
.cs-surface:focus-within,
.cs-panel:focus-within {
	outline: var(--cs-focus-ring, 2px solid color-mix(in srgb, var(--cs-color-primary) 26%, white));
	outline-offset: var(--cs-focus-offset, 3px);
}

.cs-button--ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--cs-color-border);
	color: var(--cs-color-text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cs-button--ghost::before {
	background: rgba(11, 18, 29, 0.78);
}

.cs-button--ghost:hover,
.cs-button--ghost:focus-visible {
	color: #ffffff;
	border-color: rgba(11, 18, 29, 0.82);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cs-button--soft {
	background: linear-gradient(180deg, color-mix(in srgb, var(--cs-color-accent-soft) 82%, white), var(--cs-color-accent-soft));
	color: var(--cs-color-primary);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cs-button--soft::before {
	background: color-mix(in srgb, var(--cs-color-primary) 18%, var(--cs-color-accent-soft));
}

.cs-button--soft:hover,
.cs-button--soft:focus-visible {
	color: var(--cs-color-primary);
	border-color: color-mix(in srgb, var(--cs-color-primary) 18%, transparent);
	box-shadow: 0 7px 16px rgba(76, 115, 151, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cs-badge,
.cs-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 1.9rem;
	padding: 0.32rem 0.72rem;
	border: 1px solid color-mix(in srgb, var(--cs-color-border) 85%, white);
	border-radius: var(--cs-radius-pill);
	background: color-mix(in srgb, var(--cs-color-surface-muted) 78%, white);
	color: var(--cs-color-primary);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
}

.cs-badge::before,
.cs-pill::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cs-color-primary) 78%, white);
	box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--cs-color-accent-soft) 55%, transparent);
}

.cs-badge--soft {
	background: color-mix(in srgb, var(--cs-color-accent-soft) 65%, white);
}

.cs-divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cs-color-border), transparent);
}

.cs-eyebrow {
	color: var(--cs-color-text-faint);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cs-eyebrow::after {
	content: "";
	display: inline-block;
	width: 1.8rem;
	height: 1px;
	margin-left: 0.6rem;
	vertical-align: middle;
	background: color-mix(in srgb, var(--cs-color-border-strong) 65%, white);
}

.cs-card > :where(:first-child),
.cs-surface > :where(:first-child),
.cs-panel > :where(:first-child) {
	margin-top: 0;
}

.cs-card > :where(:last-child),
.cs-surface > :where(:last-child),
.cs-panel > :where(:last-child) {
	margin-bottom: 0;
}

.cs-carousel__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-inline: clamp(0.75rem, 2.2vw, 2rem);
}

.cs-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	border: 1px solid color-mix(in srgb, var(--cs-color-border) 80%, white);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--cs-color-text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.cs-carousel__arrow:hover,
.cs-carousel__arrow:focus-visible {
	background: color-mix(in srgb, var(--cs-color-surface) 56%, var(--cs-color-text) 10%);
	border-color: color-mix(in srgb, var(--cs-color-border-strong) 80%, white);
}

.cs-carousel__arrow:disabled,
.cs-carousel__arrow.swiper-button-disabled,
.cs-carousel__arrow.swiper-button-lock {
	opacity: 0.38;
	cursor: default;
	pointer-events: none;
	display: inline-flex;
}

.cs-carousel__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.7rem;
	flex: 1;
}

.cs-carousel__pagination .swiper-pagination-bullet {
	width: 0.45rem;
	height: 0.45rem;
	margin: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cs-color-text-soft) 45%, white);
	opacity: 0.55;
	transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.cs-carousel__pagination .swiper-pagination-bullet-active {
	background: var(--cs-color-text);
	opacity: 1;
	transform: scale(1.15);
}

@media (max-width: 781px) {
	.cs-carousel__nav {
		gap: 0.7rem;
		padding-inline: clamp(0.5rem, 4vw, 1rem);
	}

	.cs-carousel__arrow {
		width: 2.45rem;
		height: 2.45rem;
	}

	.cs-carousel__pagination {
		min-height: 2.45rem;
	}
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.cs-carousel-cursor {
		position: fixed;
		top: 0;
		left: 0;
		width: 2.5rem;
		height: 2.5rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 999px;
		border: 1px solid color-mix(in srgb, var(--cs-color-border) 62%, transparent);
		background: color-mix(in srgb, var(--cs-color-surface) 70%, transparent);
	color: #fff;
		font-size: 1.05rem;
		line-height: 1;
		pointer-events: none;
		opacity: 0;
		z-index: 34;
		backdrop-filter: blur(2px);
		box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
		transform: translate3d(-100vw, -100vh, 0);
		transition: opacity var(--cs-motion-duration-fast, 160ms) ease;
	}

	.cs-carousel-cursor.is-visible {
		opacity: 0.64;
	}

	.cs-carousel-cursor__glyph {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.2rem;
		height: 1.2rem;
	}

	/* MODO CARRUSEL */
.cs-carousel-cursor[data-mode="carousel"][data-side="left"] svg.cs-carousel-cursor__icon--left,
.cs-carousel-cursor[data-mode="carousel"][data-side="right"] svg.cs-carousel-cursor__icon--right {
	display: inline-block;
}

/* MODO FAQ */
.cs-carousel-cursor[data-mode="faq"] svg.cs-carousel-cursor__icon--faq {
	display: inline-block;
}

	.cs-carousel-cursor svg.lucide {
		display: none;
		width: 1.1rem;
		height: 1.1rem;
		mix-blend-mode: difference;
	}

	.cs-carousel-cursor.has-lucide-icons[data-side="left"] svg.lucide-arrow-left,
	.cs-carousel-cursor.has-lucide-icons[data-side="right"] svg.lucide-arrow-right {
		display: inline-block;
	}

	.cs-carousel-cursor.has-lucide-icons .cs-carousel-cursor__glyph {
		font-size: 0;
	}

	html.has-cs-motion-reduced .cs-carousel-cursor,
	html:not(.has-cs-motion-cursor) .cs-carousel-cursor {
		display: none;
	}
}
.cs-site-header .cs-button:hover,
.cs-site-header .cs-button:focus-visible {
	color: ffff;
}

/* Mayor separación bajo el título para horizontal gallery */
.wp-block-codex-slate-horizontal-gallery .cs-section-head {
	margin-bottom: 2.5rem !important;
}
