/*
 * Medical Services Carousel - Frontend styles.
 */

:root {
	--msc-primary: #1f4aa8;
	--msc-primary-dark: #163781;
	--msc-secondary: #2b6de9;
	--msc-bg: #f5f8fd;
	--msc-card-bg: #ffffff;
	--msc-border: #e4ecf7;
	--msc-text: #1e3260;
	--msc-muted: #577094;
	--msc-success: #149d65;
	--msc-shadow: 0 12px 30px rgba(26, 72, 164, 0.1);
	--msc-radius: 22px;
}

.msc-wrapper {
	position: relative;
	padding: 0 34px;
	margin: 12px 0 28px;
}

.msc-swiper {
	overflow: hidden;
	padding: 8px 2px 18px;
}

.msc-card {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding: 24px 20px 20px;
	border-radius: var(--msc-radius);
	border: 1px solid var(--msc-border);
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	box-shadow: 0 6px 18px rgba(39, 77, 147, 0.07);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.msc-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--msc-shadow);
	border-color: #d3e2fb;
}

.msc-card__icon-wrap {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #e8f3ff, #d9eaff);
	color: var(--msc-secondary);
	font-size: 1.45rem;
}

.msc-card__title {
	margin: 4px 0 0;
	font-size: 1.48rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--msc-primary);
}

.msc-card__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--msc-muted);
	min-height: 68px;
}

.msc-price-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.msc-price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.84rem;
	line-height: 1.2;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
}

.msc-price--fonasa {
	background: #eaf4ff;
	color: #2a589e;
	border-color: #d3e5ff;
}

.msc-price--particular {
	background: #eef7ff;
	color: #3055c0;
	border-color: #d4e0ff;
}

.msc-price--custom {
	background: #ecfff6;
	color: #16724d;
	border-color: #c5efd7;
}

.msc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 5px;
}

.msc-btn {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}

.msc-btn:hover {
	transform: translateY(-2px);
}

.msc-btn--primary {
	background: linear-gradient(135deg, var(--msc-primary), var(--msc-secondary));
	color: #fff;
}

.msc-btn--primary:hover {
	box-shadow: 0 8px 18px rgba(31, 74, 168, 0.33);
	color: #fff;
}

.msc-btn--whatsapp {
	background: #e9fbf2;
	border-color: #bfe9d4;
	color: var(--msc-success);
}

.msc-btn--whatsapp:hover {
	box-shadow: 0 8px 16px rgba(20, 157, 101, 0.2);
	color: #0e7c4f;
}

.msc-btn--ghost {
	background: #f4f7fc;
	border-color: #e0e7f6;
	color: var(--msc-text);
	cursor: default;
}

.msc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--msc-primary);
	box-shadow: 0 8px 20px rgba(15, 40, 95, 0.16);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.msc-nav:hover {
	background: var(--msc-primary);
	color: #fff;
}

.msc-nav-prev {
	left: -2px;
}

.msc-nav-next {
	right: -2px;
}

.msc-empty {
	padding: 18px;
	border-radius: 14px;
	background: #f4f7fc;
	color: var(--msc-muted);
}

.msc-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.msc-modal.is-open {
	display: block;
}

.msc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 20, 45, 0.72);
	backdrop-filter: blur(2px);
}

.msc-modal__dialog {
	position: relative;
	margin: 5vh auto;
	width: min(960px, calc(100vw - 32px));
	height: 90vh;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 19, 66, 0.5);
}

.msc-modal__close {
	position: absolute;
	right: 12px;
	top: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: #f0f5ff;
	color: var(--msc-primary);
	z-index: 2;
	cursor: pointer;
}

.msc-modal__content,
.msc-modal__content iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

body.msc-modal-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.msc-wrapper {
		padding: 0 26px;
	}

	.msc-card {
		padding: 20px 16px 16px;
		border-radius: 18px;
	}

	.msc-card__title {
		font-size: 1.22rem;
	}

	.msc-card__description {
		font-size: 0.93rem;
		min-height: 62px;
	}

	.msc-nav {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 640px) {
	.msc-wrapper {
		padding: 0 6px 44px;
	}

	.msc-nav {
		top: auto;
		bottom: 0;
		transform: none;
	}

	.msc-nav-prev {
		left: calc(50% - 44px);
	}

	.msc-nav-next {
		right: calc(50% - 44px);
	}

	.msc-card__description {
		min-height: 0;
	}

	.msc-modal__dialog {
		width: calc(100vw - 10px);
		height: 95vh;
		margin: 2.5vh auto;
		border-radius: 12px;
	}
}
