/**
 * Footer Opción Médica (Figma: Footer v3 y Footer móvil).
 */

.psw-footer {
	background-color: var(--psw-surface);
	overflow: hidden;
}

.psw-footer .psw-footer__inner {
	max-width: calc(var(--psw-content) + 2 * var(--psw-gutter));
	margin-inline: auto;
	padding: 80px var(--psw-gutter) 28px;
}

.psw-footer .psw-footer__columns {
	display: flex;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--psw-primary);
}

.psw-footer .psw-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	flex: 0 0 300px;
}

.psw-footer .psw-footer__logo {
	display: inline-flex;
}

.psw-footer .psw-footer__logo img {
	display: block;
	width: auto;
	height: 22px;
	max-width: 202px;
}

.psw-footer .psw-footer__claim,
.psw-footer .psw-footer__link {
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	line-height: var(--e-global-typography-om_texto_m-line-height, 28px);
}

.psw-footer .psw-footer__social {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 6px;
}

.psw-footer .psw-footer__social-list {
	display: flex;
	gap: 8px;
}

.psw-footer .psw-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--psw-primary);
	border-radius: 20px;
	background-color: var(--psw-surface-raised);
	color: var(--psw-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.psw-footer .psw-footer__social-link svg {
	width: 20px;
	height: 20px;
}

.psw-footer .psw-footer__social-link:hover {
	background-color: var(--psw-primary);
	color: var(--psw-primary-foreground);
}

.psw-footer .psw-footer__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 0 1 196px;
	min-width: 0;
}

.psw-footer .psw-footer__section,
.psw-footer .psw-footer__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.psw-footer .psw-footer__heading,
.psw-footer .psw-footer__subheading {
	font-size: var(--e-global-typography-om_etiqueta-font-size, 13px);
	font-weight: 500;
	line-height: var(--e-global-typography-om_etiqueta-line-height, 20px);
	letter-spacing: var(--e-global-typography-om_etiqueta-letter-spacing, 1.6px);
	text-transform: uppercase;
}

.psw-footer .psw-footer__heading {
	margin-bottom: 4px !important;
	color: var(--psw-primary);
}

.psw-footer .psw-footer__heading a {
	color: inherit;
	text-decoration: none;
}

.psw-footer .psw-footer__subheading {
	margin-bottom: 4px !important;
	color: var(--psw-label);
}

.psw-footer .psw-footer__group + .psw-footer__group {
	margin-top: 12px;
}

.psw-footer .psw-footer__link {
	text-decoration: none;
}

.psw-footer a.psw-footer__link:hover,
.psw-footer .psw-footer__link[aria-current] {
	color: var(--psw-secondary);
}

.psw-footer .psw-footer__legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 24px;
}

.psw-footer .psw-footer__copy,
.psw-footer .psw-footer__legal .psw-footer__link {
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: var(--e-global-typography-om_texto_s-line-height, 22px);
}

.psw-footer .psw-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.psw-footer .psw-footer__signature {
	display: flex;
	flex-direction: column;
	padding-top: 56px;
	color: var(--psw-watermark-soft);
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_xl-font-size, 88px);
	font-weight: var(--e-global-typography-om_display_xl-font-weight, 300);
	line-height: var(--e-global-typography-om_display_xl-line-height, 0.92);
	letter-spacing: var(--e-global-typography-om_display_xl-letter-spacing, -0.02em);
	user-select: none;
}

.psw-footer .psw-footer__signature em {
	color: var(--psw-watermark);
	font-style: italic;
}

.psw-footer .psw-footer__notice {
	font-size: 14px;
	color: var(--psw-muted-foreground);
}

/* Tablet: marca arriba a lo ancho y columnas en rejilla. */
@media (max-width: 1279px) {
	.psw-footer .psw-footer__columns {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.psw-footer .psw-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Móvil: dos columnas, legal apilado. */
@media (max-width: 767px) {
	.psw-footer .psw-footer__inner {
		padding-top: 72px;
	}

	.psw-footer .psw-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}

	.psw-footer .psw-footer__brand {
		gap: 16px;
	}

	.psw-footer .psw-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}

	.psw-footer .psw-footer__signature {
		padding-top: 48px;
	}
}
