:root{
  --ferre-blue:#0b2540;
  --ferre-blue-2:#16344f;
  --ferre-yellow:#ffd400;
  --ferre-orange:#eb5b27;
  --ferre-green:#1d8a58;
  --ferre-sky:#dff1ff;
  --ferre-bg:#f5f5f5;
  --ferre-line:#e5e7eb;
  --ferre-ink:#1f2937;
  --ferre-muted:#6b7280;
  --ferre-shadow:0 2px 8px rgba(0,0,0,.08);
  --ferre-shadow-lg:0 18px 34px rgba(0,0,0,.12);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Roboto,Arial,sans-serif;background:var(--ferre-bg);color:var(--ferre-ink);padding-top:116px}a{text-decoration:none}img{max-width:100%}

.main-navbar{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);transition:transform .25s ease, box-shadow .25s ease}.main-navbar.navbar-shrink{box-shadow:0 10px 28px rgba(11,37,64,.12)}
.topbar-primary{background:#fff;border-bottom:1px solid #eef2f6}.topbar-secondary{background:#fff}
.topbar-grid{display:grid;grid-template-columns:auto minmax(300px,1fr) auto;gap:16px;align-items:center;padding:10px 0}.brand-group{display:flex;align-items:center;gap:16px}.brand-sodimac{display:inline-flex;align-items:center;gap:10px;color:#d61f26;font-weight:800;font-size:1.85rem;line-height:1}.brand-word{letter-spacing:-.03em}.brand-house{position:relative;width:28px;height:22px;display:inline-block}.brand-house .roof{position:absolute;top:0;width:16px;height:10px;transform:skew(-28deg)}.brand-house .roof-a{left:0;background:#f7c400}.brand-house .roof-b{right:0;background:#0050a4}.brand-house .body-a{position:absolute;left:2px;bottom:0;width:11px;height:10px;background:#eb2b2f}.brand-house .body-b{position:absolute;right:2px;bottom:0;width:11px;height:10px;background:#111827}.menu-trigger{border:1px solid #cfd7df;background:#fff;border-radius:6px;padding:.7rem .95rem;display:flex;align-items:center;gap:8px;font-weight:500;color:var(--ferre-blue)}.menu-trigger:hover{background:#f9fbfc}
.navbar-search{position:relative;display:flex;align-items:center}.navbar-search .form-control{height:48px;padding-left:18px;padding-right:54px;border:1px solid #bcc8d6;border-radius:6px;font-size:1.05rem}.navbar-search .form-control:focus{box-shadow:0 0 0 .22rem rgba(11,37,64,.08);border-color:#8aa0b6}.search-btn{position:absolute;right:0;top:0;bottom:0;width:50px;border:0;border-radius:0 6px 6px 0;background:var(--ferre-blue);color:#fff}.topbar-actions{display:flex;align-items:center;gap:12px}.action-link{border:0;background:transparent;display:inline-flex;align-items:center;gap:10px;color:var(--ferre-blue);padding:6px 8px}.action-link span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05}.action-link small{font-size:.82rem;color:var(--ferre-muted)}.action-link strong{font-size:1rem;font-weight:700;color:var(--ferre-blue)}.action-link i{font-size:1.35rem}.action-icon{width:40px;height:40px;border-radius:8px;border:1px solid #dce4eb;display:inline-flex;align-items:center;justify-content:center;color:var(--ferre-blue);background:#fff}.action-icon:hover{background:#f6f8fa}.cart-button{background:#fff;border:1px solid #d7dfe7;border-radius:8px;padding:10px 14px;position:relative}.cart-badge{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--ferre-blue);color:#fff;font-size:.75rem;font-weight:700;border:2px solid #fff}
.secondary-links{display:flex;align-items:center;gap:28px;padding:10px 0 12px;overflow:auto;white-space:nowrap}.secondary-links a{color:#304760;font-size:.96rem}.secondary-links a i{margin-right:8px;color:#66798e}.secondary-links a:hover{color:#0d3254}

.categories-offcanvas{width:380px!important}.categories-menu{padding:22px}.categories-menu h5{font-size:2rem;margin-bottom:16px}.category-menu-list{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 240px);overflow:auto;padding-right:6px}.category-menu-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:20px;color:#1f3351;background:#fff}.category-menu-item:hover{background:#edf7ff}.category-menu-item small{display:block;color:#7a8697}.category-menu-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;color:#233c5f}.offcanvas-promo{margin:20px;border-radius:18px;background:linear-gradient(135deg,#0b2540,#173854);color:#fff;padding:18px}

.hero-store{background:#ddd}.home-shortcuts{background:#fff;border-top:1px solid #e9edf3;border-bottom:1px solid #e9edf3}.shortcut-track{display:flex;gap:18px;padding:12px 0;overflow:auto;white-space:nowrap}.shortcut-pill{display:inline-flex;align-items:center;gap:12px;padding:12px 22px;border-radius:999px;background:#dff1ff;color:#0380d8;font-weight:700}.shortcut-pill i{font-size:1.05rem}
.hero-store-slide{min-height:420px;background-size:cover;background-position:center;position:relative}.hero-store-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.3),rgba(0,0,0,.08))}.hero-copy{position:relative;color:#fff;padding:52px 0 80px}.promo-badge{display:inline-flex;background:#d9f55f;color:#152700;border-radius:999px;padding:7px 14px;font-size:.9rem;font-weight:700}.hero-copy h1{font-size:clamp(2.4rem,4vw,4.6rem);line-height:.95;font-weight:800;letter-spacing:-.04em;max-width:560px;margin:16px 0}.hero-copy p{font-size:1.08rem;max-width:520px;color:rgba(255,255,255,.86)}.hero-labels{display:flex;gap:10px;flex-wrap:wrap}.hero-labels span{background:#59b52c;color:#fff;border-radius:6px;padding:8px 12px;font-weight:700;font-size:.92rem}.hero-dots{bottom:10px}.hero-dots button{width:10px!important;height:10px!important;border-radius:50%!important}

.trust-strip{margin-top:-22px;position:relative;z-index:4}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-radius:18px;box-shadow:var(--ferre-shadow-lg);overflow:hidden}.trust-item{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:22px 20px;border-right:1px solid #eef2f5}.trust-item:last-child{border-right:0}.trust-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#e6f4ec;color:var(--ferre-green);font-size:1.3rem}.trust-icon.orange{background:#ffefe8;color:var(--ferre-orange)}.trust-item strong{display:block;font-size:1.1rem}.trust-item small{display:block;color:var(--ferre-muted);font-size:.95rem}.trust-metric{min-width:98px;padding:14px 12px;background:#f6f8f7;border-radius:12px;font-size:2rem;font-weight:800;color:#2f7d54;text-align:center;line-height:.9}.trust-metric.accent{color:var(--ferre-orange)}.trust-metric span{display:block;margin-top:8px;font-size:.85rem;line-height:1.1;color:#6c7a88;font-weight:400}

.dark-offer-board{padding:28px 0}.offer-board-wrap{display:grid;grid-template-columns:1.1fr repeat(3,.9fr);gap:18px;background:#171717;border-radius:0;overflow:hidden;padding:14px}.offer-board-intro,.offer-mini-card{border-radius:24px;background:linear-gradient(180deg,#111,#1a1a1a);overflow:hidden;position:relative}.offer-board-intro{padding:42px 34px;color:#fff;display:flex;flex-direction:column;justify-content:center;min-height:320px}.blackeasy{font-size:2.4rem;font-weight:800;color:#ffd400;display:block}.offer-board-intro h2{font-size:2.2rem;margin:6px 0 14px;color:#ffd400;font-weight:800}.offer-board-intro p{color:rgba(255,255,255,.86);font-size:1.1rem;max-width:360px}.discount-text{margin-top:auto;color:#fff;font-size:1.5rem}.discount-text strong{display:block;font-size:6rem;line-height:.9;color:#ffd400;letter-spacing:-.06em}
.offer-mini-card{display:flex;flex-direction:column;min-height:320px}.offer-mini-image{flex:1;background-size:cover;background-position:center;position:relative}.offer-mini-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.68))}.offer-mini-body{position:absolute;left:18px;right:18px;bottom:18px;color:#fff;z-index:2}.offer-mini-tag{display:inline-flex;border-radius:999px;background:rgba(255,255,255,.18);padding:6px 10px;font-size:.8rem;margin-bottom:10px}.offer-mini-body h3{font-size:1.35rem;line-height:1.08;margin-bottom:6px}.offer-mini-price{font-size:2rem;font-weight:800;color:#ffd400} .offer-mini-body small{display:block;color:#f3f4f6}

.section-head{margin-bottom:16px}.section-title{font-size:1.95rem;font-weight:800;letter-spacing:-.03em;margin:0}.section-link{color:#d14d24;font-weight:700}.eyebrow-title{display:block;font-size:.75rem;color:#6b7280;letter-spacing:.08em;font-weight:700}
.product-carousel-wrap{position:relative}.product-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:calc(16.666% - 12px);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 12px}.product-carousel::-webkit-scrollbar{display:none}.product-carousel>*{scroll-snap-align:start}
.carousel-arrow{position:absolute;top:42%;z-index:3;width:44px;height:44px;border:0;border-radius:10px;background:#fff;color:#283b52;box-shadow:0 6px 18px rgba(0,0,0,.14)}.carousel-arrow.prev{left:-12px}.carousel-arrow.next{right:-12px}
.product-card{background:#fff;border:1px solid #e6ebf1;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.05);transition:.2s ease;height:100%}.product-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.08)}.product-img-wrap{position:relative;aspect-ratio:1/1;background:#fff;padding:14px;display:flex;align-items:center;justify-content:center}.product-img-wrap img{width:100%;height:100%;object-fit:contain}.wishlist-btn{position:absolute;right:10px;top:10px;width:30px;height:30px;border:1px solid #e5e7eb;background:#fff;border-radius:50%;display:grid;place-items:center;color:#7c8794}.stock-chip{position:absolute;left:12px;top:12px;background:#eff8ef;color:#3f7d46;border-radius:999px;padding:4px 8px;font-size:.73rem;font-weight:700}.product-card .card-body{padding:16px 14px 18px}.product-card h3{font-size:1rem;line-height:1.32;min-height:2.7em;margin-bottom:6px;font-weight:500}.rating-row{display:flex;gap:6px;align-items:center;margin-bottom:6px}.stars{color:#f5a623;letter-spacing:1px;font-size:.82rem}.old-price{color:#8e949d;text-decoration:line-through;font-size:.9rem;margin-bottom:4px}.price{color:var(--ferre-orange);font-weight:800;font-size:1.85rem;letter-spacing:-.03em}.card-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.btn{border-radius:8px;font-weight:600}.btn-ferre{background:var(--ferre-orange);border-color:var(--ferre-orange);color:#fff}.btn-ferre:hover,.btn-ferre:focus{background:#d24d1d;border-color:#d24d1d;color:#fff}.btn-ferre-outline{border:1px solid var(--ferre-orange);color:var(--ferre-orange);background:#fff}.btn-ferre-outline:hover{background:var(--ferre-orange);color:#fff}.btn-warning{font-weight:700}
.section-card,.checkout-card,.account-card,.panel-like{background:#fff;border:1px solid rgba(0,0,0,.05);border-radius:16px;box-shadow:var(--ferre-shadow)}
.category-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid var(--ferre-line);border-radius:999px;color:#304860;box-shadow:0 1px 3px rgba(0,0,0,.04)}.category-pill:hover,.category-pill.active{background:#eaf5ff;border-color:#cbe2f5;color:#0b5fa8}
.page-hero{background:linear-gradient(180deg,#f7fafc,#fff);border-bottom:1px solid #e6edf3;padding:36px 0 28px}.breadcrumb{font-size:.9rem}
.promo-panel,.cta-enterprise{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:32px;border-radius:22px;background:linear-gradient(135deg,#0d2238,#132f49);color:#fff;box-shadow:var(--ferre-shadow-lg)}.cta-enterprise h2{margin:0 0 10px;font-size:2rem}
.footer-support-card{padding:16px;border:1px solid #ebeff3;border-radius:14px;background:#fff}.footer-support-card i{font-size:1.5rem;color:#25d366}.site-footer{background:#fff;border-top:1px solid #e6ebf1}.site-footer a{display:block;color:#526170;margin-bottom:8px}.site-footer a:hover{color:#233d5a}
.nav-account .dropdown-menu,.nav-cart .dropdown-menu{border-radius:16px}.cart-menu{width:min(390px,calc(100vw - 24px));overflow:hidden}.cart-dropdown-items{max-height:330px;overflow:auto}.cart-mini{display:grid;grid-template-columns:54px 1fr auto;gap:10px;padding:12px 14px;border-bottom:1px solid #eef2f5}.cart-mini img{width:54px;height:54px;border-radius:10px;object-fit:cover;background:#eef2f7}.cart-mini h6{font-size:.84rem;margin:0 0 2px}.cart-mini small{color:var(--ferre-muted)}
.floating-actions{position:fixed;right:16px;bottom:92px;z-index:1040;display:flex;flex-direction:column;gap:9px;align-items:flex-end}.floating-btn{display:flex;align-items:center;gap:10px;color:#fff;border-radius:999px;padding:11px 14px;box-shadow:0 6px 18px rgba(0,0,0,.2);transition:.2s}.floating-btn.quote{background:var(--ferre-blue)}.floating-btn.whatsapp{background:#25d366}.floating-btn:hover{color:#fff;transform:translateX(-3px)}.scroll-top{position:fixed;right:22px;bottom:24px;width:48px;height:48px;border:0;border-radius:50%;background:#111827;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.24);z-index:1040;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s}.scroll-top.show{opacity:1;pointer-events:auto;transform:none}
.toast{border-radius:14px}.cart-toast-wrap{z-index:1080}
.empty-state{padding:48px 20px;text-align:center}.empty-state i{font-size:3rem;color:#b7c1cf}.table-premium{background:#fff;border-radius:13px;overflow:hidden;box-shadow:var(--ferre-shadow)}.table-premium .table{margin:0}
.auth-shell{min-height:calc(100vh - 116px);display:grid;place-items:center;padding:30px 12px}.auth-card{width:min(460px,100%);background:#fff;border-radius:18px;box-shadow:0 14px 40px rgba(26,45,74,.12);padding:30px}.auth-brand{width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,#0d2238,#2b5a86);display:grid;place-items:center;color:#fff;font-size:1.4rem;margin:0 auto 16px}.mobile-bottom-cart{display:none}.order-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;background:#eef2f7;color:#4d5968;font-size:.8rem}.order-status.paid,.order-status.delivered{background:#e8f7ee;color:#1c7a41}.order-status.pending{background:#fff4df;color:#9a5c00}.timeline{position:relative;padding-left:26px}.timeline:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:2px;background:#dfe5ec}.timeline-item{position:relative;padding-bottom:20px}.timeline-item:before{content:"";position:absolute;left:-23px;top:4px;width:12px;height:12px;border-radius:50%;background:#c9d1dc;border:2px solid #fff;box-shadow:0 0 0 2px #dfe5ec}.timeline-item.active:before{background:var(--ferre-orange);box-shadow:0 0 0 2px #ffd8c9}
.form-control,.form-select{border-color:#d8dee6;border-radius:10px;min-height:44px}.form-control:focus,.form-select:focus{border-color:#8fb6d5;box-shadow:0 0 0 .2rem rgba(11,37,64,.10)}

@media(max-width:1199.98px){.product-carousel{grid-auto-columns:calc(25% - 12px)}.offer-board-wrap{grid-template-columns:1fr 1fr}.offer-board-intro{grid-column:1/-1}.trust-grid{grid-template-columns:1fr}}
@media(max-width:991.98px){body{padding-top:104px}.topbar-grid{grid-template-columns:1fr;gap:10px}.brand-group,.topbar-actions{justify-content:space-between}.topbar-actions{width:100%}.navbar-search{order:3}.secondary-links{gap:18px}.hero-store-slide{min-height:430px}.hero-copy{padding:40px 0 74px}.trust-grid{border-radius:14px}.trust-item{grid-template-columns:auto 1fr;gap:14px}.trust-metric{grid-column:2}.product-carousel{grid-auto-columns:calc(33.333% - 12px)}.promo-panel,.cta-enterprise{flex-direction:column;align-items:flex-start}.auth-shell{min-height:calc(100vh - 104px)}}
@media(max-width:767.98px){body{padding-top:100px}.brand-sodimac{font-size:1.55rem}.shortcut-pill{padding:10px 16px}.product-carousel{grid-auto-columns:calc(50% - 10px)}.carousel-arrow.prev{left:-6px}.carousel-arrow.next{right:-6px}.offer-board-wrap{grid-template-columns:1fr}.offer-board-intro,.offer-mini-card{min-height:280px}.trust-item{padding:18px 16px;border-right:0;border-bottom:1px solid #eef2f5}.trust-item:last-child{border-bottom:0}.trust-metric{min-width:88px}.cta-enterprise h2{font-size:1.6rem}}
@media(max-width:575.98px){body{padding-top:96px}.menu-trigger span,.action-link span strong,.action-link span small,.cart-button strong{display:none}.action-link,.cart-button{padding:8px}.secondary-links{font-size:.9rem}.hero-copy h1{font-size:2.35rem}.hero-copy p{font-size:1rem}.discount-text strong{font-size:4.2rem}.section-title{font-size:1.45rem}.product-carousel{grid-auto-columns:100%}.floating-btn span{display:none}.floating-btn{width:48px;height:48px;justify-content:center;padding:0}.site-footer{padding-bottom:70px}.mobile-bottom-cart{display:block;position:fixed;left:12px;right:12px;bottom:12px;z-index:1038}.categories-offcanvas{width:92vw!important}.topbar-actions{gap:8px}.topbar-primary .brand-group{gap:8px}}

/* Corrección de tarjetas del catálogo y compatibilidad con tarjetas anteriores */
.product-card,.product-card *{min-width:0}
.product-badge,.stock-badge{position:absolute;z-index:2;border-radius:999px;padding:5px 9px;font-size:.73rem;font-weight:700;line-height:1}
.product-badge{left:12px;bottom:12px;background:rgba(255,255,255,.94);color:#475569;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.stock-badge{left:12px;top:12px;background:#eff8ef;color:#34743e}
.catalog-category-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}.catalog-category-scroll::-webkit-scrollbar{display:none}
.catalog-grid .product-card{display:flex;flex-direction:column;height:100%;overflow:hidden}
.catalog-grid .product-img-wrap{width:100%;aspect-ratio:1/1;padding:14px;overflow:hidden;background:#fff}
.catalog-grid .product-img-wrap img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.catalog-grid .card-body{display:flex;flex-direction:column;flex:1}
.product-category{display:inline-flex;width:max-content;max-width:100%;align-items:center;border-radius:999px;background:#edf6ff;color:#165c94;padding:5px 9px;font-size:.75rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card h3{overflow:hidden}.product-card h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#172033;text-decoration:none;word-break:normal;overflow-wrap:anywhere}.product-card h3 a:hover{color:#d64e1f}
.product-brand{color:#6b7280;font-size:.88rem;line-height:1.25;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-unit{color:#6b7280;display:block;margin-top:2px}
.catalog-grid .price{font-size:1.65rem}
.catalog-grid .card-actions{margin-top:auto;padding-top:12px}
.product-view-link{color:#0b63ce;font-weight:700;font-size:.92rem}.product-view-link:hover{color:#074da3}
.catalog-grid .btn-ferre{white-space:nowrap;padding:.55rem .75rem}
.product-detail-card{overflow:hidden}.product-detail-image{width:100%;aspect-ratio:4/3;border-radius:18px;background:#fff;border:1px solid #e8edf2;padding:24px;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-detail-image img{width:100%;height:100%;object-fit:contain;object-position:center}.product-detail-title{overflow-wrap:anywhere}.product-detail-brand{color:#6b7280}.product-qty{width:92px;flex:0 0 92px}.text-ferre-orange{color:var(--ferre-orange)!important}.product-benefits i{color:var(--ferre-orange)}
@media(max-width:575.98px){.catalog-grid .product-img-wrap{aspect-ratio:4/3}.catalog-grid .product-card h3{min-height:auto}.catalog-grid .price{font-size:1.55rem}.catalog-grid .card-actions{align-items:stretch}.catalog-grid .product-view-link{display:flex;align-items:center}.catalog-grid .btn-ferre{padding:.65rem .9rem}.product-detail-image{aspect-ratio:1/1;padding:16px}.product-qty{width:78px;flex-basis:78px}}
