/* Header y footer compartidos del sitio */

:root {
	--mc-navy: #0b1f4a;
	--mc-blue: #1A4E8C;
	--mc-pachi: #00c2cb;
	--mc-pachi-dark: #0561A7;
	--mc-muted: #667085;
	--mc-line: #e6ebf1;
}

.mc-header,
.mc-footer {
	font-family: "Inter", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

.mc-header *,
.mc-footer * {
	box-sizing: border-box;
}

.mc-header a,
.mc-footer a {
	text-decoration: none;
}

.mc-header img,
.mc-footer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mc-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

/* Header */

.mc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--mc-line);
}

.mc-bar {
	position: relative;
	min-height: 74px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.mc-brand {
	display: inline-flex;
	align-items: center;
	margin-right: auto;
}

.mc-brand img {
	width: 140px;
}

.mc-nav {
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 14px;
	font-weight: 600;
}

.mc-nav>a {
	color: var(--mc-navy);
}

.mc-nav>a:hover {
	color: var(--mc-blue);
}

.mc-nav-extra {
	display: none;
}

.mc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Botones */

.mc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: .2s ease;
}

.mc-btn-outline {
	border: 1px solid #cfd8e3;
	background: #fff;
	color: var(--mc-navy);
}

.mc-btn-outline:hover {
	border-color: var(--mc-blue);
	color: var(--mc-blue);
}

.mc-btn-pachi {
	background: var(--mc-pachi);
	color: #fff;
}

.mc-btn-pachi:hover {
	background: var(--mc-pachi-dark);
	color: #fff;
}

/* Visitas que vienen de la app */

.mc-volver {
	display: none;
}

.medify-from-app .mc-actions .mc-volver {
	display: inline-flex;
}

.medify-from-app .mc-login,
.medify-from-app .mc-register {
	display: none !important;
}

.medify-from-app .ocultarFornsLog {
	display: none !important;
}

/* Botón del menú (solo en pantallas chicas) */

.mc-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #cfd8e3;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.mc-toggle:hover,
.mc-toggle:focus,
.mc-header.is-open .mc-toggle {
	background: #e8f2ff;
	border-color: #89ABD9;
}

.mc-toggle:focus-visible {
	outline: 2px solid var(--mc-blue);
	outline-offset: 2px;
}

.mc-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--mc-navy);
	transition: .2s ease;
}

.mc-header.is-open .mc-toggle span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.mc-header.is-open .mc-toggle span:nth-child(2) {
	opacity: 0;
}

.mc-header.is-open .mc-toggle span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1020px) {
	.mc-toggle {
		display: flex;
	}

	.mc-bar {
		gap: 12px;
	}

	.mc-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: -20px;
		right: -20px;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 16px;
		background: #fff;
		border-bottom: 1px solid var(--mc-line);
		box-shadow: 0 16px 30px rgba(11, 31, 74, .08);
	}

	.mc-header.is-open .mc-nav {
		display: flex;
	}

	.mc-nav>a {
		padding: 14px 0;
		border-bottom: 1px solid var(--mc-line);
		font-size: 15px;
	}
}

@media (max-width: 680px) {
	.mc-container {
		width: min(100% - 24px, 1180px);
	}

	.mc-nav {
		left: -12px;
		right: -12px;
		padding: 8px 12px 16px;
	}

	.mc-brand img {
		width: 120px;
	}

	.mc-actions .mc-login {
		display: none;
	}

	.mc-nav-extra {
		display: block;
		padding-top: 16px;
	}

	.mc-nav-extra .mc-btn {
		width: 100%;
	}

	.mc-actions .mc-btn {
		min-height: 40px;
		padding: 0 14px;
	}

	.medify-from-app .mc-actions .mc-volver {
		display: inline-flex;
	}
}

/* Barra de admin de WordPress */

.admin-bar .mc-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .mc-header {
		top: 46px;
	}
}

/* Footer */

.mc-footer {
	padding: 40px 0 20px;
	border-top: 1px solid var(--mc-line);
	background: #fff;
	color: var(--mc-muted);
}

.mc-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr .8fr 1.1fr .9fr;
	gap: 28px;
}

.mc-footer .mc-brand {
	margin-bottom: 14px;
}

.mc-footer .mc-brand img {
	width: 120px;
}

.mc-footer p {
	margin: 0;
	max-width: 260px;
	color: var(--mc-muted);
	font-size: 12px;
	line-height: 1.65;
}

.mc-footer h4 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mc-navy);
}

.mc-footer-grid a:not(.mc-brand):not(.mc-social),
.mc-footer-line {
	display: block;
	margin-bottom: 8px;
	color: #556077;
	font-size: 12px;
}

.mc-footer-grid a:not(.mc-brand):not(.mc-social):hover {
	color: var(--mc-blue);
}

.mc-footer-grid i.fa-solid {
	width: 16px;
	margin-right: 6px;
	color: var(--mc-blue);
}

.mc-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.mc-footer .mc-social {
	width: 28px;
	height: 28px;
	margin: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--mc-navy);
	color: #fff;
	font-size: 12px;
	transition: .2s ease;
}

.mc-footer .mc-social:hover {
	background: var(--mc-blue);
	color: #fff;
}

.mc-copyright {
	margin-top: 26px;
	padding-top: 16px;
	border-top: 1px solid var(--mc-line);
	color: var(--mc-muted);
	font-size: 11px;
}

@media (max-width: 1020px) {
	.mc-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mc-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.mc-footer-grid {
		gap: 20px;
	}
}
