/* ============================================================
   Consultorios CHD — hoja de estilos principal
   ============================================================ */

/* Tokens del design system en assets/css/tokens.css (encolado antes que este archivo). */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: 72px; }
.section--muted { background: var(--bg-soft); }

.eyebrow {
	text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
	font-weight: 700; color: var(--brand); margin: 0 0 .6rem;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
.section-head { margin-bottom: 36px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.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: -999px; top: 0; z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-weight: 600; font-size: .95rem; line-height: 1;
	padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--secondary { background: var(--color-secondary); color: #fff; box-shadow: var(--shadow-green); }
.btn--secondary:hover { background: var(--color-secondary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-100); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { color: var(--brand-700); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
	backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid transparent;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(16,37,43,.08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.site-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.custom-logo { max-height: 68px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav .menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu a { color: var(--ink); font-weight: 500; font-size: .97rem; position: relative; }
.main-nav .menu a:hover { color: var(--brand); }
.main-nav .menu .current-menu-item > a { color: var(--brand); }
.nav-cta { white-space: nowrap; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; position: relative; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--ink);
	transform: translate(-50%,-50%); transition: .2s;
}
.nav-toggle__bar::before { transform: translate(-50%,-8px); }
.nav-toggle__bar::after  { transform: translate(-50%,6px); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.01em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 38ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; min-height: 280px; display: grid; place-items: center; }
.hero__art-accent { position: absolute; width: 80%; aspect-ratio: 1; right: -4%; bottom: -8%; border-radius: 50%; background: var(--grad-cta); opacity: .12; z-index: 0; }
.hero__photo { position: relative; z-index: 1; width: 100%; max-width: 430px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@keyframes chd-morph { 50% { border-radius: 58% 42% 38% 62% / 46% 58% 42% 54%; } }

/* Orbe decorativo reutilizable (Quienes somos) */
.chd-orb { position: relative; width: 300px; height: 300px; max-width: 82%; margin: 0 auto; display: grid; place-items: center; }
.chd-orb::before { content: ""; position: absolute; inset: 0; border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; background: var(--grad-blob); filter: blur(1px); animation: chd-morph 12s ease-in-out infinite; }
.chd-orb__sat { position: absolute; width: 44%; aspect-ratio: 1; right: -5%; top: -6%; border-radius: 50%; background: var(--c-lime-400); opacity: .95; }
.chd-orb__cross { position: relative; z-index: 1; width: 40%; height: 40%; fill: #fff; filter: drop-shadow(0 12px 24px rgba(47,126,51,.4)); }

/* Animacion de entrada del hero (sutil) */
@keyframes chd-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes chd-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.hero__content > * { animation: chd-fade-up .6s var(--ease) both; }
.hero__content .eyebrow { animation-delay: .05s; }
.hero__title { animation-delay: .13s; }
.hero__lead { animation-delay: .22s; }
.hero__actions { animation-delay: .3s; }
.hero__art { animation: chd-pop .8s var(--ease) .15s both; }

/* ---------- Especialidades ---------- */
.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.esp-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px 20px; display: flex; align-items: center; gap: 14px;
	transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; box-shadow: var(--shadow);
}
.esp-card:hover { transform: translateY(-3px); border-color: var(--green-100); box-shadow: var(--shadow-lg); }
.esp-card__icon { flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--green-50); color: var(--green-700); transition: background .18s, color .18s; }
.esp-card:hover .esp-card__icon { background: var(--green-600); color: #fff; }
.esp-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.esp-card__name { font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.22; overflow-wrap: anywhere; hyphens: auto; }
.esp-card__count { color: var(--muted); font-size: .85rem; }

/* ---------- Grilla de profesionales ---------- */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }

.prof-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.prof-card[hidden] { display: none; }

.prof-card { text-align: center; padding-top: 30px; }
.prof-card__media {
	position: relative; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%;
	background: linear-gradient(160deg, var(--green-50), var(--green-100));
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--green-100), 0 10px 22px rgba(32,37,31,.12);
}
.prof-card__media img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: block; }
.prof-card__placeholder { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; color: var(--brand); opacity: .5; }
.prof-card__today {
	position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	background: var(--ok); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
	letter-spacing: .02em; box-shadow: 0 4px 10px rgba(46,158,107,.4);
}

.prof-card__body { padding: 24px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.prof-card__name { font-size: 1.12rem; font-weight: 700; margin: 0; line-height: 1.25; }
.prof-card__name a { color: var(--ink); }
.prof-card__name a:hover { color: var(--brand); }
.prof-card__role { color: var(--green-700); font-weight: 600; font-size: .9rem; margin: 0; }

.prof-card__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 2px 0; padding: 0; }
.tag { background: var(--green-50); color: var(--green-700); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

.prof-card__mat { font-size: .8rem; color: var(--muted); margin: 0; }

.prof-card__schedule { width: 100%; margin: 8px 0 0; display: grid; gap: 3px; text-align: left; }
.prof-card__sched-row { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); padding: 2px 0; border-top: 1px dashed var(--line); }
.prof-card__sched-row:first-child { border-top: 0; }
.prof-card__sched-row dt { font-weight: 600; color: var(--ink); margin: 0; }
.prof-card__sched-row dd { margin: 0; text-align: right; }
.prof-card__sched-row.is-today dt, .prof-card__sched-row.is-today dd { color: var(--ok); font-weight: 700; }

.prof-card__link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .9rem; color: var(--brand); }

/* ---------- Cartilla / filtros ---------- */
.cartilla-hero { background: var(--grad-hero); padding-block: clamp(40px, 6vw, 72px); }
.cartilla-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); }
.cartilla-hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.cartilla { padding-block: 40px 80px; }
.cartilla-filters {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 22px; box-shadow: var(--shadow);
	margin-bottom: 28px;
}
.cartilla-filters__search input {
	width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px;
	font-size: 1rem; font-family: inherit; background: var(--bg-soft);
}
.cartilla-filters__search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }

.cartilla-filters__row { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: end; margin-top: 16px; }
.cartilla-filters__group { display: flex; flex-direction: column; gap: 5px; }
.cartilla-filters__group label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cartilla-filters__group select {
	padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
	font-size: .92rem; background: #fff; min-width: 180px; color: var(--ink);
}
.cartilla-filters__today { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; user-select: none; }
.cartilla-filters__today input { width: 18px; height: 18px; accent-color: var(--brand); }

.cartilla-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.chip {
	display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: .85rem; font-weight: 600;
	padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-700); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__count { font-size: .72rem; opacity: .7; }
.chip--link { text-decoration: none; color: var(--brand-700); }
.chip--link:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.chip.is-active .chip__count { opacity: .85; }

.cartilla-count { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.cartilla-count strong { color: var(--ink); }
.cartilla-empty { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 1.05rem; }
.cartilla-empty-state { text-align: center; padding: 60px 20px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg); display: grid; gap: 16px; justify-items: center; }

/* ---------- Ficha individual ---------- */
.ficha { padding-block: 40px 80px; }
.ficha__back { display: inline-block; margin-bottom: 22px; font-weight: 600; color: var(--brand-600); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--line); margin-left: 2px; }
.breadcrumbs a { color: var(--brand-600); font-weight: 500; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.cartilla-hero .breadcrumbs ol { margin-bottom: 10px; }
.ficha__grid { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.ficha__aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.ficha__photo { width: 240px; height: 240px; margin: 0 auto; border-radius: 50%; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--green-50), var(--green-100)); box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--green-100), var(--shadow-lg); }
.ficha__photo img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; display: block; }
.ficha__photo-ph { width: 240px; height: 240px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); opacity: .5; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card__title { font-size: 1.05rem; margin: 0 0 14px; }
.ficha__contact-note { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.ficha__contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ficha__contact-list li { display: flex; flex-direction: column; }
.ficha__contact-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ficha__cta { display: grid; gap: 10px; }
.ficha__cta .btn { width: 100%; }

.ficha__role { color: var(--green-700); font-weight: 600; margin: 0 0 4px; }
.ficha__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 12px; }
.ficha__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); margin-bottom: 8px; }
.ficha__mat { font-size: .9rem; }
.ficha__bio { font-size: 1.05rem; color: #33444a; margin-top: 18px; }

.ficha__section { margin-top: 36px; }
.ficha__section-title { font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }
.ficha__schedule { width: 100%; border-collapse: collapse; max-width: 480px; }
.ficha__schedule th, .ficha__schedule td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ficha__schedule th { font-weight: 600; width: 45%; }
.ficha__schedule tr.is-today { background: var(--green-50); }
.badge-hoy { display: inline-block; background: var(--ok); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.ficha__obras { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ficha__related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- Nosotros / CTA ---------- */
.nosotros__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.nosotros--solo .nosotros__media { display: none; }
.nosotros--solo .nosotros__inner { grid-template-columns: 1fr; max-width: var(--container-narrow); }
.nosotros--solo .nosotros__content { font-size: 1.12rem; }
.nosotros__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Quienes somos (propuesta de valor) */
.nosotros__media { position: relative; display: flex; justify-content: center; }
.nosotros__accent { position: absolute; inset: auto; width: 78%; aspect-ratio: 1; right: -6%; bottom: -8%; border-radius: 50%; background: var(--grad-cta); opacity: .14; z-index: 0; }
.nosotros__img { position: relative; z-index: 1; width: 100%; max-width: 440px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.nosotros__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; margin: 4px 0 16px; }
.nosotros__text { color: var(--muted); font-size: 1.08rem; }
.nosotros__text p { margin: 0 0 .8em; }
.nosotros__stats { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.nosotros__stats li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--green-100); }
.nosotros__stats .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--color-primary); }
.nosotros__stats .lbl { font-size: .85rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nosotros__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Pagina Quienes Somos (composicion propia) ---------- */
.somos-hero { background: var(--grad-hero); overflow: hidden; padding-block: clamp(48px, 7vw, 88px); }
.somos-hero__inner { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.somos-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin: 4px 0 10px; }
.somos-hero__tagline { font-size: 1.15rem; color: var(--green-700); font-weight: 600; margin: 0 0 20px; }
.somos-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }

.somos-hero__media { position: relative; display: flex; justify-content: center; }
.somos-hero__frame {
	position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1.05;
	border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
	overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grad-blob);
}
.somos-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.somos-hero__float {
	position: absolute; left: -18px; bottom: 26px; z-index: 2;
	display: flex; align-items: center; gap: 12px; max-width: 230px;
	background: #fff; border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.somos-hero__float-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.somos-hero__float strong { display: block; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.somos-hero__float span span { font-size: .82rem; color: var(--muted); }

.somos-manifiesto { padding-block: clamp(40px, 6vw, 72px); }
.somos-manifiesto__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.somos-quote { color: var(--green-200); margin-bottom: 10px; }
.somos-manifiesto__text p { font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; margin: 0 0 1em; }
.somos-manifiesto__text p:first-of-type { color: var(--ink); font-weight: 600; }
.somos-manifiesto__text p:not(:first-of-type) { color: var(--muted); }

.somos-pilares__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.somos-pilar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 26px; text-align: center; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.somos-pilar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.somos-pilar__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.somos-pilar__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; }
.somos-pilar__desc { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }

.somos-stats { background: var(--c-green-800); padding-block: 52px; }
.somos-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; text-align: center; }
.somos-stats__item { padding-inline: 20px; border-left: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; gap: 6px; }
.somos-stats__item:first-child { border-left: 0; }
.somos-stats__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1; color: var(--c-lime-400); }
.somos-stats__lbl { font-size: .85rem; color: rgba(255,255,255,.85); letter-spacing: .02em; }

@media (max-width: 860px) {
	.somos-hero__inner { grid-template-columns: 1fr; }
	.somos-hero__media { margin-top: 8px; order: -1; }
	.somos-hero__frame { max-width: 320px; }
	.somos-pilares__grid { grid-template-columns: 1fr; }
	.somos-stats__grid { grid-template-columns: 1fr; gap: 22px; }
	.somos-stats__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; }
	.somos-stats__item:first-child { border-top: 0; padding-top: 0; }
}
.cta-band { background: var(--grad-cta); color: #fff; padding-block: 60px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__text { max-width: 52ch; }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .35em; }
.cta-band__text p { margin: 0; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* Seccion lead generico */
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 8px 0 0; }

/* Galeria de instalaciones */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--bg-soft); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,40,18,.32)); opacity: 0; transition: opacity .2s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
body.chd-lightbox-open { overflow: hidden; }
.chd-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.chd-lightbox.is-open { display: flex; }
.chd-lightbox__backdrop { position: absolute; inset: 0; background: rgba(12,24,14,.9); backdrop-filter: blur(3px); cursor: zoom-out; }
.chd-lightbox__stage { position: relative; z-index: 1; margin: 0; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: chd-lb-in .22s var(--ease); }
.chd-lightbox__img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.chd-lightbox__cap { color: #e8efe6; font-size: .92rem; text-align: center; }
.chd-lightbox__count { position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%); color: #cdd9cc; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.chd-lightbox__btn { position: absolute; z-index: 2; display: grid; place-items: center; border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; transition: background .15s, transform .15s; }
.chd-lightbox__btn:hover { background: var(--color-primary); transform: scale(1.05); }
.chd-lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.chd-lightbox__prev, .chd-lightbox__next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; }
.chd-lightbox__prev:hover, .chd-lightbox__next:hover { transform: translateY(-50%) scale(1.05); }
.chd-lightbox__prev { left: 18px; }
.chd-lightbox__next { right: 18px; }
@keyframes chd-lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 560px) {
	.chd-lightbox__prev { left: 8px; } .chd-lightbox__next { right: 8px; }
	.chd-lightbox__btn { width: 42px; height: 42px; }
	.chd-lightbox__img { max-height: 72vh; }
}

/* ---------- Paginas ---------- */
.page-hero { background: var(--bg-soft); padding-block: 54px; border-bottom: 1px solid var(--line); }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-featured { margin-top: 32px; }
.page-featured img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-content { max-width: 760px; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2 { font-family: var(--font-display); margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.page-head { margin-bottom: 30px; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-subtitle { color: var(--muted); font-size: 1.1rem; }

/* ---------- Listado blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 1.2rem; }
.link-more { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: #16241a; color: #c3d2c2; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-cta); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.site-footer__title, .site-footer .widget-title { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer__desc { color: #9bb09a; max-width: 36ch; }
.site-footer__brand .custom-logo-link { display: inline-block; background: #fff; padding: 8px; border-radius: 18px; line-height: 0; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.site-footer__brand .custom-logo { max-height: 78px; border-radius: 10px; }
.site-footer a { color: #c3d2c2; }
.site-footer a:hover { color: var(--c-lime-400); }
.site-footer .menu, .site-footer__widgets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: .88rem; color: #9bb09a; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.footer-contact .chd-ico { flex: 0 0 auto; margin-top: 2px; color: var(--c-lime-400); }
.footer-contact a { color: #d8e3d6; }
.footer-contact a:hover { color: var(--c-lime-400); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #cdd9cc; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.footer-social a:hover { background: var(--c-green-600); color: #fff; transform: translateY(-2px); }

/* Boton flotante de WhatsApp */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: var(--z-overlay);
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--color-whatsapp); color: #fff; font-weight: 700; font-size: .95rem;
	padding: 12px 18px; border-radius: var(--radius-pill);
	box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(37,211,102,.55); }
.wa-float .chd-ico { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Buscador ---------- */
.search-form { display: flex; gap: 8px; }
.search-field { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; }

/* ---------- Paginacion ---------- */
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }

.error-404 { text-align: center; }
.error-404 .page-title { font-size: clamp(3rem, 10vw, 6rem); color: var(--brand); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
	.ficha__grid { grid-template-columns: 280px 1fr; gap: 30px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		padding: 14px 22px 22px; transform: translateY(-130%); transition: transform .25s ease; max-height: calc(100vh - 84px); overflow: auto;
	}
	.main-nav.is-open { transform: translateY(0); }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu li { border-bottom: 1px solid var(--line); }
	.main-nav .menu a { display: block; padding: 14px 4px; }
	.nav-cta { margin-top: 14px; }
	body.nav-open { overflow: hidden; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { min-height: 0; margin-top: 8px; }
	.hero__photo { max-width: 340px; }
	.hero__art-accent { display: none; }
	.nosotros__inner { grid-template-columns: 1fr; }
	.ficha__grid { grid-template-columns: 1fr; }
	.ficha__aside { position: static; max-width: 420px; }
	.cartilla-filters { position: static; }
	.section-head--row { align-items: flex-start; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
	.chd-orb { width: 240px; height: 240px; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-block: 44px; }
}

@media (max-width: 560px) {
	.section { padding-block: 52px; }
	.cartilla-filters__group select { min-width: 100%; }
	.cartilla-filters__group { width: 100%; }
	.prof-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.prof-card__body { padding: 14px; }
	.prof-card__name { font-size: 1.02rem; }
	.nosotros__stats { gap: 12px 22px; }
	.nosotros__headline { font-size: clamp(1.5rem, 7vw, 2rem); }
	.cartilla-hero__title, .page-hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

@media (max-width: 400px) {
	.prof-grid { grid-template-columns: 1fr; }
}

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