/* ==========================================================================
   Click-Doctor — componentes (BEM, prefijo cd-)
   Autoridad de tokens: theme.json. Aquí solo se consumen variables
   --wp--preset--* y --wp--custom--*. Ningún valor de marca se declara aquí.
   Referencia: DESIGN.md §2 (componentes) y §3b (hover).
   ========================================================================== */

:root {
	--cd-ease: var(--wp--custom--ease);
	--cd-t-fast: var(--wp--custom--duration--fast);
	--cd-t-base: var(--wp--custom--duration--base);
	--cd-t-slow: var(--wp--custom--duration--slow);
	--cd-t-arc: var(--wp--custom--duration--arc);
}

/* ---------- Base y accesibilidad ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus);
	outline-offset: 2px;
	border-radius: 4px;
}
.cd-skip {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface);
	padding: .75rem 1rem; border-radius: var(--wp--custom--radius--sm); text-decoration: none;
}
.cd-skip:focus { top: 1rem; }
.cd-measure-h1 { max-width: 13ch; }
.cd-measure-h2 { max-width: 19ch; }
.cd-measure-p { max-width: 52ch; }
.cd-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.6; color: var(--wp--preset--color--ink-2); }

/* ---------- Secciones (zona de hover) ---------- */
.cd-section { padding-block: var(--wp--preset--spacing--section); }
.cd-section--surface {
	background: var(--wp--preset--color--surface);
	border-block: 1px solid var(--wp--preset--color--line);
}

/* ---------- Palabra clave resaltada .hl (§3b) ---------- */
.hl, .cd-hl {
	background-image: linear-gradient(var(--wp--custom--hl), var(--wp--custom--hl));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 100% .14em;
	padding: 0 .04em;
	transition: background-size var(--cd-t-slow) var(--cd-ease);
}
@media (hover: hover) {
	.cd-section:hover :is(.hl, .cd-hl),
	h1:hover :is(.hl, .cd-hl),
	h2:hover :is(.hl, .cd-hl) { background-size: 100% .5em; }
}

/* ---------- Burbuja-pregunta (§2.2) ---------- */
.cd-ask {
	display: inline-flex; align-items: center; gap: .625rem;
	margin: 0 0 var(--wp--preset--spacing--5);
	padding: .75rem 1.125rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px 22px 22px var(--wp--custom--radius--bubble-tail);
	box-shadow: 0 8px 20px -14px rgba(10,31,61,.25);
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--ask); font-weight: 500; line-height: 1.4;
	transition: transform var(--cd-t-base) var(--cd-ease);
}
.cd-ask::before {
	content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
	background: var(--wp--preset--color--cyan);
}
@media (hover: hover) { .cd-section:hover .cd-ask { transform: translateX(6px); } }

/* ---------- Botones (core/button + .cd-btn) ---------- */
.wp-block-button__link,
.cd-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
	min-height: 56px; white-space: nowrap; text-decoration: none;
	transition:
		transform var(--cd-t-base) var(--cd-ease),
		box-shadow var(--cd-t-base) var(--cd-ease),
		background-color var(--cd-t-fast) var(--cd-ease);
}
.wp-block-button__link:active, .cd-btn:active { transform: scale(.98); }
@media (hover: hover) {
	.wp-block-button:not(.is-style-secundario):not(.is-style-blanco) .wp-block-button__link:hover { transform: translateY(-2px); }
	.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
	.wp-block-button.is-style-fill .wp-block-button__link:hover { box-shadow: var(--wp--custom--shadow-brand-hover); }
	.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background-color: #1FBF5B; }
}
.wp-block-button.is-style-secundario .wp-block-button__link:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand-hover); }
.wp-block-button.is-style-blanco .wp-block-button__link:hover { color: var(--wp--preset--color--brand-hover); }
.cd-btn--sm .wp-block-button__link, .cd-btn--sm { min-height: 46px; font-size: 1rem; padding: 0 1.25rem; }

/* Flecha y destellos del clic (los añade functions.php en botones con la clase cd-btn--arrow) */
.cd-btn__arrow { width: 20px; height: 20px; flex: none; transition: transform var(--cd-t-base) var(--cd-ease); }
.cd-btn__spark {
	position: absolute; top: -14px; right: -12px; width: 30px; height: 30px; pointer-events: none;
	opacity: 0; transform: scale(.6) rotate(-10deg);
	transition: opacity var(--cd-t-fast) var(--cd-ease), transform var(--cd-t-base) var(--cd-ease);
}
@media (hover: hover) {
	.wp-block-button__link:hover .cd-btn__arrow { transform: translateX(4px); }
	.wp-block-button__link:hover .cd-btn__spark { opacity: 1; transform: scale(1) rotate(0); }
}

/* Botón flotante de WhatsApp (§2.8) */
.cd-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 50;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--wp--preset--color--whatsapp); color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--float);
	transition: transform var(--cd-t-base) var(--cd-ease);
}
.cd-wa-float svg { width: 26px; height: 26px; }
@media (hover: hover) { .cd-wa-float:hover { transform: translateY(-2px); } }

/* ---------- Header y navegación (§2.1) ---------- */
.cd-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.cd-header__bar { min-height: var(--wp--custom--header-height); }
.cd-header .wp-block-site-logo img, .cd-header__logo img { height: var(--wp--custom--logo-height); width: auto; }
.cd-nav .wp-block-navigation-item__content {
	position: relative; padding: 6px 0;
	color: var(--wp--preset--color--ink-2); font-size: 1rem; font-weight: 500; text-decoration: none;
}
.cd-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--wp--preset--color--brand);
	transition: left var(--cd-t-base) var(--cd-ease), right var(--cd-t-base) var(--cd-ease);
}
.cd-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ink); }
.cd-nav .wp-block-navigation-item__content:hover::after,
.cd-nav .current-menu-item > .wp-block-navigation-item__content::after { left: 0; right: 0; }

/* ---------- Hilo de chat (§2.3) ---------- */
.cd-chat {
	position: relative; overflow: hidden;
	background: var(--wp--preset--color--chat-bg);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--custom--shadow-chat);
	font-family: var(--wp--preset--font-family--chat);
	font-size: var(--wp--preset--font-size--chat); line-height: 1.45;
	color: var(--wp--preset--color--ink);
}
.cd-chat__head {
	display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line);
}
.cd-chat__avatar {
	display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
	background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--brand-hover);
	font-weight: 700; font-size: .9375rem;
}
.cd-chat__name { font-weight: 600; }
.cd-chat__head .cd-chat-demo__reset { margin-left: auto; font-size: .875rem; min-height: 44px; }
.cd-chat__status { font-size: .8125rem; color: var(--wp--preset--color--success); }
.cd-chat__msgs { display: flex; flex-direction: column; gap: 11px; padding: 1.25rem; min-height: 380px; }
.cd-chat__msgs--auto { min-height: 0; }
.cd-chat__msg {
	max-width: 84%; padding: 11px 15px;
	border-radius: var(--wp--custom--radius--bubble);
}
.cd-chat__msg--in {
	align-self: flex-start;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-bottom-left-radius: var(--wp--custom--radius--bubble-tail);
}
.cd-chat__msg--out {
	align-self: flex-end;
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	border-bottom-right-radius: var(--wp--custom--radius--bubble-tail);
}
.cd-chat__meta { display: block; margin-top: 4px; font-size: .8125rem; color: var(--wp--preset--color--ink-3); }
.cd-chat__msg--out .cd-chat__meta { color: rgba(255,255,255,.85); text-align: right; }
.cd-chat__confirm { display: flex; align-items: center; gap: .75rem; border-color: #9DC2FB; }
.cd-chat__confirm svg { flex: none; width: 48px; height: 48px; }
.cd-chat__confirm-title { font-weight: 600; font-size: 1.0625rem; }
.cd-chat__confirm-text { font-size: .9375rem; color: var(--wp--preset--color--ink-2); }
.cd-chat__opts {
	display: flex; flex-wrap: wrap; gap: 8px; padding: 1rem 1.25rem 1.25rem;
	background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--line);
}
.cd-chip {
	font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer;
	min-height: 44px; padding: 10px 16px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--brand-hover);
	border: 1.5px solid var(--wp--preset--color--brand); border-radius: var(--wp--custom--radius--pill);
	transition: background-color var(--cd-t-fast), color var(--cd-t-fast), transform var(--cd-t-fast) var(--cd-ease);
}
.cd-chip:hover { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface); }
.cd-chip:active { transform: scale(.97); }
.cd-chat-demo__reset {
	font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
	min-height: 44px; padding: 8px 0; border: 0; background: none;
	color: var(--wp--preset--color--brand-hover); text-decoration: underline; text-underline-offset: 3px;
}

/* Arco decorativo del hero (excepción documentada) */
.cd-hero-chat { position: relative; padding: 28px 0 28px 28px; }
.cd-hero-chat__arc { position: absolute; left: -64px; top: -56px; width: 540px; height: 540px; pointer-events: none; }
.cd-hero-chat > :not(.cd-hero-chat__arc) { position: relative; }

/* ---------- Arco de progreso y pasos (§2.5) ---------- */
.cd-arc { width: 72px; height: 72px; display: block; }
.cd-arc__track { stroke: #E3EBF7; }
.cd-arc__fill { transition: stroke-dasharray var(--cd-t-arc) var(--cd-ease); }
.cd-step {
	position: relative; padding: 30px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line); border-radius: 22px;
	transition: transform .4s var(--cd-ease), border-color var(--cd-t-fast);
}
.cd-step h3 { margin: 18px 0 10px; }
.cd-step p { margin: 0; }
@media (hover: hover) {
	.cd-step:hover { transform: translateY(-4px); border-color: #9DC2FB; }
	.cd-step:hover .cd-arc__fill { stroke-dasharray: 179 300; }
}

/* ---------- Tarjeta de solución (§2.6) ---------- */
.cd-card {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: .75rem;
	padding: 30px; min-height: 250px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line); border-radius: 22px;
	text-decoration: none;
	transition: transform .4s var(--cd-ease), box-shadow .4s var(--cd-ease), border-color var(--cd-t-fast);
}
.cd-card h3 { margin: 0; }
.cd-card p { margin: 0; color: var(--wp--preset--color--ink-2); line-height: 1.55; }
.cd-card__price {
	display: flex; align-items: center; gap: 8px; margin-top: auto;
	font-size: 1.0625rem; font-weight: 600; transition: color var(--cd-t-fast);
}
.cd-card__go { width: 20px; height: 20px; opacity: 0; transform: translateX(-6px); transition: opacity var(--cd-t-fast), transform var(--cd-t-base) var(--cd-ease); }
.cd-card__media { overflow: hidden; }
.cd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--cd-ease); }
.cd-card--feature { background: var(--wp--preset--color--brand); border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface); }
.cd-card--feature h3, .cd-card--feature p, .cd-card--feature .cd-card__price { color: var(--wp--preset--color--surface); }
.cd-card--soft { background: #E6F9FF; border-color: #BDEBFA; }
.cd-card--media { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cd-card--media .cd-card__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: .75rem; }
@media (hover: hover) {
	.cd-card:hover { transform: translateY(-6px); border-color: var(--wp--preset--color--brand); box-shadow: var(--wp--custom--shadow-card-hover); }
	.cd-card:not(.cd-card--feature):hover .cd-card__price { color: var(--wp--preset--color--brand-hover); }
	.cd-card:hover .cd-card__go { opacity: 1; transform: none; }
	.cd-card:hover .cd-card__media img { transform: scale(1.05); }
}
.cd-card__art { display: block; width: 100%; height: auto; max-height: 132px; margin: 0 0 .75rem; transition: transform .5s var(--cd-ease); }
.cd-card__art--hero { max-height: none; flex: 1; min-height: 0; margin: .25rem 0 1.25rem; }
@media (hover: hover) { .cd-card:hover .cd-card__art { transform: translateY(-4px) scale(1.02); } }
.cd-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cd-bento__span-2 { grid-column: span 2; }
.cd-bento__span-2x2 { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.cd-bento__span-4 { grid-column: span 4; }

/* Hueco de captura real pendiente */
.cd-placeholder {
	padding: 10px 14px; border: 1.5px dashed currentColor; border-radius: var(--wp--custom--radius--md);
	font-size: .875rem; opacity: .8;
}

/* ---------- Lista sí / no ---------- */
.cd-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cd-checklist li { position: relative; padding-left: 36px; color: var(--wp--preset--color--ink); }
.cd-checklist li::before {
	content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cd-checklist--no li::before {
	background: var(--wp--preset--color--ink-3);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

/* ---------- Filas de precios (§3b) ---------- */
.cd-price-row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	padding: 20px 8px; border-bottom: 1px solid var(--wp--preset--color--line); border-radius: 10px;
	color: var(--wp--preset--color--ink); text-decoration: none;
	transition: background-color var(--cd-t-fast), padding var(--cd-t-base) var(--cd-ease);
}
.cd-price-row:last-child { border-bottom: 0; }
.cd-price-row__name { font-size: 1.25rem; font-weight: 600; transition: color var(--cd-t-fast); }
.cd-price-row__value { color: var(--wp--preset--color--ink-2); }
.cd-price-row__value strong { color: var(--wp--preset--color--ink); }
.cd-price-row:hover { background: var(--wp--preset--color--surface); padding-inline: 16px; color: var(--wp--preset--color--ink); }
.cd-price-row:hover .cd-price-row__name { color: var(--wp--preset--color--brand-hover); }

/* ---------- Foto nocturna con burbujas sin responder (§3b) ---------- */
.cd-night { position: relative; padding-right: 40px; }
.cd-night__photo { border-radius: 28px; overflow: hidden; }
.cd-night__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .8s var(--cd-ease); }
.cd-night__bubble {
	position: absolute; max-width: 300px; padding: 12px 16px;
	font-family: var(--wp--preset--font-family--chat); font-size: 1rem; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px 20px var(--wp--custom--radius--bubble-tail) 20px;
	box-shadow: var(--wp--custom--shadow-bubble);
	transition: transform .45s var(--cd-ease);
}
.cd-night__bubble--1 { right: 0; top: 28px; }
.cd-night__bubble--2 { right: 24px; top: 132px; }
.cd-night__bubble--3 { right: 8px; top: 236px; }
@media (hover: hover) {
	.cd-section:hover .cd-night__photo img { transform: scale(1.03); }
	.cd-section:hover .cd-night__bubble--1 { transform: translateX(-8px); }
	.cd-section:hover .cd-night__bubble--2 { transform: translateX(-14px); }
	.cd-section:hover .cd-night__bubble--3 { transform: translateX(-20px); }
}

/* ---------- Tarjeta azul del CTA final ---------- */
.cd-cta-card {
	position: relative; overflow: hidden;
	padding: clamp(2.5rem, 6vw, 5.5rem);
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--cta);
}
.cd-cta-card :is(h2, p) { color: var(--wp--preset--color--surface); position: relative; }
.cd-cta-card p { font-size: var(--wp--preset--font-size--lead); } /* texto blanco solo ≥ 19 px */
.cd-cta-card__arc { position: absolute; right: -90px; bottom: -150px; width: 460px; height: 460px; pointer-events: none; }
.cd-cta-card > :not(.cd-cta-card__arc) { position: relative; }

/* ---------- FAQ (core/details) ---------- */
.cd-faq .wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--ink);
}
.cd-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.cd-faq .wp-block-details summary::after {
	content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--brand);
	transition: transform var(--cd-t-base) var(--cd-ease);
}
.cd-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.cd-faq .wp-block-details > :not(summary) { margin-top: .75rem; max-width: 64ch; }

/* ---------- Formulario (§2.7) ---------- */
.cd-form { display: grid; gap: var(--wp--preset--spacing--5); }
.cd-field { display: grid; gap: 6px; }
.cd-field label { font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-field :is(input, select, textarea) {
	font: inherit; min-height: 52px; padding: 12px 14px;
	color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--md);
	transition: border-color var(--cd-t-fast);
}
.cd-field :is(input, select, textarea):hover { border-color: #9DC2FB; }
.cd-field :is(input, select, textarea):focus-visible { border-color: var(--wp--preset--color--brand); }
.cd-field[aria-invalid="true"] :is(input, select, textarea), .cd-field--error :is(input, select, textarea) { border-color: var(--wp--preset--color--error); }
.cd-field__error { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--error); }
.cd-field__hint { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }

/* ---------- Footer ---------- */
.cd-footer { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--line); }
.cd-footer a { color: var(--wp--preset--color--ink-2); text-decoration: none; font-size: 1rem; transition: color var(--cd-t-fast); }
.cd-footer a:hover { color: var(--wp--preset--color--brand-hover); }
.cd-footer__note { font-size: 1rem; color: var(--wp--preset--color--ink-3); }

/* ---------- Responsive estructural ---------- */
@media (max-width: 1023px) {
	.cd-hero-chat__arc { display: none; }
	.cd-bento { grid-template-columns: 1fr 1fr; }
	.cd-bento__span-2x2, .cd-bento__span-4 { grid-column: span 2; }
}
@media (max-width: 767px) {
	.cd-bento { grid-template-columns: 1fr; }
	.cd-bento > * { grid-column: auto !important; grid-row: auto !important; min-height: 0; }
	.cd-hero-chat { padding: 0; }
	.cd-chat__msgs { min-height: 0; }
	.cd-night { padding-right: 0; }
	.cd-night__bubble { position: static; margin-top: 10px; max-width: 100%; transform: none !important; }
}

/* ---------- Hero: escenario del producto (A · consultorio real; la B se descartó el 17 nov) ---------- */
.cd-hero { position: relative; overflow: hidden;
	background:
		radial-gradient(70% 60% at 85% 30%, #DDEBFF 0%, rgba(221,235,255,0) 70%),
		linear-gradient(180deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--bg) 100%);
}
.cd-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
	padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6.5rem);
}
.cd-hero h1 { margin: 0 0 var(--wp--preset--spacing--6); }
.cd-hero .cd-lead { margin: 0 0 2.375rem; max-width: 42ch; }
.cd-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.cd-stage { position: relative; isolation: isolate; }
.cd-stage__arc { position: absolute; z-index: -1; pointer-events: none; }
.cd-stage__arc path.cd-stage__arc-line { stroke-dasharray: 0 300; animation: cd-arc-draw var(--cd-t-arc) var(--cd-ease) .2s forwards; }
@keyframes cd-arc-draw { to { stroke-dasharray: 220 300; } }
.cd-stage__notice {
	position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
	max-width: 270px; padding: 10px 14px 10px 10px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
	box-shadow: var(--wp--custom--shadow-bubble);
	font-family: var(--wp--preset--font-family--chat); font-size: .9375rem; line-height: 1.35;
}
.cd-stage__notice-dot {
	flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--brand-hover); font-weight: 700; font-size: .8125rem;
}
.cd-stage__notice small { display: block; color: var(--wp--preset--color--ink-3); font-size: .8125rem; }
.cd-stage .cd-chat { z-index: 2; }

/* A · Consultorio real: foto 4:5 + chat flotando encima */
.cd-stage--photo { padding: 0 0 2.5rem; }
.cd-stage--photo .cd-stage__photo {
	width: 86%; margin-left: auto; border-radius: 28px; overflow: hidden;
	aspect-ratio: 4 / 5; background: var(--wp--preset--color--surface-2);
	box-shadow: 0 30px 60px -36px rgba(10,31,61,.35);
}
.cd-stage--photo .cd-stage__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-stage--photo .cd-chat-demo { position: absolute; left: 0; bottom: 0; width: min(340px, 62%); }
.cd-stage--photo .cd-chat-demo .cd-chat__msgs { height: 220px; }
.cd-stage--photo .cd-stage__arc { width: 112%; aspect-ratio: 1; left: -2%; top: -10%; }
.cd-stage--photo .cd-stage__notice { right: -18px; top: 54%; }
.cd-stage__tag {
	position: absolute; z-index: 3; left: 16%; top: -18px;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--pill); font-size: .9375rem; font-weight: 600;
	box-shadow: var(--wp--custom--shadow-bubble);
}
.cd-stage__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--cyan); }

/* Chat del hero: alto contenido y scroll interno (sin CLS) */
.cd-chat-demo .cd-chat__msgs { height: 340px; min-height: 0; overflow-y: auto; scroll-behavior: smooth; overscroll-behavior: contain; }
.cd-chat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.cd-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--ink-3); opacity: .5; animation: cd-typing 1s infinite; }
.cd-chat__typing span:nth-child(2) { animation-delay: .15s; } .cd-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cd-typing { 50% { opacity: 1; transform: translateY(-2px); } }
.cd-chat__confirm--new { animation: cd-pop .45s var(--cd-ease); }
@keyframes cd-pop { from { opacity: 0; transform: scale(.94); } }

@media (max-width: 1023px) {
	.cd-hero__grid { grid-template-columns: 1fr; }
	.cd-stage { max-width: 560px; }
}
@media (max-width: 767px) {
	.cd-stage--photo { padding: 0; }
	.cd-stage--photo .cd-stage__photo { width: 100%; aspect-ratio: 4 / 3; }
	.cd-stage--photo .cd-chat-demo { position: relative; width: 100%; margin-top: -72px; padding-inline: 12px; }
	.cd-stage__tag { left: 12px; top: 12px; }
	.cd-stage--photo .cd-stage__notice { display: none; }
	.cd-stage--photo .cd-stage__photo img { object-position: 62% 18%; }
	.cd-stage__arc { display: none; }
	.cd-chat-demo .cd-chat__msgs { height: 300px; }
}

/* ==========================================================================
   Paso 4 · Plantillas de bloque (Hilo 3). Estructura, ritmo y cabecera/pie.
   ========================================================================== */

/* Sin huecos automáticos entre cabecera, main, secciones y pie */
body .wp-site-blocks > * { margin-block: 0; }
.wp-block-group.cd-main > * { margin-block: 0; }
:is(.cd-hero__grid, .cd-split, .cd-steps, .cd-stage, .cd-lists, .cd-cta-card, .cd-footer__grid).wp-block-group > * { margin-block: 0; }

/* Ritmo vertical dentro de secciones (equivale al de la maqueta aprobada) */
:is(.cd-section, .cd-hero) .cd-ask { margin: 0 0 var(--wp--preset--spacing--5); }
.cd-section h2.wp-block-heading { margin-block: .83em; }
.cd-section .cd-lead { margin-block: 1em; }
.cd-section .cd-lead.cd-lead--gap { margin-bottom: var(--wp--preset--spacing--12); }
.cd-hero .cd-hero__ctas.wp-block-buttons { margin-block: 0; }
.cd-split__text > .wp-block-buttons { margin-top: var(--wp--preset--spacing--8); }

/* Rejillas */
.cd-split {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.cd-split--top { align-items: start; }
.cd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--wp--preset--spacing--6); }
.cd-wrap > .cd-steps { margin-top: 52px; }
.cd-lists {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 28px; align-items: start; margin-top: var(--wp--preset--spacing--8);
}
.cd-section h3.cd-list-title { margin: 0 0 var(--wp--preset--spacing--4); font-size: 1.375rem; }
.cd-card--feature h3 { font-size: 1.875rem; }
.cd-card--media .cd-card__media { min-height: 240px; }

/* Botón WhatsApp con su ícono (sin SVG en el texto del botón) */
.wp-block-button.is-style-whatsapp .wp-block-button__link::before {
	content: ""; flex: none; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.3-4A8.5 8.5 0 1 1 8 19.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.3-4A8.5 8.5 0 1 1 8 19.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tarjeta azul del CTA final */
.cd-cta-card { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.cd-cta-card__text { max-width: 620px; }
.cd-cta-card h2.wp-block-heading { margin: 0 0 14px; }
.cd-cta-card .cd-cta-card__text p { margin: 0; }
.cd-cta-card__btns.wp-block-buttons { gap: 14px; }

/* Cabecera: logo · menú · botón. Hamburguesa por debajo de 1024 px (el menú completo no cabe antes) */
/* El desenfoque va en un pseudo-elemento: backdrop-filter en .cd-header encerraría el menú (position: fixed) dentro de la cabecera */
.cd-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cd-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.cd-header .cd-header__bar { min-height: var(--wp--custom--header-height); gap: var(--wp--preset--spacing--6); }
.cd-header__logo { display: block; line-height: 0; }
.cd-header .cd-header__end { gap: var(--wp--preset--spacing--8); align-items: center; }
.wp-block-navigation.cd-nav { gap: var(--wp--preset--spacing--8); }
.cd-nav .wp-block-navigation__container { gap: var(--wp--preset--spacing--8); }
.cd-nav .wp-block-navigation__responsive-container-open,
.cd-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--wp--preset--color--ink); }
.cd-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
@media (min-width: 600px) and (max-width: 1023px) {
	.cd-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cd-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.cd-nav .cd-nav__cta { display: none; }
.cd-nav .wp-block-navigation__responsive-container.is-menu-open { padding: var(--wp--preset--spacing--6) clamp(1.25rem, 0.5rem + 2.5vw, 2rem); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }
.cd-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: var(--wp--preset--spacing--14); }
.cd-nav .is-menu-open .wp-block-navigation__container { gap: var(--wp--preset--spacing--3); }
.cd-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; font-weight: 600; color: var(--wp--preset--color--ink); padding: 8px 0; }
.cd-nav .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { align-items: flex-start; }
body:has(.cd-nav .is-menu-open) .cd-wa-float { display: none; }
.cd-nav .is-menu-open .cd-nav__cta { display: block; margin-top: var(--wp--preset--spacing--4); }
.cd-nav .is-menu-open .cd-nav__cta .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; min-height: 56px; padding: 0 1.75rem;
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--md); font-size: 1.125rem;
}
.cd-nav .is-menu-open .cd-nav__cta .wp-block-navigation-item__content::after { display: none; }
@media (max-width: 599px) { .cd-header .wp-block-buttons.cd-header__cta { display: none; } }
.admin-bar .cd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cd-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cd-header { top: 0; } }

/* Pie: logo sin eslogan + eslogan como texto (a 64 px el eslogan del SVG medía ~4 px y no se leía) */
.cd-footer .cd-footer__grid { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--10); justify-content: space-between; padding-block: 56px 44px; }
.cd-footer__brand { max-width: 340px; }
.cd-footer__logo { display: inline-block; line-height: 0; }
.cd-footer__logo img { height: 48px; width: auto; display: block; }
.cd-footer .cd-footer__brand .cd-footer__slogan { margin: 10px 0 0; font-size: var(--wp--preset--font-size--small); font-weight: 600; letter-spacing: .01em; color: var(--wp--preset--color--ink-2); }
.cd-footer .cd-footer__brand .cd-footer__note { margin: 14px 0 0; }
.cd-footer__nav { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--14); }
.cd-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--3); }
.cd-footer .cd-footer__title { margin: 0 0 var(--wp--preset--spacing--3); font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--ink); }

/* Páginas, entradas y 404 */
.cd-page .wp-block-post-title { margin: 0 0 var(--wp--preset--spacing--8); }
.cd-meta { color: var(--wp--preset--color--ink-3); font-size: var(--wp--preset--font-size--small); }
.cd-featured img { border-radius: var(--wp--custom--radius--xl); }
.cd-404 { min-height: 60vh; }
.cd-404 h1.wp-block-heading { margin: 0 0 var(--wp--preset--spacing--6); }
/* ==========================================================================
   Paso 5 · Especialidades y demos (Hilo 3)
   ========================================================================== */
.cd-entry .cd-wrap > h1 { margin: 0 0 var(--wp--preset--spacing--6); }
.cd-entry .cd-hero__ctas.wp-block-buttons { margin-top: var(--wp--preset--spacing--8); }
.cd-cards .cd-card { min-height: 0; }
.cd-badge {
	display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px;
	border: 1px dashed var(--wp--preset--color--ink-3); border-radius: var(--wp--custom--radius--pill);
	font-size: .8125rem; font-weight: 600; color: var(--wp--preset--color--ink-3);
}
.wp-block-post-content.cd-entry-content:empty { display: none; }
/* ==========================================================================
   Paso 6 · Accesibilidad (Hilo 3)
   ========================================================================== */
.cd-chat__opts:focus { outline: none; } /* recibe el foco solo de paso, mientras el asistente responde */
.cd-header__logo { padding-block: 2px; } /* área táctil de 44 px */
.cd-footer .cd-footer__col ul { gap: 0; }
.cd-footer__col a { display: inline-flex; align-items: center; min-height: 44px; } /* área táctil de 44 px */

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
	.wp-block-button__link:hover, .cd-card:hover, .cd-step:hover, .cd-wa-float:hover,
	.cd-section:hover .cd-ask, .cd-section:hover .cd-night__bubble { transform: none !important; }
	.cd-stage__arc path.cd-stage__arc-line { stroke-dasharray: 220 300; }
	.cd-card:hover .cd-card__art { transform: none !important; }
}

/* ---------- Hilo 4 · bloque 3: páginas de venta ---------- */
.cd-section .cd-after-cards { margin-top: var(--wp--preset--spacing--8); }
.cd-section .cd-note { margin-top: var(--wp--preset--spacing--4); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-faq { margin-top: var(--wp--preset--spacing--8); max-width: 760px; }
.cd-founder { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--3); }
.cd-founder__photo { width: 160px; aspect-ratio: 1; text-align: center; font-size: .8125rem; display: grid; place-items: center; border-radius: var(--wp--custom--radius--lg); background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink-3); }
.cd-founder h3 { margin: 0; }
.cd-founder p { margin: 0; color: var(--wp--preset--color--ink-3); }
.cd-section .cd-split + .cd-note, .cd-split .cd-chat + .cd-note { margin-top: var(--wp--preset--spacing--4); }.cd-chat__msgs .cd-chat__opts { background: transparent; border: 0; padding: 0; margin: 2px 0; }

/* ==========================================================================
   Hilo 4 · Bloque 2 · Precios por paquete (/precios/)
   ========================================================================== */
.cd-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--wp--preset--spacing--5); align-items: stretch; margin-top: var(--wp--preset--spacing--8); }
.cd-plan {
	position: relative; display: flex; flex-direction: column; gap: 1rem;
	padding: 32px 28px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line); border-radius: 22px;
}
.cd-plan > * { margin: 0; }
.cd-plan h3 { margin: 0; }
.cd-plan--featured { border: 2px solid var(--wp--preset--color--brand); box-shadow: 0 24px 48px -28px rgba(16,109,253,.45); }
.cd-plan--addon { background: var(--wp--preset--color--surface-2); border-style: dashed; }
.cd-plan__tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 26px; }
.cd-plan__tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--wp--custom--radius--pill); font-size: .8125rem; font-weight: 600; background: var(--wp--preset--color--brand); color: #fff; }
.cd-plan__tag--soft { background: transparent; color: var(--wp--preset--color--ink-3); border: 1px dashed var(--wp--preset--color--ink-3); }
.cd-plan__phrase { font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-plan__for, .cd-plan p { color: var(--wp--preset--color--ink-2); line-height: 1.55; }
.cd-plan p.cd-plan__phrase, .cd-plan p.cd-plan__upgrade { color: var(--wp--preset--color--ink); }
.cd-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cd-plan__price strong { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--wp--preset--color--ink); }
.cd-plan p.cd-plan__setup { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-plan__upgrade { font-weight: 600; }
.cd-plan .cd-checklist { gap: 10px; }
.cd-plan__cta { margin-top: auto; padding-top: var(--wp--preset--spacing--3); }
.cd-plan__cta .wp-block-button { width: 100%; }
.cd-plan__cta .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
.cd-compare { overflow-x: auto; margin: var(--wp--preset--spacing--8) 0 0; border: 1px solid var(--wp--preset--color--line); border-radius: 22px; background: var(--wp--preset--color--surface); }
.cd-compare table { width: 100%; min-width: 560px; border-collapse: collapse; }
.cd-compare :is(th, td) { padding: 16px 20px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.cd-compare tbody tr:last-child :is(th, td) { border-bottom: 0; }
.cd-compare thead th { font-size: 1.0625rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.cd-compare tbody td:first-child { font-weight: 500; color: var(--wp--preset--color--ink); }
.cd-compare td { color: var(--wp--preset--color--ink-2); }
.cd-price-row__name .cd-badge { font-size: .8125rem; }
.cd-entry-content :is(p, li):empty { display: none; }
/* ==========================================================================
   Hilo 8 · Demo del consultorio (franja, web de Odontología Alba, chat estilo WhatsApp, lead)
   ========================================================================== */

/* ---------- Franja de Click-Doctor (sustituye a la cabecera en la ficha del demo) ---------- */
.cd-demo-bar {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--preset--color--surface-2);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .cd-demo-bar { top: var(--wp-admin--admin-bar--height, 32px); }
.cd-demo-bar__in {
	display: flex; align-items: center; gap: 16px;
	max-width: 1240px; margin-inline: auto; padding: 8px 32px; min-height: 56px;
}
.cd-demo-bar__logo { display: flex; flex: none; }
.cd-demo-bar__logo img { height: 28px; width: auto; display: block; }
.cd-demo-bar__txt { margin: 0; flex: 1; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.cd-demo-bar__txt strong { color: var(--wp--preset--color--ink); }
.cd-demo-bar__short { display: none; }
#chat, #quiero-el-mio, .cd-leadform { scroll-margin-top: 88px; }
.cd-demo-bar__cta {
	flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--md); font-weight: 600; font-size: 1rem; text-decoration: none;
	transition: background-color var(--cd-t-fast) var(--cd-ease), transform var(--cd-t-fast) var(--cd-ease);
}
.cd-demo-bar__cta:hover { background: var(--wp--preset--color--brand-hover); color: var(--wp--preset--color--surface); }
.cd-demo-bar__cta:active { transform: scale(.98); }

/* ---------- Cabecera propia del consultorio ficticio ---------- */
.cd-entry-content > .cd-alba-nav { max-width: none !important; margin-block: 0; }
.cd-alba-nav { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); }
.cd-alba-nav__in { display: flex; align-items: center; gap: 28px; max-width: 1240px; margin-inline: auto; padding: 12px 32px; }
.cd-alba-nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; color: var(--wp--preset--color--ink); }
.cd-alba-nav__mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--brand-hover); font-size: .875rem;
}
.cd-alba-nav__links { display: flex; gap: 24px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.cd-alba-nav__links a { color: var(--wp--preset--color--ink-2); text-decoration: none; font-weight: 500; }
.cd-alba-nav__links a:hover { color: var(--wp--preset--color--brand-hover); text-decoration: underline; text-underline-offset: 4px; }
.cd-alba-nav__cta {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	border: 1.5px solid var(--wp--preset--color--brand); border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--brand-hover); font-weight: 600; text-decoration: none;
	transition: background-color var(--cd-t-fast) var(--cd-ease), color var(--cd-t-fast) var(--cd-ease);
}
.cd-alba-nav__cta:hover { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface); }

/* ---------- Hero del consultorio: texto + chat real ---------- */
.cd-alba-hero .cd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cd-alba-hero__text { padding-top: clamp(0rem, 3vw, 3rem); }
.cd-alba-hero .cd-leadform { max-width: 44ch; }
.cd-alba-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cd-alba-facts li {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2);
}
.cd-alba-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--brand); }

/* ---------- Chat del demo (estilo WhatsApp con el sistema de DESIGN.md; sin logo de WhatsApp) ---------- */
.cd-wa { position: relative; width: 100%; max-width: 520px; margin-left: auto; }
.cd-wa .cd-wa__tag { position: static; display: inline-flex; margin: 0 0 12px 8px; transition: background-color var(--cd-t-base) var(--cd-ease); }
.cd-wa.is-secretaria .cd-wa__tag { background: var(--wp--preset--color--brand-hover); }
.cd-wa__panel { display: flex; flex-direction: column; }
.cd-wa__head { gap: 12px; padding: 14px 16px; }
.cd-wa__who { min-width: 0; flex: 1; }
.cd-wa__who .cd-chat__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-wa.is-secretaria .cd-chat__status { color: var(--wp--preset--color--ink-3); }
.cd-wa.is-secretaria .cd-chat__avatar { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface); }

/* Interruptor «Prueba como secretaria» */
.cd-wa__switch {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	min-height: 44px; padding: 4px 4px 4px 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: .875rem; font-weight: 600; color: var(--wp--preset--color--ink-2); text-align: left; line-height: 1.2;
}
.cd-wa__switch-label { max-width: 9.5em; }
.cd-wa__track {
	position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px;
	background: #C8D3E3; transition: background-color var(--cd-t-fast) var(--cd-ease);
}
.cd-wa__thumb {
	position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--surface); box-shadow: 0 1px 3px rgba(10,31,61,.3);
	transition: transform 200ms var(--cd-ease);
}
.cd-wa__switch[aria-checked="true"] .cd-wa__track { background: var(--wp--preset--color--brand); }
.cd-wa__switch[aria-checked="true"] .cd-wa__thumb { transform: translateX(16px); }
.cd-wa__switch[aria-checked="true"] { color: var(--wp--preset--color--brand-hover); }
.cd-wa__switch:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; border-radius: 8px; }

/* Mensajes */
.cd-wa .cd-wa__msgs { height: clamp(380px, 52vh, 520px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; }
.cd-wa__msgs[hidden] { display: none; }
.cd-wa .cd-chat__msg { max-width: 86%; overflow-wrap: anywhere; }
.cd-wa__txt { display: block; white-space: normal; }
.cd-wa .cd-chat__msg--in strong { font-weight: 600; }
.cd-wa .cd-chat__msg--out .cd-wa__txt { white-space: pre-wrap; }
.cd-wa__sys {
	align-self: center; max-width: 90%; padding: 6px 12px; border-radius: 10px;
	background: rgba(10,31,61,.06); color: var(--wp--preset--color--ink-2); font-size: .875rem; text-align: center;
}

/* Tarjeta de cita */
.cd-wa__card { min-width: min(280px, 86%); }
.cd-wa__card-name { font-size: .9375rem; color: var(--wp--preset--color--ink-3); }
.cd-wa__card--off { border-style: dashed; border-color: var(--wp--preset--color--line); }
.cd-wa__card--off .cd-chat__confirm-title { color: var(--wp--preset--color--ink-2); }

/* Recordatorio simulado (plantilla de Meta con botones) */
.cd-wa__rec { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 86%; margin-top: 6px; }
.cd-wa__rec-label {
	align-self: flex-start; padding: 4px 10px; border-radius: 999px;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface);
	font-size: .8125rem; font-weight: 600;
}
.cd-wa .cd-wa__rec-msg { max-width: 100%; padding-bottom: 0; overflow: hidden; }
.cd-wa__rec-pie { display: block; margin-top: 6px; font-size: .8125rem; color: var(--wp--preset--color--ink-3); }
.cd-wa__rec-btns { display: flex; margin: 10px -15px 0; border-top: 1px solid var(--wp--preset--color--line); }
.cd-wa__rec-btn {
	flex: 1; min-height: 46px; border: 0; background: none; cursor: pointer;
	font: inherit; font-weight: 600; color: var(--wp--preset--color--brand-hover);
	transition: background-color var(--cd-t-fast) var(--cd-ease);
}
.cd-wa__rec-btn + .cd-wa__rec-btn { border-left: 1px solid var(--wp--preset--color--line); }
.cd-wa__rec-btn:hover:not(:disabled) { background: var(--wp--preset--color--surface-2); }
.cd-wa__rec-btn:active:not(:disabled) { transform: scale(.97); }
.cd-wa__rec-btn:disabled { color: var(--wp--preset--color--ink-3); cursor: default; }
.cd-wa__rec-btn:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: -3px; }
.cd-wa__rec-nota { font-size: .8125rem; color: var(--wp--preset--color--ink-3); padding-left: 4px; }
.cd-wa__nota { align-self: flex-start; max-width: 86%; padding: 8px 12px; border-left: 3px solid var(--wp--preset--color--brand); border-radius: 0 10px 10px 0; background: var(--wp--preset--color--surface-2); font-size: .875rem; line-height: 1.45; color: var(--wp--preset--color--ink-2); }

/* Botón de WhatsApp dentro del chat (traspaso o fallo) */
.cd-wa__action { align-self: flex-start; }
.cd-wa__wa-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	background: var(--wp--preset--color--whatsapp); color: var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--md); font-weight: 600; font-size: .9375rem; text-decoration: none;
	transition: background-color var(--cd-t-fast) var(--cd-ease);
}
.cd-wa__wa-btn:hover { background: #1EBE5A; color: var(--wp--preset--color--ink); }

/* Sugerencias, aviso de mensajes restantes y caja de texto */
.cd-wa__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 4px; background: var(--wp--preset--color--chat-bg); }
.cd-wa__chips[hidden] { display: none; }
.cd-wa__left { margin: 0; padding: 6px 16px; background: var(--wp--preset--color--chat-bg); font-size: .875rem; color: var(--wp--preset--color--ink-2); }
.cd-wa__form {
	display: flex; align-items: flex-end; gap: 8px; padding: 12px;
	background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--line);
}
.cd-wa__input {
	flex: 1; min-height: 48px; max-height: 132px; resize: none; padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--line); border-radius: 24px; background: var(--wp--preset--color--bg);
	font: inherit; font-size: 1rem; line-height: 1.4; color: var(--wp--preset--color--ink);
}
.cd-wa__input::placeholder { color: var(--wp--preset--color--ink-3); }
.cd-wa__input:focus { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 0; border-color: transparent; }
.cd-wa__send {
	display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	transition: background-color var(--cd-t-fast) var(--cd-ease), transform var(--cd-t-fast) var(--cd-ease), opacity var(--cd-t-fast) var(--cd-ease);
}
.cd-wa__send svg { width: 22px; height: 22px; }
.cd-wa__send:hover:not(:disabled) { background: var(--wp--preset--color--brand-hover); }
.cd-wa__send:active:not(:disabled) { transform: scale(.95); }
.cd-wa__send:disabled { opacity: .45; cursor: default; }
.cd-wa__send:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.cd-wa__note { margin: 12px 4px 0; font-size: .875rem; line-height: 1.5; color: var(--wp--preset--color--ink-3); }
.cd-wa__note a { color: var(--wp--preset--color--brand-hover); }
.cd-wa .screen-reader-text, .cd-leadform .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Entrada de cada mensaje: ease-out corto, solo transform y opacity (se ve decenas de veces: discreta) */
.cd-wa--enter { animation: cd-wa-in 200ms cubic-bezier(.23,1,.32,1) both; }
.cd-chat__msg--out.cd-wa--enter { transform-origin: right bottom; }
.cd-chat__msg--in.cd-wa--enter, .cd-wa__rec.cd-wa--enter { transform-origin: left bottom; }
@keyframes cd-wa-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Precios, horario y fotos del consultorio ---------- */
.cd-alba-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-top: var(--wp--preset--spacing--10); }
.cd-alba-prices__list, .cd-alba-hours { margin: 0; }
.cd-alba-prices__list > div, .cd-alba-hours > div {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line);
}
.cd-alba-prices__list dt, .cd-alba-hours dt { font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-alba-prices__list dt span { display: block; font-weight: 400; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-alba-prices__list dd { margin: 0; flex: none; font-weight: 600; color: var(--wp--preset--color--ink); font-variant-numeric: tabular-nums; }
.cd-alba-hours { margin-top: var(--wp--preset--spacing--6); }
.cd-alba-hours dd { margin: 0; text-align: right; color: var(--wp--preset--color--ink-2); }
.cd-alba-info { margin: var(--wp--preset--spacing--6) 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--wp--preset--color--ink-2); }
.cd-alba-info strong { color: var(--wp--preset--color--ink); }
.cd-alba-cta { margin-top: var(--wp--preset--spacing--6); }
.cd-alba-link { font-weight: 600; color: var(--wp--preset--color--brand-hover); text-underline-offset: 4px; }
.cd-alba-photo { margin: 0; border-radius: var(--wp--custom--radius--xl); overflow: hidden; aspect-ratio: 3 / 2; background: var(--wp--preset--color--surface-2); }
.cd-alba-photo--portrait { aspect-ratio: 4 / 5; max-width: 480px; }
.cd-alba-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Formulario «Quiero el mío» ---------- */
.cd-leadform {
	max-width: 760px; margin: var(--wp--preset--spacing--8) auto 0; padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
}
.cd-leadform[hidden] { display: none; }
.cd-leadform__title { margin: 0 0 8px; }
.cd-leadform__intro { margin: 0 0 var(--wp--preset--spacing--6); color: var(--wp--preset--color--ink-2); }
.cd-leadform__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cd-field { display: flex; flex-direction: column; gap: 6px; }
.cd-field label { font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-field input:not([type="checkbox"]), .cd-field select {
	min-height: 52px; padding: 0 14px; border: 1px solid #B9C7DC; border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface); font: inherit; font-size: 1rem; color: var(--wp--preset--color--ink);
}
.cd-field input:focus, .cd-field select:focus { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 0; border-color: transparent; }
.cd-field [aria-invalid="true"] { border-color: var(--wp--preset--color--error); }
.cd-field__help { margin: 0; font-size: .875rem; color: var(--wp--preset--color--ink-3); }
.cd-field__error { margin: 0; font-size: .9375rem; font-weight: 500; color: var(--wp--preset--color--error); }
.cd-field--check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.cd-field--check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--wp--preset--color--brand); }
.cd-field--check label { font-weight: 400; color: var(--wp--preset--color--ink-2); }
.cd-field--check .cd-field__error { grid-column: 2; }
.cd-leadform__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--wp--custom--radius--sm); background: #FDEDED; color: var(--wp--preset--color--error); font-weight: 500; }
.cd-leadform__status[hidden], .cd-field__error[hidden] { display: none; }
.cd-leadform__submit { grid-column: 1 / -1; }
.cd-leadform__form.is-busy { opacity: .7; pointer-events: none; }
.cd-leadform__ok { display: flex; align-items: center; gap: 16px; }
.cd-leadform__ok svg { flex: none; width: 56px; height: 56px; }
.cd-leadform__ok p { margin: 0; font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--ink); }
.cd-leadform__ok:focus { outline: none; }
.cd-demo-quiero .cd-cta-card__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cd-demo-quiero button.wp-block-button__link { cursor: pointer; border: 0; font: inherit; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.cd-alba-hero .cd-hero__grid { grid-template-columns: 1fr; }
	.cd-wa { margin-inline: auto; }
	.cd-alba-nav__links { display: none; }
	.cd-alba-nav__cta { margin-left: auto; }
}
@media (max-width: 767px) {
	.cd-demo-bar__in { padding: 6px 16px; gap: 10px; }
	.cd-demo-bar__logo img { height: 24px; }
	.cd-demo-bar__txt { font-size: .8125rem; line-height: 1.35; }
	.cd-alba-nav__in { padding: 10px 20px; }
	.cd-wa .cd-wa__msgs { height: min(52vh, 420px); }
	.cd-wa__head { flex-wrap: wrap; row-gap: 4px; }
	.cd-wa__switch { order: 3; width: 100%; padding: 0 0 0 56px; min-height: 40px; }
	.cd-wa__switch-label { max-width: none; }
	.cd-demo-bar__long { display: none; }
	.cd-demo-bar__short { display: inline; }
	.cd-demo-bar__cta { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
	.cd-alba-nav__brand, .cd-alba-nav__cta { white-space: nowrap; }
	.cd-alba-hero .cd-hero__grid { padding-top: 1.75rem; }
	.cd-alba-hero .cd-ask, .cd-alba-facts { display: none; }
	.cd-alba-hero .cd-lead { margin-bottom: 0; }
	.cd-leadform__form { grid-template-columns: 1fr; }
	.cd-alba-photo--portrait { max-width: none; aspect-ratio: 4 / 3; }
	.cd-alba-photo--portrait img { object-position: 30% 20%; }
}
@media (max-width: 479px) {
	.cd-demo-bar__short { display: none; }
	.cd-demo-bar__txt strong { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }
}
@media (prefers-reduced-motion: reduce) {
	.cd-wa--enter { animation: none; }
	.cd-wa__thumb, .cd-wa__track { transition: none; }
}

/* ---------- Hilo 8 · Capturas reales del demo ---------- */
.cd-card__shot { display: block; width: 100%; height: 300px; flex: 1; min-height: 0; object-fit: cover; object-position: top center; margin: .25rem 0 1.25rem; border-radius: var(--wp--custom--radius--lg); box-shadow: 0 24px 48px -24px rgba(10,31,61,.45); transition: transform .5s var(--cd-ease); }
@media (hover: hover) { .cd-card:hover .cd-card__shot { transform: translateY(-4px) scale(1.02); } }
@media (max-width: 767px) { .cd-card__shot { height: 320px; flex: none; } .cd-card:hover .cd-card__shot { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-card__shot { transition: none; } }
.cd-shot { margin: var(--wp--preset--spacing--8) 0; }
.cd-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--xl); box-shadow: 0 24px 48px -24px rgba(10,31,61,.18); }

/* ---------- Hilo 4 · /cotizacion/ (formulario en la cabecera) ---------- */
.cd-split > .cd-leadform { margin: 0; max-width: none; }
.cd-leadform__after { grid-column: 1 / -1; margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-leadform p.cd-leadform__title { margin: 0 0 var(--wp--preset--spacing--6); font-weight: 600; line-height: 1.25; color: var(--wp--preset--color--ink); }

/* Fundadores sin foto: círculo con iniciales (Hilo 9) */
.cd-founder__photo--iniciales { width: 96px; border-radius: 50%; background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface); font-family: var(--wp--preset--font-family--outfit); font-size: 2rem; font-weight: 700; letter-spacing: .02em; }

/* ========== Hilo 9 · Bloque 3 (auditoría) ========== */
/* Anclas y foco por debajo de la cabecera fija y de la franja del demo */
html { scroll-padding-top: 96px; }
/* Preguntas frecuentes: área táctil de 44 px */
.cd-faq .wp-block-details summary { min-height: 44px; align-items: center; }
/* Barra de Odontología Alba en teléfonos: la marca se encoge, el botón no se corta */
@media (max-width: 479px) {
	.cd-alba-nav__in { gap: 12px; padding: 10px 16px; }
	.cd-alba-nav__brand { min-width: 0; gap: 8px; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cd-alba-nav__mark { flex: none; width: 34px; height: 34px; }
	.cd-alba-nav__cta { flex: none; padding: 0 14px; }
}
/* Firma del pie */
.cd-footer__bottom { border-top: 1px solid var(--wp--preset--color--line); padding-block: 14px 18px; }
.cd-footer .cd-footer__sign { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-footer .cd-footer__sign a { font-size: inherit; color: var(--wp--preset--color--ink-2); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   Hilo 10 · Home: dos productos + lo que traen los dos
   ========================================================================== */
.cd-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cd-product { min-height: 540px; }
.cd-product h3 { font-size: 1.875rem; }
.cd-card p.cd-product__phrase { font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-card--feature p.cd-product__phrase { color: var(--wp--preset--color--surface); }
.cd-card__shot--web { object-position: left top; }
.cd-section h3.cd-incluye__title { margin: var(--wp--preset--spacing--8) 0 var(--wp--preset--spacing--4); font-size: 1.375rem; }
.cd-incluye { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cd-incluye .cd-card { min-height: 0; }
.cd-addon { margin-top: 20px; border-style: dashed; }
.cd-addon .cd-card__price { margin-top: .5rem; }
.cd-addon__label { font-size: .8125rem; font-weight: 600; color: var(--wp--preset--color--ink-3); }
@media (max-width: 1023px) {
	.cd-incluye { grid-template-columns: 1fr 1fr; }
	.cd-incluye > :last-child { grid-column: span 2; }
}
@media (max-width: 767px) {
	.cd-products, .cd-incluye { grid-template-columns: 1fr; }
	.cd-incluye > :last-child { grid-column: auto; }
	.cd-product { min-height: 0; }
}

/* ==========================================================================
   Hilo 11 · /soluciones/ y /especialidades/ (contenido ampliado)
   ========================================================================== */
.cd-steps.cd-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cd-card p.cd-card__lead { margin: 0 0 .35rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--brand); }
ol.cd-timeline { list-style: none; padding: 0; margin-left: 0; margin-right: 0; }
.cd-timeline .cd-step h3 { margin-top: 14px; }
.cd-step__num {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--wp--preset--color--brand); color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 700; font-size: 1.0625rem;
}
.cd-plans--single { grid-template-columns: minmax(0, 680px); }
.cd-compare__caption { caption-side: top; text-align: left; padding: 16px 20px 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.cd-wrap > .cd-lists + .cd-lead, .cd-wrap > .cd-checklist + .cd-compare { margin-top: var(--wp--preset--spacing--6); }

/* ==========================================================================
   Hilo 12 · Formulario de primer contacto (CTA final) y menú activo
   ========================================================================== */
.cd-contacto { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: var(--wp--preset--spacing--6); text-align: center; }
.cd-contacto .cd-contacto__text { margin: 0; font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--ink-2); }
.cd-contacto .wp-block-button__link { cursor: pointer; }
.cd-field--wide { grid-column: 1 / -1; }
.cd-field textarea { min-height: 104px; padding: 12px 14px; border: 1px solid #B9C7DC; border-radius: var(--wp--custom--radius--md); background: var(--wp--preset--color--surface); font: inherit; font-size: 1rem; line-height: 1.5; color: var(--wp--preset--color--ink); resize: vertical; }
.cd-field textarea:focus { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 0; border-color: transparent; }
.cd-field__opt { font-weight: 400; color: var(--wp--preset--color--ink-3); }
.cd-leadform--contacto .cd-leadform__title { margin-bottom: 8px; }
.cd-leadform--contacto p.cd-leadform__title { margin-bottom: 8px; }
#contacto { scroll-margin-top: 88px; }
.cd-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); }/* El estilo «Secundario» de theme.json solo se imprime donde hay un bloque de botón con ese estilo; en el HTML del CTA y de /nosotros/ se repite aquí. */
:is(.cd-contacto, .cd-entry-content) .wp-block-button.is-style-secundario > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 1.5px solid var(--wp--preset--color--line); box-shadow: none; }
:is(.cd-contacto, .cd-entry-content) .wp-block-button.is-style-secundario > .wp-block-button__link:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
.cd-entry-content .wp-block-button.is-style-whatsapp:not([class*="is-style-whatsapp--"]) > .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: var(--wp--preset--color--ink); box-shadow: none; }


/* ---------- Hilo 13 · Hero sin chat: historia de una cita (no interactiva) ---------- */
.cd-hero .cd-hero__h1 { max-width: 14ch; }
.cd-hero .cd-lead { margin-bottom: 2rem; }
.cd-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--wp--preset--color--ink-3); font-size: .9375rem; font-weight: 500; }
.cd-hero__facts li { display: inline-flex; align-items: center; gap: .5rem; }
.cd-hero__facts li::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A53' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.cd-stage--story { padding-bottom: 3rem; }
.cd-stage--story .cd-stage__tag { left: 18%; }
.cd-story { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 3; pointer-events: none; }
.cd-story__item {
	position: absolute; display: flex; align-items: flex-start; gap: 10px; max-width: 290px;
	padding: 12px 16px 12px 12px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
	box-shadow: 0 18px 40px -18px rgba(10,31,61,.35);
	font-family: var(--wp--preset--font-family--chat); font-size: .9375rem; line-height: 1.38;
	opacity: 0; transform: translateY(12px) scale(.98);
	animation: cd-story-in .5s var(--cd-ease) forwards;
}
.cd-story__item small { display: block; margin-bottom: 2px; color: var(--wp--preset--color--ink-3); font-size: .8125rem; }
.cd-story__item strong { display: block; font-weight: 700; }
.cd-story__item--patient { top: 16%; right: -22px; border-radius: 18px 18px 18px 6px; animation-delay: .5s; }
.cd-story__item--bot { top: 40%; left: -36px; max-width: 262px; border-radius: 18px 18px 6px 18px; background: #EAF2FF; border-color: #CFE0FB; animation-delay: 1.9s; }
.cd-story__item--done { bottom: 0; right: 4%; border-color: #BFE6D6; animation-delay: 3.3s; }
.cd-story__avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--brand-hover); font-weight: 700; font-size: .8125rem; }
.cd-story__avatar--bot { background: var(--wp--preset--color--brand); color: #fff; font-size: .75rem; }
.cd-story__check { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E3F6EE; color: var(--wp--preset--color--success); }
.cd-story__check svg { width: 18px; height: 18px; }
@keyframes cd-story-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-story__item { animation: none; opacity: 1; transform: none; } }

@media (max-width: 1023px) {
	.cd-story__item--patient { right: 0; }
	.cd-story__item--bot { left: 0; }
}
@media (max-width: 767px) {
	.cd-stage--story { padding: 0; }
	.cd-story { position: relative; inset: auto; display: grid; gap: 10px; margin-top: -56px; padding-inline: 12px; }
	.cd-story__item { position: relative; inset: auto; max-width: 92%; }
	.cd-story__item--patient { justify-self: start; }
	.cd-story__item--bot { justify-self: end; }
	.cd-story__item--done { justify-self: start; }
	.cd-hero__facts { font-size: .875rem; }
}

/* ---------- Hilo 13 · Ilustración de Click-Doctor Web en HTML (sustituye la captura recortada) ---------- */
.cd-webshot *{box-sizing:border-box;margin:0;padding:0}
.cd-card .cd-webshot{margin:0 0 var(--wp--preset--spacing--6);border-radius:22px}
.cd-webshot{position:relative;width:100%;aspect-ratio:1120/1150;container-type:inline-size;overflow:hidden;font-family:var(--wp--preset--font-family--outfit);color:#0A1F3D;background:radial-gradient(60% 50% at 80% 20%,#D6F6FF 0,rgba(214,246,255,0) 70%),linear-gradient(160deg,#EFFBFF,#E3F0FF)}
.cd-webshot .ws-win{position:absolute;left:4.286cqw;top:5.714cqw;width:83.036cqw;height:91.964cqw;background:#fff;border-radius:2.679cqw;box-shadow:0 3.571cqw 7.143cqw -3.571cqw rgba(10,31,61,.35);border:0.134cqw solid #DCE6F5;overflow:hidden}
.cd-webshot .ws-bar{height:6.25cqw;background:#EAF2FF;display:flex;align-items:center;gap:1.071cqw;padding:0 2.321cqw}
.cd-webshot .ws-dot{width:1.339cqw;height:1.339cqw;border-radius:50%;background:#C9D6EA}
.cd-webshot .ws-dot:first-child{background:#106DFD}
.cd-webshot .ws-url{margin-left:1.964cqw;flex:1;max-width:50cqw;height:3.571cqw;border-radius:1.786cqw;background:#fff;display:flex;align-items:center;gap:0.893cqw;padding:0 1.607cqw;font-size:1.875cqw;color:#5B6B82}
.cd-webshot .ws-url svg{width:1.607cqw;height:1.607cqw}
.cd-webshot .ws-nav{display:flex;align-items:center;gap:1.429cqw;padding:2.321cqw 3.571cqw;border-bottom:0.134cqw solid #EEF3FA}
.cd-webshot .ws-oa{width:4.464cqw;height:4.464cqw;border-radius:50%;background:#EAF2FF;color:#0B5AD6;display:grid;place-items:center;font-weight:700;font-size:1.786cqw}
.cd-webshot .ws-brand{font-weight:600;font-size:2.321cqw}
.cd-webshot .ws-menu{margin-left:auto;display:flex;gap:2.321cqw;font-size:1.786cqw;color:#5B6B82}
.cd-webshot .ws-copy{padding:4.643cqw 3.571cqw 0}
.cd-webshot .ws-chip{display:inline-flex;align-items:center;gap:0.893cqw;padding:0.893cqw 1.607cqw;border:0.134cqw solid #DCE6F5;border-radius:1.964cqw 1.964cqw 1.964cqw 0.536cqw;font-size:1.875cqw;color:#3D4F6B}
.cd-webshot .ws-chip:before{content:"";width:0.982cqw;height:0.982cqw;border-radius:50%;background:#3ED8FE}
.cd-webshot .ws-h1{margin:2.5cqw 0 0;font-size:4.643cqw;line-height:1.04;letter-spacing:-.02em;font-weight:700;max-width:35.714cqw;color:#0A1F3D}
.cd-webshot .ws-h1 span{background:linear-gradient(#9FE9FF,#9FE9FF) no-repeat 0 90%/100% .14em}
.cd-webshot .ws-lead{margin-top:1.964cqw;font-size:1.875cqw;line-height:1.45;color:#3D4F6B;max-width:35.714cqw}
.cd-webshot .ws-photo{position:absolute;left:3.571cqw;bottom:3.571cqw;width:35.714cqw;height:30.357cqw;border-radius:2.143cqw;overflow:hidden}
.cd-webshot .ws-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.cd-webshot .ws-chat{position:absolute;right:3.214cqw;top:26.786cqw;width:50cqw;height:67.857cqw;background:#fff;border-radius:2.679cqw;border:0.134cqw solid #DCE6F5;box-shadow:0 3.571cqw 8.036cqw -2.679cqw rgba(10,31,61,.45);overflow:hidden;display:flex;flex-direction:column;font-family:var(--wp--preset--font-family--chat)}
.cd-webshot .ws-ch{display:flex;align-items:center;gap:1.429cqw;padding:2.143cqw 2.321cqw;border-bottom:0.134cqw solid #EEF3FA;font-family:var(--wp--preset--font-family--outfit)}
.cd-webshot .ws-ch .ws-oa{width:5cqw;height:5cqw}
.cd-webshot .ws-ch b{display:block;font-size:2.232cqw;font-weight:600}
.cd-webshot .ws-ch small{font-size:1.696cqw;color:#0B7A53}
.cd-webshot .ws-msgs{flex:1;background:#EEF3FA;padding:2.321cqw 2.143cqw;display:flex;flex-direction:column;gap:1.429cqw}
.cd-webshot .ws-m{max-width:80%;padding:1.429cqw 1.786cqw;font-size:2.054cqw;line-height:1.38;border-radius:1.964cqw}
.cd-webshot .ws-bot{background:#fff;border-radius:1.964cqw 1.964cqw 1.964cqw 0.536cqw}
.cd-webshot .ws-me{align-self:flex-end;background:#106DFD;color:#fff;border-radius:1.964cqw 1.964cqw 0.536cqw 1.964cqw}
.cd-webshot .ws-ok{background:#fff;border:0.179cqw solid #9FDCC4;border-radius:1.964cqw;padding:1.786cqw;display:flex;gap:1.429cqw;align-items:flex-start}
.cd-webshot .ws-ok i{flex:none;width:4.107cqw;height:4.107cqw;border-radius:50%;background:#E3F6EE;color:#0B7A53;display:grid;place-items:center}
.cd-webshot .ws-ok i svg{width:2.321cqw;height:2.321cqw}
.cd-webshot .ws-ok b{display:block;font-family:var(--wp--preset--font-family--outfit);font-size:2.232cqw;font-weight:700}
.cd-webshot .ws-ok span{font-size:1.875cqw;color:#3D4F6B;line-height:1.4}
.cd-webshot .ws-in{display:flex;align-items:center;gap:1.25cqw;padding:1.607cqw 1.964cqw;border-top:0.134cqw solid #EEF3FA}
.cd-webshot .ws-in div{flex:1;height:4.821cqw;border-radius:2.411cqw;background:#F6F9FF;border:0.134cqw solid #DCE6F5;display:flex;align-items:center;padding:0 1.964cqw;font-size:1.875cqw;color:#5B6B82}
.cd-webshot .ws-send{width:4.821cqw;height:4.821cqw;border-radius:50%;background:#106DFD;display:grid;place-items:center;color:#fff}
.cd-webshot .ws-send svg{width:2.143cqw;height:2.143cqw}
/* ==========================================================================
   Hilo 14 · /soluciones/ más corta, Click-Doctor Web destacado
   ========================================================================== */
.cd-sol-hero .cd-hero__grid { padding-bottom: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.cd-shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 30px 60px -36px rgba(10,31,61,.4); }
.cd-shot__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--wp--preset--color--surface-2); border-bottom: 1px solid var(--wp--preset--color--line); }
.cd-shot__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--line); }
.cd-shot__bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--wp--preset--color--ink-3); }
.cd-shot img { display: block; width: 100%; height: auto; }
.cd-shot__cap { padding: 10px 14px; font-size: .8125rem; color: var(--wp--preset--color--ink-3); border-top: 1px solid var(--wp--preset--color--line); }
.cd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: clamp(2.5rem, 5vw, 4rem); font-size: .875rem; }
.cd-links span { color: var(--wp--preset--color--ink-3); font-weight: 500; margin-right: 4px; }
.cd-links a { padding: 6px 14px; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); text-decoration: none; transition: border-color var(--cd-t-fast), color var(--cd-t-fast); }
.cd-links a:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
.cd-plans--lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.cd-plans--lead .cd-plan--featured { padding: 36px 34px; }
.cd-plans--lead .cd-plan--featured .cd-plan__price strong { font-size: clamp(2.5rem, 5vw, 3.25rem); color: var(--wp--preset--color--brand); }
.cd-plan p.cd-plan__promo { padding: 10px 14px; border-radius: 12px; background: #E6F9FF; color: var(--wp--preset--color--ink); font-size: .9375rem; font-weight: 500; }
.cd-plans--lead .cd-plan--featured .cd-plan__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-capture { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.cd-capture img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(10,31,61,.4); }
.cd-timeline--short { margin-block: var(--wp--preset--spacing--6) var(--wp--preset--spacing--6) !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cd-timeline--short .cd-step { padding: 20px 22px; min-height: 0; }
.cd-timeline--short .cd-step h3 { font-size: 1.125rem; margin: .75rem 0 .25rem; }
.cd-timeline--short .cd-step p { margin: 0; font-size: .9375rem; }
@media (max-width: 480px) { .cd-timeline--short { grid-template-columns: 1fr; } }
.cd-cards--trust { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cd-cards--trust .cd-card p.cd-card__lead { font-size: 1.125rem; color: var(--wp--preset--color--ink); }
@media (max-width: 1023px) { .cd-sol-hero .cd-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .cd-plans--lead { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cd-plans--lead .cd-plan--featured .cd-plan__cta { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hilo 15 · Enlace de agenda en WhatsApp + Web destacado en home y precios
   ========================================================================== */
.cd-enlace .cd-chat { max-width: 440px; justify-self: center; width: 100%; order: 2; }
.cd-enlace .cd-chat__msg--in u { text-decoration: underline; text-underline-offset: 2px; color: var(--wp--preset--color--brand); font-weight: 600; }
.cd-enlace__auto { align-self: flex-start; margin: -4px 0 4px; font-size: .75rem; color: var(--wp--preset--color--ink-3); }
.cd-enlace__list { margin-top: var(--wp--preset--spacing--6); }
.cd-enlace__list strong { color: var(--wp--preset--color--ink); }
.cd-split__text .cd-note { margin-top: var(--wp--preset--spacing--5); }
.cd-product--lead { border: 2px solid var(--wp--preset--color--brand); box-shadow: 0 24px 48px -28px rgba(16,109,253,.45); }
.cd-product__tag { align-self: flex-start; display: inline-flex; padding: 3px 12px; border-radius: var(--wp--custom--radius--pill); font-size: .8125rem; font-weight: 600; background: var(--wp--preset--color--brand); color: #fff; }
.cd-product__tag--soft { background: transparent; color: var(--wp--preset--color--ink-3); border: 1px dashed var(--wp--preset--color--ink-3); }

/* ==========================================================================
   Hilo 16 · /especialidades/ más visual: ficha en la cabecera y rejilla con fotos
   ========================================================================== */
.cd-ficha { margin: 0; border-radius: 18px; overflow: hidden; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 30px 60px -36px rgba(10,31,61,.4); }
.cd-ficha__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--wp--preset--color--surface-2); border-bottom: 1px solid var(--wp--preset--color--line); }
.cd-ficha__head strong { display: block; font-size: 1rem; color: var(--wp--preset--color--ink); }
.cd-ficha__head span:not(.cd-ficha__logo) { display: block; font-size: .8125rem; color: var(--wp--preset--color--ink-3); }
.cd-ficha__logo { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--wp--preset--color--brand); color: #fff; font-weight: 700; font-size: .875rem; }
.cd-ficha__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .75rem; font-weight: 600; color: #0B7A53; }
.cd-ficha__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 4px rgba(18,183,106,.15); }
.cd-ficha__rows { list-style: none; margin: 0; padding: 6px 20px; }
.cd-ficha__rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: .9375rem; }
.cd-ficha__rows li:last-child { border-bottom: 0; }
.cd-ficha__svc { font-weight: 600; color: var(--wp--preset--color--ink); }
.cd-ficha__meta { color: var(--wp--preset--color--ink-2); font-variant-numeric: tabular-nums; }
.cd-ficha__tag { justify-self: end; padding: 3px 10px; border-radius: var(--wp--custom--radius--pill); font-size: .75rem; font-weight: 600; white-space: nowrap; background: #E7F8EF; color: #0B7A53; }
.cd-ficha__tag--hoy { background: #FFF4E0; color: #9A5B00; }
.cd-ficha__tag--val { background: #E6F0FF; color: var(--wp--preset--color--brand); }
.cd-ficha__tag--no { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink-3); }
.cd-ficha__rows li.is-off :is(.cd-ficha__svc, .cd-ficha__meta) { color: var(--wp--preset--color--ink-3); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.cd-ficha__chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; background: #EEF5FF; border-top: 1px solid var(--wp--preset--color--line); }
.cd-ficha__msg { margin: 0; max-width: 82%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: .875rem; line-height: 1.45; color: var(--wp--preset--color--ink); box-shadow: 0 1px 2px rgba(10,31,61,.08); }
.cd-ficha__msg--out { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--wp--preset--color--brand); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
	.cd-ficha__msg { animation: cd-ficha-in .5s var(--cd-ease) both; }
	.cd-ficha__msg:nth-child(1) { animation-delay: .5s; }
	.cd-ficha__msg:nth-child(2) { animation-delay: 1.3s; }
	@keyframes cd-ficha-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.cd-esp-hero .cd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 1023px) { .cd-esp-hero .cd-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cd-ficha__rows { padding: 4px 14px; } .cd-ficha__rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .cd-ficha__meta { grid-row: 2; font-size: .8125rem; } .cd-ficha__tag { grid-row: 1 / span 2; grid-column: 2; } .cd-ficha__head, .cd-ficha__chat { padding-inline: 14px; } }

.cd-esp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: var(--wp--preset--spacing--8); }
.cd-esp { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); color: inherit; text-decoration: none; transition: transform var(--cd-t-base) var(--cd-ease), border-color var(--cd-t-fast), box-shadow var(--cd-t-base); }
.cd-esp__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wp--preset--color--surface-2); }
.cd-esp__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cd-ease); }
.cd-esp__tag { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: var(--wp--custom--radius--pill); font-size: .75rem; font-weight: 600; background: var(--wp--preset--color--brand); color: #fff; }
.cd-esp__tag--soft { background: rgba(255,255,255,.92); color: var(--wp--preset--color--ink-2); backdrop-filter: blur(4px); }
.cd-esp__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.cd-esp__body h3 { margin: 0; font-size: 1.1875rem; }
.cd-esp__body p { margin: 0; color: var(--wp--preset--color--ink-2); font-size: .9375rem; line-height: 1.5; }
.cd-esp__cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--wp--preset--color--brand); }
.cd-esp__cta svg, .cd-esp-more__btn svg { width: 18px; height: 18px; transition: transform var(--cd-t-base) var(--cd-ease); }
.cd-esp--demo { border: 2px solid var(--wp--preset--color--brand); }
@media (hover: hover) {
	.cd-esp:hover { transform: translateY(-6px); border-color: var(--wp--preset--color--brand); box-shadow: var(--wp--custom--shadow-card-hover); }
	.cd-esp:hover .cd-esp__media img { transform: scale(1.05); }
	.cd-esp:hover .cd-esp__cta svg, .cd-esp-more__btn:hover svg { transform: translateX(4px); }
}
.cd-esp-more { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 20px; padding: 20px 24px; border-radius: 20px; background: #E6F9FF; border: 1px solid #BDEBFA; }
.cd-esp-more strong { display: block; font-size: 1.125rem; color: var(--wp--preset--color--ink); }
.cd-esp-more span { display: block; margin-top: 2px; color: var(--wp--preset--color--ink-2); font-size: .9375rem; line-height: 1.5; }
.cd-esp-more__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cd-esp-more__btn:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
@media (max-width: 1023px) { .cd-esp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cd-esp-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .cd-esp, .cd-esp__media img, .cd-esp__cta svg { transition: none; } .cd-esp:hover { transform: none; } .cd-esp:hover .cd-esp__media img { transform: none; } }

.cd-esp-trust .cd-card { gap: .5rem; }
.cd-esp-trust__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #E6F0FF; color: var(--wp--preset--color--brand); margin-bottom: .25rem; }
.cd-esp-trust__ico svg { width: 22px; height: 22px; }
.cd-esp-trust { margin-top: var(--wp--preset--spacing--8); }


/* ==========================================================================
   Hilo 17 · /demos/: qué se prueba (Click-Doctor Web), cuatro pruebas, recordatorio y modo secretaria
   ========================================================================== */
.cd-demos-hero .cd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 1023px) { .cd-demos-hero .cd-hero__grid { grid-template-columns: 1fr; } }
.cd-try-grid { list-style: none; margin: var(--wp--preset--spacing--8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cd-try { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--wp--preset--color--line); }
.cd-try__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--wp--preset--color--brand); color: #fff; font-weight: 700; font-size: .875rem; }
.cd-try h3 { margin: 0; font-size: 1.1875rem; }
.cd-try__say { align-self: flex-start; margin: 0; max-width: 92%; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: #E6F0FF; color: var(--wp--preset--color--ink); font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.cd-try__say::before { content: "Escribe: "; font-weight: 400; color: var(--wp--preset--color--ink-3); }
.cd-try__see { margin: 0; color: var(--wp--preset--color--ink-2); font-size: .9375rem; line-height: 1.55; }
.cd-try__see strong { color: var(--wp--preset--color--ink); }
.cd-truth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding: 22px 24px; border-radius: 20px; background: #E6F9FF; border: 1px solid #BDEBFA; }
.cd-truth__item p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.55; color: var(--wp--preset--color--ink-2); }
.cd-truth__item a { color: var(--wp--preset--color--brand); font-weight: 600; }
.cd-truth__tag { display: inline-flex; padding: 3px 11px; border-radius: var(--wp--custom--radius--pill); font-size: .75rem; font-weight: 600; }
.cd-truth__tag--test { background: #fff; color: var(--wp--preset--color--ink-2); border: 1px dashed var(--wp--preset--color--ink-3); }
.cd-truth__tag--real { background: #E7F8EF; color: #0B7A53; }
.cd-truth__tag--yours { background: var(--wp--preset--color--brand); color: #fff; }
.wp-block-buttons.cd-try__cta { margin-top: var(--wp--preset--spacing--6); }
.cd-cmds { list-style: none; margin: var(--wp--preset--spacing--5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cd-cmds li { padding: 8px 14px; border-radius: 14px 14px 4px 14px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-size: .9375rem; font-weight: 500; color: var(--wp--preset--color--ink); }
.cd-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(10,31,61,.4); }
.cd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) { .cd-truth { grid-template-columns: 1fr; } .cd-demos-sec .cd-photo { order: -1; } }
@media (max-width: 600px) { .cd-try-grid { grid-template-columns: 1fr; } .cd-try { padding: 20px; } }
