/*
	Diseño web-2026: cabecera, pie y piezas comunes.
	Se carga detrás de style.css y manda sobre él.
	Maquetas: «desarrollo web/web-2026.pdf» y «ficha-2026.pdf».
*/
:root {
	--negro: #1d1d1b;
	--rojo: #dc0000;
	--gris-pie: #575756;
	--gris-fondo: #f4f4f4;
	--gris-menu: #9d9d9c;
	--ancho: 1320px;
}
body { color: var(--negro); background: #fff; }
.center {
	width: calc(100% - 80px);
	max-width: var(--ancho);
}
@media (max-width: 767px) {
	.center { width: calc(100% - 48px); }
}

/* ── Cabecera ─────────────────────────────────────── */
.header.cab {
	position: relative;
	background: var(--negro);
	border-bottom: 4px solid var(--rojo);
	z-index: 50;
}
.cab_wrap {
	position: relative;
	width: calc(100% - 80px);
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 18px 0 20px;
	text-align: center;
}
.cab_logo { display: inline-block; line-height: 0; }
.cab_simbolo { display: block; width: 88px; height: auto; margin: 0 auto; }
.cab_texto { display: block; width: 268px; height: auto; margin: 6px auto 0; }
.cab_portada .cab_wrap { padding-bottom: 22px; }

.cab_cesta {
	position: absolute;
	top: 18px;
	right: 40px;
	line-height: 0;
}
.cab .ico_cart {
	display: block;
	position: relative;
	width: 19px;
	height: 22px;
	margin: 0;
	background: url('images/cesta-llena-2026.svg') center / contain no-repeat;
}
.cab .ico_cart[data-amt="0"] { background-image: url('images/cesta-vacia-2026.svg'); }
.cab .ico_cart:after {
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	width: auto;
	height: auto;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
	text-align: center;
	background: none;
	border-radius: 0;
	content: attr(data-amt);
}
.cab .ico_cart[data-amt="0"]:after { content: none; }

.cab_boton { display: none; }
.cab_menu ul { margin: 0; padding: 0; list-style: none; }
.cab_menu a {
	display: block;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	/* Pestañas que cuelgan de la cabecera, por encima de la línea roja. */
	.cab_menu {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
	}
	.cab_menu ul {
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 0 14px;
	}
	.cab_menu a {
		padding: 3px 10px 2px;
		font-size: 18px;
		line-height: 22px;
		white-space: nowrap;
		background: var(--negro);
		border-radius: 0 0 4px 4px;
	}
	.cab_menu .actual a {
		padding-top: 13px;
		color: var(--gris-menu);
	}
	@media (pointer: fine) {
		.cab_menu a:hover { color: var(--gris-menu); }
	}
}
@media (min-width: 1024px) and (max-width: 1239px) {
	.cab_menu ul { gap: 0 6px; }
	.cab_menu a { padding: 3px 7px 2px; font-size: 15px; }
}
@media (max-width: 1023px) {
	.cab_wrap { width: calc(100% - 48px); padding: 12px 0 13px; }
	.cab_portada .cab_wrap { padding-bottom: 14px; }
	.cab_simbolo { width: 56px; }
	.cab_texto { width: 158px; margin-top: 4px; }
	.cab_cesta { top: 14px; right: 0; padding: 4px; margin: -4px; }
	.cab_portada .cab_boton { bottom: 2px; }
	.cab_boton {
		display: block;
		position: absolute;
		right: -8px;
		bottom: -5px;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.cab_boton span,
	.cab_boton span:before,
	.cab_boton span:after {
		display: block;
		position: absolute;
		left: 50%;
		width: 20px;
		height: 2px;
		margin-left: -10px;
		background: #fff;
		content: '';
	}
	.cab_boton span { top: 17px; }
	.cab_boton span:before { top: -6px; }
	.cab_boton span:after { top: 6px; }
	.cab_menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		margin-top: 4px;
		background: var(--negro);
		box-shadow: 0 8px 12px rgba(0, 0, 0, .25);
	}
	.cab.abierto .cab_menu { display: block; }
	.cab_menu li + li { border-top: 1px solid rgba(255, 255, 255, .15); }
	.cab_menu a { padding: 13px 24px; font-size: 16px; line-height: 20px; }
	.cab_menu .actual a { color: var(--gris-menu); }
}

/* En las páginas interiores, hueco bajo la cabecera para las pestañas. En la
   portada el slider empieza pegado y las pestañas caen sobre él. */
.cab:not(.cab_portada) { margin-bottom: 60px; }
@media (max-width: 1023px) {
	.cab:not(.cab_portada) { margin-bottom: 30px; }
}

/* ── Títulos de bloque ────────────────────────────── */
.tit_seccion {
	margin: 0 0 18px;
	padding: 0 0 2px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	border-bottom: 2px solid var(--negro);
}
.tit_seccion.sin_linea { border-bottom: 0; font-weight: 500; font-size: 26px; }
@media (max-width: 767px) {
	.tit_seccion { font-size: 24px; margin-left: -24px; margin-right: -24px; }
	.tit_seccion.sin_linea { font-size: 22px; }
}

/* ── Título de página ─────────────────────────────── */
h1.tit_pagina {
	margin: 0 0 34px;
	padding: 0 0 2px;
	color: var(--negro);
	font-family: inherit;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	background: none;
	border-bottom: 1px solid var(--negro);
}
h1.tit_pagina::first-letter { text-transform: uppercase; }
@media (max-width: 767px) {
	h1.tit_pagina { margin: 0 -24px 22px; font-size: 28px; }
}

/* ── Tarjetas de producto ─────────────────────────── */
.tarjetas {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px 20px;
}
.tarjeta {
	display: block;
	text-align: center;
	font-size: 16px;
	line-height: 1.3;
}
.tarjeta_img {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
}
.tarjeta_img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tarjeta_img .tarjeta_sinfoto { width: 70%; margin: 0 auto; }
.tarjeta_nom,
.tarjeta_precio { display: block; }
.tarjeta_nom { font-weight: 700; }
.tarjeta_precio { font-weight: 300; }
.tarjetas_rel .tarjeta_nom { font-weight: 400; }
.tarjetas_rel .tarjeta_precio { font-weight: 700; }
@media (pointer: fine) {
	.tarjeta:hover .tarjeta_nom { color: var(--rojo); }
}
@media (max-width: 1023px) {
	.tarjetas { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
	.tarjetas { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
	.tarjetas_dest { grid-template-columns: 1fr; }
	.tarjetas_dest .tarjeta_img { width: 78%; margin-left: auto; margin-right: auto; }
}

/* ── Pie ──────────────────────────────────────────── */
footer.pie {
	margin-top: 70px;
	color: #fff;
	font-size: 15px;
	line-height: 1.25;
	background: #fff;
}
.pie_wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	padding: 30px max(40px, calc((100% - var(--ancho)) / 2)) 34px;
	background: var(--gris-pie);
	border-bottom: 2px solid #9d9d9c;
}
.pie_menus {
	display: flex;
	gap: 0 70px;
}
.pie_menu {
	margin: 0;
	padding: 0 0 0 10px;
	list-style: none;
	border-left: 3px solid #fff;
}
.pie_menu li { margin: 0; padding: 0; }
.pie a { color: #fff; }
.pie_menu a:hover,
.pie_legal a:hover { text-decoration: underline; }
.pie_info { flex: 0 0 auto; padding-right: 60px; font-size: 13px; }
.pie_info p { margin: 0 0 0 68px; line-height: 1.25; font-weight: 400; }
.pie_info strong { font-weight: 700; }
.pie_logo { display: block; margin-bottom: 4px; line-height: 0; }
.pie_logo img { width: 236px; height: auto; }
.pie_info .pie_redes {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0 0;
}
.pie_redes a { line-height: 0; }
.pie_legal {
	margin: 0;
	padding: 18px 20px 26px;
	color: var(--negro);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}
.pie .pie_legal a { color: var(--negro); }
@media (max-width: 1023px) {
	.pie_wrap { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
	.pie_menus { flex-wrap: wrap; gap: 24px 40px; }
	.pie_info { padding-right: 0; }
	.pie_info p { margin-left: 0; }
}
