/*
 * cds-frontend.css — estilos propios del cds-theme.
 *
 * Orden: a11y/utilities → componentes → animaciones → print.
 *
 * El design system (colores, tipografias, spacing, escalas) vive en theme.json
 * y se inyecta como variables CSS `--wp--preset--*`. Este archivo solo cubre:
 *   - Reglas que no se pueden expresar en theme.json (estados :hover, transiciones)
 *   - Componentes propios (formularios, footer dark, scroll-to-top)
 *   - Animaciones reveal (parejas con cds-reveal.js)
 *
 * No definimos aqui colores literales: todos via var(--wp--preset--color--*).
 */

/* === Compatibilidad con CSS heredado del fork ===============================
 * El tema original usaba slugs de color distintos. Mantener estos alias evita
 * estilos rotos mientras se termina de reducir `style.css` a codigo propio.
 */
:root {
	--wp--preset--color--base: var(--wp--preset--color--bg);
	--wp--preset--color--background: var(--wp--preset--color--bg);
	--wp--preset--color--foreground: var(--wp--preset--color--text);
	--wp--preset--color--heading: var(--wp--preset--color--text);
	--wp--preset--color--body-text: var(--wp--preset--color--text-muted);
	--wp--preset--color--section-bg: var(--wp--preset--color--bg-alt);
	--wp--preset--color--border-color: var(--wp--preset--color--border);
	--wp--preset--color--sidebar-shadow-color: rgba(2, 6, 23, .12);
}

/* === A11y: skip-link, focus visible, screen-reader ========================== */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cds-skiplink {
	position: absolute;
	top: -80px;
	left: 8px;
	z-index: 10000;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: 10px 16px;
	border-radius: var(--wp--custom--radius--sm);
	text-decoration: none;
	font-weight: 500;
	transition: top .15s ease;
}
.cds-skiplink:focus { top: 8px; outline: 2px solid var(--wp--preset--color--white); outline-offset: 2px; }

/* Focus visible reforzado y consistente para teclado (no rompe mouse). */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}
.has-text-background-color :focus-visible,
.cds-site-footer :focus-visible,
.has-primary-background-color :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

.cds-sr-only {
	position: absolute;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* === Hover states de bloques core ============================================ */
.wp-block-button__link {
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: var(--wp--preset--shadow--md);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text);
	border: 2px solid var(--wp--preset--color--border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* === Tarjetas en query loops ================================================= */
.wp-block-post-template > li .wp-block-group {
	transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-post-template > li .wp-block-group:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--lg);
}

/* === Imagenes ================================================================ */
.wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* === Secciones premium de portada =========================================== */
.cds-section-soft {
	background:
		radial-gradient(circle at 12% 18%, rgba(151, 231, 199, .24), transparent 28%),
		linear-gradient(180deg, var(--wp--preset--color--bg) 0%, var(--wp--preset--color--bg-alt) 100%);
}

.cds-hero-showcase {
	position: relative;
	overflow: hidden;
	padding-bottom: clamp(52px, 7vw, 96px);
	background: var(--wp--preset--color--bg);
}
.cds-hero-showcase-shell {
	position: relative;
}
.cds-hero-photo,
.cds-tech-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(7, 27, 69, .88), rgba(7, 59, 143, .76)),
		linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25% 50%, rgba(255,255,255,.18) 50% 75%, transparent 75%);
	background-size: auto, 34px 34px;
	box-shadow: var(--wp--preset--shadow--lg);
	color: var(--wp--preset--color--white);
	text-align: center;
	font-weight: 600;
	letter-spacing: 0;
}
.cds-hero-photo {
	min-height: clamp(360px, 46vw, 560px);
	border-radius: 0;
	box-shadow: none;
}
.cds-tech-visual {
	border-radius: 34px;
	box-shadow: var(--wp--preset--shadow--lg);
}
.cds-hero-photo img,
.cds-tech-visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.cds-hero-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(7, 27, 69, .03), rgba(7, 27, 69, .18));
	pointer-events: none;
}
.cds-hero-carousel-track,
.cds-hero-slide {
	position: absolute;
	inset: 0;
}
.cds-hero-carousel-track {
	z-index: 0;
}
.cds-hero-slide {
	margin: 0;
	opacity: 0;
	transform: scale(1.035);
	transition: opacity .85s ease, transform 5.8s ease;
	pointer-events: none;
}
.cds-hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
}
.cds-hero-slide img { object-position: var(--cds-hero-object-position, center); }
.cds-hero-slide--brand img {
	object-fit: cover;
	object-position: center;
	background: var(--wp--preset--color--primary-dark);
}
.cds-hero-carousel-button {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	background: rgba(7, 27, 69, .56);
	color: var(--wp--preset--color--white);
	box-shadow: 0 14px 32px rgba(7, 27, 69, .2);
	backdrop-filter: blur(10px);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.cds-hero-carousel-button:hover,
.cds-hero-carousel-button:focus-visible {
	background: rgba(7, 59, 143, .86);
	border-color: rgba(255, 255, 255, .95);
	transform: translateY(-50%) scale(1.04);
}
.cds-hero-carousel-button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .86);
	outline-offset: 3px;
}
.cds-hero-carousel-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cds-hero-carousel-button--prev { left: 18px; }
.cds-hero-carousel-button--next { right: 18px; }
.cds-hero-carousel-dots {
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 4;
	display: inline-flex;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(7, 27, 69, .42);
	backdrop-filter: blur(10px);
	transform: translateX(-50%);
}
.cds-hero-carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .58);
	cursor: pointer;
	transition: width .2s ease, background .2s ease, transform .2s ease;
}
.cds-hero-carousel-dot.is-active {
	width: 24px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}
.cds-hero-carousel-dot:focus-visible {
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 3px;
	transform: scale(1.1);
}
.cds-tech-carousel-track,
.cds-tech-slide {
	position: absolute;
	inset: 0;
}
.cds-tech-carousel-track { z-index: 0; }
.cds-tech-slide {
	margin: 0;
	opacity: 0;
	transform: scale(1.045);
	transition: opacity .78s ease, transform 5.2s ease;
	pointer-events: none;
}
.cds-tech-slide.is-active {
	opacity: 1;
	transform: scale(1);
}
.cds-tech-slide img { object-position: center; }
.cds-tech-carousel-dots {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 4;
	display: inline-flex;
	gap: 7px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(7, 27, 69, .38);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 28px rgba(2, 6, 23, .18);
	transform: translateX(-50%);
}
.cds-tech-carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .58);
	cursor: pointer;
	transition: width .2s ease, background .2s ease, transform .2s ease;
}
.cds-tech-carousel-dot.is-active {
	width: 24px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}
.cds-tech-carousel-dot:focus-visible {
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 3px;
	transform: scale(1.1);
}
.cds-tech-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(135deg, rgba(7, 59, 143, .22), rgba(151, 231, 199, .12));
	pointer-events: none;
}
.cds-tech-visual::after {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 26px;
	z-index: 2;
	pointer-events: none;
}
.cds-tech-visual span { max-width: 18ch; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
	.cds-tech-slide {
		transition: none;
		transform: none;
	}
}

.cds-hero-showcase-panel {
	position: relative;
	z-index: 6;
	box-sizing: border-box;
	width: min(980px, calc(100% - 48px));
	margin: clamp(-96px, -6vw, -54px) auto 0;
	padding: clamp(30px, 3.8vw, 48px) clamp(28px, 5vw, 72px);
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	text-align: center;
	box-shadow: 0 20px 54px rgba(2, 6, 23, .34);
}
.cds-hero-showcase-panel .cds-eyebrow {
	color: var(--wp--preset--color--secondary);
}
.cds-hero-showcase-panel h1 {
	margin: 8px 0 14px;
	color: var(--wp--preset--color--white);
	font-size: clamp(2.1rem, 3.3vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: 0;
}
.cds-hero-showcase-panel p:not(.cds-eyebrow):not(.cds-hero-showcase-meta) {
	max-width: 780px;
	margin: 0 auto;
	color: rgba(255, 255, 255, .86);
	font-size: clamp(1rem, 1.25vw, 1.16rem);
	line-height: 1.5;
}
.cds-hero-showcase-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
	max-width: 780px;
	margin: 16px auto 0;
	color: rgba(255, 255, 255, .78);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.45;
}
.cds-hero-showcase-meta-link {
	color: inherit;
	text-decoration: none;
}
.cds-hero-showcase-meta-link:hover,
.cds-hero-showcase-meta-link:focus-visible {
	color: var(--wp--preset--color--secondary);
	text-decoration: underline;
}
.cds-hero-showcase-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}
.cds-hero-showcase-cta {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.cds-hero-showcase-cta:hover,
.cds-hero-showcase-cta:focus-visible {
	transform: translateY(-1px);
}
.cds-hero-showcase-cta--primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.cds-hero-showcase-cta--secondary {
	border: 1px solid rgba(255, 255, 255, .64);
	color: var(--wp--preset--color--white);
}

.cds-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--lg);
	margin-top: var(--wp--preset--spacing--xl);
}
.cds-feature-card {
	padding: 26px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(7, 59, 143, .12);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cds-feature-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--md); border-color: rgba(7, 59, 143, .24); }
.cds-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 18px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
}
.cds-feature-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cds-feature-card h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.cds-feature-card p { margin: 0; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--sm); }

.cds-tech-section { background: var(--wp--preset--color--text); color: var(--wp--preset--color--white); }
.cds-tech-section h2,
.cds-tech-section .cds-eyebrow { color: var(--wp--preset--color--white); }
.cds-tech-section p { color: rgba(255, 255, 255, .78); }
.cds-tech-layout { gap: clamp(32px, 5vw, 72px); }
.cds-tech-visual { min-height: clamp(320px, 38vw, 480px); background: linear-gradient(135deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--primary) 58%, var(--wp--preset--color--secondary) 130%); }
.cds-tech-chip {
	position: absolute;
	z-index: 3;
	padding: 10px 14px;
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(255, 255, 255, .92);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	box-shadow: var(--wp--preset--shadow--md);
}
.cds-tech-chip--one { left: 24px; top: 28px; }
.cds-tech-chip--two { right: 24px; bottom: 28px; }
.cds-tech-list { display: grid; gap: 12px; margin-top: var(--wp--preset--spacing--lg); }
.cds-tech-list div {
	display: grid;
	grid-template-columns: minmax(140px, .35fr) 1fr;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.cds-tech-list strong { color: var(--wp--preset--color--white); }
.cds-tech-list span { color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) {
	.cds-feature-grid { grid-template-columns: 1fr 1fr; }
	.cds-hero-carousel-button--prev { left: 14px; }
	.cds-hero-carousel-button--next { right: 14px; }
	.cds-hero-showcase-panel {
		width: min(760px, calc(100% - 32px));
		margin-top: -42px;
	}
}
@media (max-width: 640px) {
	.cds-feature-grid,
	.cds-tech-list div { grid-template-columns: 1fr; }
	.cds-hero-showcase { padding-bottom: 48px; }
	.cds-hero-photo { min-height: 320px; }
	.cds-hero-carousel-button { width: 38px; height: 38px; }
	.cds-hero-carousel-button--prev { left: 10px; }
	.cds-hero-carousel-button--next { right: 10px; }
	.cds-hero-carousel-dots { bottom: 14px; }
	.cds-hero-showcase-panel {
		width: 100%;
		margin-top: 0;
		padding: 32px 24px 36px;
		box-shadow: none;
	}
	.cds-hero-showcase-panel h1 { font-size: 2rem; }
	.cds-hero-showcase-actions { flex-direction: column; }
	.cds-hero-showcase-cta { width: 100%; }
	.cds-hero-slide--brand img { object-fit: contain; }
}

.cds-fachada-info-section {
	background:
		linear-gradient(180deg, var(--wp--preset--color--bg) 0%, var(--wp--preset--color--bg-alt) 100%);
}
.cds-fachada-info {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 4vw, 52px);
	color: var(--wp--preset--color--white);
	background:
		linear-gradient(135deg, rgba(7, 27, 69, .98) 0%, rgba(7, 59, 143, .96) 64%, rgba(128, 84, 109, .94) 100%);
	box-shadow: var(--wp--preset--shadow--lg);
}
.cds-fachada-info::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 76px;
	background: var(--wp--preset--color--primary);
	opacity: .62;
}
.cds-fachada-info-main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.cds-fachada-brand img {
	display: block;
	width: min(100%, 440px);
	height: auto;
	padding: 18px;
	border-radius: var(--wp--custom--radius--md);
	background: rgba(255, 255, 255, .96);
}
.cds-fachada-brand p {
	margin: 18px 0 0;
	color: var(--wp--preset--color--secondary);
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	font-weight: 700;
}
.cds-fachada-contact .cds-eyebrow {
	color: var(--wp--preset--color--secondary);
}
.cds-fachada-contact h2 {
	margin: 10px 0 22px;
	color: var(--wp--preset--color--white);
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1.02;
	letter-spacing: 0;
}
.cds-fachada-contact dl {
	display: grid;
	gap: 12px;
	margin: 0;
}
.cds-fachada-contact dl div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.cds-fachada-contact dt {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}
.cds-fachada-contact dd {
	margin: 0;
	color: rgba(255, 255, 255, .9);
	font-weight: 600;
}
.cds-fachada-contact a {
	color: var(--wp--preset--color--white);
}
.cds-fachada-specialties {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp(28px, 4vw, 44px);
}
.cds-fachada-specialties span {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid rgba(151, 231, 199, .34);
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(255, 255, 255, .1);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}
@media (max-width: 760px) {
	.cds-fachada-info {
		padding: 28px 22px;
	}
	.cds-fachada-info-main,
	.cds-fachada-contact dl div {
		grid-template-columns: 1fr;
	}
	.cds-fachada-brand img {
		width: min(100%, 320px);
	}
}

.cds-especialidades-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--lg);
	margin-top: var(--wp--preset--spacing--xl);
}
.cds-especialidad-card {
	padding: 26px;
	background: var(--wp--preset--color--bg);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cds-especialidad-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--md); border-color: rgba(7, 59, 143, .22); }
.cds-especialidad-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 18px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
}
.cds-especialidad-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cds-especialidad-card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.cds-especialidad-card p { margin: 0; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--sm); }

/* === Animaciones reveal (acompanan a cds-reveal.js) ========================== */
[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .66s ease-out, transform .66s ease-out;
	will-change: opacity, transform;
}
[data-reveal="section"] {
	transform: translateY(22px);
}
[data-reveal="fade"] {
	transform: none;
}
[data-reveal="zoom"] {
	transform: scale(.975);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}
[data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .58s ease-out, transform .58s ease-out;
	transition-delay: var(--reveal-child-delay, 0ms);
}
[data-reveal-stagger].is-visible > * {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	[data-reveal].is-visible,
	[data-reveal-stagger] > *,
	[data-reveal-stagger].is-visible > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.cds-hero-slide {
		transition: none;
		transform: none;
	}
	.cds-hero-carousel-button,
	.cds-hero-carousel-dot {
		transition: none;
	}
}

/* === Formulario de contacto =================================================
 * Reemplaza los inline styles que tenia el shortcode en Fase 0.
 */
.cds-form .cds-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--md);
}
.cds-form .cds-form-grid p {
	margin: 0;
}
.cds-form .cds-form-grid .cds-form-grid-full {
	grid-column: 1 / -1;
}
.cds-form label {
	display: block;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--sm);
}
.cds-form input,
.cds-form textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	font: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--bg);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cds-form input:focus,
.cds-form textarea:focus {
	outline: 0;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(7, 59, 143, .15);
}
.cds-form textarea {
	min-height: 140px;
	resize: vertical;
}
.cds-form .cds-form-honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.cds-form button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s ease, transform .15s ease;
}
.cds-form button:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
}
.cds-form .cds-form-legal {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--text-muted);
	margin-top: var(--wp--preset--spacing--md);
}
.cds-form-msg {
	border: 1px solid;
	border-radius: var(--wp--custom--radius--sm);
	padding: 12px 16px;
	margin-bottom: 16px;
}
.cds-form-msg--ok {
	background: #f0fdf4;
	border-color: #16a34a;
	color: #14532d;
}
.cds-form-msg--error {
	background: #fef2f2;
	border-color: #dc2626;
	color: #7f1d1d;
}

@media (max-width: 600px) {
	.cds-form .cds-form-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	.cds-equipo-showcase { grid-template-columns: 1fr; }
}

/* === Header sticky compacto ================================================= */
body {
	--cds-header-height: 76px;
}
.wp-site-blocks {
	padding-top: var(--cds-header-height);
}
.wp-block-template-part:has(.cds-site-header) {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	margin-block-start: 0 !important;
}
body.admin-bar .wp-block-template-part:has(.cds-site-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}
body.admin-bar .wp-site-blocks {
	padding-top: calc(var(--cds-header-height) + var(--wp-admin--admin-bar--height, 32px));
}
.cds-site-header {
	position: relative;
	top: 0 !important;
	margin-block-start: 0 !important;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
	backdrop-filter: blur(14px);
	transition: box-shadow .2s ease, background .2s ease;
}
.cds-site-header.is-scrolled {
	box-shadow: var(--wp--preset--shadow--md);
}
.cds-mainbar {
	box-sizing: border-box;
	min-height: 76px;
	padding: 8px var(--wp--preset--spacing--lg);
	gap: clamp(14px, 2vw, 28px);
}
.cds-brand {
	gap: 10px;
	align-items: center;
	min-width: 0;
}
.cds-brand-logo {
	display: inline-flex;
	align-items: center;
	width: clamp(220px, 20vw, 310px);
	max-width: 28vw;
	text-decoration: none;
}
.cds-brand-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 72px;
	object-fit: contain;
}
.cds-brand .wp-block-site-logo img {
	width: auto;
	max-height: 48px;
}
.cds-brand .wp-block-site-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.05;
	white-space: nowrap;
}
.cds-brand .wp-block-site-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.cds-nav-wrap { gap: clamp(10px, 1.3vw, var(--wp--preset--spacing--md)); align-items: center; }
.cds-nav .wp-block-navigation-item__content {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}
.cds-mainbar .cds-cta-cita .wp-block-button__link {
	min-height: 44px;
	padding: 9px 18px !important;
}
@media (max-width: 700px) {
	body {
		--cds-header-height: 68px;
	}
	.cds-mainbar {
		min-height: 68px;
		padding: 8px var(--wp--preset--spacing--md);
		gap: 12px;
	}
	.cds-brand .wp-block-site-logo img { max-height: 40px; }
	.cds-brand-logo { width: 190px; max-width: 42vw; }
	.cds-brand-logo img { max-height: 54px; }
	.cds-brand .wp-block-site-title { font-size: 1.05rem; }
	.cds-nav-wrap { gap: 10px; }
	.cds-cta-cita .wp-block-button__link {
		min-height: 40px;
		padding: 9px 14px !important;
		white-space: nowrap;
	}
}

/* === Redes sociales (footer y componentes auxiliares) ======================= */
.cds-redes,
.cds-footer-redes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
	align-items: center;
}
.cds-redes li,
.cds-footer-redes li { margin: 0; }
.cds-redes a,
.cds-footer-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	color: inherit;
	transition: background-color .15s ease, transform .15s ease;
}
.cds-redes a:hover,
.cds-footer-redes a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* === Footer dark ============================================================ */
.cds-site-footer { padding-left: var(--wp--preset--spacing--lg); padding-right: var(--wp--preset--spacing--lg); }
.cds-site-footer a { color: var(--wp--preset--color--white); text-decoration: none; opacity: .85; }
.cds-site-footer a:hover { opacity: 1; }
.cds-site-footer--legal-only {
	padding-top: 18px !important;
	padding-bottom: 18px !important;
}
.cds-site-footer--legal-only .cds-footer-legal {
	margin: 0 auto;
}
.cds-footer-cols { gap: var(--wp--preset--spacing--xl); }
.cds-footer-list,
.cds-footer-horario {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cds-footer-list li,
.cds-footer-horario li {
	padding: 4px 0;
	font-size: var(--wp--preset--font-size--sm);
}
.cds-footer-bottom {
	justify-content: center;
	gap: 10px;
	margin-top: var(--wp--preset--spacing--lg);
	text-align: center;
}
.cds-footer-bottom p {
	margin: 0;
}
.cds-footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
}
.cds-footer-redes { margin-top: var(--wp--preset--spacing--md); }

/* === Cards de servicio / equipo / blog ====================================== */
.cds-servicio-card,
.cds-equipo-card,
.cds-blog-card {
	background: var(--wp--preset--color--bg);
	border: 1px solid var(--wp--preset--color--border);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cds-servicio-card:hover,
.cds-equipo-card:hover,
.cds-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--md);
}
.cds-area-card { background: var(--wp--preset--color--bg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cds-area-card:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--md); }
.cds-equipo-showcase {
	display: grid;
	grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	max-width: 1080px;
	margin: var(--wp--preset--spacing--xl) auto 0;
	padding: clamp(18px, 3vw, 28px);
	background: var(--wp--preset--color--bg-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
}
.cds-equipo-showcase figure { margin: 0; }
.cds-equipo-showcase img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--sm);
}
.cds-equipo-showcase h3 {
	margin: 8px 0 10px;
	font-size: var(--wp--preset--font-size--2xl);
}
.cds-equipo-showcase p { margin-bottom: 0; }
.cds-equipo-grid,
.cds-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--wp--preset--spacing--lg);
	margin-top: var(--wp--preset--spacing--xl);
}
.cds-equipo-card { border-radius: var(--wp--custom--radius--lg); }
.cds-equipo-card-media,
.cds-blog-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	background: linear-gradient(135deg, var(--wp--preset--color--primary-light), rgba(151, 231, 199, .28));
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 700;
	overflow: hidden;
}
.cds-equipo-card-media { font-size: 4rem; }
.cds-equipo-card-media img,
.cds-blog-card-media img { width: 100%; height: 240px; object-fit: cover; display: block; }
.cds-equipo-card-body,
.cds-blog-card-body { padding: 20px; }
.cds-equipo-card-body h3,
.cds-blog-card-body h3 { margin: 6px 0 8px; font-size: 1.12rem; }
.cds-equipo-card-body h3 a,
.cds-blog-card-body h3 a { color: var(--wp--preset--color--text); text-decoration: none; }
.cds-equipo-especialidad {
	margin: 0;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}
.cds-equipo-colegiado,
.cds-blog-card-body time { margin: 0 0 10px; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--sm); }
.cds-equipo-meta-box {
	margin: var(--wp--preset--spacing--lg) 0;
	padding: 22px 24px;
	background: var(--wp--preset--color--primary-light);
	border-radius: var(--wp--custom--radius--md);
}
.cds-equipo-meta-list { margin: 10px 0 0; padding: 0; list-style: none; }
.cds-equipo-meta-list li { padding: 4px 0; }
.cds-equipo-redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cds-equipo-redes a,
.cds-readmore { font-size: var(--wp--preset--font-size--sm); font-weight: 700; }

/* === Equipo editorial con modal ============================================= */
.cds-team-section {
	position: relative;
	background:
		radial-gradient(circle at 8% 12%, rgba(27, 163, 156, .16), transparent 26%),
		linear-gradient(180deg, var(--wp--preset--color--bg) 0%, var(--wp--preset--color--bg-alt) 100%);
}
.cds-team-intro {
	max-width: 760px;
	margin: 0 auto clamp(34px, 5vw, 64px);
	text-align: center;
}
.cds-team-intro :is(h1, h2) {
	margin: 8px 0 14px;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	line-height: .95;
}
.cds-team-intro p:last-child {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.cds-team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 4vw, 48px);
	max-width: 1040px;
	margin: 0 auto;
}
.cds-team-card {
	display: grid;
	grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(18px, 2.8vw, 32px);
	min-height: 340px;
	max-width: 100%;
	padding: clamp(12px, 1.8vw, 18px);
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(226, 232, 240, .86);
	border-radius: 32px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
	backdrop-filter: blur(16px);
}
.cds-team-card-photo,
.cds-team-dialog-photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wp--preset--color--primary-light), rgba(27, 163, 156, .16));
}
.cds-team-card-photo {
	aspect-ratio: 4 / 5;
	border-radius: 26px;
}
.cds-team-card-photo img,
.cds-team-dialog-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--cds-team-position, center top);
}
.cds-team-card-copy {
	min-width: 0;
	padding: 8px clamp(2px, 1vw, 10px) 8px 0;
}
.cds-team-role,
.cds-team-dialog-role {
	margin: 0 0 10px;
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
	line-height: 1.35;
}
.cds-team-card h3 {
	margin: 0 0 14px;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	line-height: 1.02;
}
.cds-team-summary {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: .98rem;
	line-height: 1.62;
}
.cds-team-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin-top: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white);
	box-shadow: 0 14px 32px rgba(27, 163, 156, .24);
	cursor: pointer;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cds-team-more:hover,
.cds-team-more:focus-visible {
	background: var(--wp--preset--color--primary);
	box-shadow: 0 18px 40px rgba(15, 94, 168, .26);
	transform: translateY(-2px) rotate(90deg);
}
html.has-cds-dialog { overflow: hidden; }
.cds-team-dialog {
	box-sizing: border-box;
	width: min(1120px, calc(100vw - 28px));
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text);
}
.cds-team-dialog[open] {
	animation: cds-team-dialog-in .18s ease-out both;
}
.cds-team-dialog::backdrop {
	background: rgba(2, 6, 23, .68);
	backdrop-filter: blur(5px);
}
.cds-team-dialog[open]::backdrop {
	animation: cds-team-backdrop-in .18s ease-out both;
}
.cds-team-dialog-panel {
	box-sizing: border-box;
	position: relative;
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 1fr) 220px;
	justify-content: start;
	gap: 24px;
	align-items: start;
	max-height: none;
	overflow-x: hidden;
	overflow-y: visible;
	padding: clamp(26px, 2.6vw, 36px) clamp(22px, 3vw, 40px);
	background: var(--wp--preset--color--bg);
	border-top: 7px solid var(--wp--preset--color--secondary);
	box-shadow: 0 32px 90px rgba(2, 6, 23, .36);
}
.cds-team-dialog-copy {
	min-width: 0;
	max-width: none;
}
.cds-team-dialog[open] .cds-team-dialog-panel {
	animation: cds-team-panel-in .28s cubic-bezier(.16, 1, .3, 1) both;
}
.cds-team-dialog-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid rgba(100, 116, 139, .55);
	border-radius: 10px;
	background: var(--wp--preset--color--bg);
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: .8;
	transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.cds-team-dialog-close:hover,
.cds-team-dialog-close:focus-visible {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	transform: scale(1.03);
}
.cds-team-dialog-copy h3 {
	margin: 4px 0 6px;
	color: var(--wp--preset--color--secondary);
	font-size: clamp(1.45rem, 1.7vw, 1.75rem);
	line-height: 1.08;
}
.cds-team-dialog-role {
	margin-bottom: 12px;
	font-size: .98rem;
}
.cds-team-detail-list {
	margin: 16px 0 0;
	padding-left: 1.2em;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(.92rem, 1.02vw, 1rem);
	line-height: 1.38;
	overflow-wrap: anywhere;
	word-break: normal;
}
.cds-team-detail-list li { max-width: 100%; }
.cds-team-detail-list li + li { margin-top: 4px; }
.cds-team-dialog-photo {
	align-self: center;
	justify-self: start;
	width: 220px;
	aspect-ratio: 3 / 4;
	border-radius: 0;
}
@keyframes cds-team-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes cds-team-dialog-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes cds-team-panel-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(.975);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@media (prefers-reduced-motion: reduce) {
	.cds-team-dialog[open],
	.cds-team-dialog[open]::backdrop,
	.cds-team-dialog[open] .cds-team-dialog-panel {
		animation: none;
	}
}
@media (max-width: 980px) and (min-width: 761px) {
	.cds-team-dialog { width: min(99vw, 940px); }
	.cds-team-dialog-panel {
		grid-template-columns: minmax(0, 1fr) 170px;
		gap: 16px;
		padding-left: 20px;
		padding-right: 20px;
	}
	.cds-team-dialog-photo { width: 170px; }
}
@media (max-width: 1080px) {
	.cds-team-grid { grid-template-columns: 1fr; }
	.cds-team-card { max-width: 820px; margin: 0 auto; }
}
@media (max-width: 760px) {
	.cds-team-section {
		padding-top: var(--wp--preset--spacing--3xl) !important;
		padding-bottom: var(--wp--preset--spacing--3xl) !important;
	}
	.cds-team-card {
		grid-template-columns: 1fr;
		min-height: 0;
		border-radius: 24px;
	}
	.cds-team-card-copy { padding: 4px 6px 8px; }
	.cds-team-card-photo { aspect-ratio: 4 / 4.6; border-radius: 20px; }
	.cds-team-dialog { width: min(100vw - 20px, 640px); max-height: calc(100vh - 20px); }
	.cds-team-dialog-panel {
		grid-template-columns: 1fr;
		gap: 24px;
		max-height: calc(100vh - 20px);
		padding: 72px 22px 28px;
	}
	.cds-team-dialog-photo { order: -1; justify-self: stretch; width: 100%; aspect-ratio: 4 / 4.3; }
	.cds-team-dialog-close { top: 14px; right: 14px; }
}

/* === Testimonios (Swiper) =================================================== */
.cds-testimonios-swiper { padding-bottom: 50px; max-width: 1200px; margin: 0 auto; }
.cds-testimonio {
	background: var(--wp--preset--color--bg);
	border-radius: var(--wp--custom--radius--md);
	padding: 24px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--wp--preset--shadow--sm);
}
.cds-testimonio-rating { color: var(--wp--preset--color--accent); font-size: 1.05rem; letter-spacing: 2px; }
.cds-testimonio-texto { font-style: italic; margin: 0; flex: 1; line-height: 1.5; }
.cds-testimonio-autor { font-size: var(--wp--preset--font-size--sm); }
.cds-testimonio-autor strong { display: block; }
.cds-testimonio-trat { color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--xs); }
.cds-testimonios-swiper .swiper-pagination-bullet { background: var(--wp--preset--color--primary); }

/* === FAQ accordion (HTML5 details) ========================================== */
.cds-faq { max-width: 800px; margin: var(--wp--preset--spacing--xl) auto 0; display: flex; flex-direction: column; gap: 8px; }
.cds-faq details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--bg);
	transition: box-shadow .15s ease;
}
.cds-faq details[open] { box-shadow: var(--wp--preset--shadow--sm); }
.cds-faq summary {
	cursor: pointer;
	padding: 16px 20px;
	font-weight: 500;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.cds-faq summary::-webkit-details-marker { display: none; }
.cds-faq summary::after {
	content: '+';
	font-size: 1.25rem;
	color: var(--wp--preset--color--primary);
	transition: transform .2s ease;
}
.cds-faq details[open] summary::after { transform: rotate(45deg); }
.cds-faq details p {
	margin: 0;
	padding: 0 20px 16px;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.6;
}

/* === Casos antes/despues ==================================================== */
.cds-casos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--wp--preset--spacing--lg);
	margin-top: var(--wp--preset--spacing--xl);
}
.cds-caso { display: flex; flex-direction: column; gap: 8px; }
.cds-caso img-comparison-slider {
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	width: 100%;
	--divider-color: var(--wp--preset--color--white);
	--divider-width: 2px;
	--default-handle-color: var(--wp--preset--color--white);
	--default-handle-opacity: 1;
}
.cds-caso img { width: 100%; height: auto; display: block; }
.cds-caso-titulo { font-size: 1rem; font-weight: 600; margin: 4px 0 0; }
.cds-caso-trat { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-muted); margin: 0; }
.cds-casos-empty { text-align: center; color: var(--wp--preset--color--text-muted); margin: var(--wp--preset--spacing--lg) 0; }
.cds-caso-single { margin: var(--wp--preset--spacing--xl) 0; }
.cds-caso-single-slider {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lg);
	--divider-color: var(--wp--preset--color--white);
	--divider-width: 2px;
	--default-handle-color: var(--wp--preset--color--white);
}
.cds-caso-single-slider img { width: 100%; height: auto; display: block; }
.cds-caso-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	margin-top: 16px;
	padding: 16px 18px;
	background: var(--wp--preset--color--bg-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}
.cds-caso-single-meta p { margin: 0; }
.cds-caso-disclaimer { flex-basis: 100%; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--sm); }

/* === Mapa Leaflet =========================================================== */
.cds-contact-layout {
	align-items: stretch;
	gap: clamp(28px, 4vw, 56px);
}
.cds-contact-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(22px, 3vw, 34px);
	background: var(--wp--preset--color--bg-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
}
.cds-contact-details h3 {
	margin: 0 0 18px;
}
.cds-contact-list {
	display: grid;
	gap: 18px;
	margin: 0;
}
.cds-contact-list div {
	display: grid;
	gap: 5px;
}
.cds-contact-list dt {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}
.cds-contact-list dd {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.5;
}
.cds-contact-list p {
	margin: 0;
}
.cds-contact-list a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.cds-contact-list a:hover,
.cds-contact-list a:focus-visible {
	text-decoration: underline;
}
.cds-contact-whatsapp-panel {
	margin-top: 24px;
}
.cds-contact-whatsapp-panel p {
	margin: 0 0 12px;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
}
.cds-contact-whatsapp-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 16px 20px;
	background: #35c9a9;
	color: var(--wp--preset--color--white) !important;
	border-radius: 4px;
	box-shadow: 0 16px 34px rgba(53, 201, 169, .24);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cds-contact-whatsapp-button:hover,
.cds-contact-whatsapp-button:focus-visible {
	background: #25b99a;
	box-shadow: 0 20px 42px rgba(53, 201, 169, .32);
	transform: translateY(-2px);
}
.cds-contact-whatsapp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
}
.cds-contact-whatsapp-icon svg {
	display: block;
	width: 48px;
	height: 48px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cds-contact-whatsapp-button span:last-child {
	display: grid;
	gap: 2px;
}
.cds-contact-whatsapp-button small {
	font-size: .9rem;
	font-weight: 700;
	opacity: .92;
}
@media (max-width: 480px) {
	.cds-contact-whatsapp-button {
		gap: 10px;
		padding: 14px 16px;
	}
	.cds-contact-whatsapp-icon,
	.cds-contact-whatsapp-icon svg {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}
}
.cds-leaflet {
	max-width: 100%;
	overflow: hidden;
	contain: paint;
	box-shadow: var(--wp--preset--shadow--sm);
}
.cds-map-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: var(--wp--preset--spacing--xl);
	border-radius: var(--wp--custom--radius--md);
	background:
		linear-gradient(135deg, rgba(7, 59, 143, .78), rgba(151, 231, 199, .62)),
		linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25% 50%, rgba(255,255,255,.18) 50% 75%, transparent 75%);
	background-size: auto, 30px 30px;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	text-align: center;
	box-shadow: var(--wp--preset--shadow--sm);
}
.cds-contact-empty { color: var(--wp--preset--color--text-muted); }

/* === WhatsApp FAB =========================================================== */
.cds-whatsapp-fab {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 90;
	width: 56px;
	height: 56px;
	background: #25d366;
	color: #fff;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
	opacity: 1;
	transform: translateY(0);
	transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
	pointer-events: auto;
}
.cds-whatsapp-fab.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.cds-whatsapp-fab:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, .5); }
@media (prefers-reduced-motion: reduce) {
	.cds-whatsapp-fab { transition: none; }
}
@media print {
	.cds-whatsapp-fab { display: none; }
}

/* === Banner de cookies ====================================================== */
.cds-cookies-banner {
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	right: auto;
	bottom: 16px;
	z-index: 1000;
	width: calc(100vw - 32px);
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: 0 20px 50px rgba(2, 6, 23, .35);
	padding: 18px 22px;
	max-width: 720px;
	transform: translateX(-50%);
}
.cds-cookies-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cds-cookies-text {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}
.cds-cookies-text a { color: var(--wp--preset--color--white); text-decoration: underline; }
.cds-cookies-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}
.cds-cookies-btn {
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	padding: 8px 18px;
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	border: 0;
	transition: background-color .15s ease, color .15s ease;
}
.cds-cookies-btn--primary {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white);
}
.cds-cookies-btn--primary:hover { background: var(--wp--preset--color--primary); }
.cds-cookies-btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 1px solid rgba(255, 255, 255, .25);
}
.cds-cookies-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 700px) {
	.cds-cookies-inner { flex-direction: row; align-items: center; }
	.cds-cookies-text { flex: 1; }
}
@media (min-width: 900px) {
	.cds-cookies-banner {
		left: auto;
		right: 24px;
		bottom: 24px;
		max-width: 520px;
		padding: 16px 18px;
		transform: none;
	}

	.cds-cookies-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cds-cookies-actions {
		width: 100%;
	}
}
@media print {
	.cds-cookies-banner { display: none; }
}

/* === Mejoras tipograficas =================================================== */
main p,
main li {
	max-width: 70ch;
}
main p { line-height: 1.7; }
main h2 { margin-top: var(--wp--preset--spacing--xl); }
main h2 + p { margin-top: 0.4em; }
.eyebrow,
[class*="cds-eyebrow"] {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}

/* === Loading state del formulario =========================================== */
.cds-form.is-submitting button[type="submit"] {
	opacity: 0.7;
	cursor: progress;
	position: relative;
	padding-right: 42px;
}
.cds-form.is-submitting button[type="submit"]::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: var(--wp--preset--color--white);
	border-radius: 50%;
	animation: cds-spin .7s linear infinite;
}
.cds-form input:invalid:not(:placeholder-shown),
.cds-form textarea:invalid:not(:placeholder-shown) {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
@keyframes cds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.cds-form.is-submitting button[type="submit"]::after { animation-duration: 0s; }
}

/* === Skeleton loaders ====================================================== */
.cds-leaflet:empty {
	background: linear-gradient(90deg,
		var(--wp--preset--color--bg-alt) 0%,
		var(--wp--preset--color--border) 50%,
		var(--wp--preset--color--bg-alt) 100%);
	background-size: 200% 100%;
	animation: cds-shimmer 1.4s ease-in-out infinite;
}
@keyframes cds-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
	.cds-leaflet:empty { animation: none; background: var(--wp--preset--color--bg-alt); }
}

/* === Print styles =========================================================== */
@media print {
	.cds-site-header,
	.cds-site-footer,
	.cds-whatsapp-fab,
	.cds-cookies-banner,
	.cf-turnstile,
	.cds-testimonios-swiper .swiper-pagination,
	.cds-form { display: none !important; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
	main { padding: 0 !important; }
	.wp-block-cover {
		background: none !important;
		color: var(--wp--preset--color--text) !important;
		min-height: 0 !important;
		padding: 0 0 1em 0 !important;
	}
	.wp-block-cover *,
	.has-text-background-color * { color: var(--wp--preset--color--text) !important; }
	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		color: #555;
	}
	a[href^="#"]::after,
	a[href^="tel:"]::after,
	a[href^="mailto:"]::after { content: ""; }
}
