/* ============================================================
   HOME PAGE — carmela.uy / home.css
   Premium redesign v2 — 2026
   Sections: Hero · Trust · Categories · Tabs/Products · Projects · WhatsApp · Brands · Banners
   ============================================================ */

:root {
  --c-orange:      #e8530e;
  --c-orange-h:    #d14a0b;
  --c-orange-glow: rgba(232, 83, 14, 0.25);
  --c-orange-soft: rgba(232, 83, 14, 0.08);
  --c-navy:        #1e3a5f;
  --c-dark:        #0f172a;
  --c-white:       #ffffff;
  --c-surface:     #f8fafc;
  --c-surface-alt: #f1f5f9;
  --c-border:      #e2e8f0;
  --c-border-light:#eef2f7;
  --c-text:        #1e293b;
  --c-text-sec:    #475569;
  --c-muted:       #64748b;
  --max-w:         1140px;
  --font-ui:       roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  Boldy, 'Arial Black', sans-serif;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:     0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg:     0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-xl:     0 24px 60px rgba(15, 23, 42, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow:   0 8px 32px var(--c-orange-glow);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scroll-reveal base ── */
.home-block {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.home-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero always visible (above fold) */
.home-block:first-child {
  opacity: 1;
  transform: none;
}

/* ── Staggered grid children ── */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stagger-grid.is-staggered > * { opacity: 1; transform: none; }

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
  width: 100%;
  height: 460px;
  overflow: hidden;
  position: relative;
}

.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transition: transform 12s ease-out;
  z-index: 0;
  will-change: transform;
}

.hero-slider .swiper-slide-active .slide-media {
  transform: scale(1.07);
}

.slide-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-mask-blue {
  background: linear-gradient(
    102deg,
    rgba(8, 22, 58, 0.97)  0%,
    rgba(8, 22, 58, 0.92)  25%,
    rgba(8, 22, 58, 0.50)  55%,
    transparent             82%
  );
}

.slide-mask-warm {
  background: linear-gradient(
    102deg,
    rgba(38, 12, 4, 0.97)  0%,
    rgba(38, 12, 4, 0.90)  25%,
    rgba(38, 12, 4, 0.42)  55%,
    transparent             82%
  );
}

.slide-mask-dark {
  background: linear-gradient(
    102deg,
    rgba(4, 8, 18, 0.98)   0%,
    rgba(4, 8, 18, 0.94)   25%,
    rgba(4, 8, 18, 0.52)   55%,
    transparent             82%
  );
}

/* ── Floating particles on hero ── */
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,0.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.18) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 45%, rgba(255,255,255,0.1) 50%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-12px, -8px); }
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 7%;
  gap: 16px;
}

.slide-layout {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.slide-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
}

.slide-copy .slide-heading,
.slide-copy .slide-body {
  max-width: 100%;
}

.slide-layout.has-products .slide-copy {
  max-width: 52%;
}

.slide-products {
  width: min(420px, 40%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.slide-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px;
  gap: 8px;
  min-height: 100px;
  box-shadow: 0 12px 32px rgba(3, 9, 20, 0.28);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}

.slide-product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 44px rgba(3, 9, 20, 0.38);
}

.slide-product-img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.slide-product-name {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.3;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.slide-product-price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--c-orange);
  line-height: 1;
}

.slide-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--c-orange);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
}

.slide-heading {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: 0;
  max-width: 46%;
  letter-spacing: -2px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.slide-body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 40%;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background-color: var(--c-orange);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(232, 83, 14, 0.45);
  margin-top: 4px;
  transition: background-color 0.2s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hero CTA */
.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.slide-btn:hover::before { left: 120%; }

.slide-btn::after {
  content: '\2192';
  font-size: 16px;
  transition: transform 0.25s var(--ease-spring);
  position: relative;
}

.slide-btn:hover {
  background-color: var(--c-orange-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(232, 83, 14, 0.55);
}

.slide-btn:hover::after { transform: translateX(5px); }

.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.95) !important;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 48px !important;
  height: 48px !important;
  transition: background-color 0.2s, transform 0.25s var(--ease-spring);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: 800;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(232, 83, 14, 0.9);
  transform: scale(1.12);
}

.swiper-pagination { bottom: 20px !important; }

/* ============================================================
   HERO DESIGN VARIANTS
   ============================================================ */

.hero-slider.hero-design-industrial .slide-badge {
  background: #f97316;
}
.hero-slider.hero-design-industrial .slide-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.hero-slider.hero-design-industrial .slide-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.hero-slider.hero-design-catalog .slide-mask-blue,
.hero-slider.hero-design-catalog .slide-mask-warm,
.hero-slider.hero-design-catalog .slide-mask-dark {
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.80) 0%,
    rgba(15, 23, 42, 0.58) 38%,
    rgba(15, 23, 42, 0.20) 70%,
    transparent 88%
  );
}
.hero-slider.hero-design-catalog .slide-heading {
  font-size: 46px;
  letter-spacing: -1px;
}
.hero-slider.hero-design-catalog .slide-body {
  color: rgba(255, 255, 255, 0.9);
}
.hero-slider.hero-design-catalog .slide-badge {
  background: #334155;
}
.hero-slider.hero-design-catalog .slide-btn {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.32);
}
.hero-slider.hero-design-catalog .slide-btn:hover {
  background: #e2e8f0;
}

.hero-slider.hero-design-neon .slide-mask-blue,
.hero-slider.hero-design-neon .slide-mask-warm,
.hero-slider.hero-design-neon .slide-mask-dark {
  background: linear-gradient(
    112deg,
    rgba(37, 16, 88, 0.95) 0%,
    rgba(55, 48, 163, 0.85) 35%,
    rgba(147, 51, 234, 0.55) 65%,
    rgba(0, 0, 0, 0.12) 88%
  );
}
.hero-slider.hero-design-neon .slide-heading {
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.38), 0 0 50px rgba(99, 102, 241, 0.32);
}
.hero-slider.hero-design-neon .slide-badge {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}
.hero-slider.hero-design-neon .slide-btn {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.45);
}
.hero-slider.hero-design-neon .slide-btn:hover {
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
}

.hero-slider.hero-design-elegant .slide-mask-blue,
.hero-slider.hero-design-elegant .slide-mask-warm,
.hero-slider.hero-design-elegant .slide-mask-dark {
  background: linear-gradient(
    108deg,
    rgba(2, 6, 23, 0.96) 0%,
    rgba(17, 24, 39, 0.9) 42%,
    rgba(31, 41, 55, 0.55) 70%,
    transparent 90%
  );
}
.hero-slider.hero-design-elegant .slide-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-slider.hero-design-elegant .slide-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.hero-slider.hero-design-elegant .slide-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hero-slider.hero-design-elegant .slide-product-card {
  background: rgba(255, 255, 255, 0.88);
}

.hero-slider.hero-design-sunset .slide-mask-blue,
.hero-slider.hero-design-sunset .slide-mask-warm,
.hero-slider.hero-design-sunset .slide-mask-dark {
  background: linear-gradient(
    104deg,
    rgba(124, 45, 18, 0.95) 0%,
    rgba(194, 65, 12, 0.84) 32%,
    rgba(234, 88, 12, 0.45) 62%,
    transparent 86%
  );
}
.hero-slider.hero-design-sunset .slide-badge {
  background: #facc15;
  color: #7c2d12;
}
.hero-slider.hero-design-sunset .slide-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}
.hero-slider.hero-design-sunset .slide-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.hero-slider.hero-design-glass .slide-mask-blue,
.hero-slider.hero-design-glass .slide-mask-warm,
.hero-slider.hero-design-glass .slide-mask-dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.36), transparent 42%),
    linear-gradient(108deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(30, 41, 59, 0.28) 78%, transparent 90%);
}
.hero-slider.hero-design-glass .slide-badge {
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.hero-slider.hero-design-glass .slide-btn {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(6px);
}
.hero-slider.hero-design-glass .slide-btn:hover {
  background: rgba(14, 116, 144, 0.45);
}
.hero-slider.hero-design-glass .slide-product-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width 0.3s var(--ease-out), background 0.3s, border-radius 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--c-orange);
  width: 28px;
  border-radius: 4px;
}

/* ============================================================
   TRUST BADGES — glassmorphic elevated bar
   ============================================================ */

.home-trust-section {
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-surface) 100%);
  border-bottom: 1px solid var(--c-border-light);
  position: relative;
  overflow: hidden;
}

/* Soft decorative glow behind trust bar */
.home-trust-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--c-orange-soft) 0%, transparent 70%);
  pointer-events: none;
}

.home-trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-sizing: border-box;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  position: relative;
  transition: background-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  cursor: default;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.4s var(--ease-spring);
}

.trust-badge:hover .trust-icon {
  transform: scale(1.15) rotate(-3deg);
}

.trust-icon-truck {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

.trust-icon-card {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

.trust-icon-shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.trust-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 2.22h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 9.91a16 16 0 0 0 6.18 6.18l.95-.95a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.trust-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-info strong {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.trust-info span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.35;
}

/* ============================================================
   SHARED SECTION WRAPPER
   ============================================================ */

.home-section {
  padding: 60px 0;
  background-color: var(--c-white);
  position: relative;
}

.home-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--c-orange);
  line-height: 1.15;
  letter-spacing: -0.4px;
  position: relative;
}

/* Animated gradient accent on section title border */
.home-section-title::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-orange) 0%, rgba(232,83,14,0.3) 100%);
  border-radius: 3px;
  z-index: 1;
}

.home-section-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--c-muted);
  margin: 8px 0 0 20px;
  line-height: 1.5;
}

.home-section-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-orange);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--c-orange-soft);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.home-section-link::after {
  content: '\2192';
  transition: transform 0.25s var(--ease-spring);
  font-size: 14px;
}

.home-section-link:hover {
  background: var(--c-orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--c-orange-glow);
}

.home-section-link:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */

.home-cats-section {
  background: var(--c-surface);
  padding: 60px 0;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
  position: relative;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: var(--shadow-md);
}

.cat-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-out);
  z-index: 0;
}

.cat-card:hover .cat-card-img { transform: scale(1.1); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  transition: background 0.4s;
}

.cat-card:hover .cat-card-overlay {
  background: linear-gradient(
    to top,
    rgba(232, 83, 14, 0.75) 0%,
    rgba(232, 83, 14, 0.10) 50%,
    transparent              100%
  );
}

.cat-card-name {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  transition: transform 0.35s var(--ease-out);
}

.cat-card:hover .cat-card-name {
  transform: translateY(-4px);
}

.cat-gradient {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cat-gradient .cat-card-name {
  position: static;
  padding: 0;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-size: 15px;
}

.cat-herramientas { background: linear-gradient(145deg, #1a3a6e 0%, #2d62b0 100%); }
.cat-pinturas     { background: linear-gradient(145deg, #7c2f08 0%, #c0510f 100%); }
.cat-hogar        { background: linear-gradient(145deg, #044e3b 0%, #0a8a6a 100%); }
.cat-seguridad    { background: linear-gradient(145deg, #6b1010 0%, #b91c1c 100%); }
.cat-marcas       { background: linear-gradient(145deg, #1e1255 0%, #4338ca 100%); }

.cat-card-icon {
  width: 58px;
  height: 58px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.92;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-spring);
}

.cat-card:hover .cat-card-icon { transform: scale(1.18) rotate(5deg); }

.cat-icon-tools {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.cat-icon-paint {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
}

.cat-icon-home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.cat-icon-security {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.cat-icon-award {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89L17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E");
}

/* ============================================================
   TABBED PRODUCTS
   ============================================================ */

.home-tabs-section { background-color: var(--c-white); }

.tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 36px;
  position: relative;
}

.tabs-nav {
  display: flex;
  position: relative;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-muted);
  padding: 0 8px 14px;
  margin-right: 32px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
  position: relative;
}

.tab-btn:last-child { margin-right: 16px; }
.tab-btn:hover { color: var(--c-text); }

.tab-btn.active {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: tabFade 0.4s var(--ease-out);
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Product card grid ── */

.pcard-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pcard {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s;
  position: relative;
}

/* Shimmer sweep effect on product card hover */
.pcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
  transition: left 0.6s var(--ease-out);
}

.pcard:hover::before {
  left: 130%;
}

.pcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(232, 83, 14, 0.25);
}

.pcard-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pcard-img-wrap {
  position: relative;
  background: var(--c-surface);
  height: 195px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Quick-view overlay on image hover */
.pcard-img-wrap::after {
  content: 'Ver \2192';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.pcard:hover .pcard-img-wrap::after {
  opacity: 1;
}

.pcard-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  transition: transform 0.5s var(--ease-out);
}

.pcard:hover .pcard-img { transform: scale(1.08); }

.pcard-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
  z-index: 4;
}

.pcard-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  color: #fff;
  line-height: 1;
  position: static;
}

.pcard-badge-sale           { background-color: var(--c-orange); }
.pcard-badge-pct            { background-color: #16a34a; }
.pcard-badge-nuevo          { background-color: #0ea5e9; }
.pcard-badge-destacado      { background-color: #7c3aed; }
.pcard-badge-online_payment { background-color: #0284c7; }
.pcard-badge-points         { background-color: #7c3aed; }
.pcard-badge-sin-stock      { background-color: #dc2626; }
.pcard-badge-consultar      { background-color: #d97706; }
.pcard-badge-retiro,
.pcard-badge-envio          { background-color: #475569; }

.pcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.pcard-name {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pcard-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pcard-price-old {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--c-muted);
  text-decoration: line-through;
}

.pcard-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-orange);
}

.pcard-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
  background: transparent;
  border: 1.5px solid var(--c-orange);
  border-radius: var(--radius-sm);
  padding: 9px 0;
  text-align: center;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-spring);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* CTA shimmer */
.pcard-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.pcard:hover .pcard-cta {
  background-color: var(--c-orange);
  color: #fff;
  box-shadow: 0 6px 20px var(--c-orange-glow);
  transform: translateY(-1px);
}

.pcard:hover .pcard-cta::before { left: 120%; }

/* ============================================================
   PROJECT INSPIRATION
   ============================================================ */

.home-proyectos-section {
  background: var(--c-surface);
  padding: 60px 0;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
  position: relative;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proyecto-card {
  position: relative;
  height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: var(--shadow-md);
}

.proyecto-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.proyecto-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-out);
  z-index: 0;
}

.proyecto-card:hover .proyecto-img { transform: scale(1.1); }

.proyecto-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.50) 40%,
    rgba(0, 0, 0, 0.08) 100%
  );
  transition: background 0.4s;
}

.proyecto-card:hover .proyecto-overlay {
  background: linear-gradient(
    to top,
    rgba(232, 83, 14, 0.80) 0%,
    rgba(232, 83, 14, 0.20) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.proyecto-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  gap: 8px;
  transition: transform 0.4s var(--ease-out);
}

.proyecto-card:hover .proyecto-content {
  transform: translateY(-6px);
}

.proyecto-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-orange);
  transition: color 0.3s;
}

.proyecto-card:hover .proyecto-cat {
  color: #fff;
}

.proyecto-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.proyecto-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s, transform 0.3s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proyecto-link::after {
  content: '\2192';
  transition: transform 0.3s var(--ease-spring);
}

.proyecto-card:hover .proyecto-link {
  color: #fff;
}

.proyecto-card:hover .proyecto-link::after {
  transform: translateX(4px);
}

/* ============================================================
   WHATSAPP CTA — dramatic dark section
   ============================================================ */

.wa-cta-section {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.wa-cta-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 70% 50%, rgba(37, 211, 102, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 30% 50%, rgba(232, 83, 14, 0.06) 0%, transparent 50%);
  animation: waGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes waGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.1); }
}

/* Geometric accent shapes */
.wa-cta-section::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  border: 2px solid rgba(37, 211, 102, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.wa-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.wa-cta-text-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-cta-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.wa-cta-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}

.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background-color: #25D366;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

/* WhatsApp button shimmer */
.wa-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: waBtnShimmer 3s ease-in-out infinite;
}

@keyframes waBtnShimmer {
  0%, 100% { left: -100%; }
  50%      { left: 130%; }
}

.wa-cta-btn:hover {
  background-color: #1da851;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.45);
}

.wa-cta-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ============================================================
   BRAND STRIP
   ============================================================ */

.home-brands-section {
  background-color: var(--c-surface);
  padding: 42px 0 50px;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}

.home-brands-title {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 30px;
}

.home-brands-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 48px;
}

.home-brands-grid img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.35);
  transition: filter 0.35s, transform 0.35s var(--ease-spring);
}

.home-brands-grid img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.12);
}

/* ============================================================
   PROMO BANNERS — animated glass panels
   ============================================================ */

.home-banners-section {
  background-color: var(--c-white);
  padding: 0;
}

.home-banners-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  box-sizing: border-box;
}

.home-banner {
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.home-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.home-banner-finance { background: linear-gradient(125deg, #0d2550 0%, #1a3a70 55%, #122e60 100%); }
.home-banner-shipping { background: linear-gradient(125deg, #111827 0%, #1f2937 55%, #0f172a 100%); }

.home-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-orange) 0%, rgba(232,83,14,0.3) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Animated floating accent circle */
.home-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 14, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}

.home-banner:hover::after {
  transform: scale(1.3) translate(-8px, -8px);
}

.home-banner-content {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.home-banner-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: rgba(232, 83, 14, 0.12);
  border: 1px solid rgba(232, 83, 14, 0.22);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}

.home-banner:hover .home-banner-icon {
  transform: scale(1.12) rotate(-3deg);
  background-color: rgba(232, 83, 14, 0.2);
}

.home-banner-icon-card {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

.home-banner-icon-truck {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8530e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

.home-banner-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-banner-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.home-banner-text span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* ============================================================
   CAMPAIGN PRODUCT BLOCKS
   ============================================================ */

.home-campaign-block {
  background: var(--c-surface);
  padding: 60px 0;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient accent */
.home-campaign-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-orange), rgba(232,83,14,0.2), transparent);
}

/* Floating accent orb */
.home-campaign-block::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-orange-soft) 0%, transparent 70%);
  pointer-events: none;
}

.home-campaign-block .home-section-title {
  position: relative;
  padding-left: 18px;
}

.home-campaign-block .home-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: var(--c-orange);
  border-radius: 3px;
}

/* ============================================================
   HOMEPAGE POPUP
   ============================================================ */

body.home-popup-open {
  overflow: hidden;
}

.home-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.home-popup-modal {
  position: relative;
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  animation: popupIn .32s var(--ease-out);
}

.home-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s, transform 0.25s var(--ease-spring);
}

.home-popup-close:hover {
  background: var(--c-orange);
  transform: scale(1.12) rotate(90deg);
}

.home-popup-body {
  padding: 0;
}

.home-popup-body img.home-popup-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-popup-image-link {
  display: block;
}

.home-popup-body > *:not(img):not(a) {
  padding: 32px;
  font-family: var(--font-ui);
  color: #0f172a;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */

@media (max-width: 900px) {

  /* Hero */
  .hero-slider { height: 50vw; min-height: 340px; }
  .slide-layout { gap: 16px; }
  .slide-layout.has-products .slide-products { display: none; }
  .slide-layout.has-products .slide-copy { max-width: 78%; }
  .slide-copy .slide-heading { font-size: 5.3vw; letter-spacing: -0.7px; }
  .slide-copy .slide-body { font-size: 2.4vw; }
  .slide-heading { font-size: 5.5vw; max-width: 60%; }
  .slide-body { font-size: 2.8vw; max-width: 56%; }
  .slide-btn { font-size: 2.6vw; padding: 10px 20px; }

  /* Trust: 2 cols */
  .home-trust-inner { grid-template-columns: repeat(2, 1fr); }

  /* Category grid: 4 to 2 cols */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product cards: 4 to 2 cols */
  .pcard-grid { grid-template-columns: repeat(2, 1fr); }

  /* Disable shimmer on touch */
  .pcard::before { display: none; }
  .pcard-img-wrap::after { display: none; }

  /* Tabs header: stack */
  .tabs-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Proyectos: 3 to 2 cols */
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }

  /* WA CTA: stack */
  .wa-cta-inner { flex-direction: column; align-items: flex-start; }

  /* Section */
  .home-section-inner { padding: 0 18px; }
  .home-section { padding: 46px 0; }
  .home-cats-section { padding: 46px 0; }
  .home-proyectos-section { padding: 46px 0; }

  /* Banners: stack */
  .home-banners-row { grid-template-columns: 1fr; padding: 28px 18px; gap: 14px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */

@media (max-width: 600px) {

  /* Scroll-reveal: reduce motion distance */
  .home-block {
    transform: translateY(20px);
  }

  /* Hero */
  .hero-slider { height: 64vw; min-height: 290px; }
  .hero-slider::after { display: none; } /* No particles on mobile */
  .slide-layout { display: block; }
  .slide-layout.has-products .slide-products { display: none; }
  .slide-layout.has-products .slide-copy { max-width: 100%; }
  .slide-heading { font-size: 7vw; max-width: 75%; letter-spacing: -0.5px; }
  .slide-body { display: none; }
  .slide-btn { font-size: 3vw; padding: 10px 18px; margin-top: 0; }
  .slide-btn::before { display: none; }

  /* Trust: 1 col */
  .home-trust-inner { grid-template-columns: 1fr; gap: 0; }
  .trust-badge {
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
    padding: 14px 20px;
  }
  .trust-badge:last-child { border-bottom: none; }
  .trust-badge:hover { transform: none; box-shadow: none; }

  /* Category cards */
  .cat-card { height: 170px; }
  .cat-card-name { font-size: 14px; }

  /* Product cards: keep 2 col */
  .pcard-grid { gap: 10px; }
  .pcard-img-wrap { height: 155px; }
  .pcard:hover { transform: translateY(-4px); }

  /* Tabs */
  .tab-btn { font-size: 13px; padding: 0 2px 12px; margin-right: 18px; }

  /* Proyectos: 1 col */
  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-card { height: 240px; }

  /* WA CTA */
  .wa-cta-btn { width: 100%; justify-content: center; }
  .wa-cta-title { font-size: 21px; }
  .wa-cta-section::after { display: none; }

  /* Brands */
  .home-brands-grid { gap: 8px 24px; }
  .home-brands-grid img { height: 28px; }

  /* Banners */
  .home-banner { padding: 24px 26px; }
  .home-banner-text strong { font-size: 16px; }
  .home-banner::after { display: none; }

  /* Sections */
  .home-section { padding: 34px 0; }
  .home-proyectos-section { padding: 34px 0; }
  .home-section-header { flex-direction: column; gap: 10px; }
  .home-section-title { font-size: 22px; }
  .home-section-link { font-size: 12px; padding: 6px 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .home-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .stagger-grid > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tab-panel.active { animation: none; }
  .pcard,
  .cat-card,
  .proyecto-card,
  .home-banner,
  .slide-product-card,
  .wa-cta-btn,
  .slide-btn { transition: none; }
  .pcard::before,
  .pcard-cta::before,
  .slide-btn::before,
  .wa-cta-btn::before { display: none; }
  .pcard:hover,
  .cat-card:hover,
  .proyecto-card:hover { transform: none; }
  .slide-media { transition: none; }
  .hero-slider .swiper-slide-active .slide-media { transform: none; }
  .hero-slider::after { animation: none; }
  .wa-cta-section::before { animation: none; }
}
