:root{
    --green:#5db930;
    --green-dark:#4a9924;
    --carbon:#1c1d1f;
    --white:#ffffff;
    --bg-soft:#f5f6f8;
    --border:#e5e7eb;
    --text-secondary:#666666;
    --font-display:'Oswald', sans-serif;
    --font-body:'Work Sans', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; scroll-padding-top:110px; overflow-x:hidden; overflow-x:clip; width:100%; max-width:100vw;}
  body{
    font-family:var(--font-body);
    color:var(--carbon);
    background:var(--white);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    overflow-x:clip;
    width:100%;
    max-width:100vw;
    position:relative;
  }
  img{max-width:100%; display:block;}
  a{text-decoration:none; color:inherit;}
  ul{list-style:none;}
  button{font-family:inherit; cursor:pointer; border:none;}
  h1,h2,h3,h4{font-family:var(--font-display); font-weight:600; line-height:1.1; letter-spacing:0.2px;}
  .container{width:100%; max-width:1240px; margin:0 auto; padding:0 24px; box-sizing:border-box;}
  :focus-visible{outline:3px solid var(--green-dark); outline-offset:2px;}

  /* Diamond motif divider */
  .diamond-divider{
    width:9px; height:9px;
    background:var(--green);
    transform:rotate(45deg);
    display:inline-block;
    flex-shrink:0;
    vertical-align:middle;
    margin-right:8px;
  }

  /* Global Eyebrow Line */
  .eyebrow-line{
    display:inline-flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    color:var(--green);
    font-family:var(--font-display);
    font-weight:600;
    font-size:0.9rem;
    letter-spacing:0.06em;
    text-transform:uppercase;
    max-width:100%;
  }
  .eyebrow-line .diamond-divider{
    width:9px; height:9px;
    flex-shrink:0;
    margin-right:0;
  }
  .rule-diamond{
    display:flex; align-items:center; gap:14px;
    margin-bottom:28px;
  }
  .rule-diamond .diamond-divider{
    margin-right:0;
  }
  .rule-diamond::before, .rule-diamond::after{
    content:'';
    flex:1;
    height:1px;
    background:var(--border);
  }

  /* ---------- TOP BAR ---------- */
  .topbar{
    background:var(--carbon);
    color:var(--white);
    font-size:0.85rem;
  }
  .topbar .container{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:5px; padding-bottom:5px;
    gap:16px;
    flex-wrap:wrap;
  }
  .topbar .msg{color:#c9cbce; font-size:0.83rem;}
  .topbar .contacts{display:flex; gap:20px; flex-wrap:wrap;}
  .topbar .contacts a{display:flex; align-items:center; gap:6px; color:var(--white); font-size:0.83rem;}
  .topbar .contacts a:hover{color:var(--green);}
  .topbar svg{width:14px; height:14px; flex-shrink:0;}

  /* ---------- HEADER ---------- */
  header.main-header{
    background:var(--white);
    border-bottom:1px solid var(--border);
    position:sticky; top:0; z-index:200;
  }
  .nav-wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 0;
    gap:20px;
  }
  .logo-link{display:flex; align-items:center; gap:12px;}
  .logo-link img{height:45px; width:auto; aspect-ratio:783/265; display:block; object-fit:contain;}
  nav.primary-nav ul{display:flex; gap:28px;}
  nav.primary-nav a{
    font-family:var(--font-display);
    font-size:0.92rem;
    font-weight:500;
    color:var(--carbon);
    position:relative;
    padding-bottom:3px;
    transition:color .2s ease;
  }
  nav.primary-nav a::after{
    content:'';
    position:absolute; left:0; bottom:0;
    width:0; height:2px; background:var(--green);
    transition:width .25s ease;
  }
  nav.primary-nav a:hover::after,
  nav.primary-nav a.active::after{width:100%;}
  nav.primary-nav a:hover,
  nav.primary-nav a.active{color:var(--green); font-weight:600;}
  nav.primary-nav .nav-arrow{display:none;}
  .mobile-nav-footer{display:none;}
  .header-actions{display:flex; align-items:center; gap:14px;}
  .header-actions .btn{
    padding:8px 18px;
    font-size:0.88rem;
  }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    font-family:var(--font-display);
    font-weight:600;
    font-size:0.92rem;
    padding:12px 24px;
    border-radius:0;
    transition:background .2s ease, color .2s ease, transform .15s ease;
  }
  .btn-primary{background:var(--green); color:var(--white);}
  .btn-primary:hover{background:var(--green-dark);}
  .btn-outline{background:transparent; color:var(--carbon); border:1.5px solid var(--carbon);}
  .btn-outline:hover{border-color:var(--green); color:var(--green-dark);}
  .menu-toggle{
    display:none;
    background:transparent;
    border:none;
    outline:none;
    cursor:pointer;
    width:42px;
    height:42px;
    padding:0;
    margin-right:-6px;
    border-radius:6px;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    z-index:250;
    transition:background .2s ease;
  }
  .menu-toggle:hover{background:rgba(0,0,0,.04);}
  .menu-toggle .bar{
    display:block;
    width:24px;
    height:2.5px;
    background-color:var(--carbon);
    border-radius:3px;
    transition:transform .25s ease, opacity .2s ease;
  }
  .menu-toggle.is-active .bar:nth-child(1){
    transform:translateY(7.5px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2){
    opacity:0;
  }
  .menu-toggle.is-active .bar:nth-child(3){
    transform:translateY(-7.5px) rotate(-45deg);
  }

  /* ---------- CARRUSEL DE BANNERS PRINCIPALES (DEBAJO DEL HEADER) ---------- */
  .banners-carousel-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    padding: 4px 0 6px;
    min-height: 175px;
    contain-intrinsic-size: 175px;
  }
  .headerBannersSwiper {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    min-height: 165px;
  }
  /* Pre-initialization protection against layout shift (CLS) */
  .headerBannersSwiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow: hidden;
  }
  .headerBannersSwiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none !important;
  }
  .headerBannersSwiper:not(.swiper-initialized) .swiper-slide:first-child {
    width: 100% !important;
    min-height: 165px;
    flex-shrink: 0;
  }
  .heroSwiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none !important;
  }
  .heroSwiper:not(.swiper-initialized) .swiper-slide:first-child {
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0;
  }
  .headerBannersSwiper .swiper-slide {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .headerBannersSwiper .banner-slide-link {
    display: block;
    width: 100%;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
  }
  .headerBannersSwiper .banner-img {
    width: 100%;
    height: auto;
    max-height: 165px;
    display: block;
    aspect-ratio: 2400 / 398;
    object-fit: contain;
    margin: 0 auto;
    background: #ffffff;
    transition: filter 0.25s ease;
  }
  .headerBannersSwiper .banner-slide-link:hover .banner-img {
    filter: brightness(1.03);
  }

  /* Paginación - Puntos Circulares Compactos */
  .headerBannersSwiper .swiper-pagination {
    bottom: 4px;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: auto;
  }
  .headerBannersSwiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #1c1d1f;
    opacity: 0.3;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    margin: 0 !important;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .headerBannersSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--green);
    transform: scale(1.3);
    border-color: #ffffff;
  }

  /* Flechas de Navegación Compactas */
  .headerBannersSwiper .swiper-button-prev,
  .headerBannersSwiper .swiper-button-next {
    width: 34px;
    height: 34px;
    background: rgba(28, 29, 31, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.25s ease;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
  }
  .headerBannersSwiper:hover .swiper-button-prev,
  .headerBannersSwiper:hover .swiper-button-next {
    opacity: 1;
  }
  .headerBannersSwiper .swiper-button-prev:hover,
  .headerBannersSwiper .swiper-button-next:hover {
    background: var(--green);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
  }
  .headerBannersSwiper .swiper-button-prev::after,
  .headerBannersSwiper .swiper-button-next::after {
    font-size: 0.8rem;
    font-weight: 700;
  }
  .headerBannersSwiper .swiper-button-prev { left: 10px; }
  .headerBannersSwiper .swiper-button-next { right: 10px; }

  @media (max-width: 991px) {
    .banners-carousel-section { min-height: 135px; }
    .headerBannersSwiper { min-height: 125px; }
    .headerBannersSwiper .banner-img {
      max-height: 125px;
    }
  }

  @media (max-width: 768px) {
    .banners-carousel-section {
      padding: 3px 0 4px;
      min-height: 102px;
    }
    .headerBannersSwiper { min-height: 95px; }
    .headerBannersSwiper .banner-img {
      max-height: 95px;
    }
    .headerBannersSwiper .swiper-pagination {
      bottom: 2px;
      gap: 5px;
    }
    .headerBannersSwiper .swiper-pagination-bullet {
      width: 6px;
      height: 6px;
    }
    .headerBannersSwiper .swiper-button-prev,
    .headerBannersSwiper .swiper-button-next {
      display: none;
    }
  }

  @media (max-width: 480px) {
    .banners-carousel-section { min-height: 82px; }
    .headerBannersSwiper { min-height: 75px; }
    .headerBannersSwiper .banner-img {
      max-height: 75px;
    }
  }

  /* ---------- HERO SLIDER ---------- */
  .hero{
    position:relative;
    height:min(90vh, 760px);
    min-height:640px;
    overflow:hidden;
    background:var(--carbon);
  }
  .hero .swiper, .hero .swiper-wrapper, .hero .swiper-slide{height:100%;}
  .hero .swiper-slide{
    position:relative;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center right;
    background-repeat:no-repeat;
    padding:50px 0 65px;
    box-sizing:border-box;
  }
  .hero-slide-herramientas {
    background-size: cover !important;
    background-position: right 20% !important;
    background-repeat: no-repeat !important;
  }
  .hero .swiper-slide::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(95deg, rgba(20,21,23,0.92) 0%, rgba(20,21,23,0.72) 42%, rgba(20,21,23,0.35) 75%, rgba(20,21,23,0.18) 100%);
    pointer-events:none;
  }
  .hero-content{
    position:relative;
    z-index:2;
    color:var(--white);
    max-width:660px;
    padding-bottom:0;
  }
  .hero-content .eyebrow-line{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--green);
    font-family:var(--font-display);
    font-weight:600;
    font-size:0.95rem;
    letter-spacing:0.06em;
    margin-bottom:14px;
    text-transform:uppercase;
  }
  .hero-content .eyebrow-line .diamond-divider{width:9px; height:9px; flex-shrink:0; margin-right:0;}
  .hero-content h1, .hero-content h2, .hero-content .hero-title{
    font-size:clamp(1.95rem, 3.6vw, 2.9rem);
    line-height:1.14;
    margin-bottom:14px;
  }
  .hero-content p{
    font-size:1.02rem;
    color:#d9dbde;
    line-height:1.5;
    margin-bottom:24px;
    max-width:540px;
  }
  .hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:0;
  }
  .hero-actions .btn{
    border-radius:0;
  }
  .hero .swiper-button-next, .hero .swiper-button-prev{
    color:var(--white);
    width:52px; height:52px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.3);
    backdrop-filter:blur(2px);
  }
  .hero .swiper-button-next:hover, .hero .swiper-button-prev:hover{background:var(--green); border-color:var(--green);}
  .hero .swiper-button-next::after, .hero .swiper-button-prev::after{font-size:18px;}
  .hero .swiper-pagination{
    bottom:24px !important;
    z-index:10;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    pointer-events:auto;
  }
  .hero .swiper-pagination-bullet{
    width:10px;
    height:10px;
    background:var(--white);
    opacity:0.45;
    transition:all .3s ease;
    margin:0 4px !important;
  }
  .hero .swiper-pagination-bullet-active{
    background:var(--green);
    opacity:1;
    width:26px;
    border-radius:6px;
  }

  /* Slide Oficial HT Hecort (Texto a la derecha para destacar el logo HT a la izquierda) */
  .hero .hero-slide-ht {
    background-position: center left;
    background-size: cover;
  }
  .hero .hero-slide-ht::before {
    background: linear-gradient(275deg, rgba(20,21,23,0.95) 0%, rgba(20,21,23,0.85) 44%, rgba(20,21,23,0.4) 70%, rgba(20,21,23,0.06) 100%);
  }
  .hero-slide-ht .hero-container-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
  .hero-slide-ht .hero-content-right {
    margin-left: auto;
    margin-right: 0;
  }

  @media (max-width: 768px) {
    .hero .hero-slide-ht {
      background-image: url('../img/hero/hero-banner-ht-960x300-movil.webp') !important;
      background-position: top center;
    }
    .hero .hero-slide-ht::before {
      background: linear-gradient(180deg, rgba(20,21,23,0.25) 0%, rgba(20,21,23,0.84) 30%, rgba(20,21,23,0.98) 55%, rgba(20,21,23,0.98) 100%);
    }
    .hero-slide-ht .hero-container-right {
      justify-content: flex-start;
    }
    .hero-slide-ht .hero-content-right {
      margin-left: 0;
      margin-top: auto;
    }
  }

  /* ---------- PROMO BANNER ---------- */
  .promo-banner{
    background:var(--green);
    color:var(--white);
    padding:34px 0;
    position:relative;
    overflow:hidden;
  }
  .promo-banner::after{
    content:'';
    position:absolute; right:-60px; top:-60px;
    width:200px; height:200px;
    background:rgba(255,255,255,0.08);
    transform:rotate(45deg);
  }
  .promo-wrap{
    display:flex; align-items:center; justify-content:space-between;
    gap:24px; flex-wrap:wrap; position:relative; z-index:1;
  }
  .promo-wrap h3{font-size:1.5rem; margin-bottom:4px;}
  .promo-wrap p{color:rgba(255,255,255,0.9); font-size:0.98rem;}
  .promo-banner .btn-outline{border-color:var(--white); color:var(--white);}
  .promo-banner .btn-outline:hover{background:var(--white); color:var(--green-dark); border-color:var(--white);}

  /* ---------- SECTIONS ---------- */
  section{padding:76px 0;}
  .section-soft{background:var(--bg-soft);}

  /* Marcas Section - Listón Negro Animado */
  .section-brands{
    padding:64px 0 60px;
    background:var(--white);
    border-bottom:1px solid var(--border);
    overflow:hidden;
  }
  .brands-header{
    text-align:center;
    max-width:760px;
    margin:0 auto 36px;
  }
  .brands-header .eyebrow{
    color:var(--green-dark);
    font-weight:700;
    text-transform:uppercase;
    font-size:0.8rem;
    letter-spacing:0.08em;
    display:inline-block;
    margin-bottom:8px;
  }
  .brands-header h2{
    font-size:clamp(1.65rem, 3.2vw, 2.3rem);
    color:var(--carbon);
    margin-bottom:12px;
  }
  .brands-header p{
    color:var(--text-secondary);
    font-size:0.98rem;
    line-height:1.55;
  }

  /* Listón Negro (Ribbon) */
  .brands-ribbon{
    background:linear-gradient(180deg, #18191c 0%, #101113 100%);
    border-top:3px solid var(--green);
    border-bottom:3px solid var(--green);
    padding:26px 0;
    position:relative;
    width:100%;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,0.18), inset 0 2px 6px rgba(255,255,255,0.05);
  }
  /* Desvanecido a los bordes izquierdo y derecho */
  .brands-ribbon::before,
  .brands-ribbon::after{
    content:"";
    position:absolute;
    top:0; bottom:0;
    width:140px;
    z-index:5;
    pointer-events:none;
  }
  .brands-ribbon::before{
    left:0;
    background:linear-gradient(to right, #101113 15%, transparent 100%);
  }
  .brands-ribbon::after{
    right:0;
    background:linear-gradient(to left, #101113 15%, transparent 100%);
  }

  .marquee-wrapper{
    width:100%;
    overflow:hidden;
    display:flex;
  }
  .marquee-track{
    display:flex;
    gap:24px;
    width:max-content;
    will-change:transform;
    animation:marqueeScroll 34s linear infinite;
  }
  .brands-ribbon:hover .marquee-track{
    animation-play-state:paused;
  }

  /* Animación continua de derecha a izquierda */
  @keyframes marqueeScroll{
    0%{
      transform:translateX(0);
    }
    100%{
      transform:translateX(-50%);
    }
  }

  /* Tarjeta blanca para cada logo en el listón */
  .ribbon-card{
    background:#ffffff;
    border-radius:10px;
    padding:10px 24px;
    height:70px;
    min-width:175px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 16px rgba(0,0,0,0.32);
    flex-shrink:0;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    border:1px solid rgba(255,255,255,0.25);
    cursor:pointer;
  }
  .ribbon-card:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 10px 26px rgba(37,211,102,0.3);
    border-color:var(--green);
  }
  .ribbon-card img{
    max-height:44px;
    max-width:140px;
    width:auto;
    object-fit:contain;
    display:block;
  }

  /* Píldoras de Especialidades */
  .brands-categories-strip{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-top:32px;
  }
  .cat-pill{
    background:var(--bg-soft);
    border:1px solid var(--border);
    border-radius:20px;
    padding:7px 16px;
    font-size:0.82rem;
    font-weight:600;
    color:var(--carbon);
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:all .2s ease;
  }
  .cat-pill svg{
    width:15px;
    height:15px;
    stroke:var(--green-dark);
    flex-shrink:0;
    transition:transform .2s ease, stroke .2s ease;
  }
  .cat-pill:hover{
    background:var(--white);
    border-color:var(--green);
    color:var(--green-dark);
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
  }
  .cat-pill:hover svg{
    stroke:var(--green);
    transform:scale(1.15);
  }
  .section-head{
    display:flex; justify-content:space-between; align-items:flex-end;
    gap:24px; margin-bottom:40px; flex-wrap:wrap;
  }
  .section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem);}
  .section-head p{color:var(--text-secondary); max-width:420px; font-size:0.98rem;}

  /* Product cards */
  .product-slide{padding-top:6px; padding-bottom:12px;}
  .product-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:6px;
    overflow:hidden;
    height:100%;
    display:flex; flex-direction:column;
    cursor:pointer;
    transition:transform .32s cubic-bezier(.25, .46, .45, .94), box-shadow .32s cubic-bezier(.25, .46, .45, .94), border-color .3s ease;
  }
  .product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,0.09);
    border-color:#cfd4dc;
  }
  .product-media{
    position:relative;
    aspect-ratio:4/3.35;
    overflow:hidden;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    border-bottom:1px solid #edf2f7;
  }
  .product-media img{
    width:100%; height:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
    transition:transform .4s cubic-bezier(.25, .46, .45, .94);
  }
  .product-card:hover .product-media img{
    transform:scale(1.08);
  }
  .badge-featured{
    position:absolute; top:12px; left:12px; z-index:2;
    background:var(--green);
    color:var(--white);
    font-family:var(--font-display);
    font-size:0.72rem;
    font-weight:600;
    letter-spacing:0.04em;
    text-transform:uppercase;
    padding:6px 12px;
    border-radius:3px;
  }
  .product-body{padding:18px 20px 22px; display:flex; flex-direction:column; flex:1;}
  .product-meta-row{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:8px;
  }
  .product-code{color:var(--text-secondary); font-size:0.82rem;}
  .product-rating{
    display:flex; align-items:center; gap:4px;
    background:var(--bg-soft);
    border-radius:20px;
    padding:4px 10px;
    font-size:0.78rem;
    font-weight:600;
    color:var(--carbon);
  }
  .product-rating svg{width:12px; height:12px; fill:var(--green); flex-shrink:0;}
  .product-cat{
    font-size:0.74rem; text-transform:uppercase; letter-spacing:0.06em;
    color:var(--green-dark); font-weight:600; margin-bottom:6px;
  }
  .product-name{font-family:var(--font-display); font-size:1.12rem; font-weight:600; line-height:1.35; color:var(--carbon);}

  .swiper-carousel{padding-bottom:44px;}
  .swiper-carousel .swiper-pagination-bullet{background:var(--carbon); opacity:.25;}
  .swiper-carousel .swiper-pagination-bullet-active{background:var(--green); opacity:1;}
  .carousel-nav{display:flex; gap:10px;}
  .carousel-nav button{
    width:44px; height:44px;
    border:1.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    background:var(--white); transition:border-color .2s ease, background .2s ease;
  }
  .carousel-nav button:hover{border-color:var(--green); background:var(--green); }
  .carousel-nav button:hover svg{stroke:var(--white);}
  .carousel-nav svg{width:18px; height:18px; stroke:var(--carbon);}

  /* Institutional strip */
  .institutional{
    background:var(--carbon);
    color:var(--white);
    padding:80px 0;
    text-align:center;
    position:relative;
  }
  .institutional .rule-diamond::before, .institutional .rule-diamond::after{background:#3a3b3d;}
  .institutional .rule-diamond{max-width:200px; margin:0 auto 26px;}
  .institutional h2{
    font-size:clamp(1.6rem, 3.4vw, 2.5rem);
    max-width:820px; margin:0 auto;
    font-weight:500;
  }
  .institutional h2 span{color:var(--green);}

  /* Empresa */
  .empresa-grid{display:grid; grid-template-columns:1.15fr 0.85fr; gap:52px; align-items:flex-start;}
  .empresa-copy p{color:var(--text-secondary); margin-bottom:16px; line-height:1.6;}
  
  /* Valores de la Empresa */
  .empresa-values{display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:24px 0;}
  .value-card{
    display:flex; gap:12px; align-items:flex-start;
    background:var(--bg-soft); padding:14px 16px;
    border:1px solid var(--border); border-radius:6px;
  }
  .value-icon{
    width:36px; height:36px; border-radius:6px;
    background:var(--green); color:var(--white);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .value-icon svg{width:18px; height:18px;}
  .value-card strong{display:block; font-size:0.92rem; color:var(--carbon); margin-bottom:3px; font-weight:700;}
  .value-card span{font-size:0.8rem; color:var(--text-secondary); line-height:1.35; display:block;}

  .empresa-stats{display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:24px;}
  .stat-item{border-left:3px solid var(--green); padding-left:16px;}
  .stat-item strong{font-family:var(--font-display); font-size:1.65rem; display:block; color:var(--carbon); line-height:1.2;}
  .stat-item span{color:var(--text-secondary); font-size:0.84rem; display:block; margin-top:2px;}
  
  /* Tarjeta Visual Institucional */
  .empresa-visual-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:10px;
    box-shadow:0 12px 32px rgba(0,0,0,0.06);
    overflow:hidden;
    position:sticky; top:90px;
  }
  .visual-header{
    background:linear-gradient(135deg, #1f2023, #141517);
    padding:26px 24px;
    display:flex; align-items:center; justify-content:space-between;
    gap:16px; border-bottom:3px solid var(--green);
  }
  .empresa-main-logo{height:42px; width:auto; aspect-ratio:783/265; object-fit:contain;}
  .pyme-seal-box{
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,0.95);
    padding:5px 10px; border-radius:6px;
  }
  .pyme-seal-img{height:32px; width:auto; object-fit:contain;}
  .pyme-seal-label{font-size:0.62rem; font-weight:700; color:#1a1a1a; text-transform:uppercase; letter-spacing:0.04em; max-width:65px; line-height:1.15;}
  .visual-body{padding:26px 24px;}
  .visual-title{font-size:1.08rem; color:var(--carbon); margin-bottom:16px; font-weight:700;}
  .visual-list{list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:12px;}
  .visual-list li{display:flex; align-items:flex-start; gap:10px; font-size:0.88rem; color:var(--carbon); line-height:1.4;}
  .visual-list svg{width:18px; height:18px; stroke:var(--green); flex-shrink:0; margin-top:1px;}
  .visual-list strong{color:var(--carbon);}

  /* Contacto */
  .contact-main-section{
    padding:60px 0 80px;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    box-sizing:border-box;
  }
  .contact-grid{
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:40px;
    align-items:start;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .contact-cards{display:flex; flex-direction:column; gap:16px;}
  .contact-card{
    border:1px solid var(--border);
    padding:20px 22px;
    display:flex; gap:16px; align-items:flex-start;
    background:var(--white);
  }
  .contact-card .icon-wrap{
    width:44px; height:44px; flex-shrink:0;
    background:var(--bg-soft);
    display:flex; align-items:center; justify-content:center;
  }
  .contact-card .icon-wrap svg{width:20px; height:20px; stroke:var(--green-dark);}
  .contact-card h4{font-size:1rem; margin-bottom:3px;}
  .contact-card p, .contact-card a{color:var(--text-secondary); font-size:0.92rem;}
  .contact-card a:hover{color:var(--green-dark);}
  .contact-form{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:10px;
    padding:36px;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:hidden;
  }
  .contact-form form{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:hidden;
  }
  .contact-form h3{
    margin-bottom:6px;
    word-break:break-word;
    overflow-wrap:break-word;
  }
  .contact-form > p{
    color:var(--text-secondary);
    font-size:0.92rem;
    margin-bottom:24px;
    word-break:break-word;
    overflow-wrap:break-word;
  }
  .form-row{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    margin-bottom:16px;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .form-field{
    display:flex;
    flex-direction:column;
    gap:6px;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .form-field.full{
    grid-column:1/-1;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .form-field label{
    font-size:0.85rem;
    font-weight:500;
    word-break:break-word;
    overflow-wrap:break-word;
  }
  .form-field input, .form-field select, .form-field textarea{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    border:1px solid var(--border);
    border-radius:6px;
    padding:11px 13px;
    font-family:var(--font-body);
    font-size:16px; /* Explicit 16px to prevent iOS/Android zoom on focus */
    background:var(--white);
    display:block;
  }
  .form-field select{
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    max-width:100%;
    width:100%;
  }
  .form-field textarea{
    resize:vertical;
    min-height:100px;
    width:100%;
    max-width:100%;
  }
  .form-checkbox-label{
    display:flex;
    align-items:flex-start;
    gap:12px;
    cursor:pointer;
    font-size:0.88rem;
    line-height:1.4;
    width:100%;
    max-width:100%;
    color:var(--carbon);
    box-sizing:border-box;
  }
  .form-checkbox-label input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:var(--green);
    cursor:pointer;
    flex-shrink:0;
    margin-top:2px;
  }
  .form-checkbox-label span{
    word-break:break-word;
    overflow-wrap:break-word;
    min-width:0;
  }
  .form-note{
    font-size:0.8rem;
    color:var(--text-secondary);
    margin-top:10px;
    word-break:break-word;
    overflow-wrap:break-word;
  }
  .contact-sidebar-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:10px;
    padding:32px;
    margin-bottom:24px;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .contact-pyme-card{
    background:linear-gradient(135deg, #18191c 0%, #26282d 100%);
    border-radius:10px;
    padding:30px;
    color:#fff;
    border-left:5px solid var(--green);
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  /* Footer */
  footer{background:var(--carbon); color:#c9cbce;}
  .footer-top{padding:64px 0 40px; display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px;}
  .footer-col h4{color:var(--white); font-size:0.95rem; margin-bottom:18px; letter-spacing:0.02em;}
  .footer-col ul li{margin-bottom:10px;}
  .footer-col a{color:#c9cbce; font-size:0.9rem; transition:color .2s ease;}
  .footer-col a:hover{color:var(--green);}
  .footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:16px;}
  .footer-brand img,
  .footer-logo,
  footer img[src*="logo-dms"] {
    height: 42px;
    max-height: 42px;
    max-width: 220px;
    width: auto;
    aspect-ratio: 783 / 265;
    object-fit: contain;
    display: block;
  }
  .footer-col.brand p{font-size:0.88rem; color:#9a9ca0; max-width:290px; line-height:1.55;}

  /* Footer Socials */
  .footer-socials{display:flex; align-items:center; gap:10px; margin:18px 0 18px;}
  .social-btn{
    width:38px; height:38px; border-radius:50%;
    background:#2b2c2f; border:1px solid rgba(255,255,255,0.1);
    display:inline-flex; align-items:center; justify-content:center;
    color:#d0d2d6; transition:all .25s ease; text-decoration:none;
  }
  .social-btn svg{width:18px; height:18px; fill:currentColor; transition:transform .2s ease;}
  .social-btn:hover{transform:translateY(-3px); color:var(--white);}
  .social-btn.whatsapp:hover{background:#25D366; border-color:#25D366; box-shadow:0 6px 14px rgba(37,211,102,0.35);}
  .social-btn.facebook:hover{background:#1877F2; border-color:#1877F2; box-shadow:0 6px 14px rgba(24,119,242,0.35);}
  .social-btn.instagram:hover{background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color:transparent; box-shadow:0 6px 14px rgba(214,36,159,0.35);}
  .social-btn.linkedin:hover{background:#0A66C2; border-color:#0A66C2; box-shadow:0 6px 14px rgba(10,102,194,0.35);}

  /* Footer PYME Badge */
  .footer-pyme-wrapper{margin-top:6px;}
  .footer-pyme-badge{
    display:inline-flex; align-items:center; gap:12px;
    background:#ffffff; padding:7px 14px 7px 10px;
    border-radius:8px; border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 4px 14px rgba(0,0,0,0.22);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .footer-pyme-badge:hover{transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,0.3);}
  .footer-pyme-badge img{height:46px; width:auto; object-fit:contain; display:block;}
  .pyme-badge-info{display:flex; flex-direction:column; justify-content:center;}
  .pyme-badge-tag{font-size:0.66rem; text-transform:uppercase; letter-spacing:0.04em; color:#6b7280; font-weight:600; line-height:1.2;}
  .pyme-badge-title{font-size:0.86rem; font-weight:700; color:#1a1a1a; letter-spacing:0.01em; line-height:1.2;}

  .footer-contact-item{display:flex; gap:10px; align-items:flex-start; margin-bottom:12px; font-size:0.9rem;}
  .footer-contact-item svg{width:16px; height:16px; stroke:var(--green); flex-shrink:0; margin-top:3px;}
  .footer-contact-item.footer-wa-item svg{stroke:none; fill:#25D366; margin-top:2px;}
  .footer-contact-item a, a.footer-contact-item{color:#c9cbce; text-decoration:none; transition:color .2s ease;}
  a.footer-contact-item:hover{color:#25D366;}
  .footer-bottom{
    border-top:1px solid #303133;
    padding:20px 0;
    display:flex; justify-content:space-between; align-items:center;
    font-size:0.82rem; color:#8a8c90;
    flex-wrap:wrap; gap:10px;
  }

  /* Floating WhatsApp */
  .float-whatsapp{
    position:fixed; right:22px; bottom:22px; z-index:300;
    width:60px; height:60px;
    background:#25D366;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 18px rgba(0,0,0,0.28);
    transition:transform .2s ease;
  }
  .float-whatsapp:hover{transform:scale(1.07);}
  .float-whatsapp svg{width:30px; height:30px; fill:var(--white);}

  /* Backdrop overlay (dim without blur) */
  .nav-overlay{
    position:fixed;
    inset:0;
    top:60px;
    background:rgba(0,0,0,0.35);
    z-index:190;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
  }
  .nav-overlay.is-active{
    opacity:1;
    pointer-events:auto;
  }

  /* Responsive */
  @media (max-width:768px){
    .brands-ribbon{padding:20px 0;}
    .brands-ribbon::before,
    .brands-ribbon::after{width:60px;}
    .marquee-track{gap:16px; animation-duration:22s;}
    .ribbon-card{
      padding:8px 18px;
      height:58px;
      min-width:140px;
      border-radius:8px;
    }
    .ribbon-card img{
      max-height:36px;
      max-width:115px;
    }
    .brands-categories-strip{gap:8px; margin-top:22px;}
    .cat-pill{font-size:0.75rem; padding:5px 12px;}
  }
  @media (max-width:980px){
    .empresa-grid{grid-template-columns:minmax(0, 1fr);}
    .contact-grid{display:flex; flex-direction:column; width:100%; max-width:100%; min-width:0; gap:32px;}
    .empresa-visual-card{max-width:540px; margin:20px auto 0; position:static;}
    .footer-top{grid-template-columns:1fr 1fr;}
  }
  @media (max-width:640px){
    .empresa-values{grid-template-columns:1fr;}
    .empresa-stats{grid-template-columns:1fr;}
    .visual-header{flex-direction:column; align-items:flex-start; gap:12px;}
  }
  @media (max-width:820px){
    html{scroll-padding-top:72px;}
    .topbar{display:none !important;}
    .nav-wrap{padding:10px 0;}
    .logo-link img{height:38px; max-width:150px; width:auto; object-fit:contain; display:block;}
    .menu-toggle{display:flex;}
    .header-actions .btn-primary{display:none;}
    .form-row{display:flex; flex-direction:column; gap:14px; width:100%; max-width:100%; min-width:0;}

    nav.primary-nav{
      position:absolute;
      top:100%;
      left:0;
      right:0;
      width:100%;
      background:var(--white);
      border-top:1px solid var(--border);
      border-bottom:1px solid var(--border);
      box-shadow:0 14px 28px rgba(0,0,0,0.12);
      max-height:calc(100vh - 65px);
      max-height:calc(100dvh - 65px);
      overflow-y:auto;
      display:flex;
      flex-direction:column;
      opacity:0;
      visibility:hidden;
      transform:translateY(-8px);
      transition:opacity .2s ease, transform .2s ease, visibility .2s;
      z-index:210;
    }
    nav.primary-nav.open{
      opacity:1;
      visibility:visible;
      transform:translateY(0);
    }

    nav.primary-nav ul{
      display:flex;
      flex-direction:column;
      gap:0;
      padding:6px 0;
      margin:0;
      width:100%;
    }
    nav.primary-nav li{
      width:100%;
      border-bottom:1px solid #f1f3f5;
    }
    nav.primary-nav li:last-child{
      border-bottom:none;
    }
    nav.primary-nav a{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 24px;
      font-size:1.02rem;
      font-weight:600;
      color:var(--carbon);
      text-decoration:none;
      transition:background .15s, color .15s, padding-left .15s;
    }
    nav.primary-nav a:hover,
    nav.primary-nav a:active,
    nav.primary-nav a.active{
      background:#f0fdf4;
      color:var(--green);
      padding-left:28px;
    }
    nav.primary-nav a::after{display:none;}
    nav.primary-nav .nav-arrow{
      display:block;
      width:16px;
      height:16px;
      stroke:#8c9196;
      stroke-width:2.5;
      stroke-linecap:round;
      stroke-linejoin:round;
      fill:none;
    }

    .mobile-nav-footer{
      display:flex;
      flex-direction:column;
      gap:14px;
      padding:18px 24px 24px;
      background:#fbfbfc;
      border-top:1px solid var(--border);
    }
    .mobile-nav-footer .btn-wa{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      background:#25D366;
      color:var(--white);
      font-weight:600;
      font-size:0.95rem;
      padding:12px 18px;
      border-radius:8px;
      box-shadow:0 4px 12px rgba(37,211,102,0.25);
      text-decoration:none;
      transition:background .2s;
    }
    .mobile-nav-footer .btn-wa:hover{background:#20ba59;}
    .mobile-nav-footer .btn-wa svg{width:20px; height:20px; fill:var(--white);}
    .mobile-contact-info{
      display:flex;
      flex-direction:column;
      gap:8px;
    }
    .mobile-contact-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      color:var(--muted);
      font-size:0.88rem;
      font-weight:500;
      text-decoration:none;
      transition:color .15s;
    }
    .mobile-contact-link:hover{color:var(--green);}
    .mobile-contact-link svg{width:15px; height:15px; color:var(--green); flex-shrink:0;}
  }
  @media (max-width:600px){
    .container{padding:0 18px;}
    .logo-link img{height:36px; max-width:140px;}
    section{padding:56px 0;}
    .footer-top{grid-template-columns:1fr; padding-top:48px;}
    .promo-wrap{flex-direction:column; align-items:flex-start;}
  }
  @media (max-width: 768px) {
    .hero {
      height: auto;
      min-height: 600px;
      padding: 0;
    }
    .hero .swiper, .hero .swiper-wrapper {
      height: 100%;
    }
    .hero .swiper-slide {
      background-position: 70% center;
      padding: 40px 0 60px;
      min-height: 600px;
      align-items: center;
      box-sizing: border-box;
    }
    .hero-slide-herramientas {
      background-position: 85% 15% !important;
    }
    .hero .swiper-slide::before {
      background: linear-gradient(180deg, rgba(20,21,23,0.94) 0%, rgba(20,21,23,0.85) 60%, rgba(20,21,23,0.55) 100%);
    }
    .hero-content {
      padding-bottom: 0;
    }
    .hero-content h1,
    .hero-content h2,
    .hero-content .hero-title {
      font-size: 1.85rem;
      line-height: 1.15;
      margin-bottom: 12px;
    }
    .hero-content p {
      font-size: 0.94rem;
      line-height: 1.45;
      margin-bottom: 18px;
    }
    .hero-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      margin-bottom: 0;
    }
    .hero-actions .btn {
      width: 100%;
      justify-content: center;
      padding: 11px 18px;
      font-size: 0.9rem;
    }
    .hero .swiper-button-next,
    .hero .swiper-button-prev {
      display: none;
    }
    .hero .swiper-pagination {
      bottom: 18px !important;
    }
    .contact-main-section {
      padding: 36px 0 54px;
    }
    .contact-grid {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      gap: 28px;
    }
    .contact-form {
      padding: 24px 18px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .form-row {
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
    .contact-sidebar-card {
      padding: 22px 18px;
    }
    .contact-cards-full {
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
    }
  }

  /* ========================================================
     MULTI-PAGE ARCHITECTURE & INNER PAGES STYLING
     ======================================================== */

  /* Page Hero / Banner */
  .page-hero {
    background: linear-gradient(135deg, rgba(20,21,23,0.96) 0%, rgba(35,37,41,0.92) 100%), #141517;
    color: var(--white);
    padding: 64px 0 54px;
    position: relative;
    border-bottom: 3px solid var(--green);
  }
  .page-hero-content {
    max-width: 820px;
  }
  .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #9ba1a8;
    margin-bottom: 16px;
    font-weight: 500;
  }
  .breadcrumbs a {
    color: #cbd2d9;
    text-decoration: none;
    transition: color .15s;
  }
  .breadcrumbs a:hover {
    color: var(--green);
  }
  .breadcrumbs span.sep {
    color: #646b73;
    font-size: 0.75rem;
  }
  .breadcrumbs span.current {
    color: var(--green);
    font-weight: 600;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.18;
  }
  .page-hero p {
    font-size: 1.05rem;
    color: #c4c8cd;
    line-height: 1.6;
    max-width: 720px;
  }

  /* Catalog Page Toolbar & Filters */
  .catalog-toolbar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }
  .catalog-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .catalog-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    flex: 1;
    min-width: 260px;
    max-width: 480px;
    transition: border-color .2s, box-shadow .2s;
  }
  .catalog-search-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,166,89,0.12);
    background: var(--white);
  }
  .catalog-search-box svg {
    width: 18px;
    height: 18px;
    color: #8c9196;
    flex-shrink: 0;
  }
  .catalog-search-box input {
    border: none;
    background: transparent;
    font-size: 0.92rem;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    color: var(--carbon);
  }
  .catalog-counter {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
  }
  .catalog-counter strong {
    color: var(--carbon);
    font-weight: 700;
  }
  .catalog-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid #f1f3f5;
    padding-top: 16px;
  }
  .filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f5f7;
    color: var(--carbon);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
  }
  .filter-tab:hover {
    background: #e9ecef;
    color: var(--green-dark);
  }
  .filter-tab.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(34,166,89,0.3);
  }
  .filter-tab .tab-count {
    background: rgba(0,0,0,0.08);
    font-size: 0.74rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
  }
  .filter-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: var(--white);
  }

  /* 4-COLUMN PRODUCTS GRID ("en cuatro cuadros") */
  .products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .products-grid-4 .product-card {
    height: 100%;
    margin-bottom: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .products-grid-4 .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
  }
  .product-action-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    gap: 8px;
  }
  .btn-card-quote {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    color: var(--carbon);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s ease;
  }
  .btn-card-quote:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
  }
  .btn-card-quote svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  @media (max-width: 1100px) {
    .products-grid-4 {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
  }
  @media (max-width: 768px) {
    .products-grid-4 {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .catalog-search-row {
      flex-direction: column;
      align-items: stretch;
    }
    .catalog-search-box {
      max-width: 100%;
    }
  }
  @media (max-width: 480px) {
    .products-grid-4 {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .page-hero {
      padding: 44px 0 36px;
    }
    .contact-form {
      padding: 20px 14px;
    }
    .contact-sidebar-card {
      padding: 18px 14px;
    }
    .contact-pyme-card {
      padding: 20px 16px;
    }
    .container {
      padding: 0 14px;
    }
    .contact-cards-full {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* Catalog PDF CTA Banner */
  .catalog-pdf-cta {
    background: linear-gradient(135deg, #18191c 0%, #26282d 100%);
    border-radius: 12px;
    padding: 44px 40px;
    color: var(--white);
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-left: 6px solid var(--green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  .catalog-pdf-cta h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
  }
  .catalog-pdf-cta p {
    color: #b3b7bd;
    font-size: 0.98rem;
    max-width: 580px;
    line-height: 1.5;
  }

  /* Empresa Page Rich Components */
  .empresa-history-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
  }
  .empresa-history-text h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin-bottom: 18px;
  }
  .empresa-history-text p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .empresa-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }
  .empresa-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--carbon);
  }
  .empresa-feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
  }
  .empresa-image-stack {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  }
  .empresa-image-stack img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  .empresa-seal-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .empresa-seal-badge img {
    height: 48px;
    width: auto;
  }
  .empresa-seal-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.98rem;
    color: var(--carbon);
  }
  .empresa-seal-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
  }

  /* Pillars & Commitments */
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
  }
  .pillar-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .pillar-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: var(--green);
  }
  .pillar-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #eaf8f0;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .pillar-icon-wrap svg {
    width: 26px;
    height: 26px;
  }
  .pillar-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--carbon);
  }
  .pillar-box p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
  }

  /* Partner Brand Endorsement Grid */
  .partner-endorsement {
    background: #fbfbfc;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 44px;
    margin-top: 60px;
  }
  .partner-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
  }
  .partner-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .partner-grid-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: center;
  }
  .partner-logo-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
  }
  .partner-logo-item img {
    max-height: 38px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter .2s, opacity .2s;
  }
  .partner-logo-item:hover img {
    filter: none;
    opacity: 1;
  }

  @media (max-width: 960px) {
    .empresa-history-grid {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .pillars-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .partner-grid-logos {
      grid-template-columns: repeat(2, 1fr);
    }
    .catalog-pdf-cta {
      flex-direction: column;
      text-align: center;
      padding: 36px 24px;
    }
  }
  @media (max-width: 560px) {
    .pillars-grid {
      grid-template-columns: 1fr;
    }
    .partner-grid-logos {
      grid-template-columns: repeat(2, 1fr);
    }
    .partner-endorsement {
      padding: 24px 16px;
    }
  }

  /* Contacto Page Specific Styling */
  .contact-cards-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 44px;
  }
  .contact-card-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .contact-card-box:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .contact-card-box .box-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf8f0;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
  }
  .contact-card-box .box-icon svg {
    width: 22px;
    height: 22px;
  }
  .contact-card-box h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }
  .contact-card-box p, .contact-card-box a {
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-decoration: none;
  }
  .contact-card-box a:hover {
    color: var(--green);
  }

  /* FAQ Accordion */
  .faq-section {
    margin-top: 60px;
  }
  .faq-header {
    text-align: center;
    margin-bottom: 32px;
  }
  .faq-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  .faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .2s;
  }
  .faq-item.active {
    border-color: var(--green);
  }
  .faq-question {
    padding: 18px 22px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--carbon);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    user-select: none;
  }
  .faq-question svg {
    width: 18px;
    height: 18px;
    stroke: #8c9196;
    transition: transform .25s ease;
    flex-shrink: 0;
  }
  .faq-item.active .faq-question svg {
    transform: rotate(180deg);
    stroke: var(--green);
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out, padding .3s ease;
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
  }
  .faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 22px 20px;
  }

  /* Home Page Teasers */
  .home-teaser-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  }
  .home-teaser-content h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  .home-teaser-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 640px;
  }

  .contact-card-box a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  @media (max-width: 900px) {
    .contact-cards-full {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-teaser-card {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
    }
  }
  @media (max-width: 500px) {
    .contact-cards-full {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* ==========================================================================
     PÁGINAS LEGALES & CUMPLIMIENTO REGULATORIO (COSTA RICA - LEY 8968 & PRODHAB)
     ========================================================================== */
  .footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer-legal-links a {
    color: #a3a6aa;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color .2s ease;
  }
  .footer-legal-links a:hover,
  .footer-legal-links a.active {
    color: var(--green);
    text-decoration: underline;
  }
  .footer-legal-links .sep {
    color: #4b4e53;
  }

  /* Badge Regulatorio */
  .badge-cr-legal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(93, 185, 48, 0.12);
    border: 1px solid rgba(93, 185, 48, 0.35);
    color: #3b8a1c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 14px;
  }
  .badge-cr-legal svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
  }

  .legal-meta-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
  }
  .legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .legal-meta-item svg {
    width: 15px;
    height: 15px;
    color: var(--green);
  }

  /* Grid Layout para Páginas Legales */
  .legal-section-wrap {
    padding: 50px 0 80px;
    background: #fbfbfc;
  }
  .legal-grid-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 42px;
    align-items: start;
  }

  /* Sidebar Flotante & Sticky */
  .legal-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .legal-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  }
  .legal-sidebar-card h4 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f4;
    color: var(--carbon);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .legal-sidebar-card h4 svg {
    width: 17px;
    height: 17px;
    color: var(--green);
  }

  /* Tabla de Contenidos (TOC) */
  .legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: toc-counter;
  }
  .legal-toc-list li {
    counter-increment: toc-counter;
  }
  .legal-toc-list a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all .2s ease;
  }
  .legal-toc-list a::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: var(--carbon);
  }
  .legal-toc-list a:hover {
    color: var(--green);
    background: #f4faf2;
    padding-left: 14px;
  }

  /* Enlaces Cruzados Entre Documentos */
  .legal-doc-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .legal-doc-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--carbon);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
  }
  .legal-doc-nav-list a.active {
    background: var(--carbon);
    color: var(--white);
    border-color: var(--carbon);
  }
  .legal-doc-nav-list a.active svg {
    stroke: var(--green);
  }
  .legal-doc-nav-list a:hover:not(.active) {
    background: #f0fdf4;
    border-color: var(--green);
    color: var(--green);
  }
  .legal-doc-nav-list svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  /* Contenido del Artículo Legal */
  .legal-article-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 42px 48px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
    color: #2b2d31;
    font-size: 0.97rem;
    line-height: 1.75;
  }
  .legal-article-content h2 {
    font-size: 1.55rem;
    color: var(--carbon);
    margin-top: 42px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .legal-article-content h2:first-of-type {
    margin-top: 0;
  }
  .legal-article-content h2 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #eaf8f0;
    color: var(--green);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .legal-article-content h3 {
    font-size: 1.2rem;
    color: var(--carbon);
    margin-top: 26px;
    margin-bottom: 12px;
  }
  .legal-article-content p {
    margin-bottom: 18px;
    color: #374151;
  }
  .legal-article-content strong {
    color: var(--carbon);
  }
  .legal-article-content ul,
  .legal-article-content ol {
    margin: 14px 0 22px 24px;
    padding: 0;
  }
  .legal-article-content li {
    margin-bottom: 10px;
    color: #374151;
  }
  .legal-article-content a {
    color: #2d8212;
    text-decoration: underline;
    font-weight: 500;
  }
  .legal-article-content a:hover {
    color: var(--green);
  }

  /* Callout / Cajas de Alerta Legal */
  .legal-callout {
    background: #f8fafc;
    border-left: 4px solid var(--green);
    border-radius: 0 6px 6px 0;
    padding: 18px 22px;
    margin: 24px 0;
  }
  .legal-callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--carbon);
    margin-bottom: 8px;
  }
  .legal-callout-header svg {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
  }
  .legal-callout p {
    margin-bottom: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
  }

  .legal-callout-warning {
    border-left-color: #f59e0b;
    background: #fffdf5;
  }
  .legal-callout-warning .legal-callout-header {
    color: #b45309;
  }
  .legal-callout-warning .legal-callout-header svg {
    color: #f59e0b;
  }

  .legal-callout-prodhab {
    border-left-color: #2563eb;
    background: #eff6ff;
  }
  .legal-callout-prodhab .legal-callout-header {
    color: #1e40af;
  }
  .legal-callout-prodhab .legal-callout-header svg {
    color: #2563eb;
  }

  /* Tablas de Datos Legales */
  .legal-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    background: var(--white);
  }
  .legal-table th {
    background: #f3f4f6;
    color: var(--carbon);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
  }
  .legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f2f4;
    color: #374151;
    vertical-align: top;
  }
  .legal-table tr:last-child td {
    border-bottom: none;
  }
  .legal-table tr:hover td {
    background: #fafbfc;
  }

  /* Tarjeta de Contacto Legal en Sidebar */
  .legal-contact-box {
    background: #fdfefe;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    font-size: 0.86rem;
  }
  .legal-contact-box strong {
    display: block;
    color: var(--carbon);
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  /* Checkbox de Consentimiento en Formularios */
  .legal-checkbox span {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
  }
  .legal-checkbox a {
    color: #2d8212;
    text-decoration: underline;
    font-weight: 600;
  }
  .legal-checkbox a:hover {
    color: var(--green);
  }

  /* Responsive Legal Pages */
  @media (max-width: 960px) {
    .legal-grid-layout {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .legal-sidebar {
      position: static;
    }
    .legal-article-content {
      padding: 32px 24px;
    }
  }

  @media (max-width: 600px) {
    .legal-article-content {
      padding: 24px 18px;
      font-size: 0.94rem;
    }
    .legal-article-content h2 {
      font-size: 1.35rem;
    }
  }


/* ========================================================
   MODAL DE FAMILIAS DE PRODUCTOS Y MEDIDAS (DMS FERRETERA)
   ======================================================== */
.product-subtitle {
  font-size: 0.84rem;
  color: #0284c7;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.product-subtitle svg {
  flex-shrink: 0;
  color: #0284c7;
}

/* Modal Backdrop */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.product-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Dialog */
.product-modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.product-modal-backdrop.active .product-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

/* Modal Header */
.modal-header {
  display: flex;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #fafbfd;
  align-items: center;
}
.modal-header-media {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.modal-header-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-header-info {
  flex-grow: 1;
  padding-right: 36px;
}
.modal-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.2;
  text-transform: uppercase;
}
.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.modal-ref {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.modal-subtitle-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 10px;
  border-radius: 4px;
}

/* Modal Body */
.modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}
.modal-desc {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e2e8f0;
}

.modal-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-variants-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
}
.modal-variants-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.variants-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.variants-table thead {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}
.variants-table th {
  padding: 12px 14px;
  font-weight: 700;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #cbd5e1;
}
.variants-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.variants-table tbody tr:hover {
  background: #f8fafc;
}
.variants-table tbody tr:last-child td {
  border-bottom: none;
}
.variant-measure-badge {
  display: inline-block;
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
}
.variant-code-badge {
  display: inline-block;
  font-family: monospace;
  font-weight: 600;
  color: #475569;
  font-size: 0.82rem;
}
.variant-desc-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.35;
}
.btn-quote-variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}
.btn-quote-variant:hover {
  background: #1eb956;
  transform: scale(1.03);
}
.btn-quote-variant svg {
  flex-shrink: 0;
}

/* Modal Footer */
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.btn-modal-family-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.btn-modal-family-quote:hover {
  background: #1eb956;
  border-color: #1eb956;
  color: #ffffff;
}
.btn-modal-close {
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile responsive modal */
@media (max-width: 640px) {
  .product-modal-dialog {
    max-height: 94vh;
    width: 96%;
    border-radius: 10px;
  }
  .modal-header {
    padding: 16px 18px;
    gap: 12px;
  }
  .modal-header-media {
    width: 65px;
    height: 65px;
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .modal-body {
    padding: 16px 18px;
  }
  .modal-footer {
    padding: 14px 18px;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-modal-family-quote, .btn-modal-close {
    width: 100%;
    justify-content: center;
  }
}
