/* ==========================================================================
   Clínica Salud Linares — estilos del tema
   ========================================================================== */

:root {
	--pink: #E4047C;
	--pink-d: #D10471;
	--pink-dd: #B3035F;
	--pink-l: #FC49A9;
	--pink-ll: #FC6FB8;
	--ink: #1F2024;
	--ink2: #4A4B52;
	--mute: #6A6B72;
	--mute2: #8A8B92;
	--line: #F3E3EA;
	--line2: #EADDE3;
	--rose: #F6D3E3;
	--tint: #FDE7F1;
	--tint2: #FFF5F9;
	--soft: #FFF7FA;
	--soft2: #FFF8FB;
	--page: #FAF5F7;       /* fondo general: blanco roto con un toque rosado */
	--page-hero: #FCEDF3;  /* parte alta de las portadas */
	--page-deep: #F4E9EE;  /* secciones de fondo suave (contacto, únete) */
	--dark: #1F2024;
	--dark2: #34353B;
	--gray: #C9CAD0;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--shadow: 0 30px 60px -30px rgba(120, 10, 60, .35);
	--f-head: Raleway, Arial, sans-serif;
	--f-body: Lato, Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dd); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.pink { color: var(--pink); }
.pink-l { color: var(--pink-l); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.section-pad { padding-top: 72px; padding-bottom: 72px; }
.section-pad--top { padding-bottom: 0; }
.section-pad--bottom { padding-top: 0; padding-bottom: 88px; }
.section-pad--tight { padding-top: 24px; }
.spacer-36 { height: 36px; }

/* Iconos (máscara SVG coloreable) ---------------------------------------- */
.ico { flex: none; display: inline-block; width: var(--s, 20px); height: var(--s, 20px); background: var(--pink); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico--white { background: #fff; }

.icon-box { flex: none; display: flex; align-items: center; justify-content: center; background: var(--tint); }
.icon-box--38 { width: 38px; height: 38px; border-radius: 12px; }
.icon-box--44 { width: 44px; height: 44px; border-radius: 14px; }
.icon-box--46 { width: 46px; height: 46px; border-radius: 14px; }
.icon-box--48 { width: 48px; height: 48px; border-radius: 14px; }
.icon-box--52 { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -10px rgba(120, 10, 60, .45); }
.icon-box--56 { width: 56px; height: 56px; border-radius: 18px; background: #fff; box-shadow: 0 8px 18px -10px rgba(120, 10, 60, .4); }
.icon-box--64 { width: 64px; height: 64px; border-radius: 20px; }
.icon-box--dark { background: var(--dark2); }

/* Tipografía --------------------------------------------------------------- */
.kicker { font-family: var(--f-head); font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--pink); text-transform: uppercase; }
.kicker--light { color: var(--pink-ll); }
.h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.h1--home { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; }
.h1--team { color: #fff; font-size: clamp(40px, 5.2vw, 60px); }
.h1--plain { font-size: clamp(36px, 4.6vw, 54px); }
.h2 { font-family: var(--f-head); font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.015em; line-height: 1.08; color: var(--ink); }
.h2--sm { font-size: clamp(28px, 3.4vw, 40px); }
.h2--join { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink2); }
.lead--sm { font-size: 16px; max-width: 52ch; }
.lead--dark { color: var(--gray); line-height: 1.65; }

.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .h2 { max-width: 20ch; }
.section-head__titles { display: flex; flex-direction: column; gap: 12px; }
.section-head__text { max-width: 42ch; }
.dark-section .h2 { color: #fff; }

/* Botones ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 13px 22px; font-size: 14px; }
.btn__arrow { font-size: 18px; }
.btn--primary { background: var(--pink-d); color: #fff; box-shadow: 0 12px 28px -12px rgba(209, 4, 113, .7); }
.btn--primary:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.btn--header { padding: 12px 22px; box-shadow: 0 8px 20px -8px rgba(209, 4, 113, .6); }
.btn--header:hover { box-shadow: 0 12px 26px -10px rgba(209, 4, 113, .7); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); padding-left: 26px; padding-right: 26px; }
.btn--ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn--ghost:hover .ico { background: var(--pink); }
.btn--white { background: #fff; color: var(--pink-dd); }
.btn--white:hover { color: var(--pink-dd); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; transform: translateY(-2px); }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.btn--outline-light:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn--outline-pink { border: 1.5px solid var(--pink); color: var(--pink); background: transparent; padding: 12px 22px; }
.btn--outline-pink:hover { background: var(--pink); color: #fff; }
.btn--center { align-self: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { margin-top: 6px; font-weight: 700; color: var(--pink); font-size: 15px; }
.link-arrow--sm { margin-top: 0; font-size: 14px; }

/* Barra superior y cabecera ----------------------------------------------- */
.topbar { background: var(--dark); color: #E9E9EC; font-size: 13px; }
.topbar__inner { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.topbar__right { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar a { color: #fff; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 245, 247, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(228, 4, 124, .08); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; gap: 28px; }
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 56px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; font-family: var(--f-head); font-size: 14px; font-weight: 600; }
.nav__list a { color: var(--ink); transition: color .2s; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--pink); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.site-header__logo img { height: 48px; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 24px 24px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(120, 10, 60, .3); display: none; }
	.nav-open .nav { display: flex; }
	.nav__list { flex-direction: column; gap: 0; font-size: 17px; }
	.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.btn--header { align-self: flex-start; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Portadas ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--page-hero) 0%, var(--page) 100%); }
.hero__grid { padding-top: 64px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.hero__grid--inner { padding-top: 56px; }
.hero__grid--end { align-items: end; gap: 40px 56px; padding-bottom: 64px; }
.hero__grid--top { align-items: start; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero--home .hero__text { gap: 24px; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 46ch; }
.hero__media { position: relative; }
.hero__img { aspect-ratio: 5 / 4; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(120, 10, 60, .35); background: #F6F2F0; }
.hero__img--home { aspect-ratio: 5 / 4.4; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--plain .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.hero--404 .wrap { padding-top: 96px; padding-bottom: 120px; }

.pill-badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rose); color: var(--pink-dd); padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.stat__txt { display: flex; flex-direction: column; line-height: 1.2; }
.stat__val { font-family: var(--f-head); font-size: 20px; font-weight: 800; color: var(--ink); }
.stat__val--sm { font-size: 16px; }
.stat__label { font-size: 13px; color: var(--mute); }

.float-a { position: absolute; left: -18px; bottom: 28px; }
.float-b { position: absolute; right: -10px; top: 26px; }
.float-card { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px -18px rgba(120, 10, 60, .35); max-width: 280px; }
.float-card__txt { display: flex; flex-direction: column; gap: 2px; }
.float-card__txt strong { font-weight: 700; font-size: 15px; color: var(--ink); }
.float-card__txt span { font-size: 13px; color: var(--mute); }
.float-pill { background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 18px 36px -18px rgba(120, 10, 60, .35); font-weight: 700; font-size: 14px; color: var(--ink); }
@media (max-width: 560px) {
	.float-a { left: 10px; bottom: 12px; }
	.float-b { right: 10px; top: 12px; }
}

.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--pink); }
.crumbs__current { color: var(--ink); font-weight: 700; }
.crumbs--dark, .crumbs--dark a { color: #9A9BA2; }
.crumbs--dark a:hover { color: var(--pink-l); }
.crumbs--dark .crumbs__current { color: #fff; }

/* Carrusel de especialidades --------------------------------------------- */
.marquee-bar { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 50px -36px rgba(120, 10, 60, .35); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 24px; margin-top: -8px; position: relative; z-index: 2; }
.marquee-bar__title { flex: none; display: flex; flex-direction: column; gap: 2px; padding-right: 28px; border-right: 1px solid var(--line); }
.marquee-bar__kicker { font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--pink); }
.marquee-bar__h { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.marquee-bar__link { flex: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.marquee { flex: 1 1 300px; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee__item { display: flex; align-items: center; gap: 10px; margin-right: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--tint2); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.marquee__ico { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
	.marquee-bar__title { border-right: 0; padding-right: 0; }
}

/* Servicios (inicio) -------------------------------------------------------- */
.section--servicios { padding-top: 96px; }
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.serv-card { display: flex; flex-direction: column; background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s; }
.serv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.serv-card__img { height: 240px; background: #F6F6F8; }
.serv-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-card__body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.serv-card__head { display: flex; align-items: center; gap: 14px; }
.serv-card h3 { font-family: var(--f-head); font-size: 24px; font-weight: 700; }
.serv-card p { font-size: 16px; line-height: 1.6; color: var(--ink2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 700; color: var(--pink-dd); background: #FFF2F7; padding: 6px 12px; border-radius: 999px; }

/* Ayuda / áreas ------------------------------------------------------------ */
#ayuda { padding-top: 72px; padding-bottom: 72px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.help-card, .area { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid transparent; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.help-card:hover { background: #fff; border-color: var(--rose); transform: translateY(-4px); }
.help-card h3 { font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.help-card p { font-size: 15px; line-height: 1.6; color: var(--ink2); }
.section--areas { padding-top: 56px; }
.area { border-radius: 24px; padding: 30px; }
.area h3 { font-family: var(--f-head); font-size: 21px; font-weight: 700; color: var(--ink); }
.area p { font-size: 15.5px; line-height: 1.6; color: var(--ink2); }
.area--featured { background: var(--tint); border-color: var(--rose); }
.area__badge { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--pink-dd); background: #fff; padding: 6px 12px; border-radius: 999px; }

/* Equipo (fondo oscuro) --------------------------------------------------- */
.dark-section { background: var(--dark); color: #fff; }
.section--dark { padding-top: 96px; padding-bottom: 96px; gap: 48px; }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.doc { display: flex; flex-direction: column; gap: 16px; }
.doc__img { position: relative; aspect-ratio: 194 / 226; border-radius: 22px; overflow: hidden; background: #EEF0F2; }
.doc__img img, .eq-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .7s var(--ease); }
.doc__img:hover img, .eq-card__img:hover img { transform: scale(1.06); }
.doc__txt { display: flex; flex-direction: column; gap: 4px; }
.doc__txt h3 { font-family: var(--f-head); font-size: 18px; font-weight: 700; line-height: 1.25; }
.doc__txt p { font-size: 14px; color: var(--pink-ll); font-weight: 700; line-height: 1.4; }

.section--team-page { padding-top: 64px; padding-bottom: 96px; }
.eq-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-filter { font-family: var(--f-body); font-size: 15px; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; transition: background .25s, border-color .25s; }
.eq-filter span { opacity: .7; font-weight: 400; }
.eq-filter:hover { border-color: rgba(255, 255, 255, .6); }
.eq-filter.is-active { background: var(--pink); border-color: var(--pink); }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 28px 20px; }
.eq-card { display: flex; flex-direction: column; gap: 14px; }
.eq-card.is-hidden { display: none; }
.eq-card__img { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #F1EEF0; }
.eq-card__ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--tint); font-family: var(--f-head); font-size: 44px; font-weight: 800; color: var(--pink); }

.spec-box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.spec-box__txt { display: flex; gap: 18px; align-items: center; max-width: 620px; }
.spec-box__txt > div { display: flex; flex-direction: column; gap: 4px; }
.spec-box h2 { font-family: var(--f-head); font-size: 22px; font-weight: 800; color: var(--ink); }
.spec-box p { font-size: 16px; line-height: 1.55; color: var(--ink2); }

/* Ventajas / pasos -------------------------------------------------------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.adv-grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.adv { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--tint); }
.adv h3 { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--ink); }
.adv h3.adv__h--lg { font-size: 18px; }
.adv p { font-size: 15px; line-height: 1.6; color: var(--ink2); }
.adv__num { font-family: var(--f-head); font-size: 15px; font-weight: 800; color: var(--pink); }

/* Bloque rosa -------------------------------------------------------------- */
.cta-pink { position: relative; overflow: hidden; background: linear-gradient(120deg, #FCE6F0 0%, #FDF0F5 55%, #FFFFFF 100%); border: 1px solid var(--rose); border-radius: 32px; padding: 48px clamp(24px, 5vw, 56px); }
.cta-pink--flex { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: 56px clamp(24px, 5vw, 64px); }
.cta-pink--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; }
.cta-pink__blob { position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--pink-l); opacity: .16; filter: blur(70px); pointer-events: none; }
.cta-pink__text { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.cta-pink--flex .cta-pink__text { gap: 12px; }
.cta-pink h2 { font-family: var(--f-head); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; color: var(--ink); }
.cta-pink p { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 44ch; }
.cta-pink .btn--white { align-self: flex-start; margin-top: 6px; padding: 15px 26px; background: var(--pink-d); color: #fff; box-shadow: 0 12px 28px -14px rgba(209, 4, 113, .7); }
.cta-pink .btn--white:hover { background: var(--pink); color: #fff; }
.cta-pink__btns { position: relative; }
.cta-pink__btns .btn { padding: 16px 28px; margin-top: 0; }
.cta-cards { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cta-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; color: var(--ink); transition: transform .25s, box-shadow .25s; box-shadow: 0 14px 30px -26px rgba(120, 10, 60, .5); }
.cta-card:hover { transform: translateY(-2px); color: var(--ink); }
.cta-card--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.cta-card--dark:hover { color: #fff; }
.cta-card__txt { display: flex; flex-direction: column; gap: 2px; }
.cta-card__big { font-family: var(--f-head); font-size: 22px; font-weight: 800; color: var(--pink-dd); }
.cta-card--dark .cta-card__big { color: #fff; }
.cta-card__small { font-size: 14px; color: var(--ink2); }
.cta-card--dark .cta-card__small { color: var(--gray); }

/* Instagram ---------------------------------------------------------------- */
.section--ig { padding-top: 24px; padding-bottom: 88px; gap: 32px; }
/* Mosaico tipo masonry: 1.ª grande (3×3), 2.ª mediana (2×2) y el resto pequeñas (1×1) en 6 columnas. */
.ig-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--tint2); box-shadow: 0 18px 36px -30px rgba(120, 10, 60, .5); }
.ig-tile--big { grid-column: span 3; grid-row: span 3; aspect-ratio: auto; border-radius: 26px; }
.ig-tile--mid { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 22px; }
.ig-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.05); }
.ig-tile__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 14px 16px; background: linear-gradient(180deg, rgba(31, 32, 36, 0) 45%, rgba(120, 4, 66, .78) 100%); color: #fff; opacity: 0; transition: opacity .35s; }
.ig-tile:hover .ig-tile__over, .ig-tile:focus-visible .ig-tile__over { opacity: 1; }
.ig-tile__title { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 1.25; }
.ig-tile--big .ig-tile__over { padding: 22px 24px; }
.ig-tile--big .ig-tile__title { font-size: 20px; }
@media (max-width: 999px) {
	.ig-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ig-tile--big { grid-column: span 2; grid-row: span 2; }
	.ig-tile--mid { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; border-radius: 18px; }
	.ig-tile:nth-child(n+7) { display: none; }
}
@media (max-width: 599px) {
	.ig-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ig-tile--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 1 / 1; }
	.ig-tile:nth-child(7) { display: block; }
	.ig-tile:nth-child(n+8) { display: none; }
}
@media (hover: none) {
	/* En móvil no hay «pasar el ratón»: solo un icono discreto en la esquina. */
	.ig-tile__over { opacity: 1; inset: auto 10px 10px auto; padding: 0; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(120, 4, 66, .72); }
	.ig-tile--big .ig-tile__over { padding: 0; }
	.ig-tile__over .ico { --s: 18px !important; }
	.ig-tile__title { display: none; }
}

/* Contacto / datos ------------------------------------------------------------ */
.soft-section { background: var(--page-deep); }
.contact-home { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; }
.contact-home__info, .contact-info { display: flex; flex-direction: column; gap: 28px; }
.datos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.dato { background: #fff; border-radius: 18px; padding: 18px; display: flex; gap: 14px; color: var(--ink); border: 1px solid var(--line); transition: border-color .25s, transform .3s; }
.dato:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--ink); }
.dato__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dato__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--mute2); }
.dato__value { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.horario { background: #fff; border-radius: 18px; padding: 20px; display: flex; gap: 14px; border: 1px solid var(--line); }
.horario__cols { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 15px; line-height: 1.55; }
.horario__cols > div { display: flex; flex-direction: column; gap: 2px; }
.mapa { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(120, 10, 60, .4); background: #EEE; }
.mapa--tall { min-height: 420px; }
.mapa--wide { height: 440px; }
.mapa iframe { border: 0; position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapa__btn { position: absolute; left: 16px; bottom: 16px; box-shadow: 0 10px 24px -10px rgba(209, 4, 113, .7); }

.social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.social__label { font-size: 14px; font-weight: 700; color: var(--mute); margin-right: 6px; }
.social__btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: border-color .25s, color .25s; }
.social__btn:hover { border-color: var(--pink); color: var(--pink); }

/* Formulario -------------------------------------------------------------- */
.form-card { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(120, 10, 60, .4); scroll-margin-top: 110px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.form__head h2, .form-ok h2 { font-family: var(--f-head); font-size: 26px; font-weight: 800; color: var(--ink); }
.form__head p { font-size: 15px; color: var(--ink2); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--mute); }
.field input, .field textarea { font-family: var(--f-body); font-size: 16px; letter-spacing: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink); width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(228, 4, 124, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.check input { margin-top: 3px; accent-color: var(--pink); }
.check a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--rose); }
.btn--submit { align-self: flex-start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { background: var(--tint); color: var(--pink-dd); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.form-ok p { font-size: 16px; line-height: 1.6; color: var(--ink2); }
.form-ok__again { font-weight: 700; font-size: 15px; }
.hero--contact .hero__grid { padding-bottom: 72px; }

/* Especialidades / reconocimientos --------------------------------------- */
.section--list { padding-top: 72px; }
.section--list-rec { padding-top: 56px; padding-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card-grid--rec { grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--rose); color: var(--ink); }
.pcard__img { background: #F6F6F8; overflow: hidden; }
.pcard__img--esp { aspect-ratio: 265 / 125; }
.pcard__img--rec { aspect-ratio: 235 / 170; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body .icon-box { margin-top: -26px; position: relative; }
.pcard h3 { font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.25; margin-top: 4px; }
.pcard p { font-size: 14.5px; line-height: 1.55; color: var(--ink2); flex: 1; }

.claves { display: flex; flex-direction: column; gap: 12px; }
.clave { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.clave__txt { display: flex; flex-direction: column; gap: 2px; }
.clave__txt strong { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.clave__txt span { font-size: 14.5px; color: var(--ink2); }

.join { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.join__img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.3; background: #F6F2F0; box-shadow: 0 30px 60px -36px rgba(120, 10, 60, .4); }
.join__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.join__body { display: flex; flex-direction: column; gap: 28px; }
.join__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.join__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.join__item h3 { font-family: var(--f-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.join__item p { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.cv-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 16px 22px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.cv-box__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-box__mail { font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cv-box .btn { padding: 14px 24px; }

/* Galería y lightbox -------------------------------------------------------- */
.section--gallery { padding-top: 56px; padding-bottom: 56px; gap: 32px; scroll-margin-top: 90px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gallery__item { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #F1EEF0; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 10, 16, .88); display: flex; align-items: center; justify-content: center; padding: 24px; gap: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(1100px, 100%); max-height: 85vh; border-radius: 18px; display: block; min-width: 0; }
.lightbox__nav, .lightbox__close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 28px; line-height: 1; }
@media (max-width: 640px) {
	.lightbox { flex-wrap: wrap; align-content: center; }
	.lightbox__img { order: -1; width: 100%; }
}

/* Pedir cita -------------------------------------------------------------- */
.hero--plain .hero-cita { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 40px; }
.hero-cita .hero__text { flex: 1 1 420px; }
.hero-cita .hero__text { gap: 18px; }
.cita-call { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 20px 14px 14px; color: var(--ink); transition: border-color .25s, transform .3s; }
.cita-call:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--ink); }
.cita-call small { display: block; font-size: 13px; color: var(--mute); }
.cita-call strong { font-family: var(--f-head); font-size: 22px; font-weight: 800; color: var(--pink-dd); }
.cita-wrap { padding-top: 8px; min-height: 420px; }

/* Páginas genéricas ------------------------------------------------------- */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink2); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--f-head); color: var(--ink); margin-top: 1.6em; line-height: 1.2; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 21px; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-item + .post-item { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-item h2 { margin-top: 0; }
.post-item h2 a { text-decoration: none; color: var(--ink); }
.post-item__date { font-size: 14px; color: var(--mute2); }

/* Pie --------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--gray); }
.site-footer__inner { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; max-width: 280px; }
.site-footer__brand p { font-size: 14px; line-height: 1.5; }
.site-footer__logo { align-self: flex-start; margin: -18px 0 -14px -30px; }
.site-footer__logo img { height: 120px; width: auto; display: block; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__title { font-family: var(--f-head); font-weight: 700; color: #fff; }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--dark2); font-size: 14px; }
.site-footer__credits { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.site-footer__credits a { color: #fff; font-weight: 700; }
.site-footer__credits a:hover { color: var(--pink-l); }
.site-footer__credits .sep { color: #5A5B62; }
.site-footer__legal { display: flex; gap: 24px; }

/* ==========================================================================
   Animaciones (solo con html.anim, que se activa si están habilitadas
   en el panel y el usuario no prefiere movimiento reducido)
   ========================================================================== */
.anim [data-rv] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.anim [data-rv].is-in { opacity: 1; transform: none; }
.anim .marquee__track { animation: csl-marquee 55s linear infinite; }
.anim .marquee:hover .marquee__track { animation-play-state: paused; }
.anim .float-a { animation: csl-float-a 5s ease-in-out infinite; }
.anim .float-b { animation: csl-float-b 6s ease-in-out .6s infinite; }
.anim .pill-badge__dot { animation: csl-pulse 1.8s ease-out infinite; }
.anim .zoom-loop { animation: csl-zoom 22s ease-in-out infinite; }
.anim .cta-pink__blob { animation: csl-blob 9s ease-in-out infinite; }

@keyframes csl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes csl-float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes csl-float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes csl-pulse { from { box-shadow: 0 0 0 0 rgba(228, 4, 124, .55); } to { box-shadow: 0 0 0 9px rgba(228, 4, 124, 0); } }
@keyframes csl-zoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes csl-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
