/* RedBajas 2026 · v2 — segunda pasada visual (se carga después de rb2026.css).
   Cabecera translúcida con buscador píldora, navegación clara, portada en tarjetas redondeadas, departamentos en círculos, tarjetas de producto sin bordes. */
:root {
	--rb-r: 16px;
	--rb-r-sm: 12px;
	--rb-soft: #f1efec;
	--rb-red-tint: #fdecea;
	--rb-shadow: 0 1px 2px rgba(23,25,28,.06), 0 8px 24px -12px rgba(23,25,28,.18);
	--rb-shadow-lg: 0 2px 6px rgba(23,25,28,.06), 0 22px 44px -18px rgba(23,25,28,.32);
}

/* Cabecera */
.rb-header { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(23,25,28,.06); }
.rb-topbar { font-size: 12.5px; }
.rb-topbar-in { min-height: 34px; }
.rb-mainbar-in { padding-top: 12px; padding-bottom: 12px; }
.rb-search { max-width: 680px; }
.rb-search input { height: 50px; border: 1.5px solid transparent; background: var(--rb-soft); border-radius: 999px; padding: 0 64px 0 22px; transition: background .15s, border-color .15s, box-shadow .15s; }
.rb-search input:hover { background: #ebe8e4; }
.rb-search input:focus { background: #fff; border-color: var(--rb-ink); box-shadow: 0 0 0 4px rgba(23,25,28,.08); }
.rb-search button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; background: var(--rb-red); }
.rb-search input:focus + button { background: var(--rb-red); }
.rb-search #display { border-radius: 16px; top: calc(100% + 8px); }
.rb-cart-ic { background: var(--rb-soft); transition: background .15s; }
.rb-cart:hover .rb-cart-ic { background: var(--rb-red-tint); color: var(--rb-red); }

.rb-nav { background: transparent; border-top: 1px solid rgba(23,25,28,.06); }
.rb-nav-list { gap: 4px; padding: 6px 0; }
.rb-nav-item > a, .rb-nav-item:first-child > a { color: var(--rb-ink); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.rb-nav-item > a:hover, .rb-nav-item:hover > a { color: var(--rb-red); background: var(--rb-red-tint); }
.rb-mega { border-top: 0; border-radius: 0 0 20px 20px; box-shadow: var(--rb-shadow-lg); top: calc(100% + 6px); }
@media (max-width: 991px) {
	.rb-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.rb-nav { background: #fff; }
	.rb-nav-item > a, .rb-nav-item:first-child > a { border-radius: 10px; border-bottom: 0; padding: 13px 12px; }
}

/* Portada */
.rb-hero { max-width: var(--rb-wrap); margin: 20px auto 0; border-radius: 22px; overflow: hidden; width: calc(100% - 32px); box-shadow: var(--rb-shadow); }
.rb-hero-nav { width: 42px; height: 42px; font-size: 26px; background: rgba(255,255,255,.92); opacity: 0; transition: opacity .2s; }
.rb-hero:hover .rb-hero-nav, .rb-hero-nav:focus-visible { opacity: 1; }
.rb-hero-dots button { background: rgba(255,255,255,.5); }
@media (max-width: 600px) { .rb-hero { margin-top: 12px; border-radius: 16px; } }

.rb-banners { gap: 14px; }
.rb-banner { border-radius: var(--rb-r); box-shadow: var(--rb-shadow); }

.rb-section { margin-top: 52px; }
.rb-sec-head { align-items: center; }
.rb-sec-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.rb-more { font: 700 14px var(--rb-body); color: var(--rb-ink) !important; text-decoration: none !important; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--rb-shadow); white-space: nowrap; }
.rb-more:hover { color: var(--rb-red) !important; }

/* Departamentos en círculos */
.rb-deps { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; grid-template-columns: none; }
.rb-deps::-webkit-scrollbar { display: none; }
.rb-dep { flex: 0 0 auto; width: 128px; align-items: center; background: none; border: 0; text-align: center; scroll-snap-align: start; transform: none; }
.rb-dep:hover { transform: none; border: 0; }
.rb-dep img { width: 112px; height: 112px; aspect-ratio: auto; border-radius: 50%; object-fit: cover; background: var(--rb-soft); box-shadow: var(--rb-shadow); transition: transform .25s, box-shadow .25s; }
.rb-dep:hover img { transform: translateY(-4px) scale(1.03); box-shadow: var(--rb-shadow-lg); }
.rb-dep span { padding: 12px 4px 0; font: 700 14px/1.25 var(--rb-display); text-transform: capitalize; }
@media (max-width: 600px) {
	.rb-deps { display: flex; gap: 14px; }
	.rb-dep { width: 92px; }
	.rb-dep img { width: 84px; height: 84px; }
	.rb-dep span { font-size: 12.5px; }
}

/* Franja de financiamiento */
.rb-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 22px; text-decoration: none !important; color: #fff !important; background: radial-gradient(120% 140% at 100% 0%, #e2231a 0%, #8f140d 45%, #17191c 100%); box-shadow: var(--rb-shadow-lg); position: relative; overflow: hidden; }
.rb-promo::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.rb-promo-txt { display: grid; gap: 6px; position: relative; z-index: 1; }
.rb-promo-eyebrow { font: 700 12px var(--rb-body); letter-spacing: .14em; text-transform: uppercase; color: #ffc9c5; }
.rb-promo strong { font: 800 clamp(22px, 2.6vw, 30px)/1.1 var(--rb-display); letter-spacing: -.02em; }
.rb-promo-txt > span:last-child { color: rgba(255,255,255,.8); font-size: 15px; }
.rb-promo-btn { position: relative; z-index: 1; flex: none; background: #fff; color: var(--rb-ink); font: 700 15px var(--rb-body); padding: 14px 22px; border-radius: 999px; transition: transform .2s; }
.rb-promo:hover .rb-promo-btn { transform: translateX(4px); }
@media (max-width: 700px) { .rb-promo { flex-direction: column; align-items: flex-start; padding: 24px; } }

/* Tarjetas de producto (portada y listados) */
.rb-card, body.rb2026 #content .item { border: 0; border-radius: var(--rb-r); box-shadow: var(--rb-shadow); transition: transform .25s, box-shadow .25s; }
.rb-card:hover, body.rb2026 #content .item:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow-lg); border-color: transparent; }
.rb-card-media { margin: 10px 10px 0; padding: 16px; border-radius: var(--rb-r-sm); background: #f6f5f3; }
.rb-card-media img { mix-blend-mode: multiply; }
.rb-card-hover { inset: 16px; width: calc(100% - 32px) !important; height: calc(100% - 32px) !important; background: #f6f5f3; }
.rb-card-body { padding: 14px 16px 16px; }
.rb-card-price { display: flex; flex-direction: column; gap: 2px; }
.rb-card-tax { font: 500 11.5px var(--rb-body); color: var(--rb-muted); letter-spacing: 0; }
.rb-card .rb-btn { background: var(--rb-ink); border-radius: 999px; }
.rb-card:hover .rb-btn { background: var(--rb-red); }
body.rb2026 #content .item .item-image-container { margin: 10px 10px 0; border-radius: var(--rb-r-sm); background: #f6f5f3; }
body.rb2026 #content .item figure img { mix-blend-mode: multiply; }
body.rb2026 .item-add-btn { border-radius: 999px !important; background: var(--rb-ink) !important; }
body.rb2026 #content .item:hover .item-add-btn, body.rb2026 .item-add-btn:hover { background: var(--rb-red) !important; }
body.rb2026 .btn-custom, body.rb2026 .btn-custom-2 { border-radius: 999px !important; }

/* Paneles de páginas internas */
body.rb2026 .sidebar .widget, body.rb2026 .panel { border: 0; box-shadow: var(--rb-shadow); border-radius: var(--rb-r); }
body.rb2026 .table { box-shadow: var(--rb-shadow); }
body.rb2026 .form-control { border-radius: 12px; background: #fff; }

/* Franja de confianza */
.rb-trust { background: transparent; border: 0; }
.rb-trust-grid { gap: 14px; }
.rb-trust-item { background: #fff; border-radius: var(--rb-r); padding: 16px 18px; box-shadow: var(--rb-shadow); }
.rb-trust-item svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--rb-red-tint); }
.rb-footer { margin-top: 8px; border-radius: 28px 28px 0 0; }

/* Aparición suave al hacer scroll (solo con JS y sin "reducir movimiento") */
.rb-js .rb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rb-js .rb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rb-js .rb-reveal { opacity: 1; transform: none; transition: none; } }

/* Ajustes finos v2 */
.rb-dep span { display: block; width: 100%; text-transform: lowercase; overflow-wrap: anywhere; }
.rb-dep span::first-letter { text-transform: uppercase; }
.rb-card-price { display: block; }
.rb-card-tax { display: block; margin-top: 3px; }
.rb-row { scrollbar-width: thin; scrollbar-color: #cfcac2 transparent; padding-bottom: 14px; }
.rb-row::-webkit-scrollbar { height: 6px; }
.rb-row::-webkit-scrollbar-thumb { background: #cfcac2; border-radius: 3px; }
.rb-row::-webkit-scrollbar-track { background: transparent; }
.rb-dep { width: 140px; }
.rb-dep span { font-size: 13.5px; overflow-wrap: normal; }
@media (max-width: 600px) { .rb-dep { width: 100px; } .rb-dep span { font-size: 12px; } }

/* Listados de categoría y búsqueda en cuadrícula */
body.rb2026 .category-item-container > .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin: 0; }
body.rb2026 .category-item-container > .row::before, body.rb2026 .category-item-container > .row::after { display: none; }
body.rb2026 .category-item-container > .row > [class*="col-"] { width: auto; float: none; padding: 0; min-width: 0; }
body.rb2026 .category-item-container .item { height: 100%; margin: 0; }
body.rb2026 #content .item .item-image-container { width: auto; }
body.rb2026 .item-price-container-home, body.rb2026 #content .item .item-meta-inner-container { text-align: left; float: none; }
@media (max-width: 600px) { body.rb2026 .category-item-container > .row { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
body.rb2026 #content .item .item-price-container-home, body.rb2026 #content .item .item-price { text-align: left !important; float: none !important; display: block; }
body.rb2026 #content .item .item-meta-container { order: 2; }
body.rb2026 #content .item .item-name { order: 1; margin-top: 14px; }
body.rb2026 #content .item .item-action { order: 3; }
body.rb2026 .icon-cart-text-b, body.rb2026 .item-add-btn { text-transform: none !important; letter-spacing: 0; }

/* ===================== Celular (≤ 767 px) ===================== */
body.rb2026 iframe { max-width: 100%; }
@media (max-width: 767px) {
	body.rb2026 .container { padding-left: 16px !important; padding-right: 16px !important; width: auto !important; }
	body.rb2026 #content .row { margin-left: -8px; margin-right: -8px; }
	body.rb2026 #content [class*="col-"] { padding-left: 8px; padding-right: 8px; }

	/* Barra superior compacta */
	.rb-topbar { font-size: 12px; }
	.rb-topbar-in { min-height: 32px; }
	.rb-topbar-tools { width: 100%; justify-content: space-between; gap: 8px; }
	.rb-drop-btn { padding: 7px 0; }
	.rb-drop-menu { right: auto; left: 0; }

	/* Títulos y textos que se cortaban */
	body.rb2026 .category-title p, body.rb2026 #content .title-desc, body.rb2026 #content header p, body.rb2026 #content .col-md-12 > p { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
	body.rb2026 #content h1, body.rb2026 #content h2.title, body.rb2026 .title-bg .title, body.rb2026 .content-title .title { font-size: 22px !important; line-height: 1.2; }

	/* Formularios: etiqueta arriba, campo a todo lo ancho */
	body.rb2026 .input-group { display: flex !important; flex-wrap: wrap; width: 100%; }
	body.rb2026 .input-group .input-group-addon { display: flex; align-items: center; gap: 6px; width: 100% !important; background: none !important; border: 0 !important; padding: 0 0 6px !important; text-align: left; font-weight: 600; color: var(--rb-ink); white-space: normal; }
	body.rb2026 .input-group .form-control, body.rb2026 .input-group select, body.rb2026 .input-group textarea { width: 100% !important; flex: 1 1 100%; border-radius: 12px !important; height: 48px; font-size: 16px; }
	body.rb2026 .input-group textarea { height: auto; min-height: 120px; }
	body.rb2026 .form-group, body.rb2026 .input-group { margin-bottom: 14px; }
	body.rb2026 #content .btn, body.rb2026 #content input[type="submit"], body.rb2026 #content button[type="submit"] { min-height: 46px; }
	body.rb2026 #content form .btn-custom, body.rb2026 #content form .btn-custom-2, body.rb2026 #content form input[type="submit"] { width: 100%; }

	/* Ficha de producto */
	body.rb2026 .item-price-container-detail { text-align: left !important; float: none !important; margin: 14px 0 4px; }
	body.rb2026 .item-price-container-detail .item-price { font-size: 28px; }
	body.rb2026 .product-name { font-size: 24px !important; }
	body.rb2026 .product-add { display: flex; flex-wrap: wrap; gap: 10px; }
	body.rb2026 #content .nav-tabs > li > a { padding: 12px 14px; }

	/* Carrito en tarjetas */
	body.rb2026 #content .table-responsive { overflow: visible; border: 0; }
	body.rb2026 .cart-table, body.rb2026 .cart-table tbody { display: block; width: 100%; background: transparent; box-shadow: none; }
	body.rb2026 .cart-table thead { display: none; }
	body.rb2026 .cart-table tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; background: #fff; border-radius: var(--rb-r); box-shadow: var(--rb-shadow); padding: 16px; margin-bottom: 12px; }
	body.rb2026 .cart-table td { display: block; border: 0 !important; padding: 0 !important; width: auto !important; }
	body.rb2026 .cart-table td.item-name-col { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding-right: 30px !important; }
	body.rb2026 .cart-table td.item-name-col figure { flex: none; width: 72px; height: 72px; margin: 0; background: #f6f5f3; border-radius: 10px; display: grid; place-items: center; }
	body.rb2026 .cart-table td.item-name-col img { max-width: 64px; max-height: 64px; mix-blend-mode: multiply; }
	body.rb2026 .cart-table .item-name { font: 600 14px/1.35 var(--rb-body) !important; }
	body.rb2026 .cart-table td.item-price-col::before, body.rb2026 .cart-table td:nth-child(3)::before, body.rb2026 .cart-table td.item-total-col::before { display: block; font: 600 11px var(--rb-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-muted); margin-bottom: 4px; }
	body.rb2026 .cart-table td.item-price-col::before { content: "Precio"; }
	body.rb2026 .cart-table td:nth-child(3)::before { content: "Cantidad"; }
	body.rb2026 .cart-table td.item-total-col::before { content: "Subtotal"; }
	body.rb2026 .cart-table td.item-total-col { grid-column: 1 / -1; padding-top: 10px !important; border-top: 1px solid var(--rb-line) !important; }
	body.rb2026 .cart-table td.item-total-col .item-price-special { font: 800 20px var(--rb-display); color: var(--rb-ink); }
	body.rb2026 .cart-table td:nth-child(3) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
	body.rb2026 .cart-table td:nth-child(3)::before { flex-basis: 100%; }
	body.rb2026 .cart-table .close-button { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; }
	body.rb2026 #content table:not(.cart-table) { width: 100% !important; }

	/* Franja de confianza 2×2 compacta */
	.rb-trust-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
	.rb-trust-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
	.rb-trust-item svg { width: 38px; height: 38px; padding: 9px; }
	.rb-trust-item strong { font-size: 13.5px; }
	.rb-trust-item span { font-size: 12px; }

	/* Pie en dos columnas */
	.rb-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px; padding-top: 40px; }
	.rb-footer-brand, .rb-footer-grid > div:last-child { grid-column: 1 / -1; }
	.rb-footer { border-radius: 22px 22px 0 0; }

	/* Botón de tarjetas en búsqueda y listados */
	body.rb2026 .icon-cart-text-b { white-space: normal; font-size: 13px; line-height: 1.25; }
	body.rb2026 #content .item .item-add-btn { padding: 10px 8px; }
	body.rb2026 #content .item .item-name { font-size: 13.5px; margin: 10px 10px 0; }
	body.rb2026 #content .item .item-meta-container, body.rb2026 #content .item .item-action { padding-left: 10px; padding-right: 10px; }
	body.rb2026 #content .item .item-price { font-size: 17px; }
}
@media (max-width: 380px) {
	.rb-topbar-tools > a:last-child { display: none; }
}
@media (max-width: 767px) {
	body.rb2026 .cart-table td, body.rb2026 .cart-table td * { text-align: left !important; }
	body.rb2026 .cart-table td .custom-quantity-input { float: none !important; }
	body.rb2026 #content .table-responsive, body.rb2026 #content .table-responsive > .table.cart-table { box-shadow: none !important; background: transparent !important; margin-bottom: 0; }
}
body.rb2026 .item-price-container-detail { width: auto !important; text-align: left !important; }
body.rb2026 .item-price-container-detail .item-price { float: none !important; display: inline-block !important; font: 800 30px/1.1 var(--rb-display) !important; color: var(--rb-red) !important; }
body.rb2026 .item-price-container-detail .sub-price { font-size: 14px !important; vertical-align: middle; }
@media (max-width: 767px) { body.rb2026 #category-header > .row { margin-left: 0; margin-right: 0; } }
