/* ==========================================================================
   Dwebmar Store — estilos base
   Tokens tomados de @dwebmar/design v0.6.0 + overrides de dwebmar-store.
   Las variables --brand* se regeneran desde el Personalizador (inc/helpers.php).
   ========================================================================== */

:root {
	--brand: #ff6600; --brand-dark: #e65c00; --brand-light: #fff2e6; --brand-border: #ffd9b3;
	--brand-tint: rgba(255, 102, 0, .08); --brand-rgb: 255, 102, 0;
	--brand-gradient: linear-gradient(263deg, #ff2d0d 2.73%, #ff5e1a 26.36%, #ff6400 50%, #ff7e0d 73.64%, #ffab1a 97.27%);
	--btn-primary: var(--brand-gradient); --btn-primary-txt: #fff;
	--btn-secondary: #000; --btn-secondary-txt: #fff;
	--btn-tertiary: #fff; --btn-tertiary-txt: #111; --btn-tertiary-bd: #111;
	--btn-cuarto: #fafafa; --btn-cuarto-txt: #111; --btn-cuarto-bd: #e8e8e4;

	--bg: #fafafa; --white: #fff; --text: #111; --muted: #3f4650; --light: #6b7280;
	--border: #e8e8e4; --card-border: #e8e8e8; --tag-bg: #f8f8f8; --search-border: #e5e5e2;
	--green: #16a34a; --red: #dc2626; --yellow: #d97706; --whatsapp: #25d366;
	--dark: #1a1a1a;

	--gradient-salmon: linear-gradient(180deg, hsla(0, 0%, 100%, .5), #fff 20%), linear-gradient(73deg, #ffd8d8, #fff2eb 59.62%, #fffce5);
	--gradient-ship: linear-gradient(90deg, #fff4ee 0%, #fbdccb 100%);
	--gradient-head: linear-gradient(90deg, rgb(253, 233, 208), rgb(254, 215, 210));

	--font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, .06); --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
	--shadow-lg: 0 16px 40px rgba(0, 0, 0, .10); --shadow-xl: 0 24px 64px rgba(0, 0, 0, .12);
	--radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px;
	--z-dropdown: 100; --z-header: 300; --z-drawer: 900; --z-modal: 1000;
	--page-max: 1700px; --page-pad: 24px;
	--tabbar-h: 0px;
}
@media (max-width: 768px) { :root { --page-pad: 10px; } }

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.6;
	background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
	padding-bottom: var(--tabbar-h);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.entry-content a { color: var(--brand); text-decoration: underline; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 99999; top: 8px; left: 8px; background: #fff; padding: 8px 16px; border-radius: 8px; }
.dws-muted { color: var(--light); }
.dws-icon { flex-shrink: 0; }
.dws-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1024px) { .dws-only-desktop { display: none !important; } }
@media (min-width: 1025px) { .dws-only-mobile { display: none !important; } }

/* ─── Botones (dw-btn de @dwebmar/design) ─── */
.dw-btn, .button, button.button, a.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 42px; padding: 0 20px; border-radius: var(--radius-md); border: 1.5px solid transparent;
	font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
	transition: transform .15s, box-shadow .15s, background .15s, color .15s; text-decoration: none;
}
.dw-btn:hover { transform: translateY(-1px); }
.dw-btn-primary, .button.alt, button.button.alt, .single_add_to_cart_button, input[type="submit"] {
	background: var(--btn-primary); color: var(--btn-primary-txt); border-color: transparent;
}
.dw-btn-primary:hover, .button.alt:hover, .single_add_to_cart_button:hover { color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.dw-btn-secondary { background: var(--btn-secondary); color: var(--btn-secondary-txt); }
.dw-btn-secondary:hover { color: #fff; opacity: .9; }
.dw-btn-terciario { background: var(--btn-tertiary); color: var(--btn-tertiary-txt); border-color: var(--btn-tertiary-bd); }
.dw-btn-terciario:hover { color: var(--btn-tertiary-txt); background: #f5f5f5; }
.dw-btn-cuarto, .button { background: var(--btn-cuarto); color: var(--btn-cuarto-txt); border-color: var(--btn-cuarto-bd); }
.dw-btn-cuarto:hover, .button:hover { color: var(--text); border-color: #ccc; }
.dw-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.dw-btn-lg { height: 50px; padding: 0 30px; font-size: 16px; }
.dw-btn-pill { border-radius: var(--radius-pill); }
.dw-btn-block { display: flex; width: 100%; }

.dws-input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
	font: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
	background: #fff; color: var(--text); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }

.dws-chip {
	display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill);
	background: var(--tag-bg); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}
.dws-chip:hover { border-color: var(--brand); color: var(--brand); }
.dws-chip--soft { background: rgba(255, 255, 255, .7); }
.dws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dws-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; }
.dws-icon-btn:hover { background: #f2f2f2; }

.dws-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.4; font-style: normal; }
.dws-badge--off { color: #e11900; background: #ffece6; }
.dws-badge--new { color: #fff; background: #e11d48; }
.dws-badge--out { color: #fff; background: #6b7280; }

/* ─── Barra superior ─── */
.dws-bannertop { height: 50px; color: #fff; overflow: hidden; position: relative; font-size: 13.5px; }
.dws-bannertop::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
	background-size: 250% 100%; animation: dws-shimmer 5s linear infinite;
}
@keyframes dws-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.dws-bannertop__inner { display: flex; align-items: center; height: 100%; gap: 16px; }
.dws-bannertop__msgs { position: relative; flex: 1; height: 100%; }
.dws-bannertop__msgs p {
	position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center;
	opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; font-weight: 500;
}
.dws-bannertop__msgs p.is-active { opacity: 1; transform: none; }
.dws-bannertop__cta {
	position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; gap: 4px;
	padding: 0 22px 0 30px; margin-right: calc(var(--page-pad) * -1); background: var(--brand-gradient);
	clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); font-weight: 700; white-space: nowrap;
}
.dws-bannertop__cta:hover { color: #fff; }
@media (max-width: 640px) { .dws-bannertop { height: 38px; font-size: 12px; } .dws-bannertop__cta { display: none; } }

/* ─── Header ─── */
.dws-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }
.admin-bar .dws-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dws-header { top: 0; } }
.dws-header__row1 .dws-header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.dws-logo { flex-shrink: 0; display: flex; align-items: center; }
.dws-logo img { max-height: 62px; width: auto; }
.dws-header__row2 { background: #fefefe; border-top: 1px solid #f1f1f1; }
.dws-header__row2 .dws-header__inner { display: flex; align-items: center; gap: 24px; height: 38px; }

/* Buscador */
.dws-search { position: relative; flex: 1; max-width: 760px; display: flex; height: 40px; border: 1.5px solid var(--brand); border-radius: 24px; background: #fff; }
.dws-search input[type="search"] { border: 0; background: transparent; padding: 0 18px; height: 100%; border-radius: 24px; min-width: 0; }
.dws-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.dws-search__btn {
	display: flex; align-items: center; gap: 6px; margin: 3px; padding: 0 20px; border: 0; border-radius: 16px;
	background: var(--brand-gradient); color: #fff; font-weight: 700;
}
.dws-search__drop {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-dropdown);
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
	padding: 16px; max-height: 70vh; overflow: auto;
}
.dws-search__label { font-size: 12px; font-weight: 700; color: var(--light); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.dws-search__recent:not(:empty) { margin-bottom: 14px; }
.dws-search__recent .dws-search__label { display: flex; justify-content: space-between; }
.dws-search__recent .dws-search__label button { border: 0; background: none; color: var(--brand); font-size: 12px; text-transform: none; }
.dws-search__results a.dws-sres { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-md); }
.dws-search__results a.dws-sres:hover { background: var(--brand-tint); color: inherit; }
.dws-sres img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; }
.dws-sres span { flex: 1; font-size: 13px; line-height: 1.3; }
.dws-sres strong { font-size: 13.5px; white-space: nowrap; }
.dws-search__all { display: block; text-align: center; padding: 10px; margin-top: 6px; border-top: 1px solid var(--border); font-weight: 700; color: var(--brand); }
.dws-search.is-loading .dws-search__btn { opacity: .75; }

/* Acciones */
.dws-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dws-action { position: relative; }
.dws-action__btn {
	display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; background: none;
	border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700; line-height: 1.15; text-align: left; position: relative;
}
.dws-action__btn small { display: block; font-weight: 400; font-size: 11.5px; color: var(--light); }
.dws-action__btn:hover { background: #f5f5f5; color: inherit; }
.dws-cart-count {
	position: absolute; top: 0; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.dws-cart-count[data-count="0"] { display: none; }
.dws-cart-btn.is-bump .dws-cart-count { animation: dws-bump .5s; }
@keyframes dws-bump { 50% { transform: scale(1.4); } }
.dws-pop {
	position: absolute; top: 100%; right: 0; z-index: var(--z-dropdown); width: 260px; padding: 14px;
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
	display: grid; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.dws-action:hover .dws-pop, .dws-action:focus-within .dws-pop { opacity: 1; visibility: visible; transform: none; }
.dws-pop > a:not(.dw-btn) { padding: 6px 8px; border-radius: 6px; }
.dws-pop > a:not(.dw-btn):hover { background: #f5f5f5; }
.dws-pop__title { margin: 0 0 4px; font-weight: 700; }

/* Navegación fila 2 */
.dws-nav ul { display: flex; gap: 22px; }
.dws-nav a { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.dws-nav--right { margin-left: auto; }
.dws-nav .is-hot a, .dws-nav .menu-item.hot a { color: var(--brand); }
.dws-allcats { position: static; }
.dws-allcats__btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; padding: 0; height: 38px; }
.dws-allcats.is-open .dws-allcats__btn { color: var(--brand); }

/* Megamenú */
.dws-mega {
	position: absolute; left: 50%; transform: translateX(-50%); top: 100%; width: min(var(--page-max), 100vw);
	padding: 0 var(--page-pad); z-index: var(--z-dropdown);
}
.dws-mega::before { content: ""; position: absolute; inset: 0 var(--page-pad); background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-xl); }
.dws-mega > * { position: relative; }
.dws-mega { display: grid; grid-template-columns: 250px 1fr; height: min(560px, 75vh); }
.dws-mega__side { border-right: 1px solid var(--border); overflow: auto; padding: 14px 8px 14px 14px; }
.dws-mega__label { font-size: 12px; font-weight: 700; color: var(--light); margin: 0 0 8px 8px; }
.dws-mega__side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); font-size: 13.5px; }
.dws-mega__side a img { width: 24px; height: 24px; object-fit: contain; }
.dws-mega__side a.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.dws-mega__panel { overflow: auto; padding: 16px 24px 24px; scroll-behavior: smooth; }
.dws-mega__sec { padding-bottom: 20px; border-bottom: 1px solid #f1f1f1; margin-bottom: 18px; }
.dws-mega__sec header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dws-mega__sec h3 { font-size: 16px; margin: 0; }
.dws-mega__sec header a { color: var(--brand); font-weight: 600; font-size: 13px; }

.dws-circles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px 12px; }
@media (max-width: 1300px) { .dws-circles { grid-template-columns: repeat(5, 1fr); } }
.dws-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; line-height: 1.25; }
.dws-circle__img {
	width: 100px; height: 100px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center;
	overflow: hidden; transition: box-shadow .2s, transform .2s; color: var(--light);
}
.dws-circle__img img { width: 78%; height: 78%; object-fit: contain; }
.dws-circle:hover .dws-circle__img { box-shadow: 0 0 0 2px var(--brand); transform: translateY(-2px); }
.dws-circle--sm .dws-circle__img { width: 64px; height: 64px; }
.dws-circle--sm { font-size: 11.5px; }

/* ─── Drawers (menú móvil y carrito) ─── */
.dws-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.dws-drawer.is-open { visibility: visible; }
.dws-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.dws-drawer.is-open .dws-drawer__backdrop { opacity: 1; }
.dws-drawer__panel {
	position: absolute; top: 0; bottom: 0; width: min(370px, 88vw); background: #fff; display: flex; flex-direction: column;
	transition: transform .32s cubic-bezier(.2, .9, .3, 1.05); box-shadow: var(--shadow-xl);
}
.dws-drawer--left .dws-drawer__panel { left: 0; transform: translateX(-100%); }
.dws-drawer--right .dws-drawer__panel { right: 0; transform: translateX(100%); width: min(428px, 100vw); }
.dws-drawer.is-open .dws-drawer__panel { transform: none; }
.dws-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 16px; }
.dws-drawer__head strong { display: flex; align-items: center; gap: 10px; }
.dws-drawer__body { flex: 1; overflow: auto; padding: 14px 16px 24px; }
.dws-drawer__filter { margin-bottom: 10px; }
body.dws-lock { overflow: hidden; }

.dws-acc__item { border-bottom: 1px solid #f1f1f1; }
.dws-acc__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; background: none; font-weight: 600; text-align: left; }
.dws-acc__head .dws-icon[data-icon="chev-d"] { margin-left: auto; transition: transform .2s; }
.dws-acc__item.is-open .dws-acc__head .dws-icon[data-icon="chev-d"] { transform: rotate(180deg); }
.dws-acc__img { width: 34px; height: 34px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dws-acc__img img { width: 80%; height: 80%; object-fit: contain; }
.dws-acc__body { display: none; padding: 4px 0 14px; }
.dws-acc__item.is-open .dws-acc__body { display: block; }
.dws-acc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.dws-acc__grid a { padding: 8px 6px; background: #f8f8f8; border-radius: 8px; font-size: 12px; text-align: center; line-height: 1.25; }
.dws-drawer__links { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.dws-drawer__links a { display: block; padding: 8px 0; color: var(--muted); }

/* ─── Barra inferior móvil ─── */
@media (max-width: 1024px) {
	:root { --tabbar-h: 62px; }
	.dws-header__row1 .dws-header__inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px 10px; }
	.dws-logo img { max-height: 40px; }
	.dws-search { order: 10; flex-basis: 100%; max-width: none; }
	.dws-search__btn span { display: none; }
	.dws-search__btn { padding: 0 14px; }
	.dws-actions { gap: 0; }
}
.dws-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); height: var(--tabbar-h);
	display: flex; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.dws-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--light); }
.dws-tabbar a.is-active { color: var(--brand); font-weight: 700; }

/* ─── WhatsApp flotante y Chatbot Dwebmar ─── */
.dws-wa-float {
	position: fixed; right: 24px; bottom: calc(24px + var(--tabbar-h)); z-index: 800; width: 56px; height: 56px; border-radius: 50%;
	background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s;
}
.dws-wa-float:hover { color: #fff; transform: scale(1.07); }
@media (max-width: 1024px) {
	.dws-has-chatbot #dwebmar-chat-launcher { bottom: calc(18px + var(--tabbar-h)) !important; right: 16px !important; }
	.dws-has-chatbot #dwebmar-chat-tooltip { bottom: calc(88px + var(--tabbar-h)) !important; right: 16px !important; }
}

/* ─── Footer ─── */
.dws-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 48px; }
.dws-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; padding: 40px 0 28px; }
.dws-footer h4 { font-size: 15px; margin-bottom: 14px; }
.dws-footer__col li { margin-bottom: 8px; }
.dws-footer__col a { color: var(--muted); }
.dws-footer__col a:hover { color: var(--brand); }
.dws-footer__contact li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.dws-footer__contact .dws-icon { margin-top: 3px; color: var(--brand); }
.dws-footer__band { display: flex; flex-wrap: wrap; gap: 32px 56px; padding: 22px 0; border-top: 1px solid var(--border); }
.dws-footer__band h5 { font-size: 13px; margin-bottom: 10px; }
.dws-paylist { display: flex; flex-wrap: wrap; gap: 6px; }
.dws-pay { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--muted); background: #fafafa; }
.dws-social { display: flex; gap: 8px; }
.dws-social a { width: 34px; height: 34px; border-radius: 50%; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.dws-social a:hover { background: var(--brand); color: #fff; }
.dws-apps { display: flex; gap: 8px; }
.dws-app { background: #000; color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 700; font-size: 14px; line-height: 1.1; }
.dws-app small { display: block; font-weight: 400; font-size: 10px; }
.dws-app:hover { color: #fff; opacity: .85; }
.dws-footer__bottom { border-top: 1px solid var(--border); background: #fafafa; font-size: 12.5px; color: var(--light); }
.dws-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.dws-footer__brand { display: flex; align-items: center; gap: 10px; }
.dws-footer__mark { width: 28px; height: 28px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.dws-footer__legal ul { display: flex; gap: 16px; }
.dws-powered { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dws-powered img { height: 18px; width: auto; }

/* ─── Secciones comunes ─── */
.dws-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.dws-section-head h2 { font-size: 22px; margin: 0; }
.dws-section-head > a { color: var(--brand); font-weight: 700; }
.dws-arrows { display: flex; gap: 6px; }
.dws-arrows button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.dws-arrows button:hover { border-color: var(--brand); color: var(--brand); }
.dws-empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--light); }

.dws-thinbanner { display: block; margin: 16px 0; border-radius: var(--radius-lg); overflow: hidden; }
.dws-thinbanner img { width: 100%; aspect-ratio: 1652 / 150; object-fit: cover; }
@media (max-width: 640px) { .dws-thinbanner img { aspect-ratio: 750 / 300; } }

/* Scroller horizontal con flechas */
.dws-scroller { position: relative; }
.dws-scroller__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.dws-scroller__track::-webkit-scrollbar { display: none; }
.dws-scroller__arrow {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .2s;
}
.dws-scroller__arrow.is-prev { left: -12px; }
.dws-scroller__arrow.is-next { right: -12px; }
.dws-scroller:hover .dws-scroller__arrow:not([disabled]) { opacity: 1; }
.dws-scroller__arrow[disabled] { pointer-events: none; }
@media (hover: none) { .dws-scroller__arrow { display: none; } }

/* ─── Hero ─── */
.dws-hero { position: relative; overflow: hidden; background: #eee; }
.dws-hero__track { position: relative; aspect-ratio: 1920 / 500; }
.dws-hero__slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s;
	background: linear-gradient(120deg, #1b1b1b, #3a2a22); display: flex; align-items: center;
}
.dws-hero__slide.is-active { opacity: 1; visibility: visible; }
.dws-hero__slide picture, .dws-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dws-hero__content { position: relative; z-index: 1; }
.dws-hero__slide.is-active .dws-hero__content > * { animation: dws-rise .7s both; }
.dws-hero__slide.is-active .dws-hero__content > *:nth-child(2) { animation-delay: .1s; }
.dws-hero__slide.is-active .dws-hero__content > *:nth-child(3) { animation-delay: .2s; }
@keyframes dws-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dws-hero__title { font-size: clamp(24px, 3.4vw, 54px); font-weight: 800; max-width: 14em; margin-bottom: 10px; letter-spacing: -.01em; }
.dws-hero__sub { font-size: clamp(14px, 1.3vw, 20px); max-width: 32em; margin-bottom: 22px; }
.dws-hero__slide--oscuro { color: #fff; }
.dws-hero__slide--claro { color: var(--text); }
.dws-hero__link { position: absolute; inset: 0; z-index: 1; }
.dws-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s;
}
.dws-hero:hover .dws-hero__arrow { opacity: 1; }
.dws-hero__arrow--prev { left: 20px; }
.dws-hero__arrow--next { right: 20px; }
.dws-hero__dots { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.dws-hero__dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: width .3s, background .3s; }
.dws-hero__dots button.is-active { width: 24px; background: #fff; }
.dws-hero__mask { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 2; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@media (max-width: 640px) {
	.dws-hero__track { aspect-ratio: 3 / 2; }
	.dws-hero__dots { bottom: 24px; }
	.dws-hero__mask { height: 40px; }
	.dws-hero__arrow { display: none; }
}

/* ─── Bloque destacado (4 columnas) ─── */
.dws-destacado { position: relative; z-index: 3; margin-top: -40px; }
.dws-destacado__grid { display: grid; grid-template-columns: 270px minmax(0, 1.25fr) minmax(0, 1fr) 280px; gap: 14px; }
@media (max-width: 1280px) { .dws-destacado__grid { grid-template-columns: 250px minmax(0, 1fr) 260px; } .dws-especialidades { display: none !important; } }
@media (max-width: 1024px) { .dws-destacado { margin-top: 0; } .dws-destacado__grid { grid-template-columns: 1fr; } .dws-catside { display: none; } }
.dws-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; min-width: 0; }
.dws-panel__title { font-size: 16px; margin-bottom: 12px; }
.dws-panel--warm { background: var(--gradient-salmon); }
.dws-panel--cool { background: linear-gradient(180deg, hsla(0, 0%, 100%, .5), #fff 20%), linear-gradient(73deg, #dfe9ff, #f1f6ff 60%, #f3fff8); }

.dws-catside { position: relative; padding: 14px 8px; }
.dws-catside .dws-panel__title { padding-left: 8px; }
.dws-catside__item > a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-md); font-size: 13.5px; }
.dws-catside__item > a .dws-icon[data-icon="chev-r"] { margin-left: auto; opacity: .4; }
.dws-catside__item:hover > a { background: var(--brand-tint); color: var(--brand); }
.dws-catside__img { width: 30px; height: 30px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.dws-catside__img img { width: 80%; height: 80%; object-fit: contain; }
.dws-flyout {
	position: absolute; left: 100%; top: 0; z-index: var(--z-dropdown); width: 640px; min-height: 100%; margin-left: 6px; padding: 20px;
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border);
	display: none; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: start;
}
.dws-catside__item:hover .dws-flyout { display: grid; }
.dws-flyout__col { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dws-flyout__head { font-weight: 700; color: var(--text); margin-bottom: 4px; }

.dws-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; align-items: start; }
@media (max-width: 640px) { .dws-offers { grid-template-columns: 1fr; } }
.dws-offers__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dws-offers__label { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.dws-tile { display: block; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.dws-tile__img { position: relative; display: block; aspect-ratio: 1; }
.dws-tile__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dws-tile__img .dws-badge { position: absolute; left: 6px; top: 6px; }
.dws-tile__price { display: block; padding: 0 8px 8px; font-weight: 800; font-size: 14px; }
.dws-tile--empty { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: #ccc; }

.dws-especialidades__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dws-espec { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; }
.dws-espec__img { aspect-ratio: 1; background: #f7f7f7; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #ccc; }
.dws-espec__img img { width: 85%; height: 85%; object-fit: contain; transition: transform .3s; }
.dws-espec:hover img { transform: scale(1.06); }

.dws-cliente { display: flex; flex-direction: column; gap: 12px; }
.dws-cliente__hi { margin: 0; font-size: 15px; }
.dws-cliente__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dws-cliente__btns .dw-btn { height: 36px; padding: 0 10px; font-size: 13px; }
.dws-cliente__label { margin: 0; font-weight: 700; font-size: 13px; }
.dws-cliente__hist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-height: 40px; font-size: 12px; }
.dws-cliente__hist a { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.dws-cliente__hist img { width: 100%; height: 100%; object-fit: contain; }
.dws-cliente__hist .dws-muted { grid-column: 1 / -1; }
.dws-quote { margin-top: auto; display: block; padding: 14px; border-radius: var(--radius-md); background: var(--gradient-salmon); border: 1px solid var(--brand-border); }
.dws-quote strong { display: block; font-size: 14px; margin-bottom: 2px; }
.dws-quote span { color: var(--brand); font-weight: 700; font-size: 12.5px; }

.dws-mcircles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 14px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.dws-mcircles::-webkit-scrollbar { display: none; }
.dws-mcircles__page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 14px 8px; }

/* ─── Marcas ─── */
.dws-marcas .dws-hero__track { aspect-ratio: auto; min-height: 300px; }
.dws-marca { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--gradient-salmon); border: 1px solid var(--brand-border); border-radius: var(--radius-xl); color: var(--text); align-items: stretch; }
.dws-marca.is-active { position: relative; }
.dws-marca__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dws-marca__logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dws-marca__logo img { width: 80%; height: 80%; object-fit: contain; }
.dws-marca__id h3 { margin: 0 0 4px; font-size: 20px; }
.dws-marca__wa { margin-left: auto; }
.dws-marca__body { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.dws-marca__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dws-marca__stats li { background: rgba(255, 255, 255, .8); border-radius: var(--radius-md); padding: 12px; }
.dws-marca__stats strong { display: block; font-size: 18px; }
.dws-marca__stats span { font-size: 12px; color: var(--light); }
.dws-marca__prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) {
	.dws-marca__body { grid-template-columns: 1fr; }
	.dws-marca__prods { grid-template-columns: repeat(2, 1fr); }
	.dws-marca__wa { margin-left: 0; }
}

/* ─── Secciones por categoría ─── */
.dws-subcats { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1024px) { .dws-subcats { grid-auto-columns: 78%; } }
.dws-subcat { scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dws-subcat__head { display: flex; flex-direction: column; justify-content: center; height: 125px; padding: 18px; background: var(--gradient-salmon) center / cover no-repeat; }
.dws-subcat__head strong { font-size: 18px; }
.dws-subcat__head span { font-size: 12.5px; color: var(--muted); }
.dws-subcat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.dws-subcat__grid .dws-tile__price { font-size: 12px; padding: 0 4px 4px; }

/* ─── Páginas genéricas ─── */
.dws-page { padding-top: 20px; padding-bottom: 20px; }
.dws-page--narrow { max-width: 900px; }
.dws-page__head h1 { font-size: 28px; margin: 8px 0 16px; }
.dws-page__body { padding: 28px; }
.dws-page__thumb { border-radius: var(--radius-lg); margin-bottom: 20px; }
.dws-home-content { margin-top: 28px; }
.dws-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dws-post { overflow: hidden; }
.dws-post__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dws-post__body { padding: 16px; }
.dws-post__body h2 { font-size: 18px; }
.dws-404__code { font-size: 80px; font-weight: 800; line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.dws-404 .dws-search { width: 100%; max-width: 560px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.nav-links .page-numbers { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.nav-links .current { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
