/* ==========================================================================
   Abastos Peruanos — Portada (página «Inicio» hecha con OZ Maquetador)
   Cada fila del maquetador lleva una clase .ap-home-* (Ajustes de fila →
   Clase CSS). Portada y carruseles son de OZ Sliders; las tarjetas de
   producto las pinta OZ Cotizador. Los selectores largos (html body …
   .oz-pb-root) ganan a los !important de los plugins.
   ========================================================================== */

body.nuda-home,
body.nuda-home .site,
body.nuda-home .site-main { background: #fff; }
.nuda-home .site,
.nuda-home .site-main { max-width: none; margin: 0; padding: 0; }
.nuda-home .entry-header { display: none; }
.nuda-home .oz-pb-root { color: var(--ap-ink); font-family: var(--ap-font); }
.nuda-home .oz-pb-root p { margin: 0; color: inherit; font-size: inherit; line-height: 1.5; }
html body.nuda-home .oz-pb-root :is(h1, h2, h3, h4) {
	margin: 0;
	font-family: var(--ap-font);
	font-weight: 700;
	letter-spacing: -.01em !important;
	text-transform: none;
}

:root {
	--ap-side: max(var(--ap-gutter), (100vw - var(--ap-container)) / 2);
	--ap-space: clamp(48px, 5vw, 80px);
}

/* Contenido dentro del contenedor; las secciones del maquetador miden 100vw. */
html body.nuda-home .oz-pb-root .oz-pb-section:is(.ap-home-cats, .ap-home-intro, .ap-home-best, .ap-home-bycat, .ap-home-brands) > .oz-pb-inner {
	width: auto;
	max-width: none;
	margin: 0 var(--ap-side);
	padding: 0;
}
html body.nuda-home .oz-pb-root .oz-pb-section:is(.ap-home-hero, .ap-home-marquee, .ap-home-services) > .oz-pb-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Títulos de sección. */
.ap-red { color: var(--ap-red); }
html body.nuda-home .oz-pb-root .ap-title {
	margin-bottom: clamp(24px, 2.4vw, 36px);
	color: var(--ap-ink);
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}
html body.nuda-home .oz-pb-root .ap-title--light { color: #fff; }

/* El tema pinta los enlaces del maquetador en azul y subrayados. */
html body.nuda-home .oz-pb-root a:is(.ap-btn, .ap-line, .ap-cat) { text-decoration: none; }
html body.nuda-home .oz-pb-root a.ap-btn--light { color: var(--ap-ink); }
html body.nuda-home .oz-pb-root a.ap-btn--outline { color: var(--ap-ink); }
html body.nuda-home .oz-pb-root a:is(.ap-btn--light, .ap-btn--outline):hover { color: #fff; }
html body.nuda-home .oz-pb-root a.ap-line { color: #fff; }
html body.nuda-home .oz-pb-root a.ap-cat { color: var(--ap-ink); }

/* OZ Sliders reserva 60 px arriba para sus flechas; aquí van a los lados. */
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs { padding-top: 0 !important; }

/* ── 1. Portada (OZ Sliders · Abastos · Portada) ────────────────────────── */

html body.nuda-home .ap-hero-slider .oz-smart {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}
html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section {
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
}
html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section > .oz-pb-inner {
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
}
html body.nuda-home .ap-hero-slider .oz-smart__slide :is(.oz-pb-grid, .oz-pb-col) { height: auto; min-height: 0; }

.ap-hero {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1920 / 760;
	min-height: 440px;
	max-height: 760px;
	width: 100%;
	background: #1d1f26;
	color: #fff;
}
.ap-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(10, 12, 18, .62) 0%, rgba(10, 12, 18, .25) 45%, transparent 70%);
}
.ap-hero__bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.ap-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: min(var(--ap-container), 100% - var(--ap-gutter) * 2);
	height: 100%;
	margin: 0 auto;
}
.ap-hero__copy { position: relative; z-index: 2; max-width: 560px; }
html body.nuda-home .oz-pb-root .ap-hero__title {
	margin: 0 0 30px;
	color: #fff;
	font-weight: 500;
	line-height: 1;
}
.ap-hero__title span { display: block; font-size: clamp(1.5rem, 2.5vw, 2.6rem); letter-spacing: -.02em; }
.ap-hero__title strong {
	display: inline-block;
	margin-top: 6px;
	padding-bottom: 14px;
	border-bottom: 5px solid var(--ap-red);
	font-size: clamp(3rem, 5.6vw, 6rem);
	font-weight: 700;
	letter-spacing: -.035em;
}
.ap-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
	margin: 0 0 38px;
	padding: 0;
	list-style: none;
}
.ap-hero__badges li {
	--ap-ico-size: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .88);
	font: 400 .875rem/1.25 var(--ap-font);
}
.ap-hero__badges li::before {
	width: 34px;
	height: 34px;
	border: 1.5px solid rgba(255, 255, 255, .85);
	border-radius: 50%;
	background: transparent;
	-webkit-mask: none;
	mask: none;
	/* El icono va dentro del círculo: fondo con la máscara aplicada a un degradado. */
	background-image: var(--ap-ico-white);
	background-position: center;
	background-size: 16px;
	background-repeat: no-repeat;
}
.ap-hero__badges .ap-ico--shield { --ap-ico-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5.5c0 4.4 3 8 7 9.5 4-1.5 7-5.1 7-9.5V6l-7-3Z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/svg%3E"); }
.ap-hero__badges .ap-ico--box { --ap-ico-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8Z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.ap-hero__badges .ap-ico--target { --ap-ico-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23fff'/%3E%3C/svg%3E"); }
.ap-hero__badges .ap-ico--helmet { --ap-ico-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17.5h18M5 17.5V15a7 7 0 0 1 14 0v2.5'/%3E%3Cpath d='M10 8.4V6h4v2.4M9 11.5v3M12 10.5v4M15 11.5v3'/%3E%3C/svg%3E"); }
.ap-hero__badges .ap-ico--nut { --ap-ico-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 20 7.4v9.2l-8 4.6-8-4.6V7.4l8-4.6Z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E"); }
.ap-hero .ap-btn { min-width: 150px; min-height: 40px; }

/* El tema pisa el margen y la sangría de la lista: aire entre los sellos y el botón. */
html body.nuda-home .ap-hero .ap-hero__badges { margin: 0 0 clamp(28px, 2.6vw, 44px); padding: 0; }
html body.nuda-home .ap-hero .ap-hero__copy .ap-btn { margin-top: 0; }

.ap-hero__person {
	position: absolute;
	right: 4%;
	bottom: 0;
	z-index: 1;
	width: auto;
	max-width: 52%;
	height: 96% !important;
	object-fit: contain;
	object-position: bottom right;
}

@media (max-width: 900px) {
	.ap-hero { aspect-ratio: auto; min-height: 560px; max-height: none; }
	.ap-hero::before { background: linear-gradient(180deg, rgba(10, 12, 18, .7) 0%, rgba(10, 12, 18, .2) 60%, transparent 100%); }
	.ap-hero__inner { align-items: flex-start; padding-top: 40px; }
	.ap-hero__person { right: -6%; max-width: 88%; height: 58% !important; }
	.ap-hero__badges { gap: 12px 18px; margin-bottom: 26px; }
}
@media (max-width: 600px) {
	/* La trabajadora va debajo del texto y el botón, sin taparlos. Sin los
	   sellos el texto ocupa menos: el banner baja de 720 a 640 px. */
	.ap-hero { min-height: 640px; }
	.ap-hero__inner { position: static; justify-content: center; }
	/* Celular: título y botón centrados, encima de la trabajadora (también
	   centrada); los sellos se quitan para no recargar la pantalla. */
	.ap-hero__copy { margin: 0 auto; text-align: center; }
	html body.nuda-home .ap-hero .ap-hero__badges { display: none; }
	.ap-hero::before { background: linear-gradient(180deg, rgba(10, 12, 18, .72) 0%, rgba(10, 12, 18, .25) 55%, transparent 100%); }
	.ap-hero__person { right: 50%; max-width: 100%; height: 42% !important; translate: 50% 0; object-position: bottom center; }
}

/* ── 1b. Slides maquetados de «Abastos · Portada» (fila .ap-slide) ───────
   Cada slide es una fila del maquetador: el fondo (escritorio y celular) va
   en «Fondo de sección», y el título, los sellos, el texto y el botón son
   elementos de texto con las clases ap-slide__*. La imagen de la persona
   (elemento Imagen con clase ap-slide__person) se ancla abajo a la derecha.
   Escritorio: proporción del banner (1920 × 767). Celular (≤ 768 px, el
   corte «Tablet vertical» del maquetador): 1000 px de alto, texto arriba. */

html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section.ap-slide {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	aspect-ratio: 1920 / 767;
	min-height: 480px;
	max-height: 780px;
	background: #1d1f26;
	color: #fff;
}
.ap-slide > .oz-pb-section__media-bg { z-index: 0; }
.ap-slide > .oz-pb-section__media-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 12, 18, .62) 0%, rgba(10, 12, 18, .25) 45%, transparent 70%);
}
html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section.ap-slide > .oz-pb-inner {
	position: static;
	width: 100%;
	padding: 0 var(--ap-side);
}
.ap-slide :is(.oz-pb-grid, .oz-pb-col) { position: static; }
.ap-slide .oz-pb-col { max-width: 600px; }
.ap-slide .oz-pb-block:not(.ap-slide__person) { position: relative; z-index: 2; }

.ap-slide__title h1, .ap-slide__title h2 { margin: 0 0 30px; }
html body.nuda-home .oz-pb-root .ap-slide .ap-hero__title { margin: 0 0 30px; }
/* «Soldadura y Herramientas» (--md) y «Potencia y precisión…» (--sm). */
.ap-hero__title--md strong { font-size: clamp(2.4rem, 4.4vw, 4.75rem); line-height: .98; letter-spacing: -.03em; }
.ap-hero__title--sm span { font-size: clamp(1.15rem, 1.6vw, 1.75rem); }
.ap-hero__title--sm strong { margin-top: 10px; font-size: clamp(1.9rem, 3vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
html body.nuda-home .ap-slide .ap-hero__badges { margin: 0 0 clamp(28px, 2.6vw, 44px); padding: 0; }
html body.nuda-home .oz-pb-root .ap-slide .ap-hero__text { max-width: 420px; margin: -6px 0 30px; color: rgba(255, 255, 255, .9); font: 400 clamp(.95rem, 1.1vw, 1.0625rem)/1.45 var(--ap-font); }
html body.nuda-home .oz-pb-root .ap-slide a.ap-btn--light { min-width: 150px; min-height: 40px; color: var(--ap-ink); text-decoration: none; }
html body.nuda-home .oz-pb-root .ap-slide a.ap-btn--light:hover { color: #fff; }
.ap-slide .ap-btn--arrow::after { content: '›'; margin-left: 8px; font-size: 1.2em; line-height: 1; }

.ap-slide .ap-slide__person {
	position: absolute;
	right: 4%;
	bottom: 0;
	z-index: 1;
	height: 96%;
	max-width: 52%;
	margin: 0;
	padding: 0;
}
.ap-slide .ap-slide__person :is(figure, a) { height: 100%; margin: 0; }
.ap-slide .ap-slide__person img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100% !important;
	object-fit: contain;
	object-position: bottom right;
}

@media (max-width: 768px) {
	html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section.ap-slide {
		align-items: flex-start;
		aspect-ratio: 4 / 5;   /* proporción de las imágenes de celular (800 × 1000) */
		height: auto;
		min-height: 520px;
		max-height: 760px;
	}
	.ap-slide > .oz-pb-section__media-bg::after { background: linear-gradient(180deg, rgba(10, 12, 18, .78) 0%, rgba(10, 12, 18, .35) 45%, transparent 70%); }
	html body.nuda-home .ap-hero-slider .oz-smart__slide .oz-pb-root > .oz-pb-section.ap-slide > .oz-pb-inner { padding: 44px var(--ap-gutter) 0; }
	.ap-slide .oz-pb-col { max-width: none; }
	/* Centrada sin translate: la animación de entrada de Smart OZ usa transform. */
	.ap-slide .ap-slide__person { left: 0; right: 0; width: 100%; max-width: none; height: 52%; }
	.ap-slide .ap-slide__person :is(figure, a) { display: flex; justify-content: center; width: 100%; }
	.ap-slide .ap-slide__person img { margin-inline: auto; object-position: bottom center; }
	.ap-hero__title--md strong { font-size: clamp(2.3rem, 10vw, 3.4rem); }
	.ap-hero__title--sm strong { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}
@media (max-width: 600px) {
	/* Celular: todo centrado; sin los sellos, para que el texto quepa en el
	   banner más bajo y no lo tape la persona. */
	.ap-slide .oz-pb-col { text-align: center; }
	html body.nuda-home .ap-slide .ap-hero__badges { display: none; }
	html body.nuda-home .oz-pb-root .ap-slide .ap-hero__title { margin-bottom: 22px; }
	html body.nuda-home .oz-pb-root .ap-slide .ap-hero__text { margin-inline: auto; }
}

/* ── 2. Categorías en hexágono ([ap_categorias]) ────────────────────────── */

.nuda-home .ap-home-cats { padding: clamp(40px, 4vw, 64px) 0 !important; background: var(--ap-soft); }
/* Carrusel de OZ Sliders («Categorías WC»): cada tarjeta es un hexágono con
   el icono y el nombre debajo. Los selectores con .ap-cats-slider ganan a los
   del plugin (wc-categories.css). */
html body .ozs--wc-categories.ap-cats-slider { --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
html body .ozs--wc-categories.ap-cats-slider .ozs__slide { background: transparent; }
/* Flechas a la altura del centro de los hexágonos, no de toda la tarjeta. */
html body.nuda-home .oz-pb-root .ap-home-cats .ozs.ap-cats-slider:not(.ozs--banner) > .ozs__nav[class] { bottom: auto !important; height: 106px !important; }
/* style.css pone las tarjetas de categoría en horizontal con un botón gris: aquí no. */
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat {
	flex-direction: column;
	align-items: center;
	gap: 18px;
	justify-content: flex-start;
	min-height: 0;
	padding: 4px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ap-ink);
	text-align: center;
	transform: none;
	box-shadow: none;
}
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon-wrap {
	position: relative;
	display: flex;   /* en grid, el 48% del icono se mediría contra su propio contenido */
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 118px;
	max-width: 100%;
	height: auto;
	min-height: 0;
	aspect-ratio: 118 / 102;
	margin: 0;
	align-self: center;
	transition: scale .12s ease-out;
}
/* Dos capas: ::before hace de borde (blanco; rojo al pasar el mouse) y ::after es el relleno. */
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon-wrap::before,
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon-wrap::after {
	content: '';
	position: absolute;
	clip-path: var(--hex);
	transition: background-color .25s;
}
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon-wrap::before { inset: 0; background: #fff; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon-wrap::after { inset: 1.5px; background: #fff; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon {
	position: relative;
	z-index: 1;
	width: 48%;
	max-width: none;
	height: auto;
	max-height: none;
	aspect-ratio: 1;
	transition: scale .35s var(--ap-ease);
}
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__img {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	object-fit: contain;
	transition: opacity .25s;
	-webkit-user-drag: none;
}
/* Copia roja del icono: el mismo SVG (--ap-icon, lo pone functions.php) como
   máscara sobre un fondo rojo, encima del original y oculta hasta el hover. */
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__icon[style*="--ap-icon"]::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--ap-red);
	-webkit-mask: var(--ap-icon) center / contain no-repeat;
	mask: var(--ap-icon) center / contain no-repeat;
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__name {
	display: block;
	flex: 0 0 auto;
	min-height: 0;
	max-width: 150px;
	color: inherit;
	font: 500 .9375rem/1.3 var(--ap-font);
	text-align: center;
	text-wrap: balance;
}
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__name::after { content: none; display: none; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible) { color: var(--ap-red); background: transparent; transform: none; box-shadow: none; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible) .ozs-wc-cat__icon-wrap::before { background: var(--ap-red); }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible, .is-current) .ozs-wc-cat__img { transform: none; filter: none; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible, .is-current) .ozs-wc-cat__icon { scale: 1.08; }
/* Hover: el icono pasa a rojo, igual que el borde del hexágono y el nombre. */
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible) .ozs-wc-cat__icon[style*="--ap-icon"]::before { opacity: 1; }
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible) .ozs-wc-cat__icon[style*="--ap-icon"] .ozs-wc-cat__img { opacity: 0; }
/* Presión: el hexágono se hunde al instante (respuesta en pointer-down). */
html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:active .ozs-wc-cat__icon-wrap { scale: .94; }

@media (max-width: 520px) {
	html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat { gap: 10px; }
	html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat__name { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
	html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:active .ozs-wc-cat__icon-wrap { scale: none; }
	html body .ozs--wc-categories.ap-cats-slider .ozs-wc-cat:is(:hover, :focus-visible, .is-current) .ozs-wc-cat__icon { scale: none; }
}

/* ── 3. Cinta de textos en movimiento ───────────────────────────────────── */

.nuda-home .ap-home-marquee { padding: 0 !important; background: #fff; }
.ap-marquee {
	width: min(var(--ap-container), 100% - var(--ap-gutter) * 2);
	margin: 0 auto;
	overflow: hidden;
	border-bottom: 1px solid #d9d9d9;
	-webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ap-marquee__track { display: flex; width: max-content; animation: ap-marquee 38s linear infinite; }
.ap-marquee:hover .ap-marquee__track { animation-play-state: paused; }
.ap-marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ap-marquee li {
	display: flex;
	align-items: center;
	gap: 56px;
	padding: 24px 28px 24px 0;
	color: var(--ap-ink);
	font: 600 clamp(1rem, 1.3vw, 1.25rem)/1 var(--ap-font);
	white-space: nowrap;
}
/* Separador: doble chevrón, como en el diseño. */
.ap-marquee li::after {
	content: '';
	width: 14px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 3.5 3.5-3.5 3.5M7.5 1.5 11 5 7.5 8.5'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .55;
}
@keyframes ap-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ap-marquee__track { animation: none; } }

/* ── 4. Presentación + líneas de negocio ────────────────────────────────── */

.nuda-home .ap-home-intro { padding: clamp(40px, 4vw, 60px) 0 var(--ap-space) !important; }
.ap-intro { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
html body.nuda-home .oz-pb-root .ap-intro__lead { max-width: 640px; color: var(--ap-ink); font: 500 clamp(1rem, 1.3vw, 1.1875rem)/1.4 var(--ap-font); }
.ap-intro .ap-btn { min-height: 30px; padding: 0 30px; font-size: .875rem; }

.ap-lines {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: clamp(28px, 3vw, 44px);
}
.ap-line {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 508 / 332;
	border-radius: 14px;
	background: #222;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}
.ap-line img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: scale .6s var(--ap-ease); }
.ap-line::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .15) 50%, transparent 75%);
}
.ap-line:hover img { scale: 1.05; }
.ap-line__body {
	position: absolute;
	left: clamp(16px, 1.8vw, 26px);
	right: 16px;
	bottom: clamp(16px, 1.8vw, 24px);
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.ap-line__title { font: 600 clamp(1rem, 1.5vw, 1.375rem)/1.15 var(--ap-font); letter-spacing: -.01em; }
.ap-line:hover .ap-btn { background: var(--ap-red); color: #fff; }

@media (max-width: 820px) {
	.ap-lines { grid-template-columns: 1fr; }
}

/* ── 5. Más vendidos (fondo negro) ──────────────────────────────────────── */

.nuda-home .ap-home-best { padding: var(--ap-space) 0 calc(var(--ap-space) + 10px) !important; background: #000; }

/* Tarjeta de producto: componente común en ap-site.css (.ozc-product-card / .oz-loop-product). */

/* La pista (overflow-x:auto), el viewport y cada slide (overflow:hidden de OZ
   Sliders) recortan en vertical: el slide deja salir la tarjeta y la pista
   guarda aire real para el lift y la sombra del hover (sin márgenes negativos,
   que el viewport recortaría igual). */
html body.nuda-home .ap-best-slider .ozs__slide { overflow: visible; }
html body.nuda-home .ap-best-slider .ozs__track { padding-top: 6px; padding-bottom: 24px; }

/* Flechas de los carruseles: círculo blanco a cada lado. */
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) {
	--ap-arrow-off: calc(-1 * min(60px, var(--ap-side) - 2px));
	overflow: visible;
}
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) > .ozs__viewport { position: relative; z-index: 0 !important; }
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) > .ozs__nav {
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	left: var(--ap-arrow-off) !important;
	right: var(--ap-arrow-off) !important;
	z-index: 5;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: auto !important;
	height: auto !important;
	margin: 0;
	padding: 0;
	pointer-events: none;
}
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn {
	position: relative !important;
	inset: auto !important;
	display: grid;
	place-items: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0;
	border: 1px solid var(--ap-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	opacity: 1;
	transform: none !important;
	pointer-events: auto;
	transition: background-color .2s, scale .2s var(--ap-ease) !important;
}
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn::before {
	width: 18px !important;
	height: 18px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' stroke='%23141414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-size: 18px 18px !important;
	opacity: 1 !important;
}
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn--prev::before { transform: rotate(180deg) !important; }
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn:hover { border-color: var(--ap-red) !important; background: var(--ap-red) !important; }
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn:hover::before { filter: invert(1); }
html body.nuda-home .oz-pb-root :is(.ap-home-best, .ap-home-cats) .ozs:not(.ozs--banner) .ozs__nav .ozs__nav-btn:active { scale: .94; }

/* Banners de producto (OZ Sliders · tarjetas «Abastos · Banners de productos»). */
/* Se descuentan los 24px de aire que deja la pista de «Más vendidos». */
html body.nuda-home .ap-home-best .ap-banners-slider { margin-top: calc(clamp(40px, 4.5vw, 70px) - 24px); }
/* El slide no debe asomar fondo blanco en las esquinas redondeadas de la tarjeta. */
html body.nuda-home .ap-banners-slider .ozs__slide {
	overflow: hidden;
	border: 0 !important;
	border-radius: 20px;
	background: transparent !important;
	box-shadow: none !important;
}
html body.nuda-home .ap-banners-slider .ozs-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 369 / 492;
	height: auto;
	padding: 0;
	border: 0 !important;
	border-radius: 20px;
	clip-path: inset(0 round 20px);
	background: #000;
	box-shadow: none !important;
	outline: 0;
	isolation: isolate;
}
html body.nuda-home .ap-banners-slider .ozs-card__badge { display: none; }
html body.nuda-home .ap-banners-slider .ozs-card__media {
	position: absolute;
	inset: 0;
	margin: 0;
	aspect-ratio: auto;
	border-radius: 0;
}
html body.nuda-home .ap-banners-slider .ozs-card__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: scale .6s var(--ap-ease);
}
html body.nuda-home .ap-banners-slider .ozs-card:hover .ozs-card__img { scale: 1.05; }
html body.nuda-home .ap-banners-slider .ozs-card__body {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 1;
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 10px;
	background: rgba(40, 40, 44, .45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-align: left;
}
html body.nuda-home .oz-pb-root .ap-banners-slider .ozs-card__title { margin: 0; color: #fff; font: 600 .875rem/1.3 var(--ap-font); }
html body.nuda-home .oz-pb-root .ap-banners-slider .ozs-card__subtitle { display: none; }
/* Toda la tarjeta es el enlace: el botón se estira y su texto queda solo para lectores. */
html body.nuda-home .ap-banners-slider .ozs-card__button {
	position: static;
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: transparent;
	font-size: 0;
}
html body.nuda-home .ap-banners-slider .ozs-card__button::before { content: ''; position: absolute; inset: 0; z-index: 2; }
html body.nuda-home .ap-banners-slider .ozs-card__button:focus-visible::before { outline: 3px solid #fff; outline-offset: -3px; border-radius: 20px; }

/* ── 6. Productos por categoría ([ap_productos_categoria]) ──────────────── */

.nuda-home .ap-home-bycat { padding: var(--ap-space) 0 calc(var(--ap-space) - 10px) !important; }
.ap-bycat__tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}
.ap-bycat__tab {
	min-width: 120px;
	height: 34px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--ap-soft);
	color: var(--ap-ink);
	font: 600 .875rem/1 var(--ap-font);
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
.ap-bycat__tab:hover { color: var(--ap-red); }
.ap-bycat__tab[aria-selected="true"] { border-color: var(--ap-red); background: #fff; color: var(--ap-ink); }
.ap-bycat__panel { animation: ap-fade .35s var(--ap-ease); }
@keyframes ap-fade { from { opacity: 0; translate: 0 6px; } }

html body.nuda-home .ap-bycat ul.products.ap-bycat__grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: clamp(24px, 2.2vw, 36px) 16px;   /* más aire entre filas que entre columnas */
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
html body.nuda-home .ap-bycat ul.products.ap-bycat__grid::before,
html body.nuda-home .ap-bycat ul.products.ap-bycat__grid::after { display: none !important; }
html body.nuda-home .ap-bycat ul.products.ap-bycat__grid > li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}
html body.nuda-home .ap-bycat ul.products.ap-bycat__grid > li.ap-bycat__banner { grid-column: span 3; }

.ap-bycat__banner a { display: block; height: 100%; overflow: hidden; border-radius: 4px; }
.ap-bycat__banner img { width: 100%; height: 100% !important; object-fit: cover; transition: scale .6s var(--ap-ease); }
.ap-bycat__banner a:hover img { scale: 1.03; }
/* Tienda sin ningún producto: el banner a lo ancho, encima del aviso. */
.ap-bycat__banner--solo { aspect-ratio: 1360 / 420; margin-bottom: 18px; }
.ap-bycat__empty {
	padding: 48px 20px;
	border: 1px dashed #d6d6d6;
	border-radius: 8px;
	color: var(--ap-muted);
	text-align: center;
}
.ap-bycat__empty a { color: var(--ap-red); font-weight: 600; }

@media (max-width: 1100px) {
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid > li.ap-bycat__banner { grid-column: 1 / -1; aspect-ratio: 953 / 427; }
}
/* El banner aparte (debajo del carrusel) solo se usa en celular. */
.ap-bycat__banner--mobile { display: none; }

@media (max-width: 600px) {
	.ap-bycat__tab { min-width: 0; flex: 1 1 40%; }
	/* Celular: productos en una fila deslizable con el dedo, exactamente dos
	   tarjetas a la vista (sin asomar las vecinas), y el banner debajo. */
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid {
		display: flex !important;
		gap: 10px;
		margin: 0 !important;
		padding: 4px 0 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid::-webkit-scrollbar { display: none; }
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid > li.ap-bycat__cell {
		flex: 0 0 calc((100% - 10px) / 2);
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	html body.nuda-home .ap-bycat ul.products.ap-bycat__grid > li.ap-bycat__banner { display: none; }
	.ap-bycat__banner--mobile { display: block; aspect-ratio: 953 / 427; margin-top: 14px; }
}

/* ── 7. Marcas ([avg_marcas … estilo="ap"]) ─────────────────────────────── */

.nuda-home .ap-home-brands { padding: 10px 0 var(--ap-space) !important; }
html body.nuda-home .ap-brand-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
html body.nuda-home .ap-brand-grid > li { width: auto; min-width: 0; }
html body.nuda-home .ap-brand-grid.avg-brand-grid__item {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: 100%;
	min-width: 0;
	height: 64px;
	padding: 10px 22px;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	transition: border-color .2s, translate .2s var(--ap-ease), box-shadow .2s;
}
html body.nuda-home .ap-brand-grid.avg-brand-grid__item:hover {
	border-color: var(--ap-red);
	translate: 0 -2px;
	box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .5);
}
html body.nuda-home .ap-brand-grid.avg-brand-grid__logo {
	width: auto;
	max-width: 80%;
	height: 30px;
	object-fit: contain;
	filter: none;
	opacity: 1;
}
@media (max-width: 1000px) { html body.nuda-home .ap-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { html body.nuda-home .ap-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* El carrusel de marcas (.ap-brand-marquee) vive en ap-site.css: lo comparten
   la portada y «Nosotros». */

/* Carrusel de OZ Sliders «Abastos · Marcas» (clase ap-brands-slider): cada
   logo en una píldora blanca con borde gris; rojo al pasar el mouse. */
/* Sin flechas: no se reserva el hueco que OZ Sliders deja arriba para ellas. */
html body .ozs.ap-brands-slider:not(.ozs--banner):not(.ozs--has-header) { padding-top: 0 !important; }
/* El modelo del plugin da a cada slide un alto por proporción: aquí mide lo que la píldora. */
html body .ozs.ap-brands-slider :is(.ozs__viewport, .ozs__track) { height: auto !important; min-height: 0 !important; align-items: center; }
html body .ozs.ap-brands-slider .ozs__slide { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; padding: 4px 0; background: transparent; }
html body .ozs.ap-brands-slider .ozs-wc-brand { height: auto; min-height: 0; aspect-ratio: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
html body .ozs.ap-brands-slider .ozs-wc-brand__link {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	height: 64px;
	padding: 10px 22px;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	transition: border-color .2s, translate .2s var(--ap-ease), box-shadow .2s;
}
html body .ozs.ap-brands-slider .ozs-wc-brand__link:hover {
	border-color: var(--ap-red);
	translate: 0 -2px;
	box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .5);
}
html body .ozs.ap-brands-slider .ozs__media { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; background: transparent; }
html body .ozs.ap-brands-slider .ozs-wc-brand__img {
	width: auto;
	max-width: 80%;
	height: 30px !important;
	object-fit: contain;
	filter: none;
	opacity: 1;
}
html body .ozs.ap-brands-slider .ozs-wc-brand__name { color: var(--ap-ink); font: 600 .9375rem/1.2 var(--ap-font); }

/* ── 8. Servicios con la camioneta ──────────────────────────────────────── */

.nuda-home .ap-home-services { padding: 0 !important; background: #fff; }
.ap-services { position: relative; }
.ap-services__van { display: block; width: 100%; height: auto !important; }
.ap-services__list {
	position: absolute;
	inset: 12% var(--ap-side) 10%;
	display: grid;
	/* Hueco central a la medida de la camioneta, que escala con la pantalla. */
	grid-template-columns: minmax(0, 1fr) 42vw minmax(0, 1fr);
	grid-template-rows: 1fr 1fr;
	align-items: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ap-service {
	--ap-ico-size: 32px;
	--ap-ico-color: var(--ap-red);
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 20px;
	align-items: start;
	max-width: 320px;
}
.ap-service:nth-child(1) { grid-area: 1 / 1; }
.ap-service:nth-child(2) { grid-area: 2 / 1; }
.ap-service:nth-child(3) { grid-area: 1 / 3; justify-self: end; }
.ap-service:nth-child(4) { grid-area: 2 / 3; justify-self: end; }
.ap-service::before { grid-row: 1 / 3; margin-top: 2px; }
.ap-service strong { color: var(--ap-ink); font: 600 clamp(1rem, 1.15vw, 1.25rem)/1.3 var(--ap-font); }
.ap-service span { margin-top: 4px; color: var(--ap-muted); font: 400 var(--ap-fs-small)/1.45 var(--ap-font); }

@media (max-width: 900px) {
	.ap-services__list {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 26px 20px;
		padding: 28px var(--ap-gutter) 48px;
		background: var(--ap-soft);
	}
	.ap-service:nth-child(n) { grid-area: auto; justify-self: start; }
}
@media (max-width: 520px) { .ap-services__list { grid-template-columns: 1fr; } }
