/* ==========================================================================
   Wisar Salud – estilos del sitio
   Colores de marca: #077573 (PANTONE 3242C oscuro) y #78C7CB (PANTONE 3242C)
   ========================================================================== */

:root {
	--c-primary: #077573;
	--c-primary-dark: #055a59;
	--c-primary-darker: #033f3e;
	--c-accent: #78c7cb;
	--c-accent-soft: #e6f5f6;
	--c-tint: #f3f9f9;
	--c-ink: #1d2b2f;
	--c-text: #3d4b50;
	--c-muted: #66777c;
	--c-line: #dbe8e9;
	--c-white: #fff;
	--c-wa: #1faa53;
	--c-wa-dark: #178a43;
	--c-error: #b3261e;
	--c-ok: #0e7a43;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(7, 60, 60, .06), 0 8px 24px rgba(7, 60, 60, .08);
	--shadow-lg: 0 20px 50px rgba(7, 60, 60, .16);
	--container: 1200px;
	--gutter: 20px;
	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--header-h: 76px;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; }

.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; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.center { text-align: center; }

/* --- Botones ------------------------------------------------------------ */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { width: 100%; margin-top: 10px; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(7, 117, 115, .3); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); }
.btn--white { background: #fff; color: var(--c-primary); }
.btn--white:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); }
.btn--outline-white { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--whatsapp { background: var(--c-wa); color: #fff; }
.btn--whatsapp:hover { background: var(--c-wa-dark); color: #fff; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* --- Barra superior ----------------------------------------------------- */
.topbar { background: var(--c-primary-darker); color: #d6eeef; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1360px) { .topbar__address { display: none !important; } }
@media (max-width: 1100px) { .topbar__email { display: none !important; } }
.topbar li { display: flex; align-items: center; gap: 6px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--c-accent); }
.topbar__social .icon { color: inherit; }
@media (max-width: 900px) {
	.topbar__info, .topbar__email { display: none !important; }
	.topbar__inner { justify-content: center; }
}

/* --- Cabecera ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 60, 60, .1); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.site-logo-img { width: auto; max-height: 56px; max-width: 190px; }
.site-logo-text { font-weight: 800; font-size: 1.4rem; color: var(--c-primary); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a { display: block; padding: 10px 11px; color: var(--c-ink); font-weight: 600; font-size: .9rem; text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_item > a { color: var(--c-primary); background: var(--c-tint); }
.submenu-toggle { background: none; border: 0; padding: 4px; margin-left: -8px; color: var(--c-muted); cursor: pointer; display: inline-flex; transition: transform .2s; }
.is-open > .submenu-toggle { transform: rotate(180deg); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .is-open > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__actions { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: var(--c-tint); border: 0; border-radius: var(--radius-sm); padding: 8px; color: var(--c-primary); cursor: pointer; }
.nav-toggle__close { display: none; }

.site-nav__actions .btn--ghost { display: none; }
.topbar__results a { background: rgba(120, 199, 203, .18); padding: 3px 10px; border-radius: 99px; color: #fff; font-weight: 600; }
@media (max-width: 1240px) {
	.site-nav .menu a { padding: 10px 8px; font-size: .86rem; }
	.site-header__inner { gap: 16px; }
}
@media (max-width: 1080px) {
	:root { --header-h: 66px; }
	.nav-toggle { display: inline-flex; }
	.site-logo-img { max-height: 46px; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 90px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; border-top: 1px solid var(--c-line); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
	.site-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1rem; }
	.submenu-toggle { padding: 12px; margin: 0; }
	.site-nav .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 12px; opacity: 1; visibility: visible; transform: none; display: none; }
	.site-nav .is-open > .sub-menu { display: block; }
	.site-nav .menu-item-has-children:hover > .sub-menu { display: none; }
	.site-nav .is-open:hover > .sub-menu { display: block; }
	.site-nav__actions { flex-direction: column; margin-top: 20px; }
	.site-nav__actions .btn--ghost { display: inline-flex; }
	.site-nav__actions .btn { padding: 14px; font-size: 1rem; }
}

/* --- Carrusel ----------------------------------------------------------- */
.hero-slider { position: relative; background: var(--c-tint); overflow: hidden; }
.hero-slider__track {
	position: relative;
}

.hero-slide {
	display: none;
	position: relative;
}

.hero-slide.is-active {
	display: block;
}

.hero-slide__link,
.hero-slide picture {
	display: block;
}

.hero-slider__img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}
@media (max-width: 767px) {
	.hero-slide picture source + img, .hero-slider__img { aspect-ratio: auto; }
}
.hero-slide.has-overlay .hero-slider__img { filter: brightness(.6); }
.hero-slide__overlay { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; }
.hero-slide__heading { font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; max-width: 640px; margin-bottom: .4em; color: #fff; }
.hero-slide__text { font-size: 1.1rem; max-width: 560px; }
.hero-slider__nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--c-primary); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background .2s; }
.hero-slider__nav:hover { background: #fff; }
.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--prev .icon { transform: rotate(90deg); }
.hero-slider__nav--next { right: 16px; }
.hero-slider__nav--next .icon { transform: rotate(-90deg); }
.hero-slider__dots { position: absolute; z-index: 3; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 2px solid #fff; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s, background .3s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.hero-slider__dots button[aria-selected="true"] { width: 28px; background: #fff; }
@media (max-width: 767px) {
	.hero-slider__nav { display: none; }
}

/* --- Intro y accesos rápidos ------------------------------------------- */
.intro { padding: 56px 0 24px; }
.intro__grid { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--c-primary); margin-bottom: .8em; }
.intro__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.intro__lead { font-size: 1.05rem; color: var(--c-muted); margin: 0; }
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick__item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--c-tint); border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-accent); color: var(--c-ink); }
.quick__item .icon { color: var(--c-primary); background: #fff; border-radius: 12px; padding: 8px; width: 46px; height: 46px; }
.quick__item strong { display: block; font-size: .98rem; }
.quick__item small { display: block; color: var(--c-muted); font-size: .82rem; line-height: 1.35; }
.quick__item--wa { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.quick__item--wa:hover { color: #fff; border-color: var(--c-primary-dark); background: var(--c-primary-dark); }
.quick__item--wa small { color: #d6eeef; }
.quick__item--wa .icon { color: var(--c-wa); }
@media (max-width: 900px) {
	.intro { padding: 36px 0 8px; }
	.intro__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.quick { grid-template-columns: 1fr; }
}

/* --- Secciones ---------------------------------------------------------- */
.section { padding: 64px 0; }
.section--compact { padding: 32px 0; }
.section--tint { background: var(--c-tint); }
.section--flush-top { padding-top: 0; }
.section--post { padding-top: 32px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head--center { justify-content: center; text-align: center; }
.section__title { margin: 0; position: relative; }
.section__head .section__title::after, .team .section__title::after { content: ''; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--c-accent); margin-top: 12px; }
.section__head--center .section__title::after { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
	.section { padding: 44px 0; }
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* --- Tarjetas ----------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--c-accent-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card--promo .card__media { aspect-ratio: 4 / 5; background: var(--c-tint); }
.card--promo .card__media img { object-fit: contain; }
.card--promo:hover .card__media img { transform: none; }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-accent); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0 0 .5em; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); }
.card__text { color: var(--c-muted); font-size: .93rem; margin: 0 0 1em; }
.card__meta { font-size: .8rem; color: var(--c-muted); margin: 0 0 .6em; }
.card__more { margin-top: auto; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.card__tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); background: var(--c-accent-soft); padding: 4px 10px; border-radius: 99px; text-decoration: none; margin-bottom: 10px; }
.card--promo .card__body { padding: 14px 16px 16px; }
.card--promo .card__title { font-size: .98rem; margin: 0; }

/* --- Médicos ------------------------------------------------------------ */
.doctor { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doctor__photo { display: block; aspect-ratio: 600 / 690; background: linear-gradient(180deg, var(--c-accent-soft), #fff); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor__body { padding: 14px 16px 18px; text-align: center; }
.doctor__specialty { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); margin: 0 0 4px; text-decoration: none; }
.doctor__name { font-size: 1rem; margin: 0 0 4px; }
.doctor__name a { color: var(--c-ink); text-decoration: none; }
.doctor__ids { font-size: .78rem; color: var(--c-muted); margin: 0; }
@media (max-width: 640px) {
	.doctor__body { padding: 10px 10px 14px; }
	.doctor__name { font-size: .9rem; }
}

.profile { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.profile__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.profile__name { margin-top: 8px; }
.profile__ids { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.profile__ids li { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 99px; padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--c-ink); }
.profile__ids span { color: var(--c-primary); }
.profile__schedule { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--c-ink); }
.profile__schedule .icon { color: var(--c-primary); }
.profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.profile__verify { font-size: .82rem; color: var(--c-muted); }
@media (max-width: 800px) {
	.profile { grid-template-columns: 1fr; gap: 24px; }
	.profile__photo { max-width: 340px; }
}

/* --- Paneles horario / resultados -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius); padding: 32px; background: #fff; border: 1px solid var(--c-line); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--c-ink); margin: 0 0 18px; }
.panel__title .icon { color: var(--c-primary); }
.panel--results { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-darker) 100%); color: #e3f4f4; border: 0; position: relative; overflow: hidden; }
.panel--results::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(120, 199, 203, .18); }
.panel--results .panel__title, .panel--results .panel__title .icon { color: #fff; }
.panel--results p { max-width: 420px; }
.panel--light { background: var(--c-tint); padding: 24px; }
@media (max-width: 800px) {
	.split { grid-template-columns: 1fr; }
	.panel { padding: 24px; }
}

.hours { margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.hours__row:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--c-ink); }
.hours dd { margin: 0; color: var(--c-primary); font-weight: 600; text-align: right; }
.hours__row.is-closed dd { color: var(--c-muted); }
.hours__note { font-size: .85rem; color: var(--c-muted); margin: 10px 0 0; }

/* --- Team --------------------------------------------------------------- */
.team { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.team__photo img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.team__quote { margin: 20px 0; padding: 0 0 0 20px; border-left: 4px solid var(--c-accent); font-size: 1.2rem; color: var(--c-ink); font-weight: 500; }
.team__quote p { margin: 0; }
.team__sign { font-weight: 700; color: var(--c-primary); }
@media (max-width: 900px) {
	.team { grid-template-columns: 1fr; gap: 28px; }
	.team__photo { max-width: 360px; }
}

/* --- Convenios ---------------------------------------------------------- */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.logos__item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 14px; transition: box-shadow .2s, transform .2s; }
.logos__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logos__item img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(.15); }
.logos__item a { display: contents; }
.logos__item span { font-weight: 700; text-align: center; font-size: .9rem; }
/*@media (max-width: 640px) {
	.logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.logos__item { padding: 8px; }
}*/


@media (max-width: 640px) {
    .logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .logos__item {
        width: 100%;
        min-width: 0;
        aspect-ratio: 1 / 1;
        padding: 12px;
        overflow: hidden;
    }

    .logos__item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}


/* --- Franja CTA --------------------------------------------------------- */
.cta-band { background: var(--c-primary); background-image: radial-gradient(circle at 85% 20%, rgba(120, 199, 203, .35), transparent 45%); color: #e3f4f4; padding: 48px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band__title { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Cabecera de páginas interiores ------------------------------------ */
.page-hero { background: var(--c-tint); background-image: linear-gradient(120deg, var(--c-tint) 0%, var(--c-accent-soft) 100%); padding: 28px 0 40px; border-bottom: 1px solid var(--c-line); }
.page-hero__title { margin: 6px 0 0; }
.page-hero__lead { font-size: 1.08rem; color: var(--c-muted); max-width: 760px; margin: 12px 0 0; }
.page-hero--post { padding-bottom: 28px; }
.page-hero--post .card__tag { margin-top: 14px; }
.post-meta { color: var(--c-muted); font-size: .88rem; margin: 12px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 4px; color: var(--c-accent); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); }
.profile + .breadcrumbs, .page-hero + .section--flush-top { padding-top: 32px; }

/* --- Contenido del editor ---------------------------------------------- */
.entry-content { font-size: 1.04rem; }
.entry-content > * + h2 { margin-top: 1.6em; }
.entry-content > * + h3 { margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--c-primary); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 0 0 1.5em; }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--c-accent); background: var(--c-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--c-ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--c-tint); color: var(--c-ink); }
.entry-content .wp-block-image.size-full img { width: 100%; }
.entry-content--wide { max-width: 1000px; margin: 0 auto; }
.wp-block-columns.pillars { gap: 20px; }
.pillars .wp-block-column { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--c-accent); }
.pillars h3 { color: var(--c-primary); margin-top: 0; }
.pillars p { margin: 0; }
.wp-block-button__link { background: var(--c-primary); border-radius: 999px; font-weight: 700; }
.alignwide { margin-left: auto; margin-right: auto; }

.post-figure { margin: 0 0 28px; }
.post-figure img { width: 100%; border-radius: var(--radius); }
.post-figure--promo { text-align: center; }
.post-figure--promo img { width: auto; max-width: 100%; max-height: 900px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.promo-cta { margin: 28px 0; padding: 22px; background: var(--c-accent-soft); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-cta p { margin: 0; }
.medical-note { display: flex; gap: 12px; align-items: flex-start; margin: 32px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--c-tint); border: 1px solid var(--c-line); font-size: .9rem; color: var(--c-muted); }
.medical-note .icon { color: var(--c-primary); margin-top: 3px; }
.medical-note p { margin: 0; }

.share { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); font-weight: 600; color: var(--c-ink); font-size: .9rem; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; transition: transform .2s; }
.share__btn:hover { transform: translateY(-2px); color: #fff; }
.share__btn--wa { background: var(--c-wa); }
.share__btn--fb { background: #1877f2; }
.share__btn--copy { background: var(--c-muted); }
.share__btn--copy.is-copied { background: var(--c-ok); }

/* --- Blog con barra lateral -------------------------------------------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.widget { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.widget__title { font-weight: 700; color: var(--c-ink); font-size: 1.05rem; margin: 0 0 12px; }
.widget--cta { background: var(--c-tint); }
.widget__list { list-style: none; margin: 0; padding: 0; }
.widget__list li { border-bottom: 1px solid var(--c-line); }
.widget__list li:last-child { border: 0; }
.widget__list a { display: block; padding: 9px 0; color: var(--c-ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.widget__list a:hover { color: var(--c-primary); }
@media (max-width: 960px) {
	.layout-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
}

.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-nav__item { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); font-weight: 600; font-size: .88rem; text-decoration: none; transition: .2s; }
.cat-nav__item:hover { border-color: var(--c-accent); color: var(--c-primary); }
.cat-nav__item.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.pagination, .navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 99px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; }
.search-form button { padding: 0 18px; border-radius: var(--radius-sm); border: 0; background: var(--c-primary); color: #fff; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 40px 20px; background: var(--c-tint); border-radius: var(--radius); }
.empty .search-form { max-width: 460px; margin: 20px auto; }
.empty__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* --- Preguntas frecuentes ---------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: var(--c-accent); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--c-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--c-primary); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 18px; font-size: .98rem; }

/* --- Formularios -------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card__title { font-size: 1.4rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--c-ink); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"], input[type="number"], input:not([type]), select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--c-ink); background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(120, 199, 203, .3); }
textarea { resize: vertical; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--c-text); }
.field--check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-primary); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.form legend { font-weight: 700; color: var(--c-primary); font-size: 1.05rem; margin-bottom: 14px; padding: 0; }
.form legend span { font-weight: 400; color: var(--c-muted); font-size: .85rem; }
.form__note { font-size: .82rem; color: var(--c-muted); background: var(--c-tint); padding: 12px 14px; border-radius: var(--radius-sm); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert--ok { background: #e7f6ee; color: var(--c-ok); border: 1px solid #b9e3cb; }
.alert--error { background: #fdecea; color: var(--c-error); border: 1px solid #f5c2bd; }
@media (max-width: 640px) {
	.form__grid { grid-template-columns: 1fr; }
	.form-card { padding: 20px; }
}

.reclamo__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--c-line); }
.reclamo__head .icon { color: var(--c-primary); }
.reclamo__title { font-weight: 800; color: var(--c-ink); font-size: 1.2rem; margin: 0; }
.reclamo__company { margin: 0; font-size: .85rem; color: var(--c-muted); }
.reclamo__date { font-size: .85rem; color: var(--c-muted); }
@media (max-width: 640px) {
	.reclamo__head { grid-template-columns: auto 1fr; }
	.reclamo__date { grid-column: 1 / -1; }
}

/* --- Contacto ----------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact-cards a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; font-weight: 600; transition: .2s; }
.contact-cards a:hover { border-color: var(--c-accent); box-shadow: var(--shadow); color: var(--c-ink); }
.contact-cards .icon { color: var(--c-primary); }
.contact-cards small { display: block; font-weight: 500; color: var(--c-muted); font-size: .78rem; }
.map-full iframe, .map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-embed iframe { border-radius: var(--radius); }
@media (max-width: 900px) {
	.contact { grid-template-columns: 1fr; }
	.map-full iframe { height: 320px; }
}

/* --- Pie de página ------------------------------------------------------ */
.site-footer { background: var(--c-primary-darker); color: #bfdcdd; font-size: .92rem; }
.site-footer a { color: #e3f4f4; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.site-footer__logo { display: inline-block; margin-bottom: 14px; }
.site-footer__logo img { max-height: 60px; width: auto; }
.logo-chip { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.site-footer .hours__row { border-color: rgba(255, 255, 255, .12); padding: 7px 0; }
.site-footer .hours dt { color: #e3f4f4; font-weight: 500; }
.site-footer .hours dd { color: var(--c-accent); }
.site-footer .hours__row.is-closed dd { color: #9ec4c5; }
.contact-list, .footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--c-accent); margin-top: 3px; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 16px 0 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--c-accent); color: var(--c-primary-darker); }
.libro-badge { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); }
.libro-badge:hover { border-color: var(--c-accent); }
.libro-badge strong { display: block; font-size: .88rem; color: #fff; }
.libro-badge small { display: block; font-size: .75rem; color: #9ec4c5; }
.libro-badge .icon { color: var(--c-accent); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.site-footer__bottom { padding-bottom: 70px; }
}

/* --- WhatsApp flotante -------------------------------------------------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--c-wa); color: #fff; border-radius: 99px; padding: 13px; box-shadow: 0 10px 30px rgba(31, 170, 83, .4); text-decoration: none; transition: transform .2s, background .2s; }
.wa-float:hover { color: #fff; background: var(--c-wa-dark); transform: scale(1.05); }
.wa-float__label { font-weight: 700; font-size: .9rem; padding-right: 6px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.wa-float:hover .wa-float__label, .wa-float:focus .wa-float__label { max-width: 160px; }
@media (min-width: 1100px) {
	.wa-float__label { max-width: 160px; }
}

/* --- Impresión ---------------------------------------------------------- */
@media print {
	.topbar, .site-header, .site-footer, .wa-float, .cta-band, .share, .sidebar { display: none !important; }
	body { color: #000; }
}

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

/* --- Utilidades y respaldo de bloques ---------------------------------- */
[hidden] { display: none !important; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 1.5em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-column { flex-basis: 100%; } }
.site-footer .hours dd { white-space: nowrap; }
.site-footer .hours__row { font-size: .86rem; }
.site-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }



/* Ajuste del slider para celulares */

/* Slider responsive: altura según la imagen activa */
@media (max-width: 767px) {

    .hero-slider__track {
        display: block;
    }

    .hero-slide {
        display: none;
        position: relative;
        width: 100%;
        opacity: 0;
        visibility: hidden;
    }

    .hero-slide.is-active {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .hero-slide picture {
        display: block;
        width: 100%;
    }

    .hero-slider__img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .hero-slider__dots {
        position: relative;
        bottom: auto;
        padding: 10px 0;
        background: var(--c-tint);
    }

    .hero-slider__dots button {
        border-color: var(--c-primary);
        background: #b8d9d9;
    }

    .hero-slider__dots button[aria-selected="true"] {
        background: var(--c-primary);
    }
}

@media (max-width: 767px) {
	.hero-slider {
		background: var(--c-tint);
	}

	.hero-slider__img {
		width: 100%;
		height: auto;
		aspect-ratio: auto;
		object-fit: contain;
	}

	.hero-slider__dots {
		bottom: 10px;
	}
}


/* Mostrar la imagen correspondiente a cada dispositivo */
.hero-slider__img--mobile {
    display: none;
}

@media (max-width: 767px) {
    .hero-slider__img--desktop {
        display: none;
    }

    .hero-slider__img--mobile {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}



/* Filtros de especialidades en celulares */
@media (max-width: 767px) {
    .cat-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 4px 0 12px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .cat-nav__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


/* Responsive de promociones y blog */
@media (max-width: 767px) {

    /* Categorías desplazables */
    .cat-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        gap: 8px;
        padding: 4px 0 12px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .cat-nav__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Tarjetas e imágenes */
    .layout-sidebar,
    .layout-sidebar > *,
    .sidebar {
        min-width: 0;
        max-width: 100%;
    }

    .card--promo .card__media {
        height: auto;
        aspect-ratio: auto;
    }

    .card--promo .card__media img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Barra lateral */
    .widget {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .search-form input {
        min-width: 0;
    }
}


/* Corrección de dimensiones del slider móvil */
@media (max-width: 767px) {
    .hero-slider,
    .hero-slider__track,
    .hero-slide.is-active,
    .hero-slide__link {
        width: 100%;
        max-width: 100%;
    }

    .hero-slide.is-active .hero-slider__img--mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: contain;
    }

    .hero-slider__img--desktop {
        display: none;
    }
}

.nav-open {
    overflow: hidden;
}

/* Navbar fijo solo en escritorio */
/* Navbar fijo en escritorio y móviles */
/* Navbar fijo en escritorio y responsive */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Compensar la altura del navbar */
body {
    padding-top: 0;
}

.site-main {
    padding-top: var(--header-h);
}


/*PARA OCULTAR LOS LINKS DEL NAVBAR, esto usaremos en wordpress*/
/* Ocultar temporalmente opciones del menú */
/* Ocultar temporalmente Nosotros, Beneficios y Contáctenos */
.site-nav #menu-item-2646,
.site-nav #menu-item-2649,
.site-nav #menu-item-2669 {
    display: none !important;
}

/* Ocultar temporalmente el botón Reservar cita del navbar */
.site-nav__actions .btn--primary {
    display: none !important;
}

/* WhatsApp flotante: solo icono en celulares */
@media (max-width: 767px) {
    .wa-float__label,
    .wa-float:hover .wa-float__label,
    .wa-float:focus .wa-float__label {
        display: none;
    }

    .wa-float {
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
}

