/* Salud y veterinaria reuses the calm two-column Case layout while giving
 * progress, declared animal data and sensitive media their own semantics. */

.ip-health .ip-vol-layout {
	gap: clamp(48px, 4.5vw, 64px);
}

.ip-health-card {
	overflow: hidden;
}

.ip-health-card .ip-case-card__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ip-space-3);
}

.ip-health-card .ip-case-card__head .ip-vol-title {
	width: 100%;
	max-width: none;
}

.ip-health-card .ip-case-state {
	order: -1;
	align-self: flex-start;
}

.ip-health-card .ip-case-state {
	border-color: var(--ip-color-border-strong);
	background: var(--ip-color-surface-subtle);
}

.ip-health--emergency .ip-health-card .ip-case-state,
.ip-health--emergency .ip-vol-cta__apply {
	border-color: var(--ip-color-action);
	background: var(--ip-color-action);
	color: var(--ip-color-on-action);
}

.ip-health--blood .ip-health-card .ip-case-state {
	border-color: var(--ip-color-border-strong);
	background: var(--ip-color-accent-soft);
	color: var(--ip-color-text);
}

.ip-health .ip-vol-summary__rows {
	gap: var(--ip-space-4);
}

.ip-health-progress {
	margin: 0 0 var(--ip-space-5);
	padding: var(--ip-space-5) 0;
	border-top: 1px solid var(--ip-color-border);
	border-bottom: 1px solid var(--ip-color-border);
}

.ip-health-progress > div:first-child {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ip-space-4);
}

.ip-health-progress span,
.ip-health-progress p,
.ip-health-progress strong small {
	color: var(--ip-color-text-muted);
}

.ip-health-progress strong {
	color: var(--ip-color-text);
	font-size: 1.25rem;
}

.ip-health-progress strong small {
	font-size: 0.8125rem;
	font-weight: 600;
}

.ip-health-progress__track {
	height: 9px;
	margin-top: var(--ip-space-3);
	overflow: hidden;
	border-radius: var(--ip-radius-pill);
	background: var(--ip-color-surface-subtle);
}

.ip-health-progress__track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ip-color-action);
}

.ip-health-progress p,
.ip-health-card__updated {
	margin: var(--ip-space-2) 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
}

.ip-health-card__updated {
	padding-top: var(--ip-space-4);
	border-top: 1px solid var(--ip-color-border);
	color: var(--ip-color-text-muted);
	text-align: center;
}

.ip-health-sensitive {
	margin: 0;
	border: 1px solid var(--ip-color-border);
	border-radius: var(--ip-radius-lg);
	background: var(--ip-color-surface);
}

.ip-health-sensitive > summary {
	display: flex;
	min-height: 96px;
	align-items: center;
	gap: var(--ip-space-4);
	padding: var(--ip-space-5);
	cursor: pointer;
	list-style: none;
}

.ip-health-sensitive > summary::-webkit-details-marker { display: none; }

.ip-health-sensitive__icon,
.ip-health-support__icon {
	display: inline-flex;
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ip-color-surface-subtle);
	color: var(--ip-color-text);
}

.ip-health-sensitive__icon .ip-icon,
.ip-health-support__icon .ip-icon { width: 21px; height: 21px; }

.ip-health-sensitive summary span:nth-child(2) {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.ip-health-sensitive summary small {
	color: var(--ip-color-text-muted);
	line-height: 1.45;
}

.ip-health-sensitive__action {
	margin-left: auto;
	font-size: 0.875rem;
	font-weight: 750;
}

.ip-health-sensitive[open] > summary {
	border-bottom: 1px solid var(--ip-color-border);
}

.ip-health-sensitive[open] .ip-health-sensitive__action { font-size: 0; }
.ip-health-sensitive[open] .ip-health-sensitive__action::after { content: "Ocultar"; font-size: 0.875rem; }
.ip-health-sensitive .ip-vol-gallery { border: 0; border-radius: 0 0 var(--ip-radius-lg) var(--ip-radius-lg); }

.ip-health-section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
	gap: var(--ip-space-6);
	align-items: end;
	margin-bottom: var(--ip-space-5);
}

.ip-health-section-head span {
	color: var(--ip-color-text-muted);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ip-health-section-head h2 { margin: var(--ip-space-2) 0 0; }
.ip-health-section-head p { margin: 0; color: var(--ip-color-text-muted); font-size: 0.875rem; line-height: 1.6; }

.ip-health-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ip-space-3);
}

.ip-health-fact {
	display: grid;
	min-height: 126px;
	align-content: start;
	gap: var(--ip-space-2);
	padding: var(--ip-space-4);
	border: 1px solid var(--ip-color-border);
	border-radius: var(--ip-radius-md);
	background: var(--ip-color-surface);
}

.ip-health-fact > span {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ip-color-surface-subtle);
}

.ip-health-fact .ip-icon { width: 18px; height: 18px; }
.ip-health-fact small { color: var(--ip-color-text-muted); }
.ip-health-fact strong { overflow-wrap: anywhere; }

.ip-health-animal-link {
	display: flex;
	min-height: 92px;
	align-items: center;
	gap: var(--ip-space-4);
	margin-top: var(--ip-space-4);
	padding: var(--ip-space-3);
	border: 1px solid var(--ip-color-border);
	border-radius: var(--ip-radius-md);
	color: var(--ip-color-text);
	text-decoration: none;
}

.ip-health-animal-link:hover { border-color: var(--ip-color-border-strong); }
.ip-health-animal-link img { width: 72px; height: 72px; border-radius: var(--ip-radius-sm); object-fit: cover; }
.ip-health-animal-link span { display: grid; gap: 3px; min-width: 0; }
.ip-health-animal-link small { color: var(--ip-color-text-muted); }
.ip-health-animal-link > .ip-icon { width: 20px; height: 20px; margin-left: auto; }

.ip-health-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ip-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ip-health-checks li {
	display: flex;
	min-height: 58px;
	align-items: flex-start;
	gap: var(--ip-space-3);
	padding: var(--ip-space-4);
	border: 1px solid var(--ip-color-border-strong);
	border-radius: var(--ip-radius-md);
	background: var(--ip-color-surface);
	line-height: 1.55;
}

.ip-health-checks li > span {
	display: inline-flex;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ip-color-surface-subtle);
}

.ip-health-checks .ip-icon { width: 14px; height: 14px; }

.ip-health-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ip-space-3); }
.ip-health-support { display: flex; min-height: 112px; gap: var(--ip-space-4); padding: var(--ip-space-5); border: 1px solid var(--ip-color-border); border-radius: var(--ip-radius-md); background: var(--ip-color-surface); }
.ip-health-support > div { display: grid; align-content: center; gap: 4px; min-width: 0; }
.ip-health-support small { color: var(--ip-color-text-muted); }
.ip-health-support strong, .ip-health-support p { margin: 0; overflow-wrap: anywhere; }
.ip-health-support a { display: inline-flex; align-items: center; gap: var(--ip-space-2); color: var(--ip-color-text); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.ip-health-support a .ip-icon { width: 16px; height: 16px; }

.ip-health-location-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ip-space-3); margin-top: var(--ip-space-4); }
.ip-health-location-copy > div { display: flex; align-items: center; gap: var(--ip-space-3); min-height: 76px; padding: var(--ip-space-4); border: 1px solid var(--ip-color-border); border-radius: var(--ip-radius-md); }
.ip-health-location-copy > div > span { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: var(--ip-color-surface-subtle); }
.ip-health-location-copy .ip-icon { width: 18px; height: 18px; }
.ip-health-location-copy p { display: grid; gap: 3px; margin: 0; }
.ip-health-location-copy small { color: var(--ip-color-text-muted); }

.ip-health-clinic-logo {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: contain;
}

.ip-health-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ip-health-timeline li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--ip-space-5); padding: 0 0 var(--ip-space-6); }
.ip-health-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 121px; top: 23px; bottom: 0; width: 1px; background: var(--ip-color-border); }
.ip-health-timeline li::after { content: ""; position: absolute; left: 116px; top: 6px; width: 11px; height: 11px; border: 2px solid var(--ip-color-surface); border-radius: 50%; background: var(--ip-color-text); box-shadow: 0 0 0 1px var(--ip-color-border-strong); }
.ip-health-timeline time { color: var(--ip-color-text-muted); font-size: 0.8125rem; font-weight: 700; }
.ip-health-timeline h3 { margin: 0 0 var(--ip-space-2); font-size: 1rem; }
.ip-health-timeline p { margin: 0; color: var(--ip-color-text-muted); line-height: 1.65; }

@media (max-width: 767px) {
	.ip-health-section-head { grid-template-columns: 1fr; gap: var(--ip-space-3); }
	.ip-health-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ip-health-checks, .ip-health-support-grid, .ip-health-location-copy { grid-template-columns: 1fr; }
	.ip-health-timeline li { grid-template-columns: 1fr; gap: var(--ip-space-2); padding-left: var(--ip-space-5); }
	.ip-health-timeline li::after { left: 0; }
	.ip-health-timeline li:not(:last-child)::before { left: 5px; }
}

@media (max-width: 479px) {
	.ip-health-facts { grid-template-columns: 1fr; }
	.ip-health-sensitive > summary { align-items: flex-start; padding: var(--ip-space-4); }
	.ip-health-sensitive__action { display: none; }
	.ip-health-progress > div:first-child { align-items: flex-start; flex-direction: column; gap: var(--ip-space-1); }
}

@media (prefers-reduced-motion: reduce) {
	.ip-health-progress__track span { transition: none; }
}

/* The section already supplies the spacing and divider used by this layout. */
.ip-health-animal-data .ip-field-groups,
.ip-health-animal-data .ip-field-group {
  padding-top: 0;
  border-top: 0;
}
