/* ==========================================================================
   UXEN Theme — theme.css
   Capa visual moderna y profesional (paleta sanitaria, tipografía, sombras,
   cards). Se carga DESPUÉS de wireframe.css y prevalece en las vistas migradas.
   ========================================================================== */

:root {
	--c-primary: #2f6ef3;
	--c-primary-dark: #1940e5;
	--c-primary-soft: #e8effe;
	--c-accent: #2f6ef3;
	--c-ink: #16242e;
	--c-muted: #5b6b78;
	--c-line: #e3ebef;
	--c-bg: #f4f8fa;
	--c-surface: #ffffff;
	--shadow-sm: 0 1px 2px rgba(16, 36, 46, 0.06), 0 1px 3px rgba(16, 36, 46, 0.08);
	--shadow-md: 0 6px 18px rgba(16, 36, 46, 0.08);
	--shadow-lg: 0 18px 40px rgba(16, 36, 46, 0.12);
	--radius: 14px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--container: 1140px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--font);
	color: var(--c-ink);
	background: var(--c-bg);
	line-height: 1.6;
}

.container,
.wf-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 22px;
}

a {
	color: var(--c-primary-dark);
}

.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;
}

/* Botones --------------------------------------------------------------------*/
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--c-primary);
	color: #fff;
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	background: var(--c-primary-dark);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--c-primary-dark);
	border-color: var(--c-line);
}

.btn--ghost:hover {
	border-color: var(--c-primary);
	background: var(--c-primary-soft);
}

/* Header / Footer modernos (sobre las clases del wireframe) -------------------*/
.site-header {
	background: var(--c-surface);
	border: 0;
	border-bottom: 1px solid var(--c-line);
	box-shadow: var(--shadow-sm);
}

.site-brand__logo.wf-placeholder,
.wf-placeholder {
	background: var(--c-primary-soft);
	background-image: none;
	border: 0;
	color: var(--c-primary-dark);
	font-weight: 700;
	border-radius: var(--radius-sm);
}

.site-brand__name {
	color: var(--c-ink);
}

.site-nav__list a {
	color: var(--c-muted);
	font-weight: 500;
	transition: color 0.15s ease;
}

.site-nav__list a:hover {
	color: var(--c-primary-dark);
}

.site-footer {
	background: var(--c-ink);
	border: 0;
	color: #cdd9e0;
}

.site-footer h4 {
	color: #fff;
}

.site-footer a,
.site-footer .wf-muted {
	color: #aebcc6;
}

/* Hero + buscador ------------------------------------------------------------*/
.hero {
	background: radial-gradient(1200px 480px at 50% -10%, var(--c-primary-soft), var(--c-bg) 60%);
	padding-block: clamp(48px, 6vw, 96px);
	text-align: center;
	border-bottom: 1px solid var(--c-line);
}

.hero__inner {
	max-width: 760px;
}

.hero__eyebrow {
	color: var(--c-primary-dark);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
	margin: 0 0 10px;
}

.hero__title {
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.hero__lead {
	color: var(--c-muted);
	font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
	margin: 0 auto 28px;
	max-width: 560px;
}

.doctor-search {
	margin: 0 auto;
	max-width: 680px;
}

.doctor-search__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	padding: 8px 8px 8px 18px;
	box-shadow: var(--shadow-md);
}

.doctor-search__bar:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 4px var(--c-primary-soft), var(--shadow-md);
}

.doctor-search__icon {
	color: var(--c-muted);
	flex: 0 0 auto;
}

.doctor-search__input {
	flex: 1 1 auto;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 1.02rem;
	color: var(--c-ink);
	min-width: 0;
	padding: 10px 4px;
}

.doctor-search__submit {
	flex: 0 0 auto;
}

.doctor-search__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.doctor-search__chips-label {
	color: var(--c-muted);
	font-size: 0.9rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: var(--radius-pill);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	color: var(--c-ink);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: all 0.15s ease;
}

.chip:hover {
	border-color: var(--c-primary);
	background: var(--c-primary-soft);
	color: var(--c-primary-dark);
}

.hero__notice {
	margin-top: 22px;
	color: var(--c-muted);
	font-size: 0.9rem;
}

/* Directorio (archive / taxonomy) — V1 clínico limpio -----------------------*/
.directory {
	padding-block: clamp(40px, 5vw, 72px);
}

.directory__head {
	margin-bottom: 22px;
}

.directory__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--c-accent-deep);
	margin: 0 0 6px;
}

.directory__count {
	color: var(--c-muted);
	margin: 0;
}

/* Barra de filtros */
.directory__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 30px;
}

.directory__filters input,
.directory__filters select {
	flex: 1 1 170px;
	padding: 11px 14px;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	font: 500 0.9rem var(--font-sans);
	color: var(--c-ink);
	background: #fff;
}

.directory__filters input::placeholder {
	color: var(--c-muted);
}

.directory__filters .btn {
	flex: 0 0 auto;
}

/* Avatares con iniciales (reutilizados por card y perfil) */
.uxen-av--1 { background: linear-gradient(135deg, #3f7bf5, #1940e5); }
.uxen-av--2 { background: linear-gradient(135deg, #5566d8, #1a2177); }
.uxen-av--3 { background: linear-gradient(135deg, #2f8ef3, #1653c9); }
.uxen-av--4 { background: linear-gradient(135deg, #4f7ef7, #1b2a97); }

/* Grid + card */
.doctor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 18px;
}

.doctor-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doctor-card:hover {
	transform: translateY(-2px);
	border-color: #bcd3ff;
	box-shadow: var(--shadow-md);
}

.doctor-card__top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
}

.doctor-card__avatar {
	width: 60px;
	height: 60px;
	flex: none;
	border-radius: 14px;
	display: grid;
	place-items: center;
	overflow: hidden;
	font: 700 1.15rem var(--font-sans);
	color: #fff;
}

.doctor-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.doctor-card__specialty {
	color: var(--c-accent);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0;
}

.doctor-card__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.15;
	margin: 2px 0 0;
}

.doctor-card__name a {
	color: var(--c-accent-deep);
	text-decoration: none;
}

.doctor-card__name a:hover {
	color: var(--c-accent);
}

.doctor-card__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0 18px 14px;
	color: var(--c-muted);
	font-size: 0.83rem;
}

.doctor-card__meta span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.doctor-card__meta svg {
	width: 15px;
	height: 15px;
	flex: none;
	color: var(--c-accent);
}

.doctor-card__foot {
	display: flex;
	gap: 8px;
	padding: 14px 18px;
	border-top: 1px solid var(--c-border);
	margin-top: auto;
}

.doctor-card__link {
	flex: 1;
	justify-content: center;
}

.doctor-card__icon {
	width: 42px;
	height: 42px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 10px;
	border: 1px solid var(--c-border);
	background: #fff;
	color: var(--c-accent);
	transition: background 0.2s ease;
}

.doctor-card__icon:hover {
	background: var(--c-accent-soft);
}

.doctor-card__icon svg {
	width: 18px;
	height: 18px;
}

.doctor-card__icon--wa {
	color: #12915a;
	border-color: #dcf3e8;
}

.doctor-card__icon--wa:hover {
	background: #dcf3e8;
}

/* Botones en contexto de doctores → azul de marca */
.directory .btn--primary,
.doctor-profile .btn--primary {
	background: var(--c-accent);
	border-color: var(--c-accent);
}

.directory .btn--primary:hover,
.doctor-profile .btn--primary:hover {
	background: var(--c-accent-strong);
}

.doctor-card .btn--ghost,
.doctor-profile .btn--ghost {
	color: var(--c-accent-deep);
	border-color: var(--c-border);
}

.doctor-card .btn--ghost:hover,
.doctor-profile .btn--ghost:hover {
	border-color: var(--c-accent);
	background: var(--c-accent-soft);
	color: var(--c-accent);
}

.btn--wa {
	background: #12915a;
	color: #fff;
	border-color: #12915a;
}

.btn--wa:hover {
	background: #0f7a49;
	color: #fff;
}

.directory__pagination {
	margin-top: 36px;
}

.directory__pagination .page-numbers {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	margin: 0 3px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--c-line);
	background: var(--c-surface);
	color: var(--c-ink);
	text-decoration: none;
}

.directory__pagination .page-numbers.current {
	background: var(--c-accent);
	color: #fff;
	border-color: var(--c-accent);
}

.directory__empty {
	text-align: center;
	padding: 56px 20px;
	background: var(--c-surface);
	border: 1px dashed var(--c-line);
	border-radius: var(--radius);
}

.directory__empty-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.directory__empty-text {
	color: var(--c-muted);
	margin: 0 0 18px;
}

/* Perfil del doctor — V1 clínico limpio (2 columnas) ------------------------*/
.doctor-profile {
	padding-block: clamp(36px, 5vw, 64px);
}

.doctor-profile__grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 28px;
	align-items: start;
}

.doctor-profile__side {
	position: sticky;
	top: 90px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	padding: 24px;
	text-align: center;
}

.doctor-profile__avatar {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	overflow: hidden;
	font: 700 2rem var(--font-sans);
	color: #fff;
}

.doctor-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.doctor-profile__specialty {
	color: var(--c-accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78rem;
	margin: 0;
}

.doctor-profile__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--c-accent-deep);
	line-height: 1.1;
	margin: 4px 0 16px;
}

.doctor-profile__cta {
	display: grid;
	gap: 8px;
}

.doctor-profile__cta .btn {
	justify-content: center;
}

.doctor-profile__facts {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--c-border);
	text-align: left;
	display: grid;
	gap: 12px;
}

.doctor-profile__facts > div {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 0.83rem;
	color: var(--c-muted);
}

.doctor-profile__facts svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--c-accent);
	margin-top: 1px;
}

.doctor-profile__facts b {
	display: block;
	color: var(--c-accent-deep);
	font-weight: 600;
}

.doctor-profile__main {
	display: grid;
	gap: 16px;
}

.doctor-profile__card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	padding: 22px 24px;
}

.doctor-profile__card h2,
.doctor-profile__card h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--c-accent-deep);
	margin: 0 0 10px;
}

.doctor-profile__bio {
	color: var(--c-ink);
	line-height: 1.7;
}

.doctor-profile__bio p {
	margin: 0 0 12px;
}

.doctor-profile__bio :last-child {
	margin-bottom: 0;
}

.doctor-profile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.doctor-profile__tag {
	display: inline-flex;
	align-items: center;
	font: 600 0.78rem var(--font-sans);
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent-strong);
}

.doctor-profile__dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 22px;
	margin: 0;
}

.doctor-profile__dl dt {
	color: var(--c-muted);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.doctor-profile__dl dd {
	margin: 2px 0 0;
	color: var(--c-accent-deep);
	font-weight: 600;
	font-size: 0.9rem;
}

.doctor-profile__back {
	display: inline-block;
	color: var(--c-accent);
	text-decoration: none;
	font-weight: 600;
}

.doctor-profile__back:hover {
	color: var(--c-accent-strong);
}

@media (max-width: 820px) {
	.doctor-profile__grid {
		grid-template-columns: 1fr;
	}
	.doctor-profile__side {
		position: static;
	}
	.doctor-profile__dl {
		grid-template-columns: 1fr;
	}
}

/* Modernización de las secciones del home heredadas del wireframe ------------*/
.wf-box {
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	background: var(--c-surface);
}

.wf-section {
	border-bottom: 0;
}

.section-features__grid .wf-card,
.wf-card {
	border-radius: var(--radius);
	border: 1px solid var(--c-line);
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.section-features__grid .wf-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.wf-image {
	border: 0;
	background: linear-gradient(135deg, var(--c-primary-soft), #fff);
	color: var(--c-primary-dark);
	border-radius: var(--radius);
}

.wf-btn {
	border-radius: var(--radius-pill);
	border-color: var(--c-line);
}

.wf-btn--solid {
	background: var(--c-primary);
	border-color: var(--c-primary);
}

.wf-section__title {
	letter-spacing: -0.01em;
}

/* Responsive ----------------------------------------------------------------*/
@media (max-width: 600px) {
	.doctor-search__bar {
		flex-wrap: wrap;
		border-radius: var(--radius);
		padding: 12px;
	}

	.doctor-search__input {
		flex-basis: 100%;
		order: 1;
	}

	.doctor-search__submit {
		flex: 1 1 100%;
		order: 2;
	}
}

/* Página «Agendar cita» ------------------------------------------------------*/
.agendar {
	padding-block: clamp(40px, 5vw, 72px);
}

.agendar__wrap {
	max-width: 1040px;
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 44px);
}

.uxen-cita__ok {
	background: #e7f6ec;
	color: #166534;
	padding: 13px 18px;
	border-radius: 12px;
	margin: 0 0 20px;
	font-weight: 600;
}

/* Campos compartidos */
.uxen-cita__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.uxen-cita__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.uxen-cita__field--full {
	grid-column: 1 / -1;
}

.uxen-cita__field--gap {
	margin-top: 14px;
}

.uxen-cita__field > span {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--c-accent-deep);
}

.uxen-cita input,
.uxen-cita select,
.uxen-cita textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: 11px;
	font: 400 0.92rem var(--font-sans);
	color: var(--c-ink);
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.uxen-cita input:focus,
.uxen-cita select:focus,
.uxen-cita textarea:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.uxen-cita__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 18px 0 0;
	font-size: 0.84rem;
	color: var(--c-muted);
}

.uxen-cita__consent input {
	width: auto;
	margin-top: 3px;
}

.uxen-cita__consent a {
	color: var(--c-accent);
	text-decoration: underline;
}

.uxen-cita__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.uxen-cita__h {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 600;
	color: var(--c-accent-deep);
	margin: 0 0 18px;
}

/* V1 · split panel (página general) */
.uxen-cita--split {
	display: grid;
	grid-template-columns: 0.82fr 1fr;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.uxen-cita__brand {
	padding: clamp(26px, 3vw, 40px);
	color: #fff;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(88% 78% at 8% 2%, rgba(47, 110, 243, 0.85) 0%, rgba(47, 110, 243, 0) 52%),
		radial-gradient(82% 90% at 100% 100%, rgba(25, 64, 229, 0.92) 0%, rgba(25, 64, 229, 0) 60%),
		linear-gradient(150deg, #1940e5 0%, #1b2a97 55%, #1a2177 100%);
}

.uxen-cita__eyebrow {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #bcd3ff;
}

.uxen-cita__h--light {
	color: #fff;
	margin: 12px 0 8px;
	line-height: 1.1;
}

.uxen-cita__brandp {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.92rem;
	margin: 0 0 24px;
}

.uxen-cita__trust {
	list-style: none;
	margin: 0 0 auto;
	padding: 0;
	display: grid;
	gap: 14px;
}

.uxen-cita__trust li {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 0.9rem;
}

.uxen-cita__tic {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.14);
	display: grid;
	place-items: center;
	flex: none;
}

.uxen-cita__tic svg {
	width: 18px;
	height: 18px;
}

.uxen-cita__brandfoot {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.uxen-cita__brandfoot a {
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	gap: 9px;
	align-items: center;
	font-size: 0.9rem;
	font-weight: 600;
}

.uxen-cita__brandfoot svg {
	width: 18px;
	height: 18px;
}

.uxen-cita__formside {
	padding: clamp(26px, 3vw, 40px);
}

.uxen-cita__formh {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--c-accent-deep);
	margin: 0 0 18px;
}

/* V4 · checkout con resumen (desde un médico) */
.uxen-cita--checkout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 26px;
	align-items: start;
}

.uxen-cita__main {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 20px;
	box-shadow: var(--shadow-sm);
	padding: clamp(22px, 3vw, 34px);
}

.uxen-cita__sum {
	position: sticky;
	top: 90px;
	background: var(--c-accent-deep);
	color: #fff;
	border-radius: 20px;
	padding: 26px;
	box-shadow: var(--shadow-md);
}

.uxen-cita__sumh {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 16px;
}

.uxen-cita__sumrow {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.88rem;
}

.uxen-cita__sumrow:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.uxen-cita__sumrow svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: #bcd3ff;
	margin-top: 1px;
}

.uxen-cita__sumrow b {
	display: block;
	font-weight: 600;
}

.uxen-cita__sumrow span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.82rem;
}

.uxen-cita__av {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3f7bf5, #1940e5);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.85rem;
	flex: none;
}

.uxen-cita__submit,
.uxen-cita__wa {
	width: 100%;
}

.uxen-cita__submit {
	margin-top: 18px;
}

.uxen-cita__wa {
	margin-top: 10px;
}

@media (max-width: 820px) {
	.uxen-cita--split,
	.uxen-cita--checkout {
		grid-template-columns: 1fr;
	}
	.uxen-cita__sum {
		position: static;
	}
}

@media (max-width: 560px) {
	.uxen-cita__grid {
		grid-template-columns: 1fr;
	}
}

/* ===========================================================================
   Hospitales (sedes) — V1 clínico limpio. Títulos en Inter (scoped a sedes).
   =========================================================================== */
.sede-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

/* Placeholder de "foto": degradado de marca + glifo */
.sede-card__ph,
.sede-hero__ph {
	background:
		radial-gradient(88% 78% at 8% 2%, rgba(47, 110, 243, 0.85) 0%, rgba(47, 110, 243, 0) 52%),
		radial-gradient(82% 90% at 100% 100%, rgba(25, 64, 229, 0.92) 0%, rgba(25, 64, 229, 0) 60%),
		linear-gradient(150deg, #1940e5 0%, #1b2a97 55%, #1a2177 100%);
}

/* Chips y badges compartidos */
.sede-chip {
	display: inline-flex;
	align-items: center;
	font: 600 0.73rem var(--font-sans);
	padding: 5px 11px;
	border-radius: 100px;
	background: var(--c-accent-soft);
	color: var(--c-accent-strong);
}

.sede-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sede-badge,
.sede-card__badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	width: fit-content;
	font: 600 0.72rem var(--font-sans);
	padding: 5px 11px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.92);
	color: #0c7a3c;
}

.sede-badge .dot,
.sede-card__badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #12a150;
}

.sede-badge--next,
.sede-card__badge--next {
	color: #1f52c8;
}
.sede-badge--next .dot,
.sede-card__badge--next .dot {
	background: #2f6ef3;
}

.sede-badge--dev,
.sede-card__badge--dev {
	color: #8a6a00;
}
.sede-badge--dev .dot,
.sede-card__badge--dev .dot {
	background: #e0a800;
}

/* Card del listado */
.sede-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sede-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: #bcd3ff;
}

.sede-card__media {
	position: relative;
	display: block;
	height: 140px;
}

.sede-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sede-card__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.sede-card__ph svg {
	width: 46px;
	height: 46px;
	color: rgba(255, 255, 255, 0.5);
	stroke-width: 1.5;
}

.sede-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	box-shadow: var(--shadow-sm);
}

.sede-card__body {
	display: flex;
	flex-direction: column;
	padding: 16px 18px 18px;
	flex: 1 1 auto;
}

.sede-card__name {
	font: 600 1.15rem var(--font-sans);
	color: var(--c-accent-deep);
	margin: 0;
}

.sede-card__name a {
	color: inherit;
	text-decoration: none;
}

.sede-card__name a:hover {
	color: var(--c-accent);
}

.sede-card__loc {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--c-muted);
	font-size: 0.84rem;
	margin: 5px 0 12px;
}

.sede-card__loc svg {
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--c-accent);
}

/* Dirección del desarrollo. Va sangrada a la altura del texto de .sede-card__loc
   (14px de icono + 6px de gap) para que ciudad y calle formen una sola columna. */
.sede-card__addr {
	margin: -8px 0 12px;
	padding-left: 20px;
	color: var(--c-muted);
	font-size: 0.78rem;
	line-height: 1.45;
}

.sede-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sede-card__foot {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.sede-card__foot .btn {
	flex: 1;
}

/* Ficha individual */
.sede-hero {
	position: relative;
	height: clamp(220px, 34vw, 320px);
	overflow: hidden;
}

.sede-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sede-hero__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.sede-hero__ph svg {
	width: 60px;
	height: 60px;
	color: rgba(255, 255, 255, 0.4);
	stroke-width: 1.5;
}

.sede-hero__over {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(20px, 4vw, 40px);
	color: #fff;
	background: linear-gradient(180deg, rgba(10, 15, 60, 0) 35%, rgba(10, 15, 60, 0.72));
}

.sede-hero__title {
	font: 600 clamp(1.7rem, 3vw, 2.4rem) var(--font-sans);
	letter-spacing: -0.01em;
	margin: 10px 0 4px;
}

.sede-hero__city {
	display: flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	margin: 0;
}

.sede-hero__city svg {
	width: 16px;
	height: 16px;
}

.sede-wrap {
	max-width: 1180px;
	margin-inline: auto;
	padding: clamp(28px, 4vw, 52px) clamp(18px, 4vw, 44px);
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
}

.sede-crumbs {
	grid-column: 1 / -1;
	margin-bottom: -8px;
}

.sede-main {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.sede-block {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	padding: 24px;
}

.sede-block h2 {
	font: 600 1.25rem var(--font-sans);
	color: var(--c-accent-deep);
	margin: 0 0 14px;
}

.sede-prose {
	color: var(--c-ink);
	line-height: 1.7;
}

.sede-prose p {
	margin: 0 0 12px;
}

.sede-svcs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sede-svc {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.9rem;
}

.sede-svc svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: #12915a;
}

.sede-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
}

.sede-metric {
	background: var(--c-accent-soft);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
}

.sede-metric b {
	display: block;
	font: 600 1.5rem var(--font-sans);
	color: var(--c-accent-deep);
}

.sede-metric span {
	font-size: 0.74rem;
	color: var(--c-muted);
}

.sede-gal {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.sede-gal img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 10px;
}

.sede-faq {
	border-bottom: 1px solid var(--c-border);
	padding: 12px 0;
}

.sede-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--c-accent-deep);
}

.sede-faq p {
	margin: 10px 0 0;
	color: var(--c-muted);
}

/* Ficha lateral (aside sticky) */
.sede-aside {
	position: sticky;
	top: 90px;
	display: grid;
	gap: 16px;
}

.sede-loc {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	padding: 20px;
}

.sede-loc h2 {
	font: 600 1.15rem var(--font-sans);
	color: var(--c-accent-deep);
	margin: 0 0 14px;
}

.sede-map {
	position: relative;
	display: block;
	height: 200px;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 14px;
	border: 1px solid var(--c-border);
}

.sede-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sede-loc__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.85rem;
	padding: 9px 0;
	border-top: 1px solid var(--c-border);
}

.sede-loc__row:first-of-type {
	border-top: 0;
}

.sede-loc__row svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--c-accent);
	margin-top: 1px;
}

.sede-loc__row a {
	color: var(--c-accent-deep);
	text-decoration: none;
}

.sede-loc .btn {
	width: 100%;
	margin-top: 8px;
}

.sede-back {
	display: inline-block;
	color: var(--c-accent);
	font-weight: 600;
	text-decoration: none;
}

.sede-back:hover {
	color: var(--c-accent-strong);
}

@media (max-width: 860px) {
	.sede-wrap {
		grid-template-columns: 1fr;
	}
	.sede-aside {
		position: static;
	}
}

@media (max-width: 480px) {
	.sede-svcs {
		grid-template-columns: 1fr;
	}
}
