/*
 * Componentes de interfaz del tema (refresco de diseño 2026-10).
 * Se carga después de los estilos compartidos de static.clubhipico.cl,
 * css/style.css y css/responsive-fixes.css.
 */

:root {
	--chs-green: #5B9B59;
	--chs-green-deep: #2F5E33;
	--chs-gold: #D3AB05;
	--chs-graphite: #2B2B2B;
	--chs-paper: #F6F7F4;
	--chs-ink: #1F2A1F;
	--chs-muted: #4F5B4F;
	--chs-line: #DDE3DA;
	--chs-radius: 10px;
	--chs-measure: 68ch;
	--chs-section: clamp(56px, 8vw, 96px);
}

/* ---------- Botones ---------- */

.chs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* Texto oscuro sobre dorado: blanco sobre #D3AB05 no alcanza contraste AA. */
.chs-btn--gold {
	background: var(--chs-gold);
	color: var(--chs-graphite) !important;
}

.chs-btn--gold:hover {
	background: #E4BD12;
}

.chs-btn--ghost {
	border-color: rgba(255, 255, 255, .7);
	color: #fff !important;
}

.chs-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}

/* Botón "AGENDA HORA" del menú (dorado compartido): mismo criterio de contraste. */
#nav-menu-principal .run-type-5 {
	color: var(--chs-graphite) !important;
}

/* ---------- Franja de urgencias (elemento distintivo) ---------- */

.chs-urgencias {
	background: var(--chs-graphite);
	border-top: 4px solid var(--chs-gold);
	color: #fff;
}

.chs-urgencias__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-block: 32px;
}

.chs-urgencias__text {
	flex: 1 1 420px;
}

.chs-urgencias__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: #A9D6A6;
	font-size: 14px;
	font-weight: 700;
}

.chs-urgencias__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #6FD36A;
	box-shadow: 0 0 0 0 rgba(111, 211, 106, .6);
	animation: chs-pulse 2.4s ease-out infinite;
}

@keyframes chs-pulse {
	0% { box-shadow: 0 0 0 0 rgba(111, 211, 106, .55); }
	70% { box-shadow: 0 0 0 10px rgba(111, 211, 106, 0); }
	100% { box-shadow: 0 0 0 0 rgba(111, 211, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.chs-urgencias__dot { animation: none; }
}

.chs-urgencias__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 800;
	line-height: 1.25;
	text-wrap: balance;
}

.chs-urgencias__sub {
	margin: 0;
	color: #C9D1C8;
	font-size: 15px;
	font-weight: 400;
}

.chs-urgencias__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 575.98px) {
	.chs-urgencias__actions,
	.chs-urgencias__actions .chs-btn {
		width: 100%;
	}
}

/* ---------- Texto legible ---------- */

#intro .font-20 {
	font-weight: 300;
	line-height: 1.6;
}

.chs-prose {
	max-width: var(--chs-measure);
	color: var(--chs-ink);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

.chs-prose p {
	margin-bottom: 1.1em;
}

.chs-prose img {
	border-radius: var(--chs-radius);
}

/* ---------- Secciones genéricas ---------- */

.chs-section {
	padding-block: var(--chs-section);
}

.chs-section--paper {
	background: var(--chs-paper);
}

.chs-section__title {
	margin-bottom: 32px;
	font-size: clamp(24px, 3vw, 28px);
	text-transform: uppercase;
}

/* ---------- Encabezado de páginas interiores ---------- */

.chs-page-header {
	padding: 150px 0 56px;
	background:
		linear-gradient(rgba(47, 94, 51, .92), rgba(91, 155, 89, .85)),
		var(--chs-header-img, url('../img/hero-veterinaria.jpg')) center / cover no-repeat;
	color: #fff;
}

.chs-page-header__title {
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 5vw, 48px);
	line-height: 1.05;
}

.chs-page-header__title .thin {
	font-weight: 200;
}

.chs-page-header__title .black {
	font-weight: 900;
}

.chs-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 16px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
}

.chs-back:hover {
	text-decoration: underline;
}

/* ---------- Artículo (caso clínico, páginas) ---------- */

.chs-article {
	max-width: var(--chs-measure);
	margin-inline: auto;
}

.chs-article__title {
	margin-bottom: 24px;
	color: var(--chs-green-deep);
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: none;
}

.chs-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chs-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--chs-radius);
}

/* ---------- Perfil de profesional ---------- */

.chs-profile {
	display: grid;
	grid-template-columns: minmax(220px, 340px) 1fr;
	gap: 48px;
	align-items: start;
	max-width: 1000px;
	margin-inline: auto;
}

.chs-profile__photo {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--chs-radius);
}

.chs-profile__role {
	margin: 0 0 8px;
	color: var(--chs-green);
	font-size: 16px;
	font-weight: 700;
}

.chs-profile__name {
	margin-bottom: 24px;
	color: var(--chs-ink);
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	text-transform: none;
}

@media (max-width: 767.98px) {
	.chs-profile {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.chs-profile__photo {
		max-width: 320px;
	}
}

/* ---------- Servicios ---------- */

.chs-services__grid {
	padding-top: 56px;
	row-gap: 32px;
}

.chs-service {
	margin: 0;
	text-align: center;
}

.chs-service__img {
	display: block;
	width: min(150px, 100%);
	aspect-ratio: 1;
	margin: 0 auto 14px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 6px var(--chs-paper);
}

.chs-service__title {
	color: var(--chs-green-deep);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.chs-services__cta {
	padding: 40px 0 64px;
	text-align: center;
}

/* ---------- Equipo ---------- */

#pills-tab .btn-tabs-team.active {
	color: var(--chs-graphite) !important;
}

#nuestro-equipo .tab-pane .light.font-14 {
	color: var(--chs-muted);
	font-size: 15px !important;
	font-weight: 400;
	line-height: 1.6;
}

/* ---------- Casos clínicos (portada) ---------- */

#casos-clinicos .row.my-4 > [class*="col-"] {
	display: flex;
	margin-bottom: 24px;
}

#casos-clinicos .card-casos {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border-radius: var(--chs-radius);
	background: #fff;
}

#casos-clinicos .image-casos {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

#casos-clinicos .card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 24px !important;
}

#casos-clinicos .card-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.25;
}

#casos-clinicos .card-text {
	display: -webkit-box;
	overflow: hidden;
	color: var(--chs-muted);
	font-size: 15px !important;
	font-weight: 400;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* "Ver caso" solo aparecía con hover: invisible en touch y teclado. */
#casos-clinicos .btn-caso {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: .5rem 1.4rem;
	border-color: var(--chs-green) !important;
	color: var(--chs-green-deep) !important;
	font-weight: 700;
}

#casos-clinicos .btn-caso:hover,
#casos-clinicos .btn-caso:focus-visible {
	background: var(--chs-green) !important;
	color: #fff !important;
}

/* ---------- Contacto ---------- */

.chs-contact {
	padding-block: var(--chs-section);
	background: var(--chs-graphite);
	color: #fff;
}

.chs-contact__title {
	color: var(--chs-green);
	font-size: clamp(38px, 4.2vw, 54px) !important;
	line-height: .95;
}

.chs-contact__title .black {
	color: #fff;
}

.chs-contact__lead {
	max-width: 42ch;
	margin: 24px 0 32px;
	color: #D9DFD8;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
}

.chs-contact__list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.chs-contact__list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.chs-contact__label {
	color: #A9B3A8;
	font-size: 14px;
	font-weight: 600;
}

.chs-contact__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	color: #fff !important;
	font-size: 19px;
	font-weight: 700;
}

.chs-contact__list .fa {
	width: 20px;
	color: var(--chs-gold);
	text-align: center;
}

.chs-contact__form {
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--chs-radius);
	background: #fff;
	color: var(--chs-ink);
}

.chs-contact__form-title {
	margin: 0 0 6px;
	color: var(--chs-ink);
	font-size: 24px;
	font-weight: 800;
	text-transform: none;
}

.chs-contact__form-help {
	margin-bottom: 8px;
	color: var(--chs-muted);
	font-size: 15px;
}

.chs-contact__form .wpcf7-form-control:not(.wpcf7-submit) {
	color: var(--chs-ink);
	font-size: 16px;
}

.chs-contact__form .wpcf7-form-control:focus {
	border-color: var(--chs-green) !important;
	box-shadow: 0 2px 0 var(--chs-green);
	outline: none;
}

.chs-contact__form .wpcf7-submit,
.chs-contact__form button[type="submit"] {
	min-height: 48px;
	padding: .75rem 2.5rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--chs-gold) !important;
	color: var(--chs-graphite) !important;
	font-weight: 700;
}

@media (max-width: 991.98px) {
	.chs-contact__list {
		margin-bottom: 32px;
	}
}

/* ---------- Búsqueda, archivos y tarjetas ---------- */

.chs-search {
	display: flex;
	gap: 12px;
	max-width: 720px;
	margin: 0 auto 32px;
}

.chs-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid var(--chs-line);
	border-radius: 999px;
	color: var(--chs-ink);
	font-size: 16px;
}

.chs-search input[type="search"]:focus {
	border-color: var(--chs-green);
	outline: none;
}

.chs-results-count {
	max-width: 720px;
	margin: 0 auto 32px;
	color: var(--chs-muted);
	text-align: center;
}

.chs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.chs-card {
	overflow: hidden;
	border: 1px solid var(--chs-line);
	border-radius: var(--chs-radius);
	background: #fff;
}

.chs-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.chs-card__media {
	aspect-ratio: 4 / 3;
	background: var(--chs-paper);
}

.chs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.chs-card__kind {
	margin: 0 0 6px;
	color: var(--chs-green);
	font-size: 14px;
	font-weight: 700;
}

.chs-card__title {
	margin: 0 0 10px;
	color: var(--chs-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: none;
}

.chs-card__text {
	margin: 0 0 16px;
	color: var(--chs-muted);
	font-size: 15px;
	line-height: 1.55;
}

.chs-card__action {
	margin-top: auto;
	color: var(--chs-green-deep);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.chs-card__link:hover .chs-card__title,
.chs-card__link:focus-visible .chs-card__title {
	color: var(--chs-green-deep);
}

.chs-empty {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.chs-empty__title {
	margin-bottom: 12px;
	color: var(--chs-ink);
	font-size: 24px;
	font-weight: 800;
	text-transform: none;
}

.chs-empty p {
	margin-bottom: 24px;
	color: var(--chs-muted);
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

@media (max-width: 575.98px) {
	.chs-search {
		flex-direction: column;
	}
}

/* ---------- Footer ---------- */

/* "Desarrollado por" quedaba verde sobre verde (contraste insuficiente). */
footer a[href="https://innovaweb.cl"] {
	color: #fff !important;
	text-decoration: underline;
}
