/* ==========================================================================
   Artroscopia Dr. Cortez — main.css
   ========================================================================== */

:root {
	--navy: #0b2551;
	--blue: #0d4fa3;
	--blue-600: #0a4290;
	--blue-accent: #1561c4;
	--ink: #33425c;
	--muted: #6a7890;
	--line: #d9e4f2;
	--bg: #ffffff;
	--bg-soft: #f2f7fd;
	--bg-blue: #e8f1fb;
	--glow: #ff8a3d;
	--white: #fff;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px -12px rgba(11, 37, 81, .18);
	--shadow-lg: 0 24px 50px -20px rgba(11, 37, 81, .28);
	--serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; /* títulos */
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Tipografía ---------- */
.eyebrow {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
}
.h-display, .hero__title {
	font-family: var(--serif);
	font-weight: 700;
	color: var(--navy);
	line-height: 1.08;
	letter-spacing: -.025em;
	font-size: clamp(38px, 4.6vw, 64px);
}
.h-display em, .hero__title em { font-style: normal; color: var(--blue-accent); }
.h-section {
	font-family: var(--serif);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--navy);
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1.12;
}
.h-section--lg { font-size: clamp(30px, 3.2vw, 46px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 26px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border: 1.5px solid transparent;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
	white-space: nowrap;
}
.btn .ico:last-child:not(:first-child) { transition: transform .25s var(--ease); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(13, 79, 163, .7); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--navy); border-color: #b9cde6; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--wa { background: #fff; color: var(--navy); border-color: #b9cde6; }
.btn--wa .ico { color: #25d366; width: 1.4em; height: 1.4em; }
.btn--wa:hover { border-color: #25d366; }
.btn--sm { padding: 12px 20px; font-size: 14px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; color: var(--blue);
}
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.circle-arrow {
	display: inline-grid; place-items: center;
	width: 34px; height: 34px; border-radius: 50%;
	border: 1.5px solid #b9cde6; color: var(--blue);
	transition: background .25s, color .25s, border-color .25s;
}
.circle-arrow .ico { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	transition: box-shadow .3s;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en .site-header,
   el menú móvil (position: fixed) quedaría atrapado dentro del header. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11,37,81,.35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); flex-shrink: 0; white-space: nowrap; }
.brand__icon { width: 46px; height: auto; mix-blend-mode: multiply; }
.brand__logo { max-height: 58px; width: auto; height: auto; }
.site-footer .brand__logo { max-height: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text small { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #5a8fd0; font-weight: 500; }
.brand__text strong { font-size: 22px; font-weight: 600; letter-spacing: .01em; color: var(--blue); margin-top: 3px; }
.brand--light, .brand--light .brand__text strong { color: #fff; }
.brand--light .brand__icon { mix-blend-mode: normal; background: #fff; border-radius: 10px; padding: 4px; }
.brand--light .brand__text small { color: #a9c6ec; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 9px; font-size: 14px; font-weight: 500; color: var(--navy);
	position: relative; white-space: nowrap;
}
.nav__list > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); transition: transform .25s;
}
.nav__list > li > a::before {
	content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px;
	background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list > li:hover > a::before,
.nav__list > .current-menu-item > a::before { transform: scaleX(1); }
.nav__list > .current-menu-item > a { font-weight: 700; }
.sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
	background: #fff; border-radius: 14px; padding: 10px;
	box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--navy); }
.sub-menu a:hover { background: var(--bg-blue); color: var(--blue); }
.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list > li:hover > a::after { transform: rotate(225deg); margin-top: 3px; }
.nav__cta-mobile { display: none; }
.burger { display: none; background: none; border: 0; color: var(--navy); padding: 8px; margin-left: auto; }
.burger .ico { width: 28px; height: 28px; }
.burger__close { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: linear-gradient(180deg, #f6f9fe 0%, #eef4fc 100%);
	overflow: hidden;
	min-height: 660px;
}
.hero__media {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 50%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.hero__media::after { /* curva blanca inferior */
	content: ""; position: absolute; left: -10%; right: -5%; bottom: -1px; height: 42%;
	background: #f1f6fd;
	clip-path: ellipse(70% 55% at 22% 100%);
}
.hero__card {
	position: absolute; right: clamp(16px, 5vw, 64px); top: 52%;
	max-width: 230px; padding: 14px 18px;
	background: rgba(255,255,255,.72);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.8);
	border-radius: 12px; box-shadow: var(--shadow);
}
.hero__card strong { display: block; font-size: 16px; line-height: 1.25; color: var(--navy); }
.hero__card span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.hero__play {
	position: absolute; right: calc(clamp(16px, 5vw, 64px) + 70px); top: calc(52% + 120px);
	display: inline-flex; align-items: center; gap: 12px;
	background: none; border: 0; color: #fff; font-weight: 600; font-size: 15px;
	text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero__play-ico {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: #fff; color: var(--navy); box-shadow: 0 0 0 0 rgba(255,255,255,.6);
	animation: pulse 2.4s infinite;
}
.hero__play-ico .ico { width: 20px; height: 20px; margin-left: 3px; }
.hero__inner { position: relative; z-index: 2; padding-top: clamp(56px, 7vw, 92px); padding-bottom: 56px; }
.hero__content { max-width: 560px; }
.hero__title { font-size: clamp(42px, 5vw, 72px); margin-bottom: 22px; }
.hero__text { font-size: 17.5px; max-width: 540px; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.stats { display: flex; flex-wrap: nowrap; gap: 18px 0; margin-top: 64px; position: relative; z-index: 2; width: max-content; max-width: 100%; }
.stat {
	display: flex; align-items: center; gap: 14px;
	padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line);
}
.stat:last-child { border: 0; margin: 0; padding: 0; }
.stat > .ico { width: 34px; height: 34px; color: var(--blue); stroke-width: 1.4; }
.stat strong { display: block; font-size: 17px; color: var(--navy); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stat strong span { font-size: inherit; color: inherit; }

/* ---------- Zonas de dolor ---------- */
.zonas {
	position: relative;
	background:
		radial-gradient(60% 70% at 55% 50%, #e4effc 0%, transparent 70%),
		linear-gradient(180deg, #f7fafe 0%, #eef4fb 100%);
	overflow-x: clip; /* sin recorte vertical: las fichas de lesiones pueden salir sobre la sección siguiente */
	z-index: 3;
}
.zonas::after { /* montañas suaves */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(185, 206, 232, .35));
	clip-path: polygon(0 70%, 8% 45%, 16% 62%, 26% 30%, 36% 58%, 46% 40%, 58% 66%, 70% 35%, 82% 60%, 92% 42%, 100% 55%, 100% 100%, 0 100%);
}
.zonas__grid {
	display: grid; grid-template-columns: 1fr 1.05fr .4fr; align-items: center; gap: 24px;
	min-height: 640px; position: relative; z-index: 1;
}
.zonas__intro .h-display { margin-bottom: 18px; }
.zonas__intro .lead { max-width: 420px; margin-bottom: 30px; }
.zonas__aside {
	justify-self: end; padding-left: 18px; border-left: 2px solid var(--blue);
	font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 2; color: var(--muted);
}

.body-map { position: relative; align-self: end; max-width: 620px; justify-self: center; width: 100%; }
.body-map > img {
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 82%, transparent);
	-webkit-mask-composite: source-in;
	        mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 82%, transparent);
	        mask-composite: intersect;
}
.hotspot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; }
.hotspot.is-open { z-index: 20; }
.hotspot__btn {
	position: relative;
	background: #fff; color: var(--navy); border: 0; border-radius: 999px;
	padding: 9px 20px; font-size: 14px; font-weight: 600;
	box-shadow: 0 8px 22px -8px rgba(11,37,81,.35);
	transition: background .25s, color .25s, transform .25s var(--ease);
}
.hotspot__btn::before { /* punto pulsante */
	content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
	background: var(--glow); box-shadow: 0 0 0 0 rgba(255,138,61,.6); animation: pulse-glow 2s infinite;
	opacity: 0; transition: opacity .25s;
}
.hotspot__btn:hover, .hotspot__btn[aria-expanded="true"] { background: var(--blue); color: #fff; transform: scale(1.05); }
.hotspot__btn:hover::before, .hotspot__btn[aria-expanded="true"]::before { opacity: 1; }
.hotspot--left .hotspot__btn::before { right: -16px; }
.hotspot--right .hotspot__btn::before { left: -16px; }
.hotspot__pop {
	position: absolute; top: calc(100% + 10px); width: 250px;
	background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-lg);
	border: 1px solid var(--line); font-size: 14px;
	animation: pop .3s var(--ease);
}
.hotspot--left .hotspot__pop { left: 0; }
.hotspot--right .hotspot__pop { right: 0; }
.hotspot--up .hotspot__pop { top: auto; bottom: calc(100% + 10px); }
@media (max-width: 960px) {
	/* En mobile la figura es pequeña: las zonas de la mitad inferior abren la ficha hacia arriba. */
	.hotspot--lower .hotspot__pop { top: auto; bottom: calc(100% + 10px); }
	.hotspot__pop { width: min(240px, 70vw); }
}
.hotspot__pop-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.hotspot__pop li { position: relative; padding-left: 16px; margin: 4px 0; color: var(--ink); line-height: 1.4; }
.hotspot__pop li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-accent); }
.hotspot__pop a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--blue); }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: end; gap: 32px; margin-bottom: 40px; }
.section-head__text { color: var(--ink); font-size: 15px; max-width: 470px; padding-bottom: 8px; }
.section-head .link-arrow { padding-bottom: 8px; }
.section-head--row { grid-template-columns: 1fr auto; margin-bottom: 28px; }
.section-head--row .eyebrow { margin-bottom: 6px; }

/* ---------- Tratamientos ---------- */
.tratamientos { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.treat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.treat-card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); border: 1px solid #edf2f9;
	transition: transform .35s var(--ease), box-shadow .35s;
}
.treat-card__img { display: block; aspect-ratio: 133 / 117; overflow: hidden; }
.treat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.treat-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 20px 22px 58px; }
.treat-card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1.15; color: var(--navy); margin-bottom: 10px; }
.treat-card__text { font-size: 13.5px; color: var(--muted); line-height: 1.45; max-width: 170px; }
.treat-card .circle-arrow { position: absolute; right: 18px; bottom: 18px; }
.treat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.treat-card:hover .treat-card__img img { transform: scale(1.06); }
.treat-card:hover .circle-arrow, .case-card:hover .circle-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Doctor ---------- */
.doctor { background: var(--bg-soft); padding: 40px 0 88px; }
.doctor__grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.doctor__panel {
	display: grid; grid-template-columns: 1fr .82fr; align-items: end;
	background: linear-gradient(110deg, #eef4fc 0%, #e3edf9 60%, #dfe9f6 100%);
	border-radius: var(--radius-lg); position: relative; overflow: hidden;
	padding-left: 48px; min-height: 520px;
	box-shadow: var(--shadow); border: 1px solid #e3ecf7;
}
.doctor__text { padding: 56px 24px 48px 0; position: relative; z-index: 2; }
.doctor__text .h-display { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 18px; }
.doctor__text .lead { font-size: 16px; max-width: 470px; margin-bottom: 28px; }
.doctor__sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; margin-left: 200px; }
.doctor__sign img { width: 120px; }
.doctor__sign span { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.doctor__photo { margin: 0; align-self: stretch; position: relative; overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.features { display: flex; flex-direction: column; gap: 22px; padding: 24px 0; }
.feature { display: flex; align-items: center; gap: 16px; }
.feature__ico {
	display: grid; place-items: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
	border: 1.5px solid #b9cde6; color: var(--blue); background: #fff;
	transition: background .3s, color .3s, transform .3s var(--ease);
}
.feature__ico .ico { width: 24px; height: 24px; }
.feature:hover .feature__ico { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.feature strong { display: block; font-size: 15px; color: var(--navy); line-height: 1.3; }
.feature span { font-size: 13px; color: var(--muted); }

/* ---------- Casos ---------- */
.casos { background: #fff; padding-bottom: 40px; }
.carousel { position: relative; }
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4);
	gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 2px 22px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__nav {
	position: absolute; top: 40%; z-index: 2; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
	background: #fff; color: var(--navy); box-shadow: var(--shadow);
	transition: background .25s, color .25s, opacity .25s;
}
.carousel__nav:hover { background: var(--blue); color: #fff; }
.carousel__nav[disabled] { opacity: .35; pointer-events: none; }
.carousel__nav--prev { left: -64px; }
.carousel__nav--next { right: -64px; }
.carousel__bar { width: 120px; height: 3px; margin: 10px auto 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.carousel__bar span { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 3px; transition: transform .3s var(--ease), width .3s; }

/* ---------- Pacientes ---------- */
.pacientes { background: linear-gradient(180deg, #fff, var(--bg-soft)); padding-top: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.info-card {
	display: flex; align-items: center; gap: 14px; padding: 20px 18px;
	background: #fff; border-radius: var(--radius); border: 1px solid #edf2f9; box-shadow: var(--shadow);
	transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.info-card__ico {
	display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
	border: 1.5px solid #b9cde6; color: var(--blue); transition: background .3s, color .3s;
}
.info-card__ico .ico { width: 26px; height: 26px; }
.info-card__title { font-size: 14px; font-weight: 600; color: var(--blue); line-height: 1.35; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f4; }
.info-card:hover .info-card__ico { background: var(--blue); color: #fff; }

/* ---------- CTA ---------- */
.cta { position: relative; background: linear-gradient(90deg, #eef4fc, #e6eff9); overflow: hidden; }
.cta__media {
	position: absolute; left: 0; top: 0; bottom: 0; width: 52%;
	clip-path: ellipse(100% 95% at 0% 50%);
}
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.cta__inner { display: flex; justify-content: flex-end; position: relative; z-index: 1; }
.cta__content { width: 46%; max-width: 560px; padding-left: 48px !important; padding: clamp(56px, 6vw, 84px) 0; }
.cta__content .h-section { margin-bottom: 18px; }
.cta__content .lead { font-size: 16px; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__perks { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; font-size: 13px; color: var(--ink); }
.cta__perks li { display: inline-flex; align-items: center; gap: 8px; }
.cta__perks .ico { color: var(--blue); width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4d3ea; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.15fr 1.3fr 1fr 1.05fr 1.4fr; gap: 36px; padding-top: 64px; padding-bottom: 48px; }
.site-footer__brand p { margin-top: 18px; line-height: 1.6; }
.site-footer__reg { font-size: 12.5px; color: #8fa8cc; }
.site-footer__title { font-family: var(--serif); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 16px; }
.site-footer__list li { margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; gap: 10px; margin: 10px 0; align-items: flex-start; }
.site-footer__contact .ico { color: #7fb0ec; margin-top: 3px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8fa8cc; }
.site-footer__legal { display: flex; gap: 18px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
	transition: transform .3s var(--ease);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Modal de video ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 45, .8); }
.modal__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; animation: pop .35s var(--ease); }
.modal__media, .modal__media iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy); display: grid; place-items: center; }

/* ---------- Páginas internas ---------- */
.page-hero { background: linear-gradient(180deg, #f6f9fe, #eaf2fb); padding: 72px 0 56px; }
.prose-wrap { padding-top: 56px; padding-bottom: 72px; }
.prose { max-width: 780px; font-size: 17px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin-top: 1.6em; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose__thumb { border-radius: var(--radius); margin-bottom: 1.5em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding-bottom: 20px; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card h2 { font-family: var(--serif); color: var(--navy); font-size: 21px; margin: 18px 20px 8px; }
.post-card p { margin: 0 20px 12px; color: var(--muted); font-size: 14.5px; }
.post-card .link-arrow { margin-left: 20px; }
.post-grid--list { margin-top: 48px; }
.prose--wide { max-width: none; }
.nav-open .wa-float { opacity: 0; pointer-events: none; }


/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #c4d3ea; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar__contact li { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact .ico { width: 14px; height: 14px; color: #7fb0ec; }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #c4d3ea; transition: background .25s, color .25s; }
.socials a:hover { background: #fff; color: var(--navy); }
.socials .ico { width: 16px; height: 16px; }
.socials--sm { margin: 0; gap: 4px; }
.socials--sm a { width: 28px; height: 28px; border: 0; }
.socials--sm .ico { width: 14px; height: 14px; }

/* ---------- Hero extras ---------- */
.hero__doctor { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--blue); margin: -4px 0 10px; }
.hero__services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero__services a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #cfe0f4; font-size: 13.5px; font-weight: 600; color: var(--navy); transition: background .25s, color .25s, border-color .25s; }
.hero__services a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Bienvenidos (tabs) ---------- */
.bienvenidos { background: #fff; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs__btn { background: none; border: 0; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--muted); position: relative; }
.tabs__btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs__btn[aria-selected="true"] { color: var(--navy); }
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; animation: pop .35s var(--ease); }
.tab-panel[hidden] { display: none; }
.tab-panel__title { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 2.4vw, 34px); color: var(--navy); line-height: 1.15; margin-bottom: 16px; }
.tab-panel__kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-accent); margin-bottom: 8px; }
.tab-panel__sub { font-size: 17px; font-weight: 700; color: var(--navy); margin: 22px 0 6px; }
.tab-panel__text p { margin: 0 0 14px; color: var(--ink); }
.tab-panel__text a:not(.link-arrow) { color: var(--blue); font-weight: 600; }
.tab-panel__img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tab-panel__img img { width: 100%; height: auto; }
.tab-panel__img img + img { border-top: 1px solid var(--line); }
.treat-card__img img[src*="/legacy/"], .treat-card__img img[src*="/uploads/"] { object-position: center 30%; }

/* ---------- Videos ---------- */
.videos { background: var(--bg-soft); }
.carousel__track--videos { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
.video-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #edf2f9; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: start; transition: transform .35s var(--ease), box-shadow .35s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b2551; }
.video-card__img img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); }
.video-card__play .ico { width: 22px; height: 22px; margin-left: 3px; }
.video-card__title { padding: 14px 16px; font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }

/* ---------- Casos (grid) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #edf2f9; transition: transform .35s var(--ease), box-shadow .35s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.06); }
.case-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.case-card__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.case-card__text { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }

/* ---------- Artículos pacientes ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #edf2f9; transition: transform .35s var(--ease), box-shadow .35s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--navy); }
.article-card__body p { font-size: 14px; color: var(--muted); flex: 1; }

/* ---------- Doctor extras ---------- */
.doctor__specs-title { font-weight: 700; color: var(--navy); margin: -8px 0 10px; }
.doctor__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; max-width: 520px; }
.doctor__specs li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #cfe0f4; font-size: 13px; color: var(--navy); }
.site-footer__title--sm { font-size: 16px; margin: 22px 0 0; }
.site-footer__more { margin-top: 14px; }
.site-footer__more .link-arrow { color: #9cc3f2; }

@media (max-width: 1180px) {
	.case-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.carousel__track--videos { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 960px) {
	.topbar__mail, .topbar .socials { display: none; }
	.tab-panel { grid-template-columns: 1fr; gap: 24px; }
	.tab-panel__img { order: -1; max-width: 520px; }
	.tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.tabs__btn { white-space: nowrap; }
	.article-grid { grid-template-columns: 1fr 1fr; }
	.carousel__track--videos { grid-auto-columns: 46%; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.topbar__contact li:nth-child(2) { display: none; }
	.case-grid, .article-grid { grid-template-columns: 1fr; }
	.carousel__track--videos { grid-auto-columns: 82%; }
	.site-footer__grid { grid-template-columns: 1fr; }
}


/* ---------- Nosotros ---------- */
.page-hero--about { padding: 64px 0 48px; }
.page-hero__lead { margin-top: 14px; font-size: 17px; color: var(--ink); }
.about { padding: 56px 0 24px; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about__aside { position: sticky; top: 110px; }
.about__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; height: auto; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.about__facts li { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid #edf2f9; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__facts .ico { width: 28px; height: 28px; color: var(--blue); flex-shrink: 0; }
.about__facts strong { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.25; }
.about__facts span { font-size: 12.5px; color: var(--muted); }
.about__cta { margin-top: 20px; width: 100%; justify-content: center; }
.about__content { max-width: none; font-size: 16.5px; }
.prose h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-accent); margin: 0 0 4px; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue-accent); }
.prose strong { color: var(--navy); }
.prose a { color: var(--blue); }
/* Formulario Contact Form 7 dentro del contenido */
.prose .wpcf7 { margin-top: 32px; padding: 28px; background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose .wpcf7 fieldset, .prose .wpcf7 .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
.prose .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose .wpcf7 .wpcf7-response-output:empty { display: none; }
.prose .wpcf7 .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.prose .wpcf7 .col-md-12 { grid-column: 1 / -1; }
.prose .wpcf7 p { margin: 0 0 12px; }
.prose .wpcf7 input[type=text], .prose .wpcf7 input[type=email], .prose .wpcf7 textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #cfdcec; border-radius: 10px; background: #fff; color: var(--navy); }
.prose .wpcf7 textarea { height: 130px; resize: vertical; }
.prose .wpcf7 input:focus, .prose .wpcf7 textarea:focus { outline: 2px solid var(--blue-accent); outline-offset: 0; border-color: transparent; }
.prose .wpcf7 input[type=submit] { font: inherit; font-weight: 600; padding: 14px 30px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; cursor: pointer; }
.prose .wpcf7 .text-center { text-align: center; }
.gallery-sec { background: var(--bg-soft); margin-top: 48px; }
.dgallery { columns: 4 260px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin: 0 0 18px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #edf2f9; box-shadow: var(--shadow); }
.gallery__img { display: block; overflow: hidden; }
.gallery__img img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery__img:hover img { transform: scale(1.05); }
.gallery__item figcaption { padding: 14px 16px 16px; }
.gallery__title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.gallery__item p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.modal__box--img { aspect-ratio: auto; background: transparent; width: auto; max-width: min(1100px, 100%); }
.modal__box--img img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.modal__caption { color: #fff; text-align: center; margin-top: 10px; font-size: 14px; }
@media (max-width: 960px) {
	.about__grid { grid-template-columns: 1fr; gap: 32px; }
	.about__aside { position: static; }
}
@media (max-width: 600px) {
	.about__facts { grid-template-columns: 1fr; }
	.prose .wpcf7 .row { grid-template-columns: 1fr; }
	.prose .wpcf7 { padding: 20px; }
}


/* ---------- Entradas (blog) ---------- */
.page-hero--post { padding: 64px 0 120px; }
.page-hero--post .h-display { max-width: 900px; font-size: clamp(34px, 4vw, 54px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-meta .ico { width: 16px; height: 16px; color: var(--blue); }
.post-meta a { color: var(--blue); font-weight: 600; }
.post-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: #b9cde6; margin: 0 6px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: -80px; padding-bottom: 72px; position: relative; }
.post-main { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid #edf2f9; overflow: hidden; }
.post-main__thumb { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; }
.post-main__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-main__content { padding: 40px 48px 32px; max-width: none; font-size: 17px; line-height: 1.75; }
.post-main__content h2, .post-main__content h3 { font-size: 24px; letter-spacing: -.01em; }
.post-main__content h4 { margin-top: 1.8em; }
.post-main__content p:has(> .test-popup-link), .post-main__content p:has(> a > img.alignleft) { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.post-main__content img.alignleft, .post-main__content img.alignright, .post-main__content img.aligncenter { float: none; margin: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s; }
.post-main__content a:hover > img { transform: scale(1.03); box-shadow: var(--shadow); }
.post-main__content img { border-radius: 12px; }
.post-main__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 48px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--bg-blue); color: var(--blue); font-weight: 600; font-size: 13px; }
.chip:hover { background: var(--blue); color: #fff; }
.post-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid #edf2f9; box-shadow: var(--shadow); padding: 24px; }
.aside-card__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-accent); margin-bottom: 12px; }
.aside-list li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.35; }
.aside-list li:last-child a { border-bottom: 0; }
.aside-list li a:hover, .aside-list li.is-current a { color: var(--blue); }
.aside-list li.is-current a::before { content: "● "; font-size: 10px; vertical-align: 2px; }
.aside-card__text { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.aside-card--cta { background: linear-gradient(160deg, var(--navy), #123a7a); color: #fff; border: 0; display: flex; flex-direction: column; gap: 14px; }
.aside-card--cta .eyebrow { color: #9cc3f2; margin: 0; }
.aside-card__big { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; }
.aside-card--cta .btn { justify-content: center; background: #25d366; box-shadow: none; }
.aside-card--cta .link-arrow { color: #9cc3f2; }
@media (max-width: 1080px) {
	.post-layout { grid-template-columns: 1fr; }
	.post-aside { position: static; }
}
@media (max-width: 600px) {
	.page-hero--post { padding: 40px 0 90px; }
	.post-main__content { padding: 28px 20px 24px; font-size: 16px; }
	.post-main__footer { padding: 18px 20px 24px; }
	.post-layout { gap: 24px; }
}


/* Galería nativa de WordPress dentro del contenido */
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.prose .gallery br, .prose .gallery > p, .prose .gallery > style { display: none; }
@media (max-width: 600px) { .prose .gallery { grid-template-columns: 1fr 1fr; } }
.prose .gallery .gallery-item { margin: 0; width: auto !important; text-align: left; }
.prose .gallery .gallery-icon img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 0 !important; border-radius: 12px; }
.prose .gallery .gallery-caption { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* WPBakery dentro de la tarjeta de contenido: anula filas "full width" y márgenes negativos del tema anterior */
.prose .vc_row, .prose .vc_row[data-vc-full-width] { position: static !important; left: auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.prose .vc_row-full-width.vc_clearfix { display: none; }
.prose .vc_column_container > .vc_column-inner, .prose [class*="vc_custom_"] { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.prose .vc_column_container > .vc_column-inner { padding-top: 0 !important; }
.prose .vc_col-sm-6, .prose .vc_col-sm-4, .prose .vc_col-sm-8 { width: 100% !important; float: none !important; }
.prose .vc_col-sm-6 + .vc_col-sm-6 { margin-top: 28px !important; }
.prose .vc_custom_heading { margin-bottom: 8px !important; }
.prose .wpb_gmaps_widget iframe, .prose iframe { max-width: 100%; border-radius: 12px; }

/* Datos de contacto ([datos_contacto]) */
.prose .lista-datos-contacto { list-style: none; padding: 0; }
.prose .lista-datos-contacto li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0 10px 0 !important; }
.prose .lista-datos-contacto li::before { display: none; }
.prose .lista-datos-contacto .ico { color: var(--blue); margin-top: 4px; }

/* ---------- Listados y paginación ---------- */
.post-col { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.list-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #edf2f9; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.list-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.list-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.list-card:hover .list-card__img img { transform: scale(1.05); }
.list-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.list-card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.25; }
.list-card__body p { font-size: 14px; color: var(--muted); flex: 1; }
.pagination { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.aside-card__title a:hover { color: var(--navy); }
@media (max-width: 600px) { .list-grid { grid-template-columns: 1fr; } }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--img { transform: scale(1.04); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1360px) {
	.carousel__nav--prev { left: -12px; }
	.carousel__nav--next { right: -12px; }
}

@media (max-width: 1360px) {
	.site-header__cta { display: none; }
}
@media (max-width: 1180px) {
	.stats { flex-wrap: wrap; width: auto; max-width: 620px; }
	.treat-grid { grid-template-columns: repeat(3, 1fr); }
	.info-grid { grid-template-columns: repeat(3, 1fr); }
	.doctor__grid { grid-template-columns: 1fr; }
	.features { display: grid; grid-template-columns: repeat(3, 1fr); padding: 32px 0 48px; }
	.doctor__panel { padding-left: 40px; }
	.zonas__grid { grid-template-columns: 1fr 1fr; }
	.zonas__aside { display: none; }
	.stat { padding-right: 20px; margin-right: 20px; }
}

@media (max-width: 1180px) {
	.burger { display: block; }
	.site-header__cta { display: none; }
	.nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 84px); z-index: 49;
		background: #fff; padding: 12px var(--gutter) 40px; box-shadow: inset 0 1px 0 var(--line);
		overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
	}
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open .burger__open { display: none; }
	.nav-open .burger__close { display: block; }
	/* Menú abierto: el header queda fijo arriba con el logo y la X visibles. */
	.nav-open { overflow: hidden; }
	.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 6px 24px -14px rgba(11,37,81,.35); }
	.nav-open .site-header::before { background: #fff; }
	.nav-open main { margin-top: var(--header-h, 72px); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); }
	.nav__list > li > a { padding: 16px 4px; font-size: 17px; width: 100%; justify-content: space-between; }
	.nav__list > li > a::before { display: none; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; display: none; }
	.nav__list > li.is-open > .sub-menu { display: block; }
	.nav__cta-mobile { display: inline-flex; margin-top: 24px; width: 100%; justify-content: center; }
}
@media (max-width: 960px) {

	.hero { min-height: 0; display: flex; flex-direction: column; } /* mobile: foto primero */
	.hero__media { position: relative; width: 100%; height: 360px; -webkit-mask-image: none; mask-image: none; }
	.hero__media::after { display: none; }
	.hero__card { top: auto; bottom: 16px; right: 16px; left: auto; max-width: 62%; padding: 12px 14px; }
	.hero__card strong { font-size: 15px; }
	.hero__play { top: 16px; right: 16px; left: auto; bottom: auto; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(11,37,81,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; gap: 10px; }
	.hero__play-ico { width: 38px; height: 38px; }
	.hero__inner { padding-top: 32px; }
	.stats { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
	.stat { border: 0; margin: 0; padding: 0; }

	.zonas__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
	.body-map { max-width: 520px; }

	.section-head { grid-template-columns: 1fr; gap: 14px; }
	.section-head--row { grid-template-columns: 1fr; }
	.carousel__track { grid-auto-columns: 46%; }
	.carousel__nav { display: none; }

	.doctor__panel { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
	.doctor__text { padding: 36px 24px 32px; }
	.doctor__sign { margin-left: 0; }
	.doctor__photo { margin: 0 16px 16px; border-radius: 16px; aspect-ratio: 4 / 3; max-height: none; }
	.doctor__photo img { object-position: center; }
	.features { grid-template-columns: 1fr 1fr; }

	.cta { display: flex; flex-direction: column; }
	.cta__media { position: relative; width: 100%; height: 280px; clip-path: none; }
	.cta__content { padding-left: 0 !important; }
	.cta__content { width: 100%; padding-top: 40px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.site-header__inner { height: 72px; }
	.brand__icon { width: 38px; }
	.brand__text strong { font-size: 19px; }
	.hero__actions .btn { width: 100%; justify-content: center; }
	.hero__card { max-width: 70%; }
	.hero__media { height: 320px; }
	.treat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.treat-card__body { padding: 16px 16px 54px; }
	.treat-card__title { font-size: 18px; }
	.info-grid { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr; }
	.carousel__track { grid-auto-columns: 82%; }
	.hotspot__btn { padding: 7px 14px; font-size: 12.5px; }
	.hotspot__pop { width: 220px; }
	.cta__actions .btn { width: 100%; justify-content: center; }
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* v1.0.5 — Hero: paciente con dolor de rodilla (reemplazo-articular-bg.jpg, 2048x891) */
.hero__media { overflow: hidden; }
.hero__media > img { object-position: 58% 50%; }
@media (max-width: 900px) {
	.hero__media > img { object-position: 60% 40%; }
}

/* v1.0.4 — Contáctanos: columna "Formulario" de WPBakery con fondo gris y paddings propios */
.prose .vc_col-has-fill > .vc_column-inner,
.prose .vc_column-inner[class*="vc_custom_"] { background: transparent !important; padding: 0 !important; border: 0 !important; }
.prose .vc_custom_heading[class*="vc_custom_"],
.prose .wpb_text_column[class*="vc_custom_"] { margin: 0 0 12px !important; padding: 0 !important; background: none !important; }
.prose .vc_col-sm-6 + .vc_col-sm-6 { margin-top: 48px !important; }
.prose h4.vc_custom_heading { font-family: var(--serif) !important; letter-spacing: .12em; }
