/**
 * Strongway — cabecera y pie globales.
 */

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.sw-topbar {
	background: var(--sw-ink);
	color: #fff;
	font-size: 13px;
	position: relative;
	z-index: 60;
}

.sw-topbar .sw-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 40px;
}

.sw-promo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	margin: 0;
	letter-spacing: 0.01em;
	min-width: 0;
}

/* min-width:0 permite que el texto se recorte en lugar de ensanchar la barra. */
.sw-promo b {
	font-weight: 700;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sw-promo-tail {
	color: color-mix(in srgb, var(--sw-grey-500) 49%, var(--sw-grey-200));
}

.sw-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sw-red);
	flex-shrink: 0;
	animation: sw-pulse 2.4s ease-in-out infinite;
}

@keyframes sw-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--sw-red) 55%, transparent);
	}

	50% {
		box-shadow: 0 0 0 6px color-mix(in srgb, var(--sw-red) 0%, transparent);
	}
}

.sw-topbar-list {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: color-mix(in srgb, var(--sw-grey-500) 25%, var(--sw-grey-200));
}

.sw-topbar-list a {
	transition: color var(--sw-fast) ease;
}

.sw-topbar-list a:hover {
	color: #fff;
}

@media (max-width: 900px) {
	.sw-topbar-nav {
		display: none;
	}

	.sw-promo-tail {
		display: none;
	}

	.sw-promo {
		font-size: 12px;
		justify-content: center;
		width: 100%;
	}
}

/* =========================================================
   CABECERA
   ========================================================= */

/*
 * El sticky se aplica a la parte de plantilla, no a la barra interior.
 *
 * Un elemento `sticky` nunca sale de los límites de su padre: si se fijaba
 * `.sw-header`, su contenedor medía solo el alto de la cabecera y ambos se
 * iban con el scroll. La parte de plantilla sí es hija directa del contenedor
 * de la página, que ocupa todo el alto.
 *
 * El desplazamiento negativo equivale a la barra superior: esta se retira
 * hacia arriba y la cabecera queda anclada al borde.
 */
.wp-site-blocks > header {
	position: sticky;
	top: calc(-1 * var(--sw-topbar-h));
	z-index: 50;
}

.sw-header {
	position: relative;
	z-index: 50;
	transition: padding 0.5s var(--sw-ease), margin 0.5s var(--sw-ease);
}

/*
 * Todo el aspecto vive en el «shell». Así, al hacer scroll, la barra puede
 * encoger de ancho y redondear sus esquinas sin que el sticky se rompa.
 */
.sw-header-shell {
	background: rgb(255 255 255 / 93%);
	backdrop-filter: saturate(180%) blur(14px);
	border: 1px solid transparent;
	border-bottom-color: var(--sw-grey-200);
	border-radius: 0;
	margin-inline: auto;
	max-width: none;
	transition:
		border-radius 0.5s var(--sw-ease),
		box-shadow 0.5s var(--sw-ease),
		max-width 0.5s var(--sw-ease),
		background-color 0.4s ease,
		border-color 0.4s ease;
}

/*
 * Estado «colgado»: la barra se separa del borde y queda flotando sobre el
 * contenido. El padding se compensa con un margen negativo idéntico para que
 * el resto de la página no dé un salto al activarse.
 */
/*
 * La barra encoge al colgarse. El margen inferior compensa exactamente lo que
 * se reduce la altura, de modo que el contenido de la página no da un salto
 * al cruzar el umbral de scroll.
 */
.sw-header.is-stuck {
	padding: var(--sw-stuck-gap) clamp(10px, 2vw, 20px) 0;
	margin-bottom: calc(
		var(--sw-header-h) + var(--sw-nav-h)
		- var(--sw-header-h-stuck) - var(--sw-nav-h-stuck) - var(--sw-stuck-gap)
	);
}

.sw-header.is-stuck .sw-header-main {
	height: var(--sw-header-h-stuck);
}

.sw-header.is-stuck .sw-nav {
	min-height: var(--sw-nav-h-stuck);
}

/* El logotipo y el buscador se ajustan a la barra compacta. */
.sw-header.is-stuck .sw-logo-mark {
	width: 38px;
	height: 38px;
}

.sw-header.is-stuck .sw-logo-mark svg {
	width: 21px;
	height: 21px;
}

.sw-header.is-stuck .sw-logo-name b {
	font-size: 17px;
}

.sw-header.is-stuck .sw-logo-name span {
	font-size: 10px;
}

.sw-header.is-stuck .sw-search input[type="search"] {
	height: 38px;
}

.sw-header.is-stuck .sw-iconbtn {
	width: 40px;
	height: 40px;
}

.sw-header.is-stuck .sw-header-shell {
	max-width: calc(var(--sw-maxw) + 56px);
	border-radius: 20px;
	border-color: rgb(0 0 0 / 7%);
	background: rgb(255 255 255 / 86%);
	backdrop-filter: saturate(190%) blur(22px);
	box-shadow:
		0 22px 48px -16px rgb(0 0 0 / 28%),
		0 3px 10px rgb(0 0 0 / 6%);
	overflow: hidden;
}

/* La barra de navegación pierde su línea superior al quedar flotando. */
.sw-header.is-stuck .sw-navbar {
	border-top-color: rgb(0 0 0 / 6%);
}

.sw-header-main {
	display: flex;
	align-items: center;
	gap: clamp(10px, 2.5vw, 28px);
	height: var(--sw-header-h);
	min-width: 0;
	transition: height 0.5s var(--sw-ease);
	/* Contexto de apilamiento por encima de la navegación. */
	position: relative;
	z-index: 3;
}

/* ---------- Logotipo ---------- */

.sw-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sw-logo-img {
	max-height: 52px;
	width: auto;
}

.sw-logo-mark {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--sw-red-light), var(--sw-red) 58%, var(--sw-red-dark));
	display: grid;
	place-items: center;
	color: var(--sw-on-brand);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--sw-red) 40%, transparent);
	flex-shrink: 0;
	transition: transform var(--sw-slow) var(--sw-ease), width 0.5s var(--sw-ease), height 0.5s var(--sw-ease);
}

.sw-logo-mark svg {
	transition: width 0.5s var(--sw-ease), height 0.5s var(--sw-ease);
}

.sw-logo:hover .sw-logo-mark {
	transform: rotate(-12deg) scale(1.06);
}

.sw-logo-name {
	font-family: var(--sw-head);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	display: block;
}

.sw-logo-name b {
	display: block;
	font-size: 19px;
	letter-spacing: 0.02em;
	transition: font-size 0.5s var(--sw-ease);
}

.sw-logo-name span {
	display: block;
	font-size: 11.5px;
	color: var(--sw-grey-500);
	letter-spacing: 0.16em;
	font-weight: 500;
	transition: font-size 0.5s var(--sw-ease);
}

.sw-logo.is-inverse .sw-logo-name b {
	color: #fff;
}

/* Sobre el fondo oscuro del pie, el gris del descriptor no tenía contraste. */
.sw-logo.is-inverse .sw-logo-name span {
	color: rgb(255 255 255 / 62%);
}

@media (max-width: 420px) {
	.sw-logo-name b {
		font-size: 17px;
	}

	.sw-logo-mark {
		width: 40px;
		height: 40px;
	}
}

/* ---------- Buscador ---------- */

/* Ocupa todo el espacio libre entre el logotipo y las acciones. */
.sw-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	position: relative;
	/* Por encima de la barra de navegación: si no, el desplegable de
	   resultados queda tapado por los enlaces de categorías. */
	z-index: 3;
}

/* Oculta la «x» nativa de los campos de búsqueda en Chrome. */
.sw-search input[type="search"]::-webkit-search-cancel-button {
	appearance: none;
}

.sw-search input[type="search"] {
	width: 100%;
	height: 46px;
	transition-property: border-color, background-color, box-shadow, height;
	transition-duration: var(--sw-fast), var(--sw-fast), var(--sw-fast), 0.5s;
	transition-timing-function: ease, ease, ease, var(--sw-ease);
	border: 1.5px solid var(--sw-grey-200);
	border-radius: 12px;
	padding: 0 48px 0 18px;
	font-family: var(--sw-body);
	font-size: 15px;
	background: var(--sw-grey-100);
	color: var(--sw-ink);
	transition: border-color var(--sw-fast) ease, background-color var(--sw-fast) ease, box-shadow var(--sw-fast) ease;
	appearance: none;
}

.sw-search input::placeholder {
	color: var(--sw-grey-500);
}

.sw-search input:focus {
	outline: none;
	border-color: var(--sw-red);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--sw-red) 10%, transparent);
}

.sw-search-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--sw-grey-500);
	cursor: pointer;
	border-radius: 8px;
	transition: color var(--sw-fast) ease, background-color var(--sw-fast) ease;
}

.sw-search-btn:hover {
	color: var(--sw-red);
	background: var(--sw-grey-100);
}

/* ---------- Resultados en vivo ---------- */

.sw-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--sw-grey-200);
	border-radius: var(--sw-radius);
	box-shadow: 0 24px 54px -12px rgb(0 0 0 / 26%);
	padding: 8px;
	z-index: 60;
	max-height: min(66vh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: sw-search-in 0.22s var(--sw-ease) both;
}

/*
 * El keyframe final debe declararse: con `animation-fill-mode: both` y solo un
 * `from`, ese único keyframe es también el último y el panel se quedaba en
 * opacidad 0 — visible en el DOM pero invisible en pantalla.
 */
@keyframes sw-search-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sw-search-panel.is-loading {
	opacity: 0.6;
}

.sw-search-label {
	font-family: var(--sw-head);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 10.5px;
	color: var(--sw-grey-500);
	margin: 10px 10px 6px;
}

.sw-search-label:first-child {
	margin-top: 4px;
}

.sw-search-item,
.sw-search-term {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	transition: background-color var(--sw-fast) ease;
	cursor: pointer;
}

.sw-search-item:hover,
.sw-search-item.is-active,
.sw-search-term:hover,
.sw-search-term.is-active {
	background: var(--sw-grey-100);
}

.sw-search-item img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--sw-grey-100);
}

.sw-search-info {
	flex: 1;
	min-width: 0;
}

.sw-search-name {
	display: block;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sw-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Resalta la parte que coincide con lo escrito. */
.sw-search-panel mark {
	background: color-mix(in srgb, var(--sw-red) 14%, transparent);
	color: var(--sw-red);
	border-radius: 3px;
	padding: 0 1px;
}

.sw-search-meta {
	display: block;
	font-size: 12px;
	color: var(--sw-grey-500);
	margin-top: 2px;
}

.sw-search-meta em {
	font-style: normal;
	color: var(--sw-red);
}

.sw-search-price {
	font-family: var(--sw-head);
	font-weight: 700;
	font-size: 14.5px;
	color: var(--sw-ink);
	flex-shrink: 0;
}

.sw-search-term {
	justify-content: space-between;
	font-size: 14px;
	color: var(--sw-ink-2);
}

.sw-search-term small {
	font-size: 11.5px;
	color: var(--sw-grey-500);
	background: var(--sw-grey-100);
	border-radius: 20px;
	padding: 2px 9px;
}

.sw-search-all {
	display: block;
	text-align: center;
	padding: 12px;
	margin-top: 6px;
	border-top: 1px solid var(--sw-grey-200);
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 12.5px;
	letter-spacing: 0.05em;
	color: var(--sw-red);
	border-radius: 0 0 10px 10px;
	transition: background-color var(--sw-fast) ease;
}

.sw-search-all:hover,
.sw-search-all.is-active {
	background: var(--sw-grey-100);
	color: var(--sw-red);
}

.sw-search-empty {
	padding: 22px 14px;
	text-align: center;
	color: var(--sw-grey-500);
	font-size: 14px;
	margin: 0;
}

.sw-search-empty b {
	color: var(--sw-ink);
}

@media (max-width: 1080px) {
	.sw-search {
		display: none;
	}
}

/* En el panel móvil el desplegable se muestra en flujo, no flotante. */
.sw-mobile-search .sw-search-panel {
	position: static;
	box-shadow: none;
	border: 0;
	border-top: 1px solid var(--sw-grey-200);
	border-radius: 0;
	margin-top: 10px;
	padding: 4px 0;
	max-height: 46vh;
}

/* ---------- Acciones ---------- */

.sw-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.sw-iconbtn {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: var(--sw-ink);
	position: relative;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition:
		background-color var(--sw-fast) ease,
		color var(--sw-fast) ease,
		transform var(--sw-fast) var(--sw-ease),
		width 0.5s var(--sw-ease),
		height 0.5s var(--sw-ease);
}

.sw-iconbtn:hover {
	background: var(--sw-grey-100);
	color: var(--sw-red);
	transform: translateY(-1px);
}

.sw-badge {
	position: absolute;
	top: 5px;
	right: 5px;
	background: var(--sw-red);
	color: var(--sw-on-brand);
	font-size: 11px;
	font-weight: 700;
	font-family: var(--sw-body);
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: grid;
	place-items: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 2px 6px color-mix(in srgb, var(--sw-red) 45%, transparent);
}

.sw-badge.is-empty {
	display: none;
}

.sw-menu-toggle {
	display: none;
}

@media (max-width: 1080px) {
	.sw-menu-toggle {
		display: grid;
	}
}

/* ---------- Navegación ---------- */

.sw-navbar {
	border-top: 1px solid var(--sw-grey-200);
}

.sw-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: var(--sw-nav-h);
	transition: min-height 0.5s var(--sw-ease);
}

.sw-nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	flex-wrap: wrap;
}

.sw-nav-list > li {
	position: relative;
}

.sw-nav-list > li > a {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	color: var(--sw-ink-2);
	position: relative;
	transition: color var(--sw-fast) ease, background-color var(--sw-fast) ease;
}

.sw-nav-list > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--sw-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--sw-ease);
}

.sw-nav-list > li > a:hover {
	color: var(--sw-red);
	background: var(--sw-grey-100);
}

.sw-nav-list > li > a:hover::after {
	transform: scaleX(1);
}

.sw-nav-list > li.current-menu-item > a,
.sw-nav-list > li.current-menu-parent > a {
	color: var(--sw-red);
}

/* Submenús */
.sw-nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--sw-grey-200);
	border-radius: var(--sw-radius);
	box-shadow: var(--sw-shadow-lg);
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s var(--sw-ease), transform 0.22s var(--sw-ease), visibility 0.22s;
	z-index: 40;
}

.sw-nav-list > li:hover > .sub-menu,
.sw-nav-list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sw-nav-list .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--sw-ink-2);
	transition: background-color var(--sw-fast) ease, color var(--sw-fast) ease;
}

.sw-nav-list .sub-menu a:hover {
	background: var(--sw-grey-100);
	color: var(--sw-red);
}

.sw-nav-cta {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #fff;
	background: var(--sw-ink);
	padding: 9px 16px;
	border-radius: 8px;
	white-space: nowrap;
	transition: background-color var(--sw-fast) ease, color var(--sw-fast) ease, transform var(--sw-fast) var(--sw-ease);
}

.sw-nav-cta:hover {
	background: var(--sw-red);
	color: var(--sw-on-brand);
	transform: translateY(-1px);
}

@media (max-width: 1080px) {
	.sw-navbar {
		display: none;
	}
}

/* =========================================================
   ICONO DE MENÚ
   ========================================================= */

.sw-burger {
	position: relative;
	width: 22px;
	height: 15px;
	display: block;
}

.sw-burger i {
	position: absolute;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: currentcolor;
	transition:
		transform 0.42s var(--sw-ease),
		width 0.42s var(--sw-ease),
		opacity 0.2s ease,
		top 0.32s var(--sw-ease);
}

/* Trazos de distinto ancho: se lee mejor que tres líneas iguales. */
.sw-burger i:nth-child(1) {
	top: 0;
	width: 22px;
}

.sw-burger i:nth-child(2) {
	top: 6.5px;
	width: 15px;
}

.sw-burger i:nth-child(3) {
	top: 13px;
	width: 19px;
}

.sw-menu-toggle:hover .sw-burger i {
	width: 22px;
}

/* Al abrir, los trazos se pliegan en aspa. */
.sw-menu-toggle[aria-expanded="true"] .sw-burger i:nth-child(1) {
	top: 6.5px;
	width: 22px;
	transform: rotate(45deg);
}

.sw-menu-toggle[aria-expanded="true"] .sw-burger i:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.2);
}

.sw-menu-toggle[aria-expanded="true"] .sw-burger i:nth-child(3) {
	top: 6.5px;
	width: 22px;
	transform: rotate(-45deg);
}

/* =========================================================
   PANEL MÓVIL
   ========================================================= */

.sw-mobile-panel {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 90vw);
	background: #fff;
	z-index: 80;
	padding: 0 0 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform 0.44s var(--sw-ease);
	box-shadow: -24px 0 60px rgb(0 0 0 / 22%);
	display: flex;
	flex-direction: column;
}

.sw-mobile-panel[hidden] {
	display: flex;
	pointer-events: none;
}

.sw-mobile-panel.is-open {
	transform: translateX(0);
	pointer-events: auto;
}

.sw-mobile-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px var(--sw-gutter);
	border-bottom: 1px solid var(--sw-grey-200);
	position: sticky;
	top: 0;
	background: rgb(255 255 255 / 94%);
	backdrop-filter: blur(12px);
	z-index: 3;
}

.sw-mobile-search {
	position: relative;
	margin: 16px var(--sw-gutter) 6px;
}

.sw-mobile-search input {
	width: 100%;
	height: 48px;
	border: 1.5px solid var(--sw-grey-200);
	background: var(--sw-grey-100);
	border-radius: 12px;
	padding: 0 46px 0 16px;
	font-family: var(--sw-body);
	font-size: 15px;
	appearance: none;
}

.sw-mobile-search input:focus {
	outline: none;
	border-color: var(--sw-red);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--sw-red) 8%, transparent);
}

.sw-mobile-search button {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--sw-grey-500);
	cursor: pointer;
}

.sw-mobile-label {
	font-family: var(--sw-head);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 11px;
	color: var(--sw-grey-500);
	margin: 18px var(--sw-gutter) 8px;
}

.sw-mobile-nav {
	flex: 1;
}

.sw-mobile-list {
	list-style: none;
	margin: 0;
	padding: 0 var(--sw-gutter);
}

.sw-mobile-list > li {
	border-bottom: 1px solid var(--sw-grey-200);
}

/* Fila del primer nivel: enlace + botón de despliegue independientes, para que
   se pueda entrar a la categoría o abrir sus subcategorías por separado. */
.sw-mobile-row {
	display: flex;
	align-items: stretch;
}

/*
 * Se contemplan los dos casos: las categorías sin submenú mantienen el enlace
 * como hijo directo del <li>, y las que sí lo tienen lo llevan dentro de
 * `.sw-mobile-row` junto al botón de desplegar. Ambas deben verse igual.
 */
.sw-mobile-list > li > a,
.sw-mobile-row > a {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 4px;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.03em;
	line-height: 1.2;
	color: var(--sw-ink);
	transition: color var(--sw-fast) ease, transform var(--sw-fast) var(--sw-ease);
}

.sw-mobile-list > li > a:hover,
.sw-mobile-row > a:hover,
.sw-mobile-list > li.current-menu-item > a,
.sw-mobile-list > li.current-menu-parent > .sw-mobile-row > a {
	color: var(--sw-red);
	transform: translateX(4px);
}

.sw-sub-toggle {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--sw-grey-500);
	cursor: pointer;
	border-radius: 10px;
	transition: background-color var(--sw-fast) ease, color var(--sw-fast) ease;
}

.sw-sub-toggle svg {
	transition: transform 0.36s var(--sw-ease);
}

.sw-sub-toggle:hover {
	background: var(--sw-grey-100);
	color: var(--sw-red);
}

.sw-sub-toggle[aria-expanded="true"] {
	color: var(--sw-red);
}

.sw-sub-toggle[aria-expanded="true"] svg {
	transform: rotate(90deg);
}

/*
 * Acordeón: la altura se anima desde JavaScript midiendo el contenido y se
 * libera a `auto` al terminar, para que nunca se recorte ni quede a medias.
 */
.sw-mobile-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	/* Ancla para la guía vertical: sin esto se posiciona respecto al panel
	   y la línea recorre toda la barra lateral. */
	position: relative;
	transition: height 0.36s var(--sw-ease), visibility 0s linear 0.36s;
}

.sw-mobile-list .sub-menu.is-open {
	visibility: visible;
	transition: height 0.36s var(--sw-ease), visibility 0s;
}

.sw-mobile-list .sub-menu li {
	position: relative;
}

/* Guía vertical que hace evidente la jerarquía. */
.sw-mobile-list .sub-menu::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 6px;
	bottom: 12px;
	width: 2px;
	background: linear-gradient(180deg, var(--sw-red), color-mix(in srgb, var(--sw-red) 10%, transparent));
	border-radius: 2px;
}

.sw-mobile-list .sub-menu a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 4px 11px 24px;
	font-size: 14.5px;
	color: var(--sw-ink-2);
	transition: color var(--sw-fast) ease, padding-left var(--sw-fast) ease;
}

.sw-mobile-list .sub-menu a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--sw-grey-200);
	flex-shrink: 0;
	transition: background-color var(--sw-fast) ease, transform var(--sw-fast) ease;
}

.sw-mobile-list .sub-menu a:hover {
	color: var(--sw-red);
	padding-left: 28px;
}

.sw-mobile-list .sub-menu a:hover::before {
	background: var(--sw-red);
	transform: scale(1.4);
}

.sw-mobile-list .sub-menu li:last-child a {
	padding-bottom: 14px;
}

/* ---------- Pie del panel ---------- */

.sw-mobile-foot {
	margin-top: 8px;
}

.sw-mobile-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0 var(--sw-gutter);
}

.sw-mobile-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 10px;
	border: 1.5px solid var(--sw-grey-200);
	border-radius: 12px;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--sw-ink);
	transition: border-color var(--sw-fast) ease, color var(--sw-fast) ease, background-color var(--sw-fast) ease;
}

.sw-mobile-action:hover {
	border-color: var(--sw-ink);
	background: var(--sw-grey-100);
}

.sw-mobile-help {
	list-style: none;
	margin: 16px 0 0;
	padding: 0 var(--sw-gutter);
	display: grid;
	gap: 2px;
	font-size: 14px;
}

.sw-mobile-help a {
	display: block;
	padding: 9px 0;
	color: var(--sw-grey-500);
	transition: color var(--sw-fast) ease;
}

.sw-mobile-help a:hover {
	color: var(--sw-red);
}

.sw-mobile-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px var(--sw-gutter) 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--sw-ink);
	color: #fff;
	transition: background-color var(--sw-fast) ease, transform var(--sw-fast) var(--sw-ease);
}

.sw-mobile-cta:hover {
	background: var(--sw-red);
	color: var(--sw-on-brand);
	transform: translateY(-2px);
}

.sw-mobile-cta svg {
	color: var(--sw-red);
	flex-shrink: 0;
	transition: color var(--sw-fast) ease;
}

.sw-mobile-cta:hover svg {
	color: #fff;
}

.sw-mobile-cta b {
	display: block;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.03em;
}

.sw-mobile-cta small {
	font-size: 12px;
	opacity: 0.75;
}

.sw-scrim {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--sw-shade) 55%, transparent);
	backdrop-filter: blur(3px);
	z-index: 70;
	opacity: 0;
	transition: opacity 0.36s ease;
	pointer-events: none;
}

.sw-scrim[hidden] {
	display: block;
}

.sw-scrim.is-open {
	opacity: 1;
	pointer-events: auto;
}

body.sw-nav-open {
	overflow: hidden;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

.sw-footer {
	background: var(--sw-ink);
	color: color-mix(in srgb, var(--sw-grey-500) 32%, var(--sw-grey-200));
	padding-top: clamp(44px, 7vw, 66px);
	position: relative;
}

.sw-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--sw-red), var(--sw-red-light), var(--sw-red-dark));
}

.sw-footer-cols {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: clamp(24px, 4vw, 40px);
	padding-bottom: clamp(30px, 5vw, 46px);
	border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.sw-footer-brand p {
	font-size: 14px;
	margin: 16px 0 0;
	max-width: 320px;
	line-height: 1.6;
}

.sw-footer-rating {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 18px;
	background: rgb(255 255 255 / 6%);
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid rgb(255 255 255 / 8%);
}

.sw-footer-rating b {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.sw-footer-col > h2 {
	color: #fff;
	font-family: var(--sw-head);
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
}

.sw-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sw-footer-list li {
	margin-bottom: 10px;
}

.sw-footer-list a {
	font-size: 14px;
	transition: color var(--sw-fast) ease, padding-left var(--sw-fast) ease;
	display: inline-block;
}

.sw-footer-list a:hover {
	color: var(--sw-red);
	padding-left: 5px;
}

.sw-footer-info p {
	font-size: 13.5px;
	margin: 0 0 12px;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.sw-footer-info svg {
	color: var(--sw-red);
	flex-shrink: 0;
	margin-top: 2px;
}

.sw-footer-info a:hover {
	color: #fff;
}

.sw-footer-hours {
	color: var(--sw-grey-500);
	font-size: 13px !important;
}

.sw-footer-pay {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0;
	flex-wrap: wrap;
	gap: 16px;
}

.sw-pay-methods {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.sw-pay {
	background: #fff;
	border-radius: 6px;
	height: 28px;
	min-width: 46px;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 800;
	color: color-mix(in srgb, var(--sw-ink) 85%, #000);
	font-family: var(--sw-body);
	padding: 0 9px;
	letter-spacing: 0.02em;
}

.sw-footer-legal {
	text-align: right;
	display: grid;
	gap: 8px;
	justify-items: end;
}

.sw-legal-list {
	list-style: none;
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	font-size: 12.5px;
}

.sw-legal-list a:hover {
	color: #fff;
}

.sw-copy {
	font-size: 12.5px;
	color: var(--sw-grey-500);
	margin: 0;
}

.sw-by {
	display: inline-block;
	margin-left: 6px;
}

.sw-by a {
	color: color-mix(in srgb, var(--sw-grey-500) 49%, var(--sw-grey-200));
	border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.sw-by a:hover {
	color: var(--sw-red);
	border-color: var(--sw-red);
}

@media (max-width: 980px) {
	.sw-footer-cols {
		grid-template-columns: 1fr 1fr;
	}
}

/*
 * En móvil se conservan dos columnas: las listas de enlaces son cortas y en
 * una sola columna el pie se alargaba muchísimo. La marca y el bloque de
 * contacto ocupan el ancho completo porque su texto lo necesita.
 */
@media (max-width: 560px) {
	.sw-footer-cols {
		grid-template-columns: 1fr 1fr;
		gap: 28px 18px;
	}

	.sw-footer-brand,
	.sw-footer-info {
		grid-column: 1 / -1;
	}

	.sw-footer-col > h2 {
		font-size: 13.5px;
		margin-bottom: 12px;
		padding-bottom: 8px;
		border-bottom: 1px solid rgb(255 255 255 / 10%);
	}

	.sw-footer-list a {
		font-size: 13.5px;
	}

	.sw-footer-list li {
		margin-bottom: 9px;
	}

	.sw-footer-brand p {
		font-size: 13.5px;
		max-width: none;
	}

	/* La ficha de contacto se reparte en dos para no dejar huecos. */
	.sw-footer-info {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 16px;
	}

	.sw-footer-info h4 {
		grid-column: 1 / -1;
	}

	.sw-footer-info p:nth-of-type(3),
	.sw-footer-hours {
		grid-column: 1 / -1;
	}

	.sw-footer-pay {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.sw-footer-legal {
		text-align: left;
		justify-items: start;
	}
}

/* ==================================================================
   Toast del carrito — confirmación al agregar y avisos de cookies
   ================================================================== */

.sw-toast {
	position: fixed;
	inset-inline-end: clamp(14px, 3vw, 26px);
	inset-block-end: clamp(14px, 3vw, 26px);
	z-index: 260;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(420px, calc(100vw - 28px));
	padding: 14px 18px;
	border-radius: var(--sw-radius);
	background: var(--sw-ink);
	color: #fff;
	font-family: var(--sw-body);
	font-size: 14px;
	line-height: 1.45;
	box-shadow: var(--sw-shadow-lg);
	border-inline-start: 3px solid var(--sw-red);
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	pointer-events: none;
	transition: opacity var(--sw-fast) ease, transform 0.35s var(--sw-ease);
}

.sw-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.sw-toast-ic {
	display: grid;
	place-items: center;
	inline-size: 30px;
	block-size: 30px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--sw-green);
	color: #fff;
}

.sw-toast-ic.is-error,
.sw-toast.is-error .sw-toast-ic {
	background: var(--sw-red);
}

.sw-toast-txt strong {
	font-weight: 600;
}

.sw-toast-link {
	flex: 0 0 auto;
	margin-inline-start: 4px;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sw-toast-link:hover {
	color: var(--sw-red-light);
}

@media (prefers-reduced-motion: reduce) {
	.sw-toast {
		transition: opacity var(--sw-fast) ease;
		transform: none;
	}
}
