/* ==========================================================================
   Cusco Creativos — Sistema de diseño v2
   Estilo limpio tipo marketplace: blanco, tipografía grotesca, un solo color
   de acento, esquinas redondeadas y cero degradados/brillos.

   Se carga DESPUÉS de main.css y style.css:
   1) Redefine los tokens de main.css → todo el sitio cambia de golpe.
   2) Re-estiliza los componentes compartidos (header, botones, secciones…).
   3) Define componentes nuevos "ds-*" para las plantillas rediseñadas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
	/* Acento único de marca */
	--cc-color-primary: #E91E63;
	--cc-color-primary-dark: #C2185B;
	--cc-color-primary-light: #FDEBF2;
	--ds-accent: var(--cc-color-primary);
	--ds-accent-hover: var(--cc-color-primary-dark);
	--ds-accent-tint: #FDEBF2;
	--ds-accent-2: #FF9800; /* solo para detalles puntuales */

	/* Neutros (tinta + grises) */
	--ds-ink: #181818;
	--ds-ink-2: #3d3d3d;
	--ds-muted: #676767;
	--ds-subtle: #9a9a9a;
	--ds-line: #e4e4e4;
	--ds-line-2: #d5d5d5;
	--ds-surface: #f7f7f7;
	--ds-surface-2: #f0f0f0;
	--ds-white: #ffffff;

	/* Re-mapeo de los tokens antiguos para que todo el tema herede */
	--cc-color-dark: var(--ds-ink);
	--cc-color-dark-soft: var(--ds-ink-2);
	--cc-color-gray-900: var(--ds-ink);
	--cc-color-gray-800: var(--ds-ink-2);
	--cc-color-gray-700: #4a4a4a;
	--cc-color-gray-600: var(--ds-muted);
	--cc-color-gray-50: var(--ds-surface);
	--cc-gradient-primary: linear-gradient(var(--ds-accent), var(--ds-accent));
	--cc-gradient-accent: linear-gradient(var(--ds-accent), var(--ds-accent));
	--cc-gradient-warm: linear-gradient(var(--ds-accent), var(--ds-accent));
	--cc-gradient-dark: linear-gradient(var(--ds-ink), var(--ds-ink));
	--cc-shadow-glow: none;

	/* Tipografía */
	--cc-font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--cc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ds-fw-heading: 550;

	/* Forma */
	--cc-radius-sm: 8px;
	--cc-radius-md: 12px;
	--cc-radius-lg: 16px;
	--cc-radius-xl: 24px;
	--ds-radius-btn: 8px;
	--ds-radius-card: 16px;
	--ds-radius-panel: 24px;

	--cc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
	--cc-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
	--cc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
	--cc-shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.10);

	/* Layout */
	--cc-container-max: 1280px;
	--cc-container-wide: 1400px;
	--cc-header-height: 72px;
	--ds-gutter: 32px;
	--ds-section-y: 96px;
}

@media (max-width: 768px) {
	:root {
		--ds-gutter: 20px;
		--ds-section-y: 64px;
	}
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
body {
	font-family: var(--cc-font-body);
	color: var(--ds-ink);
	line-height: 1.6;
	letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cc-font-heading);
	font-weight: var(--ds-fw-heading);
	color: var(--ds-ink);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; }

a { color: var(--ds-accent); }
a:hover, a:focus { color: var(--ds-accent-hover); }

::selection { background: var(--ds-accent-tint); color: var(--ds-ink); }

:focus-visible {
	outline: 2px solid var(--ds-accent);
	outline-offset: 2px;
}

/* Palabras destacadas: sin degradado, mismo color que el título */
.text-gradient,
.text-gradient-secondary,
.hero__title--gradient,
.hero__title span {
	background: none !important;
	-webkit-background-clip: initial !important;
	background-clip: initial !important;
	-webkit-text-fill-color: currentColor !important;
	color: inherit !important;
}

.container {
	max-width: var(--cc-container-max);
	padding-left: var(--ds-gutter);
	padding-right: var(--ds-gutter);
}

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.site-header {
	background: var(--ds-white);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom: 1px solid var(--ds-line);
	height: var(--cc-header-height);
}

.site-header--scrolled { box-shadow: none; }

.site-header .site-header__container {
	max-width: var(--cc-container-wide);
	gap: 24px;
}

/* Escritorio: menú centrado en la página (logo | menú | acciones). */
@media (min-width: 1025px) {
	.site-header .site-header__container {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}
	.site-header .site-header__container > :first-child { justify-self: start; }
	.site-header .ccn { flex: none; }
	.site-header .site-header__actions { justify-self: end; }
}

.site-logo__image { height: 44px; }

.main-navigation { justify-content: flex-start; }

.nav__link {
	font-family: var(--cc-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--ds-ink);
	padding: 10px 12px;
	border-radius: 8px;
}

.nav__link::after { display: none; }

.nav__link:hover,
.nav__link--active,
.nav__item--mega:hover > .nav__link,
.nav__item--mega.is-open > .nav__link {
	color: var(--ds-accent);
	background: transparent;
}

.nav__submenu {
	border: 1px solid var(--ds-line);
	border-radius: 12px;
	box-shadow: var(--cc-shadow-lg);
}

/* CTA del header: píldora sólida */
.site-header__cta .btn,
.cc-quote-btn {
	border-radius: 999px !important;
	background: var(--ds-accent) !important;
	color: #fff !important;
	box-shadow: none !important;
	font-family: var(--cc-font-body);
	font-weight: 600;
	font-size: 14px;
	padding: 0 20px !important;
	height: 40px;
}

.cc-quote-btn:hover { background: var(--ds-accent-hover) !important; transform: none !important; }

.btn-wa-header {
	background: #25D366;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   3b. NAVEGACIÓN v2 (template-parts/ds/nav.php + assets/js/cc-nav.js)
   -------------------------------------------------------------------------- */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.site-header .site-header__whatsapp { display: none !important; margin: 0; flex: none; }

/* --- Lista superior --- */
.ccn { flex: 1; min-width: 0; }

.ccn__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccn__item { position: relative; }

.ccn__link,
.ccn__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 500 15px/1 var(--cc-font-body);
	color: var(--ds-ink);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.ccn__link:hover,
.ccn__trigger:hover,
.ccn__item.is-open > .ccn__trigger {
	background: var(--ds-surface-2);
	color: var(--ds-ink);
}

.ccn__link[aria-current="page"] { color: var(--ds-accent); }

.ccn__chevron { transition: transform .2s ease; }
.ccn__item.is-open .ccn__chevron { transform: rotate(180deg); }

/* --- Paneles (base común) --- */
.ccn__panel {
	position: absolute;
	top: calc(100% + 12px);
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	box-shadow: 0 24px 48px -12px rgba(24, 24, 24, .18), 0 4px 12px rgba(24, 24, 24, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
	z-index: 5;
}

/* Puente invisible para que el mouse no "caiga" entre botón y panel */
.ccn__panel::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.ccn__item.is-open > .ccn__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

/* --- Mega panel --- */
.ccn-mega {
	position: fixed;
	top: calc(var(--cc-header-height) + 8px);
	left: 50%;
	width: min(1160px, calc(100vw - 48px));
	margin-left: calc(min(1160px, calc(100vw - 48px)) / -2);
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr) 272px;
	min-height: 400px;
	overflow: hidden;
}

.ccn-mega__rail {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 12px;
	background: var(--ds-surface);
	border-right: 1px solid var(--ds-line);
}

.ccn-mega__tab {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: 500 15px/1.3 var(--cc-font-body);
	color: var(--ds-ink-2);
	text-align: left;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.ccn-mega__tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--ds-line);
	color: var(--ds-muted);
	transition: color .12s ease, border-color .12s ease;
}

.ccn-mega__tab:hover { background: rgba(255, 255, 255, .6); color: var(--ds-ink); }

.ccn-mega__tab[aria-selected="true"] {
	background: #fff;
	color: var(--ds-ink);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(24, 24, 24, .08);
}

.ccn-mega__tab[aria-selected="true"] .ccn-mega__tab-icon {
	color: var(--ds-accent);
	border-color: var(--ds-accent-tint);
	background: var(--ds-accent-tint);
}

.ccn-mega__groups { position: relative; padding: 28px 32px; }

.ccn-mega__group { display: none; flex-direction: column; height: 100%; }
.ccn-mega__group.is-active { display: flex; animation: ccn-fade .18s ease; }

@keyframes ccn-fade {
	from { opacity: 0; transform: translateX(6px); }
	to { opacity: 1; transform: none; }
}

.ccn-mega__head { margin-bottom: 16px; }

.ccn-mega__title {
	margin: 0 0 4px;
	font-family: var(--cc-font-heading);
	font-size: 20px;
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.01em;
	color: var(--ds-ink);
}

.ccn-mega__intro { margin: 0; font-size: 14px; color: var(--ds-muted); }

.ccn-mega__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 12px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ccn-mega__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--ds-ink);
	text-decoration: none;
	transition: background-color .12s ease;
}

.ccn-mega__link:hover,
.ccn-mega__link:focus-visible { background: var(--ds-surface); color: var(--ds-ink); }

.ccn-mega__link-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ccn-mega__link:hover .ccn-mega__link-title { color: var(--ds-accent); }
.ccn-mega__link-desc { font-size: 13.5px; line-height: 1.4; color: var(--ds-muted); }
.ccn-mega__link[aria-current="page"] .ccn-mega__link-title { color: var(--ds-accent); }

.ccn-mega__more { margin-top: auto; padding-left: 14px; font-size: 14px; }

/* Destacado */
.ccn-mega__featured { padding: 16px; border-left: 1px solid var(--ds-line); }

.ccn-feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 12px;
	border-radius: 12px;
	background: var(--ds-surface);
	color: var(--ds-ink);
	text-decoration: none;
	transition: background-color .15s ease;
}

.ccn-feature:hover { background: var(--ds-surface-2); color: var(--ds-ink); }

.ccn-feature__img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
	background: #fff;
}

.ccn-feature__title { font-family: var(--cc-font-heading); font-size: 17px; font-weight: var(--ds-fw-heading); line-height: 1.25; }
.ccn-feature__text { font-size: 13.5px; line-height: 1.45; color: var(--ds-muted); }
.ccn-feature .ds-link { margin-top: auto; font-size: 14px; }

/* --- Dropdown pequeño --- */
.ccn-drop { left: -8px; width: 320px; padding: 8px; }
.ccn-drop__links { margin: 0; padding: 0; list-style: none; }

/* --- Panel Portafolio: tipos de proyecto + destacados --- */
.ccn-work {
	left: -8px;
	width: 720px;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	overflow: hidden;
}

.ccn-work__col { display: flex; flex-direction: column; padding: 16px 8px; }
.ccn-work__col--projects { padding: 16px 20px; background: var(--ds-surface); border-left: 1px solid var(--ds-line); }

.ccn-work__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ds-muted);
}
.ccn-work__col--projects .ccn-work__title { padding: 0; }
.ccn-work__title svg { width: 16px; height: 16px; }

.ccn-work__projects { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }

.ccn-work__project {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: 12px;
	color: var(--ds-ink);
	text-decoration: none;
	transition: background-color .15s ease;
}
.ccn-work__project:hover,
.ccn-work__project:focus-visible { background: #fff; color: var(--ds-ink); }
.ccn-work__project img { width: 112px; height: 70px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--ds-line); background: #fff; }
.ccn-work__project > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccn-work__project-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ccn-work__project:hover .ccn-work__project-name { color: var(--ds-accent); }
.ccn-work__more { margin-top: auto; font-size: 14px; }

/* --- Overlay --- */
.ccn-overlay {
	position: fixed;
	inset: var(--cc-header-height) 0 0 0;
	background: rgba(24, 24, 24, .32);
	opacity: 0;
	transition: opacity .2s ease;
	z-index: 1;
}

.ccn-overlay.is-visible { opacity: 1; }
.ccn-overlay[hidden] { display: none; }

/* --- Botón hamburguesa --- */
.ccn-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
}

.ccn-burger:hover { background: var(--ds-surface-2); }

.ccn-burger span {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ds-ink);
	transition: transform .22s ease, opacity .15s ease, top .22s ease;
}

.ccn-burger span:nth-child(1) { top: 15px; }
.ccn-burger span:nth-child(2) { top: 21px; }
.ccn-burger span:nth-child(3) { top: 27px; }

.ccn-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.ccn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ccn-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* --- Panel lateral (tablet / móvil) --- */
.ccn-drawer {
	position: fixed;
	top: var(--cc-header-height);
	right: 0;
	bottom: 0;
	width: min(440px, 100vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-left: 1px solid var(--ds-line);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .28s;
	z-index: 6;
}

.ccn-drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

.ccn-drawer__views { position: relative; flex: 1; overflow: hidden; }

.ccn-drawer__view {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 24px 24px;
	background: #fff;
	transform: translateX(100%);
	transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}

.ccn-drawer__view[data-view="root"] { transform: none; z-index: 1; }
.ccn-drawer__view[data-view="root"].is-behind { transform: translateX(-25%); opacity: 0; }
.ccn-drawer__view.is-active { transform: none; opacity: 1; z-index: 2; }

.ccn-drawer__list { margin: 0 0 20px; padding: 0; list-style: none; }

.ccn-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 4px;
	border: 0;
	border-bottom: 1px solid var(--ds-line);
	background: transparent;
	font: var(--ds-fw-heading) 20px/1.2 var(--cc-font-heading);
	letter-spacing: -0.01em;
	color: var(--ds-ink);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ccn-drawer__row svg { color: var(--ds-muted); }
.ccn-drawer__row:hover { color: var(--ds-accent); }
.ccn-drawer__row[aria-current="page"] { color: var(--ds-accent); }

.ccn-feature--row { flex-direction: row; align-items: center; gap: 14px; }
.ccn-feature--row .ccn-feature__img { width: 96px; flex-shrink: 0; margin: 0; aspect-ratio: 4 / 3; }
.ccn-feature--row > span { display: flex; flex-direction: column; gap: 4px; }

.ccn-drawer__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 4px -6px;
	padding: 8px 10px 8px 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 500 15px/1 var(--cc-font-body);
	color: var(--ds-muted);
	cursor: pointer;
}

.ccn-drawer__back:hover { background: var(--ds-surface); color: var(--ds-ink); }

.ccn-drawer__title {
	margin: 8px 0 16px;
	font-family: var(--cc-font-heading);
	font-size: 28px;
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.02em;
	color: var(--ds-ink);
}

.ccn-drawer__group { padding: 12px 0 16px; border-top: 1px solid var(--ds-line); }
.ccn-drawer__group:first-of-type { border-top: 0; padding-top: 0; }
.ccn-drawer__group ul { margin: 0; padding: 0; list-style: none; }

.ccn-drawer__group-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ds-muted);
}

.ccn-drawer__group-title svg { width: 16px; height: 16px; color: var(--ds-accent); }

.ccn-drawer__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	margin: 0 -12px;
	border-radius: 10px;
	color: var(--ds-ink);
	text-decoration: none;
}

.ccn-drawer__link:hover,
.ccn-drawer__link:active { background: var(--ds-surface); color: var(--ds-ink); }
.ccn-drawer__link-title { font-size: 16px; font-weight: 500; }
.ccn-drawer__link[aria-current="page"] .ccn-drawer__link-title { color: var(--ds-accent); font-weight: 600; }
.ccn-drawer__link-desc { font-size: 13.5px; color: var(--ds-muted); }

.ccn-drawer__footer {
	display: grid;
	gap: 8px;
	padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ds-line);
	background: #fff;
}

html.ccn-locked,
html.ccn-locked body { overflow: hidden; }

/* Botones flotantes fuera de la vista mientras el menú está abierto */
html.ccn-locked .cc-wa-float,
html.ccn-locked .cc-anniversary-floating-btn { opacity: 0; visibility: hidden; pointer-events: none; }

/* --- Breakpoints --- */
@media (max-width: 1180px) and (min-width: 1025px) {
	.ccn-mega { grid-template-columns: 240px minmax(0, 1fr); }
	.ccn-mega__featured { display: none; }
	.ccn__link, .ccn__trigger { padding: 0 10px; }
}

@media (max-width: 1024px) {
	.ccn { display: none; }
	.ccn-burger { display: inline-block; }
	.site-header .site-header__whatsapp { display: flex !important; }
	.site-header .site-header__container { gap: 12px; }
	.site-header__actions { margin-left: auto; }
	.btn-wa-header {
		width: 40px;
		height: 40px;
		padding: 0 !important;
		border-radius: 50% !important;
		justify-content: center;
	}
	.btn-wa-header__text { display: none; }
}

@media (max-width: 640px) {
	.site-header .site-header__cta { display: none !important; }
	.ccn-drawer { width: 100vw; border-left: 0; }
	.ccn-drawer__view { padding: 4px 20px 20px; }
	.ccn-drawer__footer { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
	.site-header .site-header__cta { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ccn__panel, .ccn-drawer, .ccn-drawer__view, .ccn-burger span { transition: none !important; }
	.ccn-mega__group.is-active { animation: none; }
}

/* --------------------------------------------------------------------------
   4. BOTONES (compartidos)
   -------------------------------------------------------------------------- */
.btn {
	font-family: var(--cc-font-body);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--ds-radius-btn);
	border-width: 1.5px;
	box-shadow: none !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover { transform: none !important; }

.btn--sm { padding: 0 16px; min-height: 36px; font-size: 14px; }
.btn--md { padding: 0 22px; min-height: 44px; font-size: 15px; }
.btn--lg,
.btn--xl { padding: 0 28px; min-height: 52px; font-size: 16px; }

.btn--primary,
.btn--solid-gold {
	background: var(--ds-accent) !important;
	border-color: var(--ds-accent) !important;
	color: #fff !important;
}

.btn--primary:hover,
.btn--solid-gold:hover {
	background: var(--ds-accent-hover) !important;
	border-color: var(--ds-accent-hover) !important;
	color: #fff !important;
}

.btn--solid-dark {
	background: var(--ds-ink);
	border-color: var(--ds-ink);
	color: #fff;
}

.btn--solid-dark:hover { background: #000; color: #fff; }

.btn--outline {
	background: transparent;
	color: var(--ds-accent);
	border-color: var(--ds-accent);
}

.btn--outline:hover { background: var(--ds-accent-tint); color: var(--ds-accent-hover); }

.btn--white {
	background: #fff;
	color: var(--ds-ink);
	border-color: #fff;
}

/* --------------------------------------------------------------------------
   5. SECCIONES Y TÍTULOS COMPARTIDOS
   -------------------------------------------------------------------------- */
.section { padding: var(--ds-section-y) 0; }

.section__label {
	font-family: var(--cc-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ds-accent);
}

.section__title {
	font-family: var(--cc-font-heading);
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.02em;
	color: var(--ds-ink);
}

.section__title.text-primary { color: var(--ds-ink) !important; }

.section__description {
	font-size: 18px;
	color: var(--ds-muted);
}

/* Separadores decorativos antiguos (rayita degradada bajo el título) */
.section__title::after,
.section__header::after { display: none !important; }

/* Tarjetas de servicio */
.service-card {
	background: var(--ds-surface);
	border: 0;
	border-radius: var(--ds-radius-card);
	box-shadow: none;
	transition: background-color .15s ease;
}

.service-card:hover {
	background: var(--ds-surface-2);
	transform: none;
	box-shadow: none;
}

.service-card__icon { color: var(--ds-accent); background: none; }

/* FAQ compartidas */
.faq-item,
.cc-accordion__item {
	background: #fff !important;
	border: 1px solid var(--ds-line) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
}

.faq-item__num { color: var(--ds-accent); background: none; }

/* Hero de servicios (plantillas svc-hero-v2) */
.svc-hero-v2 { background: #fff; }
.svc-hero-v2__bg-lines { display: none; }
.svc-hero-v2__title { font-weight: var(--ds-fw-heading); letter-spacing: -0.025em; }
.svc-hero-v2__text { color: var(--ds-muted); }

/* Blog cards */
.cc-blog-card {
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	box-shadow: none !important;
	transform: none !important;
}

.cc-blog-card__badge {
	background: #fff;
	color: var(--ds-ink);
	border-radius: 999px;
	font-weight: 600;
}

.btn-read-more { color: var(--ds-accent); font-weight: 600; }

/* Footer */
.site-footer--dark .container {
	background-color: var(--ds-ink);
	border-radius: var(--ds-radius-panel);
}

.footer-col__title {
	font-family: var(--cc-font-body);
	font-size: 15px;
	font-weight: 600;
}

.footer-col__list a { color: #bdbdbd; font-size: 14px; }

/* Cotizador del header (modal): mismo lenguaje que el resto */
.ccq-modal { border-radius: var(--ds-radius-panel); }
.ccq-header__icon { border-radius: 10px; }
.ccq-header__title,
.ccq-step__title { font-family: var(--cc-font-heading); font-weight: var(--ds-fw-heading); color: var(--ds-ink); }
.ccq-btn-next,
.ccq-btn-send {
	border-radius: var(--ds-radius-btn);
	box-shadow: none;
	font-weight: 600;
}
.ccq-btn-next:hover,
.ccq-btn-send:hover { transform: none; box-shadow: none; }
.ccq-btn-next:hover { background: var(--ds-accent-hover); }
.ccq-service-card { border-width: 1.5px; border-radius: 12px; }

/* Popup de aniversario: más sobrio */
.cc-anniversary-popup__content { border-radius: var(--ds-radius-panel); }
.cc-anniversary-popup__title { font-weight: var(--ds-fw-heading); }

/* --------------------------------------------------------------------------
   6. COMPONENTES NUEVOS "ds-*"
   -------------------------------------------------------------------------- */
.ds-container {
	width: 100%;
	max-width: var(--cc-container-wide);
	margin: 0 auto;
	padding: 0 var(--ds-gutter);
}

.ds-section { padding: var(--ds-section-y) 0; }
.ds-section--tight { padding: calc(var(--ds-section-y) * .6) 0; }
.ds-section--surface { background: var(--ds-surface); }

.ds-eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ds-accent);
	margin-bottom: 12px;
}

.ds-h1 {
	font-size: clamp(2.5rem, 5.2vw, 4.5rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
}

.ds-h2 {
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
	margin: 0 0 16px;
}

.ds-h3 {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}

.ds-lead {
	font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
	line-height: 1.55;
	color: var(--ds-muted);
	margin: 0 0 28px;
	max-width: 640px;
}

.ds-muted { color: var(--ds-muted); }

.ds-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.ds-head .ds-h2 { margin: 0; max-width: 760px; }
.ds-head--center { flex-direction: column; align-items: center; text-align: center; }
.ds-head--center .ds-lead { margin: 0 auto; }

.ds-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--ds-accent);
	white-space: nowrap;
}

.ds-link svg { transition: transform .15s ease; }
.ds-link:hover svg { transform: translateX(3px); }

/* Botones */
.ds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: var(--ds-radius-btn);
	font-family: var(--cc-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ds-btn--primary { background: var(--ds-accent); color: #fff; }
.ds-btn--primary:hover { background: var(--ds-accent-hover); color: #fff; }
.ds-btn--dark { background: var(--ds-ink); color: #fff; }
.ds-btn--dark:hover { background: #000; color: #fff; }
.ds-btn--outline { border-color: var(--ds-line-2); color: var(--ds-ink); background: #fff; }
.ds-btn--outline:hover { border-color: var(--ds-ink); color: var(--ds-ink); }
.ds-btn--light { background: #fff; color: var(--ds-ink); }
.ds-btn--light:hover { background: var(--ds-surface-2); color: var(--ds-ink); }
.ds-btn--ghost-light { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.ds-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ds-btn--pill { border-radius: 999px; }
.ds-btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.ds-btn--block { width: 100%; }

.ds-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Franja promocional superior */
.ds-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 24px 0 16px;
	padding: 18px 24px;
	border-radius: var(--ds-radius-card);
	background: linear-gradient(90deg, #FDEBF2 0%, #FFF1E0 100%);
	color: var(--ds-ink);
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 500;
}

.ds-promo a {
	color: var(--ds-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* Hero: panel oscuro redondeado con foto */
.ds-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--ds-radius-panel);
	background-color: var(--ds-ink);
	background-size: cover;
	background-position: center right;
	color: #fff;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
}

.ds-hero__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 60%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.ds-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, var(--ds-ink) 0%, var(--ds-ink) 40%, rgba(24, 24, 24, .55) 55%, rgba(24, 24, 24, 0) 72%);
}

.ds-hero__inner {
	position: relative;
	z-index: 2;
	padding: clamp(32px, 5vw, 64px);
	max-width: 760px;
}

.ds-hero .ds-h1,
.ds-hero h1 { color: #fff; }

.ds-hero__sub {
	font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, .88);
	margin: 0 0 28px;
	max-width: 560px;
}

.ds-hero__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.ds-hero__tab {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 20px;
	border: 1.5px solid rgba(255, 255, 255, .8);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	background: transparent;
	cursor: pointer;
}

.ds-hero__tab[aria-pressed="true"],
.ds-hero__tab:hover { background: #fff; color: var(--ds-ink); }

/* Buscador tipo "píldora" */
.ds-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 620px;
	padding: 6px 6px 6px 20px;
	background: #fff;
	border-radius: 999px;
}

.ds-search input,
.ds-search select {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 0;
	outline: none;
	background: transparent;
	font: 500 16px/1 var(--cc-font-body);
	color: var(--ds-ink);
}

.ds-search__field { position: relative; flex: 1; min-width: 0; }
.ds-search .iti { width: 100%; }
.ds-search .iti input { width: 100%; }
/* Selector de país (intl-tel-input v23) */
.ds-search .iti__selected-country { border-radius: 10px; background: transparent; }
.ds-search .iti__selected-country-primary { padding: 0 6px 0 4px; }
.ds-search .iti__selected-country:hover .iti__selected-country-primary,
.ds-search .iti__selected-country:focus-visible .iti__selected-country-primary { background: var(--ds-surface-2); border-radius: 10px; }
.ds-search .iti__selected-dial-code { font-weight: 500; color: var(--ds-ink); }

/* Desplegable de países con buscador (se monta en <body>) */
.iti--container .iti__dropdown-content { border: 1px solid var(--ds-line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(24, 24, 24, .22); overflow: hidden; }
.iti__search-input { height: 44px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--ds-line); font: 500 15px/1 var(--cc-font-body); color: var(--ds-ink); outline: none; }
.iti__search-input::placeholder { color: var(--ds-muted); }
.iti__country { padding: 9px 14px; font-size: 15px; }
.iti__country.iti__highlight { background: var(--ds-surface-2); }
.iti__dial-code { color: var(--ds-muted); }
.ds-search__field .iti-error-msg {
	position: absolute;
	top: calc(100% + 14px);
	left: -20px;
	white-space: nowrap;
	z-index: 3;
}

.ds-search button[type="submit"] {
	flex-shrink: 0;
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ds-accent);
	color: #fff;
	font: 600 15px/1 var(--cc-font-body);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ds-search button[type="submit"]:hover { background: var(--ds-accent-hover); }

.ds-search-note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Hero claro (páginas de servicio) */
.ds-svc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding: 40px 0 56px;
}

.ds-svc-hero__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--ds-radius-panel);
	background: var(--ds-surface);
}

.ds-search--light {
	border: 1.5px solid var(--ds-line-2);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.ds-search--light:focus-within { border-color: var(--ds-ink); }

.ds-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
	color: var(--ds-muted);
}

.ds-trust li { display: inline-flex; align-items: center; gap: 6px; }
.ds-trust li::before { content: '✓'; color: var(--ds-accent); font-weight: 700; }

.ds-breadcrumb { font-size: 14px; color: var(--ds-muted); padding-top: 24px; }
.ds-breadcrumb a { color: var(--ds-muted); }
.ds-breadcrumb a:hover { color: var(--ds-ink); }

/* Logos de confianza */
.ds-logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 8px 24px;
}

.ds-logos__label {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: 14px;
	font-weight: 500;
	color: var(--ds-muted);
}

.ds-logos img {
	width: 132px;
	height: 72px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .7;
	transition: filter .2s ease, opacity .2s ease;
}

.ds-logos img:hover { filter: none; opacity: 1; }

/* Logos de proyectos (franja en movimiento, template-parts/ds/project-logos.php) */
.ds-plogos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ds-plogos__label { font-size: 14px; font-weight: 500; color: var(--ds-muted); }
.ds-plogos__more { font-size: 14px; white-space: nowrap; }

.ds-plogos__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ds-plogos__track {
	display: flex;
	width: max-content;
	animation: ds-plogos calc(var(--ds-plogos-n) * 3s) linear infinite;
}
.ds-plogos__viewport:hover .ds-plogos__track,
.ds-plogos__viewport:focus-within .ds-plogos__track { animation-play-state: paused; }

@keyframes ds-plogos { to { transform: translateX(-50%); } }

/* Pocos logos: fila fija, sin movimiento */
.ds-plogos--static .ds-plogos__viewport { -webkit-mask-image: none; mask-image: none; }
.ds-plogos--static .ds-plogos__track { display: block; width: auto; animation: none; }
.ds-plogos__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Grilla de tarjetas (pocos proyectos, p. ej. SEO): logo + nombre + rubro */
.ds-plogos--static .ds-plogos__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	padding: 0;
}
.ds-plogos--static .ds-plogos__item {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	width: auto;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ds-plogos--static .ds-plogos__item:hover,
.ds-plogos--static .ds-plogos__item:focus-visible { border-color: var(--ds-ink); box-shadow: 0 10px 24px -14px rgba(24, 24, 24, .35); transform: translateY(-2px); }
.ds-plogos--static .ds-plogos__logo { height: 64px; margin-bottom: 8px; border-radius: 10px; }
.ds-plogos--static .ds-plogos__item img { max-height: 52px; filter: none; opacity: 1; }
.ds-plogos--static .ds-plogos__item.is-dark .ds-plogos__logo { background: var(--ds-ink); }
.ds-plogos--static .ds-plogos__item.is-dark img { filter: none; opacity: 1; }
.ds-plogos--static .ds-plogos__item.is-dark:hover { background: #fff; }
.ds-plogos__name { font-family: var(--cc-font-heading); font-size: 15px; font-weight: var(--ds-fw-heading); line-height: 1.25; color: var(--ds-ink); }
.ds-plogos__meta { font-size: 13px; line-height: 1.35; color: var(--ds-muted); }
.ds-plogos--static .ds-plogos__item:hover .ds-plogos__name { color: var(--ds-accent); }
@media (max-width: 640px) {
	.ds-plogos--static .ds-plogos__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-plogos--static .ds-plogos__item { padding: 12px; }
}
.ds-plogos--static .ds-plogos__list[aria-hidden="true"] { display: none; }

.ds-plogos__list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px; list-style: none; }

.ds-plogos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 152px;
	height: 80px;
	padding: 10px 14px;
	border-radius: 12px;
	transition: background-color .2s ease;
}
.ds-plogos__item img {
	max-width: 100%;
	max-height: 56px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .7;
	transition: filter .2s ease, opacity .2s ease;
}
/* Logos blancos: silueta oscura; al pasar el mouse se ven en su color sobre fondo oscuro. */
.ds-plogos__item.is-dark img { filter: brightness(0); opacity: .55; }
.ds-plogos__item:hover img,
.ds-plogos__item:focus-visible img { filter: none; opacity: 1; }
.ds-plogos__item.is-dark:hover,
.ds-plogos__item.is-dark:focus-visible { background: var(--ds-ink); }
.ds-plogos__word { font-family: var(--cc-font-heading); font-size: 16px; font-weight: 700; color: var(--ds-muted); text-align: center; line-height: 1.15; }

@media (max-width: 640px) {
	.ds-plogos__head { flex-direction: column; gap: 4px; }
	.ds-plogos__item { width: 120px; height: 64px; padding: 8px 10px; }
	.ds-plogos__item img { max-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.ds-plogos__viewport { -webkit-mask-image: none; mask-image: none; }
	.ds-plogos__track { width: auto; animation: none; }
	.ds-plogos__list { flex-wrap: wrap; justify-content: center; }
	.ds-plogos__list[aria-hidden="true"] { display: none; }
}

/* Grilla de categorías (servicios) */
.ds-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ds-cat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 150px;
	padding: 24px;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
	color: var(--ds-ink);
	text-decoration: none;
	transition: background-color .15s ease;
}

.ds-cat:hover { background: var(--ds-surface-2); color: var(--ds-ink); }

.ds-cat__title {
	font-family: var(--cc-font-heading);
	font-size: 1.25rem;
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.ds-cat__meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: var(--ds-muted);
}

.ds-cat__meta strong { color: var(--ds-ink); font-weight: 600; }

.ds-cat__icon { color: var(--ds-accent); }

/* Split (imagen + texto) */
.ds-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.ds-split--reverse .ds-split__media { order: 2; }

.ds-split__media img,
.ds-media {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ds-radius-panel);
}

.ds-checklist { display: grid; gap: 16px; margin: 0 0 32px; padding: 0; }

.ds-checklist li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 12px;
	font-size: 16px;
	color: var(--ds-ink-2);
}

.ds-checklist li::before {
	content: '';
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--ds-accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E91E63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ds-checklist strong { color: var(--ds-ink); font-weight: 600; }

/* Pasos */
.ds-steps {
	display: grid;
	grid-template-columns: repeat(var(--ds-steps-cols, 3), minmax(0, 1fr));
	gap: 16px;
	counter-reset: ds-step;
}

.ds-step {
	padding: 28px;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
}

.ds-step::before {
	counter-increment: ds-step;
	content: counter(ds-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--ds-ink);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.ds-step p { margin: 0; color: var(--ds-muted); font-size: 15px; }

.ds-step--plain::before { display: none; }

.ds-step__year {
	display: block;
	margin-bottom: 12px;
	font-family: var(--cc-font-heading);
	font-size: 2rem;
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--ds-accent);
}

/* Estadísticas */
.ds-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ds-stat {
	padding: 28px;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
}

.ds-stat__num {
	display: block;
	font-family: var(--cc-font-heading);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--ds-ink);
	margin-bottom: 10px;
}

.ds-stat__label { font-size: 15px; color: var(--ds-muted); }

/* Portafolio */
.ds-work-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ds-work { display: flex; flex-direction: column; gap: 14px; color: var(--ds-ink); }

.ds-work__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
}

.ds-work__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .4s ease;
}

.ds-work:hover .ds-work__media img { transform: scale(1.03); }

.ds-work__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--ds-ink);
}

.ds-work__title { font-family: var(--cc-font-heading); font-size: 1.125rem; font-weight: var(--ds-fw-heading); margin: 0; }
.ds-work__desc { margin: 0; font-size: 15px; color: var(--ds-muted); }

/* Planes / precios */
.ds-plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.ds-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
}

.ds-plan--featured { border: 2px solid var(--ds-ink); }

.ds-plan__badge {
	position: absolute;
	top: -13px;
	left: 24px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ds-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.ds-plan__name { font-family: var(--cc-font-heading); font-size: 1.25rem; font-weight: var(--ds-fw-heading); margin: 0 0 4px; }
.ds-plan__for { font-size: 14px; color: var(--ds-muted); margin: 0 0 20px; min-height: 42px; }

.ds-plan__price {
	font-family: var(--cc-font-heading);
	font-size: 2.5rem;
	font-weight: var(--ds-fw-heading);
	letter-spacing: -0.03em;
	line-height: 1;
	margin-bottom: 6px;
}

.ds-plan__price small { font-size: 1rem; font-weight: 500; color: var(--ds-muted); letter-spacing: 0; margin-right: 2px; }
.ds-plan__terms { font-size: 13px; color: var(--ds-muted); margin: 0 0 20px; }

.ds-plan__list {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 20px 0 0;
	border-top: 1px solid var(--ds-line);
	font-size: 14px;
	color: var(--ds-ink-2);
}

.ds-plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }

.ds-plan__list li::before {
	content: '';
	width: 16px;
	height: 16px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ds-plan .ds-btn { margin-top: auto; }

.ds-note {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.ds-note__item {
	padding: 24px;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
	font-size: 15px;
	color: var(--ds-ink-2);
}

.ds-note__item strong { display: block; margin-bottom: 6px; color: var(--ds-ink); font-size: 16px; }
.ds-note__item p { margin: 0; }

/* Equipo */
.ds-team {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ds-person { margin: 0; }

.ds-person img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
	margin-bottom: 12px;
}

.ds-person figcaption { font-weight: 600; }
.ds-person figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--ds-muted); }

/* FAQ */
.ds-faq { display: grid; gap: 0; border-top: 1px solid var(--ds-line); }

.ds-faq details { border-bottom: 1px solid var(--ds-line); }

.ds-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	font-family: var(--cc-font-heading);
	font-size: 1.125rem;
	font-weight: var(--ds-fw-heading);
	color: var(--ds-ink);
	cursor: pointer;
	list-style: none;
}

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

.ds-faq summary::after {
	content: '';
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ds-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .2s ease;
}

.ds-faq details[open] summary::after { transform: rotate(45deg); }

.ds-faq__answer { padding: 0 56px 24px 0; color: var(--ds-muted); font-size: 16px; line-height: 1.7; }
.ds-faq__answer p { margin: 0 0 12px; }
.ds-faq__answer p:last-child { margin: 0; }

.ds-faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(32px, 5vw, 80px);
}

/* Testimonios */
.ds-quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ds-quote {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
	margin: 0;
}

.ds-quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ds-ink); }
.ds-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ds-muted); }
.ds-quote figcaption strong { display: block; color: var(--ds-ink); font-size: 15px; }
.ds-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ds-stars { color: var(--ds-ink); letter-spacing: 2px; font-size: 14px; }

/* Banda CTA final */
.ds-cta {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	align-items: center;
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--ds-radius-panel);
	background: var(--ds-ink);
	color: #fff;
	overflow: hidden;
}

.ds-cta .ds-h2 { color: #fff; }
.ds-cta p { color: rgba(255, 255, 255, .8); margin: 0 0 28px; font-size: 18px; }
.ds-cta__media img { width: 100%; border-radius: var(--ds-radius-card); }

/* Oficina / contacto local */
.ds-office {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ds-office__card {
	padding: 32px;
	border-radius: var(--ds-radius-card);
	background: var(--ds-surface);
}

.ds-office__card dl { display: grid; gap: 16px; margin: 24px 0 0; }
.ds-office__card dt { font-size: 13px; font-weight: 600; color: var(--ds-muted); text-transform: uppercase; letter-spacing: .04em; }
.ds-office__card dd { margin: 2px 0 0; font-size: 16px; color: var(--ds-ink); }
.ds-office__card dd a { color: var(--ds-ink); }
.ds-office__ref { display: block; margin-top: 4px; font-size: 14px; color: var(--ds-muted); }

/* Texto SEO largo */
.ds-prose { max-width: 820px; font-size: 17px; line-height: 1.75; color: var(--ds-ink-2); }
.ds-prose p { margin: 0 0 16px; }
.ds-prose strong { color: var(--ds-ink); }

/* Carrusel horizontal nativo (scroll-snap) */
.ds-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(300px, 1fr);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
}

.ds-rail > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   6b. PORTAFOLIO (archive-portfolio.php, single-portfolio.php, project-card.php)
   -------------------------------------------------------------------------- */
.pf-hero { max-width: 880px; padding: 24px 0 40px; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.pf-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--ds-line-2);
	border-radius: 999px;
	background: #fff;
	font: 500 15px/1 var(--cc-font-body);
	color: var(--ds-ink);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pf-filter span { font-size: 13px; color: var(--ds-muted); }
.pf-filter:hover { border-color: var(--ds-ink); }
.pf-filter[aria-pressed="true"] { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }
.pf-filter[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-empty { padding: 40px 0; }

/* Grupos por año */
.pf-group + .pf-group { margin-top: 64px; }
.pf-group__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ds-line); font-family: var(--cc-font-heading); font-size: 28px; line-height: 1.2; color: var(--ds-ink); }
.pf-group__title span { font-family: var(--cc-font-body); font-size: 15px; font-weight: 500; color: var(--ds-muted); }

/* Tarjeta */
.pf-card[hidden] { display: none; }

.pf-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
	color: var(--ds-ink);
	text-decoration: none;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.pf-card__link:hover { border-color: var(--ds-ink); color: var(--ds-ink); box-shadow: 0 8px 24px rgba(24, 24, 24, .06); }

/* Cabecera de la tarjeta: misma altura siempre. Fondo = captura del sitio del
   cliente teñida con su color de marca (--pf-h); el logo va sobre una placa. */
.pf-card__logo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 188px;
	overflow: hidden;
	background: hsl(var(--pf-h, 210) 45% 18%);
}

.pf-card__logo-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .5s ease;
}

.pf-card__logo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, hsl(var(--pf-h, 210) 55% 24% / .80), hsl(var(--pf-h, 210) 60% 12% / .92));
}

.pf-card__link:hover .pf-card__logo-bg { transform: scale(1.05); }

.pf-card__chip {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 208px;
	height: 104px;
	padding: 14px 20px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.pf-card__chip--bare { background: transparent; box-shadow: none; width: 240px; }
.pf-card__chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.pf-card__wordmark { font-family: var(--cc-font-heading); font-size: 26px; font-weight: var(--ds-fw-heading); letter-spacing: -0.02em; text-align: center; color: #fff; }

.pf-card__shot-logo.is-dark,
.pf-detail-logo.is-dark { background: hsl(var(--pf-h, 210) 45% 18%); border-color: transparent; }

.pf-card__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ds-surface); border-bottom: 1px solid var(--ds-line); }
.pf-card__shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.pf-card__link:hover .pf-card__shot > img { transform: scale(1.03); }

.pf-card__shot-logo {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 48px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(24, 24, 24, .14);
}

.pf-card__shot-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pf-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.pf-card__name { font-family: var(--cc-font-heading); font-size: 1.25rem; font-weight: var(--ds-fw-heading); letter-spacing: -0.01em; line-height: 1.25; }
.pf-card__meta { font-size: 14px; color: var(--ds-muted); }
.pf-card__text { font-size: 15px; line-height: 1.5; color: var(--ds-ink-2); margin-top: 4px; }
.pf-card__more { margin-top: auto; padding-top: 12px; font-size: 14px; }

.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

.pf-tag {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--ds-surface-2);
	font-size: 12px;
	font-weight: 600;
	color: var(--ds-ink-2);
}

.pf-tag--premium { background: var(--ds-ink); color: #fff; }
.pf-tag--seo { background: var(--ds-accent-tint); color: var(--ds-accent); }

/* Marco de navegador */
.pf-frame { margin: 0; border: 1px solid var(--ds-line-2); border-radius: var(--ds-radius-card); background: #fff; overflow: hidden; box-shadow: 0 16px 40px -16px rgba(24, 24, 24, .18); }

.pf-frame__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--ds-surface); border-bottom: 1px solid var(--ds-line); }
.pf-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ds-line-2); }
.pf-frame__bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ds-line); font-size: 12px; color: var(--ds-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-frame__view { max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.pf-frame__view img { display: block; width: 100%; height: auto; }
.pf-frame--hero .pf-frame__view { max-height: 460px; }

/* Ficha */
.pf-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 32px 0 40px; }
.pf-detail-title { font-size: clamp(2rem, 3.8vw, 3.25rem); }

.pf-detail-logo { display: inline-flex; align-items: center; justify-content: center; height: 72px; max-width: 220px; margin-bottom: 20px; padding: 12px 18px; border: 1px solid var(--ds-line); border-radius: 12px; background: #fff; }
.pf-detail-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-card); overflow: hidden; }
.pf-facts > div { padding: 18px 20px; border-right: 1px solid var(--ds-line); margin-right: -1px; border-bottom: 1px solid var(--ds-line); margin-bottom: -1px; }
.pf-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted); }
.pf-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--ds-ink); }
.pf-facts dd a { color: var(--ds-ink); text-decoration: underline; text-underline-offset: 3px; }

.pf-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pf-story .ds-prose { font-size: 18px; }
.pf-story__side { display: grid; gap: 16px; }

.pf-box { padding: 24px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-card); background: #fff; }
.pf-box .ds-h3 { margin-bottom: 14px; }
.pf-box--dark { border-color: var(--ds-ink); background: var(--ds-ink); }
.pf-box--dark .ds-h3 { color: #fff; margin-bottom: 8px; }
.pf-box--dark p { margin: 0 0 18px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.pf-box__label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

.pf-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pf-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-shots--1 { grid-template-columns: minmax(0, 720px); }
.pf-shot { margin: 0; }
.pf-shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ds-muted); }
.pf-shot figcaption strong { display: block; font-size: 16px; color: var(--ds-ink); }

@media (max-width: 1100px) {
	.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.pf-detail-hero,
	.pf-story { grid-template-columns: 1fr; }
	.pf-shots,
	.pf-shots--2 { grid-template-columns: 1fr; }
	.pf-frame__view { max-height: 440px; }
}

@media (max-width: 640px) {
	.pf-grid,
	.pf-grid--4 { grid-template-columns: 1fr; gap: 16px; }
	.pf-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--ds-gutter) * -1); padding-right: var(--ds-gutter); scrollbar-width: none; }
	.pf-filter { flex-shrink: 0; }
	.pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Opiniones de Google (template-parts/ds/testimonials.php) */
.rv-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: 15px; color: var(--ds-muted); }
.rv-score strong { font-family: var(--cc-font-heading); font-size: 22px; font-weight: var(--ds-fw-heading); color: var(--ds-ink); }
.rv-score .ds-stars, .rv-card .ds-stars { color: #f5a623; letter-spacing: 1px; font-size: 16px; }
.rv-grid--1 { grid-template-columns: minmax(0, 640px); }
.rv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-card { background: #fff; border: 1px solid var(--ds-line); gap: 14px; }
.ds-section--surface .rv-card { border-color: transparent; }
.rv-card__top { display: flex; align-items: center; justify-content: space-between; }
.rv-card__source { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted); }
.rv-card__summary { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ds-ink); }
.rv-card__note { margin: 0; font-size: 13px; color: var(--ds-muted); }
.rv-card__note a { color: var(--ds-muted); text-decoration: underline; text-underline-offset: 2px; }
.rv-card__note a:hover { color: var(--ds-accent); }
.rv-card figcaption { align-items: flex-start; }
.rv-card figcaption a { color: var(--ds-accent); font-weight: 600; }
.rv-card__avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--ds-accent-tint); color: var(--ds-accent); font-weight: 700; }
.rv-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding: 20px 24px; border: 1px dashed var(--ds-line-2); border-radius: var(--ds-radius-card); }
.rv-ask p { margin: 0; font-size: 15px; color: var(--ds-ink-2); }
@media (max-width: 900px) { .rv-grid--2 { grid-template-columns: 1fr; } }

/* Visibilidad del header fijo sobre anclas */
[id] { scroll-margin-top: calc(var(--cc-header-height) + 16px); }

/* --------------------------------------------------------------------------
   7. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ds-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ds-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.ds-svc-hero,
	.ds-split,
	.ds-cta,
	.ds-office,
	.ds-faq-layout { grid-template-columns: 1fr; }
	.ds-split--reverse .ds-split__media { order: 0; }
	.ds-work-grid,
	.ds-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-steps { grid-template-columns: 1fr; }
	.ds-svc-hero { padding-top: 16px; }
	.ds-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	.ds-cat-grid,
	.ds-plans,
	.ds-work-grid,
	.ds-quotes,
	.ds-note { grid-template-columns: 1fr; }
	.ds-team,
	.ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-promo { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 14px 16px; font-size: 15px; }
	.ds-hero { min-height: 0; }
	.ds-hero__bg { width: 100%; height: 300px; bottom: auto; object-position: center 25%; }
	.ds-hero::before { background: linear-gradient(180deg, rgba(24, 24, 24, 0) 0, rgba(24, 24, 24, .2) 160px, var(--ds-ink) 300px); }
	.ds-hero__inner { padding: 240px 20px 28px; }
	.ds-search { flex-direction: column; align-items: stretch; border-radius: 16px; padding: 8px; }
	.ds-search input { padding: 0 12px; }
	.ds-search button[type="submit"] { justify-content: center; }
	.ds-faq__answer { padding-right: 0; }
	.ds-cat { min-height: 0; padding: 18px 20px; }
	.ds-step, .ds-plan, .ds-stat, .ds-quote { padding: 22px 20px; }
	.ds-work-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
	}
	.ds-work-grid > * { scroll-snap-align: start; }
	.ds-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
	.ds-logos img { width: 96px; height: 56px; }
}

/* Retratos del equipo (assets/images/team/): encuadre en el rostro al recortar. */
img[src*="/assets/images/team/"] { object-position: 50% 22%; }


/* --------------------------------------------------------------------------
   Tabla comparativa (hosting por plan en /diseno-web/)
   -------------------------------------------------------------------------- */
.ds-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
.ds-table-wrap:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 2px; }

.ds-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	font-size: 15px;
	color: var(--ds-ink-2);
}

.ds-table th,
.ds-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ds-line);
	text-align: center;
	vertical-align: middle;
}

.ds-table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	font-family: var(--cc-font-heading);
	font-size: 16px;
	font-weight: var(--ds-fw-heading);
	color: var(--ds-ink);
}
.ds-table thead th span { display: block; margin-top: 2px; font-family: var(--cc-font-body); font-size: 13px; font-weight: 500; color: var(--ds-muted); }

.ds-table tbody th[scope="row"] { font-weight: 500; color: var(--ds-ink); text-align: left; }
.ds-table tbody tr:last-child th,
.ds-table tbody tr:last-child td { border-bottom-color: var(--ds-line); }
.ds-table tbody:last-child tr:last-child th,
.ds-table tbody:last-child tr:last-child td { border-bottom: 0; }

.ds-table__group th {
	padding-top: 22px;
	background: var(--ds-surface);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-align: left;
	text-transform: uppercase;
	color: var(--ds-muted);
}

/* Columna del plan recomendado */
.ds-table .is-featured { background: var(--ds-accent-tint); }
.ds-table thead th.is-featured { box-shadow: inset 0 3px 0 var(--ds-accent); }
.ds-table td.is-featured { font-weight: 600; color: var(--ds-ink); }

.ds-table__yes { color: var(--ds-accent); vertical-align: middle; }
.ds-table__no { color: var(--ds-subtle); }

/* Primera columna fija al desplazar en celular */
.ds-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 190px; background: #fff; }
.ds-table thead th:first-child { z-index: 2; }
.ds-table__group th:first-child { position: static; background: var(--ds-surface); }
.ds-table__group th span { position: sticky; left: 18px; }

/* Lista "incluido en todos los planes" */
.ds-hosting-all {
	margin-top: 16px;
	padding: 24px;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-card);
	background: #fff;
}
.ds-hosting-all__title { margin: 0 0 4px; font-family: var(--cc-font-heading); font-size: 1.125rem; font-weight: var(--ds-fw-heading); color: var(--ds-ink); }
.ds-hosting-all .ds-plan__list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 0; padding-top: 12px; }

@media (max-width: 900px) {
	.ds-hosting-all .ds-plan__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ds-table { font-size: 14px; }
	.ds-table th, .ds-table td { padding: 12px 12px; }
	.ds-table th:first-child { min-width: 128px; }
	.ds-table__group th span { left: 12px; }
	.ds-hosting-all { padding: 18px; }
	.ds-hosting-all .ds-plan__list { grid-template-columns: 1fr; }
}


/* Tipo de web en cada tarjeta de plan */
.ds-plan__type {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ds-surface-2);
	font-size: 12px;
	font-weight: 600;
	color: var(--ds-ink-2);
}
.ds-plan--featured .ds-plan__type { background: var(--ds-accent-tint); color: var(--ds-accent); }
.page-diseno-web .ds-plan__for { min-height: 92px; }

/* Código a medida + beneficios del Plan Premium */
.ds-premium {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	padding: 32px;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius-panel);
	background: var(--ds-surface);
}
.ds-premium__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ds-premium__intro .ds-plan__type { margin: 0; background: var(--ds-ink); color: #fff; }
.ds-premium__intro .ds-h3 { margin: 0; }
.ds-premium__intro p { margin: 0 0 8px; color: var(--ds-ink-2); }
.ds-premium__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ds-premium__list li { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-card); background: #fff; }
.ds-premium__list strong { font-family: var(--cc-font-heading); font-size: 1.0625rem; font-weight: var(--ds-fw-heading); color: var(--ds-ink); }
.ds-premium__list span { font-size: 14px; line-height: 1.5; color: var(--ds-ink-2); }
.ds-premium--cms { margin-bottom: 24px; background: #fff; }
.ds-premium--cms .ds-premium__list li { background: var(--ds-surface); }

/* Tabla de precios frente al mercado */
.ds-table--market { min-width: 560px; }
.ds-table--market td,
.ds-table--market th { text-align: left; }
.ds-table--market td.is-featured span { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ds-muted); }

@media (max-width: 1100px) {
	.page-diseno-web .ds-plan__for { min-height: 0; }
}
@media (max-width: 900px) {
	.ds-premium { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
	.ds-premium { padding: 18px; }
	.ds-premium__list { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   Videos de TikTok (inc/videos-data.php + template-parts/ds/videos.php)
   -------------------------------------------------------------------------- */
.ds-tt {
	display: grid;
	/* Tarjetas de tamaño fijo (formato celular), no se estiran con pocos videos. */
	grid-template-columns: repeat(auto-fill, 220px);
	gap: 20px;
}
.ds-tt--single { grid-template-columns: 240px; }
.ds-tt__item { display: flex; flex-direction: column; margin: 0; }
.ds-tt__play,
.ds-tt__frame {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	border: 0;
	border-radius: var(--ds-radius-card);
	background: #000;
}
.ds-tt__play { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.ds-tt__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .2s ease; }
.ds-tt__play:hover img { transform: scale(1.03); }
.ds-tt__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .35)); pointer-events: none; }
.ds-tt__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	background: var(--ds-accent);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	transition: transform .2s ease;
}
.ds-tt__play:hover .ds-tt__icon { transform: scale(1.08); }
.ds-tt__icon svg { margin-left: 3px; }
.ds-tt__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .65);
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}
.ds-tt__item figcaption { display: grid; gap: 6px; padding-top: 12px; }
.ds-tt__label { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--ds-accent-tint); font-size: 12px; font-style: normal; font-weight: 600; color: var(--ds-accent); }
.ds-tt__item figcaption strong { font-family: var(--cc-font-heading); font-size: 1rem; font-weight: var(--ds-fw-heading); line-height: 1.3; color: var(--ds-ink); }
.ds-tt__item figcaption span { font-size: 14px; line-height: 1.5; color: var(--ds-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds-tt__item figcaption a { font-size: 14px; font-weight: 600; color: var(--ds-accent); text-decoration: none; }
.ds-tt__item figcaption a:hover { text-decoration: underline; }

/* Video horizontal de YouTube */
.ds-tt--wide { grid-template-columns: minmax(0, 860px); }
.ds-tt--wide .ds-tt__play,
.ds-tt--wide .ds-tt__frame { aspect-ratio: 16 / 9; }
.ds-tt--wide .ds-tt__item figcaption span { -webkit-line-clamp: unset; }

/* Dentro de un artículo del blog */
.ds-prose .ds-tt { margin: 32px 0; grid-template-columns: repeat(auto-fill, 200px); }
.ds-prose .ds-tt--single { grid-template-columns: 220px; }
.ds-prose .ds-tt__item figcaption strong { font-size: 15px; }
.ds-prose .ds-tt__item figcaption a { font-size: 14px; }


@media (max-width: 560px) {
	.ds-tt, .ds-prose .ds-tt { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.ds-tt__item { scroll-snap-align: start; }
	.ds-tt--single, .ds-prose .ds-tt--single { grid-auto-columns: 220px; }
	.ds-tt--wide { grid-auto-columns: 100%; overflow: visible; }
}


/* Tablas comparativas de planes dentro del blog (clase cc-compare en el bloque Tabla) */
.ds-prose .cc-compare th:not(:first-child),
.ds-prose .cc-compare td:not(:first-child) { text-align: center; }
.ds-prose .cc-compare td:first-child { font-weight: 600; color: var(--ds-ink); }
.ds-prose .cc-compare th:nth-child(4),
.ds-prose .cc-compare td:nth-child(4) { background: var(--ds-accent-tint); }
@media (max-width: 640px) {
	.ds-prose .cc-compare table { font-size: 12.5px; }
	.ds-prose .cc-compare th, .ds-prose .cc-compare td { padding: 8px 6px; }
}
