/**
 * Footer — IUVENTUS Medical Center
 * Autocontenido: no depende de los estilos del tema padre.
 * Para ajustar la marca sobrescribe los tokens --iuv-* (ver README).
 */

.iuv-footer {
	--iuv-navy: #061e35;
	--iuv-navy-mid: #1a2e42;
	--iuv-teal: #045492;
	--iuv-sky: #5b9ec9;
	--iuv-max-w: 1200px;
	--iuv-gutter: 48px;
	--iuv-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--iuv-font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;

	background: var(--iuv-navy);
	padding: 64px 0 36px;
	font-family: var(--iuv-font-body);
}

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

.iuv-footer__inner {
	width: 100%;
	max-width: var(--iuv-max-w);
	margin-inline: auto;
	padding-inline: var(--iuv-gutter);
}

.iuv-footer__top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

/* ─── Marca ─── */
.iuv-footer .iuv-footer__logo {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-family: var(--iuv-font-display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.iuv-footer__tagline {
	display: block;
	margin-bottom: 18px;
	color: var(--iuv-sky);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.iuv-footer .iuv-footer__about {
	max-width: 280px;
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.75;
}

/* ─── Columnas ─── */
.iuv-footer .iuv-footer__col-title {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.42);
	font-family: var(--iuv-font-body);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.iuv-footer .iuv-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iuv-footer .iuv-footer__list li {
	margin: 0;
	list-style: none;
}

.iuv-footer .iuv-footer__list a {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	font-weight: 300;
	text-decoration: none;
	transition: color 0.2s;
}

.iuv-footer .iuv-footer__list a:hover,
.iuv-footer .iuv-footer__list a:focus-visible {
	color: var(--iuv-sky);
}

/* ─── Barra inferior ─── */
.iuv-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.35);
	font-size: 12px;
}

.iuv-footer .iuv-footer__copy {
	margin: 0;
	font-size: 12px;
}

.iuv-footer .iuv-footer__legal {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iuv-footer .iuv-footer__legal li {
	margin: 0;
	list-style: none;
}

.iuv-footer .iuv-footer__legal li + li::before {
	content: "·";
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.28);
}

.iuv-footer .iuv-footer__legal a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.iuv-footer .iuv-footer__legal a:hover,
.iuv-footer .iuv-footer__legal a:focus-visible {
	color: var(--iuv-sky);
}

/* Foco visible sobre fondo oscuro. */
.iuv-footer a:focus-visible {
	outline: 2px solid var(--iuv-sky);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ─── Back to top ─── */
.iuv-back-to-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #045492;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(6, 30, 53, 0.22);

	/* Oculto hasta que el JS lo activa: visibility lo saca del orden de tabulación. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: background 0.2s, transform 0.2s, opacity 0.3s, visibility 0.3s;
}

.iuv-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iuv-back-to-top:hover {
	background: #1a2e42;
	transform: translateY(-3px);
}

.iuv-back-to-top:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* No tapar la barra de administración ni el borde en móvil. */
.admin-bar .iuv-back-to-top {
	bottom: 48px;
}

/* ─── Utilidades ─── */
.iuv-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff14;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}


.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}


/* ─── Responsive ─── */
@media (max-width: 1024px) {
	.iuv-footer {
		--iuv-gutter: 32px;
	}

	.iuv-footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.iuv-footer {
		--iuv-gutter: 20px;
		padding: 48px 0 28px;
	}

	.iuv-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.iuv-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.iuv-back-to-top {
		right: 16px;
		bottom: 20px;
		width: 44px;
		height: 44px;
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iuv-footer a,
	.iuv-back-to-top {
		transition: none !important;
	}

	.iuv-back-to-top,
	.iuv-back-to-top:hover {
		transform: none;
	}
}
