/* ==========================================================================
   Hello AudioPuan
   1. Variables y modo de color   2. Base   3. Componentes
   4. Header   5. Paneles laterales   6. Footer
   7. Clases para Elementor   8. WooCommerce   9. Contact Form 7
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------- */
:root {
	--ap-red: #CD332B;           /* rojo exacto del logo */
	--ap-red-lo: #8f211c;
	--ap-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ap-max: 1280px;
}
html[data-theme="dark"], html:not([data-theme]) {
	--ap-bg: #000; --ap-s1: #121212; --ap-s2: #1c1c1c; --ap-s3: #232323; --ap-s3h: #303030; --ap-field: #0c0c0c;
	--ap-line: #2b2b2b; --ap-text: #f3f3f3; --ap-soft: #d6d6d6; --ap-muted: #a0a0a0; --ap-faint: #6d6d6d;
	--ap-hdr: rgba(0,0,0,.94); --ap-red-hi: #e4473e; --ap-brand-a: #5a5a5a; --ap-brand-b: #8a8a8a;
	--ap-inv-bg: #fff; --ap-inv-tx: #000;
	color-scheme: dark;
}
html[data-theme="light"] {
	--ap-bg: #fff; --ap-s1: #f4f4f4; --ap-s2: #ececec; --ap-s3: #e6e6e6; --ap-s3h: #d9d9d9; --ap-field: #fff;
	--ap-line: #dedede; --ap-text: #0d0d0d; --ap-soft: #333; --ap-muted: #5c5c5c; --ap-faint: #8a8a8a;
	--ap-hdr: rgba(255,255,255,.95); --ap-red-hi: #b8291f; --ap-brand-a: #a8a8a8; --ap-brand-b: #6a6a6a;
	--ap-inv-bg: #000; --ap-inv-tx: #fff;
	color-scheme: light;
}
html[data-theme="light"] .ap-logo-d,
html[data-theme="dark"] .ap-logo-l,
html:not([data-theme]) .ap-logo-l { display: none !important; }
html[data-theme="light"] .ap-when-dark,
html[data-theme="dark"] .ap-when-light,
html:not([data-theme]) .ap-when-light { display: none; }

/* 2. Base ------------------------------------------------------------------ */
body.ap {
	margin: 0;
	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: var(--ap-font);
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s, color .25s;
}
body.ap.ap-locked { overflow: hidden; }
body.ap *, body.ap *::before, body.ap *::after { box-sizing: border-box; }
body.ap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.ap ::selection { background: var(--ap-red); color: #fff; }
body.ap a { color: inherit; text-decoration: none; }
body.ap a:hover { color: inherit; }
body.ap :focus-visible { outline: 2px solid var(--ap-red); outline-offset: 3px; }
body.ap h1, body.ap h2, body.ap h3, body.ap h4, body.ap h5, body.ap h6 {
	font-family: var(--ap-font); color: inherit; font-weight: 800; font-stretch: 118%; line-height: 1.08; letter-spacing: -.01em;
}
body.ap img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
	body.ap *, body.ap *::before, body.ap *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.ap-wrap { max-width: var(--ap-max); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 1024px) { .ap-wrap { padding-left: 2rem; padding-right: 2rem; } }
.ap-muted { color: var(--ap-muted); }

/* Hello: ancho del contenido de páginas comunes (carrito, checkout, mi cuenta) */
body.ap .site-main,
body.ap .page-header {
	max-width: var(--ap-max) !important;
	margin-left: auto; margin-right: auto;
	padding-left: 1.25rem; padding-right: 1.25rem;
}
body.ap .site-main { padding-bottom: 4rem; }
body.ap .page-header .entry-title {
	display: flex; align-items: center; gap: .85rem;
	font-size: clamp(2rem, 4vw, 3rem); font-stretch: 125%; margin: 2.5rem 0 1.5rem;
}
body.ap .page-header .entry-title::before,
.ap-stroke {
	content: ""; display: inline-block; flex: none; width: 22px; height: 30px; background: var(--ap-red);
	clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
}

/* 3. Componentes ----------------------------------------------------------- */
.ap-sec-head { display: flex; align-items: center; gap: .85rem; }
.ap-sec-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); font-stretch: 125%; }
.ap-sec-head--sm h2 { font-size: 1.3rem; }
.ap-sec-head--sm .ap-stroke { width: 16px; height: 22px; }

/* El trazo diagonal del logo aplicado a botones */
.ap-btn,
body.ap .woocommerce a.button, body.ap .woocommerce button.button, body.ap .woocommerce input.button,
body.ap .woocommerce #respond input#submit, body.ap a.button, body.ap button.button,
body.ap .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	font-family: var(--ap-font); font-weight: 700; font-stretch: 112%; font-size: .95rem; line-height: 1;
	padding: .95rem 1.9rem; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	background: var(--ap-s3); color: var(--ap-text);
	transition: background-color .18s, color .18s;
}
.ap-btn:hover,
body.ap .woocommerce a.button:hover, body.ap .woocommerce button.button:hover, body.ap .woocommerce input.button:hover,
body.ap a.button:hover, body.ap button.button:hover { background: var(--ap-s3h); color: var(--ap-text); }
.ap-btn--red,
body.ap .woocommerce a.button.alt, body.ap .woocommerce button.button.alt, body.ap .woocommerce input.button.alt,
body.ap .woocommerce a.checkout-button, body.ap .woocommerce #place_order, body.ap .single_add_to_cart_button,
body.ap .wpcf7-submit { background: var(--ap-red) !important; color: #fff !important; }
.ap-btn--red:hover,
body.ap .woocommerce a.button.alt:hover, body.ap .woocommerce button.button.alt:hover, body.ap .woocommerce input.button.alt:hover,
body.ap .woocommerce a.checkout-button:hover, body.ap .woocommerce #place_order:hover, body.ap .single_add_to_cart_button:hover,
body.ap .wpcf7-submit:hover { background: var(--ap-red-hi) !important; color: #fff !important; }
.ap-btn--dark { background: var(--ap-s3); color: var(--ap-text); }
.ap-btn--white { background: var(--ap-inv-bg); color: var(--ap-inv-tx); }
.ap-btn--white:hover { background: var(--ap-inv-bg); color: var(--ap-inv-tx); opacity: .85; }
.ap-btn--block { width: 100%; }
body.ap .woocommerce a.button:disabled, body.ap .woocommerce button.button:disabled,
body.ap .woocommerce button.button.disabled { opacity: .5; padding: .95rem 1.9rem; }

.ap-tag {
	display: inline-block; font-weight: 800; font-size: .72rem; font-stretch: 110%; line-height: 1.1;
	padding: .32rem .95rem; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.ap-tag--red { background: var(--ap-red); color: #fff; }
.ap-tag--black { background: #000; color: #fff; }

.ap-icon-btn {
	position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--ap-s3); color: var(--ap-text); border: 0; border-radius: 0; padding: 0; cursor: pointer; font-size: 1rem;
	clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: background-color .18s;
}
.ap-icon-btn:hover, .ap-icon-btn:focus { background: var(--ap-red); color: #fff; }

.ap-steps { display: flex; gap: 6px; margin: 2rem 0 1rem; padding: 0; max-width: 36rem; list-style: none; }
.ap-steps li {
	flex: 1; padding: .7rem 1.1rem; background: var(--ap-s2); color: var(--ap-muted); font-size: .82rem; font-weight: 600;
	font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.ap-steps li i { font-size: .7rem; margin-right: .4rem; }
.ap-steps li[aria-current="step"] { background: var(--ap-red); color: #fff; }
.ap-steps li.done { background: var(--ap-s3); color: var(--ap-text); }

#ap-toast {
	position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 9999;
	display: flex; gap: .8rem; align-items: center; max-width: 340px; padding: .9rem 1.2rem .9rem 1.4rem;
	background: var(--ap-inv-bg); color: var(--ap-inv-tx); border-left: 5px solid var(--ap-red);
	clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
	transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .28s, opacity .28s, visibility .28s;
}
#ap-toast.is-on { transform: none; opacity: 1; visibility: visible; }
#ap-toast i { color: var(--ap-red); font-size: 1.1rem; }
#ap-toast p { margin: 0; }
.ap-toast__t { font-weight: 700; font-size: .9rem; }
.ap-toast__m { font-size: .78rem; opacity: .65; }

/* 4. Header ---------------------------------------------------------------- */
.ap-topbar { background: var(--ap-red); color: #fff; font-size: .8rem; font-weight: 600; }
.ap-topbar a, .ap-topbar a:hover { color: #fff; }
.ap-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.ap-topbar__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-topbar i { margin-right: .4rem; }
.ap-topbar__wa { white-space: nowrap; }
@media (max-width: 639px) { .ap-topbar__wa { display: none; } }

.ap-hdr {
	position: sticky; top: 0; z-index: 900; background: var(--ap-hdr); border-bottom: 1px solid var(--ap-line);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.admin-bar .ap-hdr { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ap-hdr { top: 0; } }
.ap-hdr__in { height: 80px; display: flex; align-items: center; gap: 1.5rem; }
.ap-hdr__burger { display: none; background: none !important; border: 0 !important; color: var(--ap-text) !important; font-size: 1.25rem; padding: .5rem !important; margin-left: -.5rem; cursor: pointer; }
.ap-hdr__logo { flex: none; display: flex; }
.ap-hdr__logo .ap-logo { height: 36px; width: auto; }
.ap-hdr__actions { display: flex; gap: .5rem; margin-left: auto; }
.ap-nav + .ap-hdr__actions { margin-left: .5rem; }
.ap-cart-count {
	position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
	background: var(--ap-red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ap-cart-count.is-empty { display: none; }

.ap-search { position: relative; flex: 1; max-width: 28rem; margin: 0; }
.ap-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ap-muted); font-size: .85rem; }
body.ap .ap-search input[type=search] {
	width: 100%; background: var(--ap-s2); border: 1px solid var(--ap-line); border-radius: 0; color: var(--ap-text);
	padding: .75rem 1rem .75rem 2.6rem; font: inherit; font-size: .9rem;
}
body.ap .ap-search input[type=search]:focus { outline: none; border-color: var(--ap-red); }

.ap-nav { margin-left: auto; }
.ap-nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.ap-nav__list a { position: relative; display: block; padding: .4rem 0; font-weight: 600; font-size: .9rem; color: var(--ap-soft); }
.ap-nav__list a:hover, .ap-nav__list .current-menu-item > a { color: var(--ap-text); }
.ap-nav__list a:hover::after, .ap-nav__list .current-menu-item > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--ap-red);
}

.ap-catbar { border-top: 1px solid var(--ap-line); }
.ap-catbar__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ap-catbar__list::-webkit-scrollbar { display: none; }
.ap-catbar__list a { display: block; white-space: nowrap; font-size: .84rem; color: var(--ap-muted); padding: .85rem 0; }
.ap-catbar__list a:hover, .ap-catbar__list .current-menu-item > a { color: var(--ap-text); }
.ap-catbar__list .ap-hot a, .ap-catbar__list .ap-hot > a { color: var(--ap-red-hi); font-weight: 700; }

@media (max-width: 1023px) { .ap-search--hdr { display: none; } }
@media (max-width: 767px) {
	.ap-hdr__burger { display: inline-flex; }
	.ap-nav, .ap-catbar { display: none; }
	.ap-hdr__in { height: 68px; gap: .75rem; }
	.ap-hdr__logo .ap-logo { height: 26px; }
}

/* 5. Paneles laterales ----------------------------------------------------- */
.ap-drawer { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.72); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.ap-drawer.is-open { visibility: visible; opacity: 1; }
.ap-panel {
	position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; background: var(--ap-s1); color: var(--ap-text);
	transition: transform .28s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ap-panel--left { left: 0; width: min(360px, 86%); border-right: 1px solid var(--ap-line); transform: translateX(-100%); }
.ap-panel--right { right: 0; width: min(440px, 100%); border-left: 1px solid var(--ap-line); transform: translateX(100%); }
.ap-drawer.is-open .ap-panel { transform: none; }
.ap-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ap-line); }
.ap-panel__logo .ap-logo { height: 24px; width: auto; }
.ap-panel__close { background: none !important; border: 0 !important; color: var(--ap-text) !important; font-size: 1.25rem; padding: .5rem !important; cursor: pointer; }
.ap-panel__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.ap-panel__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--ap-line); }
.ap-panel .ap-search { max-width: none; margin-bottom: 1rem; }
.ap-mnav__list { list-style: none; margin: 0; padding: 0; }
.ap-mnav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--ap-line); font-size: .95rem; }
.ap-mnav__list--main a { font-weight: 700; }
.ap-mnav__label { margin: 1.5rem 0 .25rem; font-size: .75rem; font-weight: 700; color: var(--ap-muted); text-transform: uppercase; letter-spacing: .08em; }

/* Carrito lateral (mini carrito de WooCommerce) */
.ap-minicart .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.ap-minicart ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.ap-minicart .woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 64px 1fr; gap: .25rem 1rem; align-items: center;
	padding: .75rem 2.25rem .75rem .75rem; margin-bottom: .6rem; border: 1px solid var(--ap-line); background: var(--ap-bg); font-size: .9rem;
}
.ap-minicart .woocommerce-mini-cart-item a:not(.remove) { display: contents; font-weight: 600; }
.ap-minicart .woocommerce-mini-cart-item img { grid-row: span 2; width: 64px !important; height: 64px; object-fit: contain; background: #fff; padding: 4px; margin: 0 !important; float: none !important; }
.ap-minicart .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: .8rem; color: var(--ap-muted); }
.ap-minicart a.remove { position: absolute; top: .5rem; right: .6rem; color: var(--ap-muted) !important; font-size: 1.2rem; line-height: 1; background: none !important; }
.ap-minicart a.remove:hover { color: var(--ap-red-hi) !important; }
.ap-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 0; padding: 1.25rem 0 1rem; border-top: 1px solid var(--ap-line); }
.ap-minicart .woocommerce-mini-cart__total .amount { font-size: 1.6rem; font-weight: 800; font-stretch: 110%; }
.ap-minicart .woocommerce-mini-cart__buttons { display: flex; flex-direction: column-reverse; gap: .6rem; margin: 0; }
.ap-minicart .woocommerce-mini-cart__buttons .button { width: 100%; margin: 0 !important; }
.ap-minicart .woocommerce-mini-cart__buttons .checkout { background: var(--ap-red) !important; color: #fff !important; }
.ap-minicart .woocommerce-mini-cart__empty-message { text-align: center; padding: 4rem 0; color: var(--ap-muted); }
.ap-minicart__note { font-size: .78rem; margin: 1rem 0 0; text-align: center; }

/* 6. Footer ---------------------------------------------------------------- */
.ap-footer { background: var(--ap-s1); border-top: 4px solid var(--ap-red); font-size: .9rem; }
.ap-footer__grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (max-width: 767px) { .ap-footer__grid { grid-template-columns: 1fr; } }
.ap-footer__logo .ap-logo { height: 32px; width: auto; }
.ap-footer p { line-height: 1.65; margin: 1rem 0 0; max-width: 24rem; }
.ap-footer h4 { font-size: 1rem; font-stretch: 112%; margin: 0 0 1rem; }
.ap-footer h4 + p { margin-top: 0; }
.ap-footer__social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.ap-footer__menu { list-style: none; margin: 0; padding: 0; color: var(--ap-muted); }
.ap-footer__menu li { margin-bottom: .5rem; }
.ap-footer a.ap-muted:hover, .ap-footer__menu a:hover { color: var(--ap-text); }
.ap-footer__bottom { border-top: 1px solid var(--ap-line); font-size: .75rem; color: var(--ap-muted); }
.ap-footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* 7. Clases para Elementor --------------------------------------------------
   Asigná estas clases en Avanzado > Clases CSS. Así los widgets toman los
   colores del modo claro/oscuro en vez de colores fijos.                    */
body.ap .elementor-widget-heading .elementor-heading-title,
body.ap .elementor-widget-text-editor,
body.ap .elementor-widget-icon-box .elementor-icon-box-title,
body.ap .elementor-widget-icon-box .elementor-icon-box-description,
body.ap .elementor-widget-icon-list .elementor-icon-list-text {
	color: inherit; font-family: var(--ap-font);
}
body.ap .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Títulos */
body.ap .ap-h-hero .elementor-heading-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; font-stretch: 125%; line-height: 1.02; }
body.ap .ap-h-page .elementor-heading-title { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; font-stretch: 125%; line-height: 1.02; }
body.ap .ap-h-sec .elementor-heading-title { display: flex; align-items: center; gap: .85rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 125%; }
body.ap .ap-h-sec .elementor-heading-title::before { content: ""; flex: none; width: 22px; height: 30px; background: var(--ap-red); clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%); }
body.ap .ap-h-card .elementor-heading-title { font-size: 1.5rem; font-weight: 800; font-stretch: 125%; }
body.ap .ap-statement .elementor-heading-title { font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; font-stretch: 118%; line-height: 1.15; max-width: 22ch; }
body.ap .ap-eyebrow .elementor-heading-title {
	display: inline-block; background: var(--ap-red); color: #fff; font-size: .75rem; font-weight: 800; font-stretch: 110%;
	padding: .35rem 1rem; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
body.ap .ap-lead { color: var(--ap-muted); font-size: 1.1rem; line-height: 1.65; }
body.ap .ap-text { font-size: 1.05rem; line-height: 1.7; max-width: 62ch; }
body.ap .ap-text p + p { color: var(--ap-muted); }
body.ap .ap-small-muted { color: var(--ap-muted); font-size: .9rem; line-height: 1.6; }
body.ap .ap-price .elementor-heading-title { font-size: 1.4rem; font-weight: 800; font-stretch: 110%; }
body.ap .ap-price-old .elementor-heading-title { font-size: .85rem; color: var(--ap-faint); text-decoration: line-through; font-weight: 500; }

/* Botones de Elementor */
body.ap .ap-btn-red .elementor-button,
body.ap .ap-btn-dark .elementor-button,
body.ap .ap-btn-white .elementor-button,
body.ap .ap-btn-black .elementor-button {
	font-family: var(--ap-font); font-weight: 700; font-stretch: 112%; font-size: .95rem; line-height: 1;
	padding: .95rem 1.9rem; border: 0; border-radius: 0; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	transition: background-color .18s, opacity .18s;
}
body.ap .ap-btn-red .elementor-button { background: var(--ap-red); color: #fff; }
body.ap .ap-btn-red .elementor-button:hover { background: var(--ap-red-hi); color: #fff; }
body.ap .ap-btn-dark .elementor-button { background: var(--ap-s3); color: var(--ap-text); }
body.ap .ap-btn-dark .elementor-button:hover { background: var(--ap-s3h); }
body.ap .ap-btn-white .elementor-button { background: var(--ap-inv-bg); color: var(--ap-inv-tx); }
body.ap .ap-btn-white .elementor-button:hover { opacity: .85; }
body.ap .ap-btn-black .elementor-button { background: #000; color: #fff; }
body.ap .ap-btn-fixed-white .elementor-button { background: #fff !important; color: #000 !important; }
body.ap .ap-link .elementor-button { background: none; padding: 0; color: var(--ap-red-hi); font-weight: 700; font-size: .9rem; }

/* Contenedores */
body.ap .ap-surface { background: var(--ap-s1); border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); }
body.ap .ap-box { background: var(--ap-s1); border: 1px solid var(--ap-line); }
body.ap .ap-box-bg { background: var(--ap-bg); border: 1px solid var(--ap-line); }
body.ap .ap-pillar { border-top: 3px solid var(--ap-red); }

/* Hero con el trazo rojo gigante */
body.ap .ap-hero, body.ap .ap-page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ap-line); }
body.ap .ap-page-hero { background: var(--ap-s1); }
body.ap .ap-hero::before, body.ap .ap-page-hero::before {
	content: ""; position: absolute; top: -10%; bottom: -10%; right: 18%; width: min(34vw, 460px); background: var(--ap-red);
	clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%); pointer-events: none;
}
body.ap .ap-hero::after {
	content: ""; position: absolute; top: -10%; bottom: -10%; right: calc(18% + min(34vw, 460px) * .52); width: min(6vw, 80px);
	background: var(--ap-red); opacity: .35; clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%); pointer-events: none;
}
body.ap .ap-page-hero::before { top: 0; bottom: 0; right: 6%; width: min(30vw, 340px); }
body.ap .ap-hero > .e-con-inner, body.ap .ap-page-hero > .e-con-inner, body.ap .ap-hero > *, body.ap .ap-page-hero > * { position: relative; z-index: 1; }
@media (max-width: 1023px) {
	body.ap .ap-hero::before { right: -12%; width: 70vw; opacity: .9; }
	body.ap .ap-hero::after { display: none; }
}
@media (max-width: 767px) { body.ap .ap-page-hero::before { right: -30%; width: 70vw; opacity: .85; } }
body.ap .ap-hero-img img { width: 100%; height: 440px; object-fit: cover; background: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }
@media (max-width: 767px) { body.ap .ap-hero-img img { height: 320px; } }

/* Franja roja de llamada a la acción */
body.ap .ap-cta-band { position: relative; overflow: hidden; background: var(--ap-red); color: #fff; }
body.ap .ap-cta-band::after { content: ""; position: absolute; top: 0; bottom: 0; right: 8%; width: 220px; background: #000; opacity: .18; clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%); pointer-events: none; }
body.ap .ap-cta-band .ap-lead { color: rgba(255,255,255,.85); }

/* Muro de marcas (Editor de texto con enlaces) */
body.ap .ap-brand-wall p { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; font-size: clamp(1.2rem, 2.4vw, 2rem); line-height: 1.2; }
body.ap .ap-brand-wall a { font-weight: 800; font-stretch: 125%; color: var(--ap-brand-a); white-space: nowrap; transition: color .15s; }
body.ap .ap-brand-wall a:nth-child(5n+1) { color: var(--ap-brand-b); }
body.ap .ap-brand-wall a:hover { color: var(--ap-red-hi); }

/* Lista de íconos y canales de contacto */
body.ap .ap-iconlist .elementor-icon-list-item { padding: .4rem 0; }
body.ap .ap-iconlist .elementor-icon-list-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--ap-s3); margin-right: 1rem; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
body.ap .ap-iconlist .elementor-icon-list-icon i { color: var(--ap-text); font-size: 1rem; }
body.ap .ap-iconlist .elementor-icon-list-item:first-child .elementor-icon-list-icon { background: var(--ap-red); }
body.ap .ap-iconlist .elementor-icon-list-item:first-child .elementor-icon-list-icon i { color: #fff; }
body.ap .ap-iconlist .elementor-icon-list-text { font-size: 1rem; }

body.ap .ap-channel { background: var(--ap-s1); border: 1px solid var(--ap-line); padding: 1.1rem 1.3rem; transition: border-color .15s; }
body.ap .ap-channel:hover { border-color: var(--ap-red); }
body.ap .ap-channel.ap-channel-main { background: var(--ap-red); border-color: var(--ap-red); color: #fff; }
body.ap .ap-channel .elementor-icon { width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; font-size: 1.1rem !important; background: var(--ap-s3); color: var(--ap-text); fill: var(--ap-text); clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
body.ap .ap-channel.ap-channel-main .elementor-icon { background: #fff; color: var(--ap-red); fill: var(--ap-red); }
body.ap .ap-channel .elementor-icon-box-title { font-size: 1rem; font-weight: 700; font-stretch: 112%; margin: 0; }
body.ap .ap-channel .elementor-icon-box-description { font-size: .88rem; opacity: .8; }
body.ap .ap-channel .elementor-icon-box-wrapper { align-items: center; }

body.ap .ap-map iframe { filter: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%); }
html[data-theme="dark"] body.ap .ap-map iframe { filter: grayscale(1) invert(.92) contrast(.9); }

/* Listado de productos con scroll horizontal (widget Shortcode) */
body.ap .ap-products-scroll ul.products { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
body.ap .ap-products-scroll ul.products::-webkit-scrollbar { display: none; }
body.ap .ap-products-scroll ul.products li.product { flex: 0 0 min(300px, 72%); scroll-snap-align: start; }

/* 8. WooCommerce ----------------------------------------------------------- */
body.ap .ap-wc { padding-top: 1.5rem; padding-bottom: 4rem; }
body.ap .ap-crumbs { font-size: .78rem; color: var(--ap-muted); margin: 0 0 1rem; }
body.ap .ap-crumbs a:hover { color: var(--ap-text); }
body.ap .ap-crumbs .sep { margin: 0 .5rem; }

/* Avisos */
body.ap .woocommerce-message, body.ap .woocommerce-info, body.ap .woocommerce-error, body.ap .woocommerce-noreviews,
body.ap .wc-block-components-notice-banner {
	background: var(--ap-s1); color: var(--ap-text); border: 1px solid var(--ap-line); border-left: 4px solid var(--ap-red); border-top-width: 1px;
	padding: 1rem 1.25rem 1rem 3.2rem; margin: 0 0 1.5rem; list-style: none; font-size: .92rem;
}
body.ap .woocommerce-message::before, body.ap .woocommerce-info::before, body.ap .woocommerce-error::before { color: var(--ap-red); top: 1rem; left: 1.2rem; }
body.ap .woocommerce-message .button, body.ap .woocommerce-info .button { float: right; padding: .55rem 1.1rem; font-size: .8rem; margin-left: 1rem; }
body.ap .woocommerce-info a:not(.button), body.ap .woocommerce-message a:not(.button) { color: var(--ap-red-hi); font-weight: 600; }

/* Cabecera de tienda y categorías */
body.ap .woocommerce-products-header {
	position: relative; overflow: hidden; background: var(--ap-s1); border: 1px solid var(--ap-line);
	padding: 2.5rem 2rem; margin: 0 0 2rem;
}
body.ap .woocommerce-products-header::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: 6%; width: min(26vw, 300px); background: var(--ap-red);
	clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%); pointer-events: none;
}
body.ap .woocommerce-products-header > * { position: relative; z-index: 1; max-width: 40rem; }
body.ap .woocommerce-products-header__title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-stretch: 125%; margin: 0; }
body.ap .term-description, body.ap .page-description { color: var(--ap-muted); margin-top: .75rem; line-height: 1.6; }
@media (max-width: 767px) { body.ap .woocommerce-products-header::after { right: -30%; width: 70vw; opacity: .85; } }

.ap-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; max-width: none !important; }
.ap-chip {
	padding: .6rem 1.15rem; font-weight: 600; font-size: .86rem; background: var(--ap-s3); color: var(--ap-text);
	clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: background-color .15s;
}
.ap-chip:hover { background: var(--ap-s3h); }
.ap-chip[aria-current="page"] { background: var(--ap-red); color: #fff !important; }

body.ap .woocommerce-result-count { color: var(--ap-muted); font-size: .9rem; margin: .6rem 0 1.5rem; }
body.ap .woocommerce-ordering { margin: 0 0 1.5rem; }
body.ap .woocommerce-ordering select, body.ap select.orderby {
	background-color: var(--ap-s2); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: 0;
	padding: .65rem 2.2rem .65rem .9rem; font: inherit; font-size: .86rem;
}

/* Tarjeta de producto */
body.ap .woocommerce ul.products, body.ap ul.products {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 2rem; padding: 0; list-style: none;
}
body.ap ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.ap ul.products::before, body.ap ul.products::after { display: none !important; }
@media (max-width: 1023px) { body.ap .woocommerce ul.products, body.ap ul.products, body.ap ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 639px) { .ap-steps li { padding: .7rem .8rem; font-size: .76rem; } }
body.ap ul.products li.product {
	position: relative; display: flex; flex-direction: column; width: auto !important; float: none !important; margin: 0 !important; padding: 0 0 1rem !important;
	background: var(--ap-s1); border: 1px solid var(--ap-line); text-align: left; transition: border-color .2s;
}
body.ap ul.products li.product:hover { border-color: var(--ap-red); }
body.ap ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
body.ap ul.products li.product a img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 1.1rem; margin: 0 0 1rem !important;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
body.ap ul.products li.product .onsale,
body.ap ul.products li.product .ap-tag {
	position: absolute; top: .75rem; left: .75rem; right: auto; z-index: 2; margin: 0; min-width: 0; min-height: 0; border-radius: 0; line-height: 1.1;
}
body.ap .ap-brand { display: block; font-size: .75rem; font-weight: 600; color: var(--ap-red-hi); padding: 0 1rem; }
body.ap .ap-brand--lg { font-size: .9rem; padding: 0; margin-bottom: .5rem; }
body.ap ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem !important; font-weight: 700; font-stretch: 100%; line-height: 1.25; padding: .3rem 1rem 0 !important; margin: 0;
}
body.ap ul.products li.product .price {
	display: flex; flex-direction: column; margin: auto 0 0 !important; padding: 1rem 1rem .9rem; color: var(--ap-text) !important;
	font-size: 1.2rem !important; font-weight: 800; font-stretch: 110%; white-space: nowrap;
}
body.ap .price del { color: var(--ap-faint) !important; font-size: .8rem; font-weight: 500; opacity: 1 !important; }
body.ap .price ins { text-decoration: none; background: none; color: inherit; }
body.ap ul.products li.product .button { align-self: flex-start; margin: 0 1rem !important; padding: .65rem 1.25rem; font-size: .82rem; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
body.ap ul.products li.product .button::before { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .1rem; }
body.ap ul.products li.product .button.loading { opacity: .6; }
body.ap ul.products li.product .added_to_cart { margin: .6rem 1rem 0; font-size: .8rem; font-weight: 600; color: var(--ap-red-hi); }
@media (max-width: 639px) {
	body.ap ul.products li.product .price { font-size: 1rem !important; font-stretch: 100%; padding: .8rem .8rem .7rem; }
	body.ap ul.products li.product .woocommerce-loop-product__title { font-size: .92rem !important; padding: .3rem .8rem 0 !important; }
	body.ap .ap-brand { padding: 0 .8rem; }
	body.ap ul.products li.product .button { margin: 0 .8rem !important; }
}

/* Mosaico de categorías ([product_categories]) */
body.ap ul.products li.product-category { padding: 0 !important; min-height: 220px; overflow: hidden; }
body.ap ul.products li.product-category > a { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 1.5rem; }
body.ap ul.products li.product-category a img {
	position: absolute; right: -6%; bottom: -6%; width: 58%; margin: 0 !important; padding: 14% 8% 8% 26%;
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
body.ap ul.products li.product-category .woocommerce-loop-category__title {
	position: relative; z-index: 1; max-width: 55%; font-size: 1.6rem !important; font-stretch: 125%; padding: 0 !important; margin: 0;
}
body.ap ul.products li.product-category .count { display: block; background: none; color: var(--ap-muted); font-size: .85rem; font-weight: 500; font-stretch: 100%; margin-top: .4rem; }
body.ap ul.products li.product-category > a::after { content: "Ver productos"; position: relative; z-index: 1; margin-top: 5rem; font-size: .88rem; font-weight: 700; color: var(--ap-red-hi); }

/* Paginación */
body.ap .woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: .4rem; justify-content: center; }
body.ap .woocommerce nav.woocommerce-pagination ul li { border: 0; }
body.ap .woocommerce nav.woocommerce-pagination ul li a, body.ap .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px; padding: .8rem; background: var(--ap-s2); color: var(--ap-text); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
body.ap .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ap-red); color: #fff; }

/* Página de producto */
body.ap.single-product div.product {
	position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 3.5rem; margin-top: 1rem;
}
body.ap.single-product div.product > * { width: auto !important; float: none !important; margin: 0; }
body.ap.single-product div.product .woocommerce-tabs,
body.ap.single-product div.product .related,
body.ap.single-product div.product .upsells { grid-column: 1 / -1; }
@media (max-width: 899px) { body.ap.single-product div.product { grid-template-columns: 1fr; gap: 2rem; } }
body.ap.single-product div.product > .onsale,
body.ap.single-product div.product > .ap-tag { position: absolute; top: 1rem; left: 1rem; z-index: 5; font-size: .85rem; padding: .45rem 1.2rem; min-height: 0; min-width: 0; line-height: 1.1; border-radius: 0; margin: 0; }
body.ap .woocommerce-product-gallery { position: relative; }
body.ap .woocommerce-product-gallery__wrapper { margin: 0; }
body.ap .woocommerce-product-gallery .woocommerce-product-gallery__image,
body.ap .woocommerce-product-gallery .flex-viewport {
	background: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%);
}
html[data-theme="light"] body.ap .woocommerce-product-gallery .flex-viewport { box-shadow: inset 0 0 0 1px var(--ap-line); }
body.ap .woocommerce-product-gallery img { object-fit: contain; aspect-ratio: 1 / 1; padding: 5%; }
body.ap .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: .75rem; margin-top: 1rem !important; }
body.ap .woocommerce-product-gallery .flex-control-thumbs li { width: 76px !important; float: none !important; background: #fff; border: 2px solid transparent; }
body.ap .woocommerce-product-gallery .flex-control-thumbs img { padding: 6px; opacity: 1 !important; }
body.ap .woocommerce-product-gallery .flex-control-thumbs img.flex-active { outline: 2px solid var(--ap-red); outline-offset: -2px; }
body.ap .woocommerce-product-gallery__trigger { z-index: 6; background: var(--ap-s3) !important; border-radius: 0 !important; }

body.ap .summary .product_title { font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 125%; margin: 0 0 1.25rem; }
body.ap .summary > .price {
	display: flex; flex-direction: column; gap: .2rem; color: var(--ap-text) !important; font-size: 2.5rem !important;
	font-weight: 800; font-stretch: 125%; line-height: 1; background: var(--ap-s1); border: 1px solid var(--ap-line); padding: 1.5rem 1.5rem 0; margin: 0 !important;
}
body.ap .summary > .price del { font-size: 1rem; }
body.ap .summary form.cart { display: flex; flex-wrap: wrap; gap: .75rem; background: var(--ap-s1); border: 1px solid var(--ap-line); border-top: 0; padding: 1.5rem; margin: 0 !important; }
body.ap .summary form.cart::before, body.ap .summary form.cart::after { display: none; }
body.ap .summary form.cart .single_add_to_cart_button { flex: 1; float: none; }
body.ap .summary form.variations_form { flex-direction: column; }
body.ap .summary .ap-wa-btn { margin: .75rem 0 0; }
body.ap .summary .stock { color: var(--ap-muted) !important; font-size: .88rem; width: 100%; margin: 0; }
body.ap .woocommerce-product-details__short-description { color: var(--ap-muted); line-height: 1.65; margin: 1.5rem 0; }
body.ap .woocommerce .quantity .qty, body.ap .quantity input.qty {
	width: 4.5rem; height: 50px; text-align: center; font-weight: 700; background: var(--ap-field); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: 0;
}
body.ap .summary .product_meta { font-size: .8rem; color: var(--ap-muted); margin-top: 1.5rem; }
body.ap .summary .product_meta a { text-decoration: underline; }
body.ap .summary .product_meta a:hover { color: var(--ap-text); }
body.ap .ap-listen { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--ap-line); margin-top: 1.5rem; }
body.ap .ap-listen i { color: var(--ap-red); font-size: 1.3rem; margin-top: .15rem; }
body.ap .ap-listen p { margin: 0; font-size: .9rem; }
body.ap .ap-listen__t { font-weight: 700; font-size: 1rem !important; margin-bottom: .2rem !important; }
body.ap .ap-listen a { display: inline-block; margin-top: .5rem; font-size: .9rem; font-weight: 700; color: var(--ap-red-hi); }
body.ap .ap-listen a:hover { text-decoration: underline; }

body.ap .variations { margin-bottom: 1rem; }
body.ap .variations th, body.ap .variations td { background: none; padding: .4rem 0; border: 0; }
body.ap .variations select { background: var(--ap-field); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: 0; padding: .7rem; }
body.ap .reset_variations { color: var(--ap-red-hi); font-size: .8rem; }

/* Pestañas y especificaciones */
body.ap .woocommerce-tabs ul.tabs { display: flex; gap: 2rem; padding: 0 !important; margin: 0 0 1rem !important; border-bottom: 1px solid var(--ap-line); overflow-x: auto; }
body.ap .woocommerce-tabs ul.tabs::before, body.ap .woocommerce-tabs ul.tabs li::before, body.ap .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.ap .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; }
body.ap .woocommerce-tabs ul.tabs li a { display: block; position: relative; padding: 1rem 0 !important; font-weight: 700; font-stretch: 112%; color: var(--ap-faint) !important; white-space: nowrap; }
body.ap .woocommerce-tabs ul.tabs li.active a { color: var(--ap-text) !important; }
body.ap .woocommerce-tabs ul.tabs li.active a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ap-red); }
body.ap .woocommerce-tabs .panel { max-width: 56rem; line-height: 1.7; }
body.ap .woocommerce-tabs .panel > h2:first-child { display: none; }
body.ap table.shop_attributes, body.ap .woocommerce table.shop_attributes { border: 0; border-collapse: collapse; width: 100%; }
body.ap table.shop_attributes tr { border-bottom: 1px solid var(--ap-line); }
body.ap table.shop_attributes th, body.ap table.shop_attributes td {
	background: none !important; border: 0 !important; padding: .95rem 0 !important; text-align: left; font-style: normal; vertical-align: top;
}
body.ap table.shop_attributes th { width: 38%; color: var(--ap-muted); font-weight: 600; padding-right: 1.5rem !important; }
body.ap table.shop_attributes td p { margin: 0; padding: 0; }

body.ap .related > h2, body.ap .upsells > h2, body.ap .cross-sells > h2 {
	display: flex; align-items: center; gap: .85rem; font-size: clamp(1.4rem, 2.4vw, 2rem); font-stretch: 125%; margin: 2rem 0 1.5rem;
}
body.ap .related > h2::before, body.ap .upsells > h2::before, body.ap .cross-sells > h2::before {
	content: ""; flex: none; width: 22px; height: 30px; background: var(--ap-red); clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
}
body.ap .related ul.products, body.ap .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { body.ap .related ul.products, body.ap .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reseñas */
body.ap #reviews .comment-text { border-color: var(--ap-line) !important; border-radius: 0 !important; }
body.ap .star-rating span::before, body.ap p.stars a { color: var(--ap-red); }

/* Formularios generales (checkout, mi cuenta, cupón) */
body.ap .woocommerce form .form-row { padding: 0; margin: 0 0 1rem; }
body.ap .woocommerce form .form-row label { display: block; font-size: .78rem; font-weight: 600; color: var(--ap-muted); margin-bottom: .4rem; line-height: 1.3; }
body.ap .woocommerce form .form-row .required { color: var(--ap-red-hi); text-decoration: none; }
body.ap .woocommerce form .form-row input.input-text, body.ap .woocommerce form .form-row textarea, body.ap .woocommerce form .form-row select,
body.ap .woocommerce input#coupon_code, body.ap .woocommerce-page input.input-text {
	width: 100%; background: var(--ap-field); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: 0;
	padding: .85rem 1rem; font: inherit; font-size: .92rem; line-height: 1.4; box-shadow: none;
}
body.ap .woocommerce form .form-row input.input-text:focus, body.ap .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--ap-red); }
body.ap .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--ap-red); }
body.ap .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--ap-line); }
body.ap .select2-container--default .select2-selection--single { height: auto; background: var(--ap-field); border: 1px solid var(--ap-line); border-radius: 0; padding: .6rem .5rem; }
body.ap .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ap-text); line-height: 1.6; }
body.ap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
body.ap .select2-dropdown { background: var(--ap-s1); color: var(--ap-text); border-color: var(--ap-line); border-radius: 0; }
body.ap .select2-container--default .select2-results__option--highlighted[aria-selected],
body.ap .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ap-red); color: #fff; }
body.ap .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--ap-field); color: var(--ap-text); border-color: var(--ap-line); }
body.ap .woocommerce input[type=checkbox], body.ap .woocommerce input[type=radio] { accent-color: var(--ap-red); }

/* Carrito */
body.ap.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 3rem; align-items: start; }
body.ap.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; }
body.ap.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
body.ap.woocommerce-cart .cart-collaterals { display: contents; }
body.ap.woocommerce-cart .cart-collaterals .cart_totals { grid-column: 2; grid-row: 2 / span 2; width: 100% !important; float: none !important; position: sticky; top: 140px; }
body.ap.woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1 / -1; width: 100% !important; float: none !important; }
@media (max-width: 999px) {
	body.ap.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
	body.ap.woocommerce-cart .cart-collaterals .cart_totals { grid-column: 1; grid-row: auto; position: static; margin-top: 2rem; }
}
body.ap .woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; margin: 0; background: none; }
body.ap .woocommerce table.shop_table th { font-size: .75rem; font-weight: 600; color: var(--ap-muted); text-transform: none; border: 0; border-bottom: 1px solid var(--ap-line); padding: .8rem .75rem; background: none; }
body.ap .woocommerce table.shop_table td { border: 0; border-bottom: 1px solid var(--ap-line); padding: 1.25rem .75rem; background: none !important; vertical-align: middle; }
body.ap .woocommerce-cart-form .product-thumbnail img { width: 96px !important; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 8px; }
body.ap .woocommerce-cart-form .product-name a { font-weight: 700; }
body.ap .woocommerce-cart-form .product-name a:hover { text-decoration: underline; }
body.ap .woocommerce-cart-form .product-subtotal { font-weight: 800; font-stretch: 110%; font-size: 1.05rem; text-align: right; }
body.ap .woocommerce a.remove { color: var(--ap-muted) !important; font-weight: 400; font-size: 1.4rem; border-radius: 0; }
body.ap .woocommerce a.remove:hover { background: none; color: var(--ap-red-hi) !important; }
body.ap .woocommerce-cart-form td.actions { padding: 1.5rem 0 !important; border-bottom: 0 !important; }
body.ap .woocommerce-cart-form td.actions .coupon { display: flex; gap: .5rem; align-items: stretch; }
body.ap .woocommerce-cart-form td.actions .coupon input#coupon_code { width: 12rem; padding: .7rem 1rem; }
body.ap .woocommerce-cart-form td.actions .coupon .button, body.ap .woocommerce-cart-form td.actions > .button { padding: .75rem 1.3rem; font-size: .84rem; }
@media (max-width: 768px) {
	body.ap .woocommerce table.shop_table_responsive tr td { text-align: right !important; padding: .75rem 0; }
	body.ap .woocommerce table.shop_table_responsive tr td::before { color: var(--ap-muted); font-weight: 600; }
	body.ap .woocommerce-cart-form .product-thumbnail { display: block !important; text-align: left !important; }
	body.ap .woocommerce-cart-form td.actions .coupon { flex-wrap: wrap; }
	body.ap .woocommerce-cart-form td.actions .coupon input#coupon_code { width: 100%; }
}
body.ap .cart_totals, body.ap #order_review, body.ap .woocommerce-order-details, body.ap .woocommerce-customer-details .woocommerce-column {
	background: var(--ap-s1); border: 1px solid var(--ap-line); padding: 1.5rem;
}
body.ap .cart_totals h2, body.ap #order_review_heading, body.ap .woocommerce-order-details__title, body.ap .woocommerce-column__title, body.ap .woocommerce-billing-fields h3, body.ap .woocommerce-shipping-fields h3, body.ap .woocommerce-additional-fields h3 {
	font-size: 1.3rem; font-stretch: 125%; margin: 0 0 1rem;
}
body.ap .cart_totals table.shop_table th, body.ap .cart_totals table.shop_table td { padding: .85rem 0; font-size: .9rem; }
body.ap .cart_totals .order-total .amount, body.ap #order_review .order-total .amount { font-size: 1.8rem; font-weight: 800; font-stretch: 125%; }
body.ap .cart_totals td { text-align: right; }
body.ap .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
body.ap .woocommerce-shipping-methods li { margin: 0 0 .4rem; }
body.ap .wc-proceed-to-checkout { padding: 1.25rem 0 0; }
body.ap .wc-proceed-to-checkout a.checkout-button { width: 100%; font-size: 1rem; padding: 1.1rem; margin: 0; }
body.ap .cart-empty.woocommerce-info { text-align: center; padding: 3rem 1.5rem; font-size: 1.2rem; font-weight: 700; border-left-width: 1px; }
body.ap .cart-empty.woocommerce-info::before { display: none; }
body.ap .return-to-shop { text-align: center; }

/* Checkout */
body.ap .woocommerce-form-coupon-toggle .woocommerce-info, body.ap .woocommerce-form-login-toggle .woocommerce-info { font-size: .88rem; }
body.ap form.checkout_coupon, body.ap form.woocommerce-form-login { border: 1px solid var(--ap-line) !important; border-radius: 0 !important; background: var(--ap-s1); padding: 1.5rem !important; }
body.ap form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 3rem; align-items: start; }
body.ap form.checkout.woocommerce-checkout > * { grid-column: 1 / -1; }
body.ap form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
body.ap form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; padding: 1.5rem 1.5rem 0; background: var(--ap-s1); border: 1px solid var(--ap-line); border-bottom: 0; }
body.ap form.checkout #order_review { grid-column: 2; grid-row: 3; border-top: 0; padding-top: .5rem; }
@media (max-width: 999px) {
	body.ap form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	body.ap form.checkout #customer_details, body.ap form.checkout #order_review_heading, body.ap form.checkout #order_review { grid-column: 1; grid-row: auto; }
	body.ap form.checkout #order_review_heading { margin-top: 2rem; }
}
body.ap .woocommerce .col2-set .col-1, body.ap .woocommerce .col2-set .col-2 { width: 100% !important; float: none !important; }
body.ap .woocommerce .col2-set::before, body.ap .woocommerce .col2-set::after { display: none; }
body.ap .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
body.ap .woocommerce-billing-fields__field-wrapper .form-row { width: auto !important; float: none !important; grid-column: 1 / -1; }
body.ap .woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1; }
body.ap .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 2; }
@media (max-width: 599px) { body.ap .woocommerce-billing-fields__field-wrapper .form-row-first, body.ap .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 1 / -1; } }
body.ap #ship-to-different-address { font-size: 1rem; font-stretch: 110%; margin: 1.5rem 0 1rem; }
body.ap .woocommerce-checkout-review-order-table th, body.ap .woocommerce-checkout-review-order-table td { padding: .85rem 0 !important; font-size: .9rem; }
body.ap .woocommerce-checkout-review-order-table td:last-child, body.ap .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body.ap .woocommerce-checkout-review-order-table .product-quantity { color: var(--ap-muted); font-weight: 400; }
body.ap #payment { background: none !important; border-radius: 0 !important; margin-top: 1rem; }
body.ap #payment ul.payment_methods { border: 0 !important; padding: 0 !important; margin: 0; list-style: none; }
body.ap #payment ul.payment_methods li.wc_payment_method {
	padding: 1rem 1.1rem !important; margin: 0 0 .6rem !important; border: 1px solid var(--ap-line); background: var(--ap-field); line-height: 1.4;
}
body.ap #payment ul.payment_methods li.wc_payment_method:has(input:checked) { border-color: var(--ap-red); box-shadow: inset 3px 0 0 var(--ap-red); }
body.ap #payment ul.payment_methods li label { font-weight: 700; cursor: pointer; display: inline; }
body.ap #payment ul.payment_methods li img { max-height: 22px; vertical-align: middle; margin-left: .4rem; }
body.ap #payment div.payment_box { background: none !important; color: var(--ap-muted) !important; padding: .5rem 0 0 1.6rem !important; margin: 0 !important; font-size: .85rem; }
body.ap #payment div.payment_box::before { display: none !important; }
body.ap #payment div.form-row.place-order { padding: 1rem 0 0 !important; margin: 0; }
body.ap .woocommerce-terms-and-conditions-wrapper { font-size: .85rem; color: var(--ap-muted); }
body.ap .woocommerce-terms-and-conditions-wrapper a { color: var(--ap-text); text-decoration: underline; }
body.ap #place_order { width: 100%; padding: 1.15rem !important; font-size: 1rem !important; margin-top: .75rem; }

/* Pedido recibido */
body.ap .woocommerce-order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 3rem; align-items: start; }
body.ap .woocommerce-order > * { grid-column: 1; }
body.ap .woocommerce-order > .ap-steps { grid-column: 1 / -1; }
body.ap .woocommerce-order > .woocommerce-order-details,
body.ap .woocommerce-order > .woocommerce-customer-details,
body.ap .woocommerce-order > .woocommerce-bacs-bank-details { grid-column: 2; }
body.ap .woocommerce-order > .woocommerce-order-details { grid-row: 2 / span 3; }
@media (max-width: 899px) { body.ap .woocommerce-order { grid-template-columns: 1fr; } body.ap .woocommerce-order > * { grid-column: 1 !important; grid-row: auto !important; } }
body.ap .woocommerce-thankyou-order-received { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 1.5rem; }
.ap-ok-mark {
	width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--ap-red); color: #fff;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ap-ok-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 125%; line-height: 1.02; }
.ap-ok-sub { color: var(--ap-muted); font-size: 1.1rem; line-height: 1.6; max-width: 36rem; }
body.ap ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.ap ul.woocommerce-order-overview li { border: 0 !important; padding: 0 !important; margin: 0 !important; font-size: .82rem; color: var(--ap-muted); text-transform: none; }
body.ap ul.woocommerce-order-overview li strong { display: block; color: var(--ap-text); font-size: 1.05rem; font-stretch: 112%; margin-top: .2rem; }
body.ap .ap-next h2 { font-size: 1.3rem; font-stretch: 125%; margin: 1rem 0 .5rem; }
body.ap .ap-next ol { list-style: none; margin: 0; padding: 0; }
body.ap .ap-next li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ap-line); }
body.ap .ap-next .n { font-weight: 800; font-stretch: 125%; font-size: 1.4rem; color: var(--ap-red-hi); line-height: 1; }
body.ap .ap-next p { margin: .25rem 0 0; font-size: .9rem; }
body.ap .ap-next__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
body.ap .woocommerce-bacs-bank-details { background: var(--ap-s1); border: 1px solid var(--ap-line); padding: 1.5rem; margin-top: 1.5rem; }
body.ap .woocommerce-bacs-bank-details h2 { font-size: 1.2rem; margin-top: 0; }
body.ap ul.wc-bacs-bank-details { list-style: none; padding: 0; }
body.ap .woocommerce-customer-details { margin-top: 1.5rem; }
body.ap .woocommerce-customer-details address { border: 0 !important; padding: 0 !important; font-style: normal; line-height: 1.7; color: var(--ap-soft); }
body.ap .woocommerce-order-details table.shop_table td, body.ap .woocommerce-order-details table.shop_table th { padding: .8rem 0; font-size: .9rem; }
body.ap .woocommerce-order-details tfoot td { text-align: right; }

/* Bloques de WooCommerce (si el carrito o checkout usan bloques) */
body.ap .wc-block-components-button:not(.is-link) { background: var(--ap-red); color: #fff; border-radius: 0; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font-family: var(--ap-font); font-weight: 700; }
body.ap .wc-block-components-text-input input, body.ap .wc-block-components-combobox .wc-block-components-combobox-control input { background: var(--ap-field) !important; color: var(--ap-text) !important; border-color: var(--ap-line) !important; border-radius: 0 !important; }
body.ap .wc-block-components-text-input label { color: var(--ap-muted) !important; }
body.ap .wc-block-cart, body.ap .wc-block-checkout { color: var(--ap-text); }
body.ap .wc-block-components-sidebar { background: var(--ap-s1); border: 1px solid var(--ap-line); padding: 1.5rem !important; }

/* Mi cuenta */
body.ap .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ap-line); }
body.ap .woocommerce-MyAccount-navigation li a { display: block; padding: .85rem 1.1rem; border-bottom: 1px solid var(--ap-line); font-size: .92rem; }
body.ap .woocommerce-MyAccount-navigation li.is-active a { background: var(--ap-red); color: #fff; }

/* 9. Contact Form 7 -------------------------------------------------------- */
body.ap .ap-cf7 label, body.ap .ap-cf7 legend { display: block; font-size: .78rem; font-weight: 600; color: var(--ap-muted); margin-bottom: 1rem; }
body.ap .ap-cf7 fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
body.ap .ap-cf7 .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
body.ap .ap-cf7 input[type=text], body.ap .ap-cf7 input[type=email], body.ap .ap-cf7 input[type=tel], body.ap .ap-cf7 textarea {
	width: 100%; background: var(--ap-field); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: 0; padding: .85rem 1rem; font: inherit; font-size: .92rem;
}
body.ap .ap-cf7 input:focus, body.ap .ap-cf7 textarea:focus { outline: none; border-color: var(--ap-red); }
body.ap .ap-cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 599px) { body.ap .ap-cf7-row { grid-template-columns: 1fr; } }
body.ap .ap-cf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
body.ap .ap-cf7 .wpcf7-radio .wpcf7-list-item { margin: 0; }
body.ap .ap-cf7 .wpcf7-radio label {
	display: flex; align-items: center; gap: .5rem; margin: 0; padding: .6rem 1rem; border: 1px solid var(--ap-line); background: var(--ap-field);
	color: var(--ap-text); font-size: .86rem; font-weight: 500; cursor: pointer;
}
body.ap .ap-cf7 .wpcf7-radio label:has(input:checked) { border-color: var(--ap-red); box-shadow: inset 3px 0 0 var(--ap-red); }
body.ap .ap-cf7 input[type=radio] { accent-color: var(--ap-red); }
body.ap .wpcf7-not-valid-tip { color: var(--ap-red-hi); font-size: .78rem; margin-top: .35rem; }
body.ap .wpcf7 form .wpcf7-response-output { border: 1px solid var(--ap-line); border-left: 4px solid var(--ap-red); margin: 1.5rem 0 0; padding: 1rem 1.25rem; font-size: .9rem; }
body.ap .wpcf7-spinner { background-color: var(--ap-red); }
body.ap .ap-h-cta .elementor-heading-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
