
/* V30 — ajuste definitivo de navegación y pie responsive. */
.header{box-sizing:border-box;max-width:100%;width:100%;}
.header .brand{min-width:0;flex-shrink:1;}
.header .brand img{max-width:100%!important;}
.header .nav{min-width:0;}
.site-footer-v21 .footer-v21-top,.site-footer-v21 .footer-v21-main,.site-footer-v21 .footer-v21-bottom{box-sizing:border-box;margin-inline:auto;}
.site-footer-v21 .footer-v21-main{grid-template-columns:minmax(0,1.15fr) minmax(0,.65fr) minmax(0,1.05fr) minmax(0,1.25fr);column-gap:clamp(24px,2.8vw,50px);}
.site-footer-v21 .footer-v21-column a{max-width:100%;}
.site-footer-v21 .footer-v21-contact a{overflow-wrap:anywhere;}
.site-footer-v21 .footer-v21-head h2{max-width:100%;text-wrap:balance;}
@media (min-width:1101px) and (max-width:1370px){
 .site-footer-v21 .footer-v21-main{grid-template-columns:minmax(0,1.1fr) minmax(0,.7fr) minmax(0,1.1fr) minmax(0,1.3fr);gap:24px;}
 .site-footer-v21 .footer-v21-top,.site-footer-v21 .footer-v21-main,.site-footer-v21 .footer-v21-bottom{width:calc(100% - 76px);}
}
@media (max-width:1100px){
 .site-footer-v21 .footer-v21-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px clamp(24px,6vw,70px);}
 .site-footer-v21 .footer-v21-top,.site-footer-v21 .footer-v21-main,.site-footer-v21 .footer-v21-bottom{width:calc(100% - 72px);}
 .site-footer-v21 .footer-v21-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;}
 .site-footer-v21 .footer-v21-head h2{font-size:clamp(30px,4.4vw,50px)!important;line-height:1.04!important;}
 .site-footer-v21 .footer-v21-cta{min-width:0;width:clamp(190px,24vw,245px);max-width:100%;padding:18px!important;}
 .site-footer-v21 .footer-v21-brand,.site-footer-v21 .footer-v21-column,.site-footer-v21 .footer-v21-contact{grid-column:auto;}
 .site-footer-v21 .footer-v21-bottom{grid-template-columns:1fr 1fr;gap:12px 20px;}
 .site-footer-v21 .footer-v21-bottom>:last-child{grid-column:1/-1;text-align:left;}
}
/* Tablet: sustituir navegación comprimida por menú accesible */
@media (max-width:1100px){
 .header{min-height:92px!important;height:auto!important;padding:12px clamp(20px,4vw,48px)!important;gap:18px!important;}
 .header .brand{margin-right:auto;}
 .header .brand img{width:clamp(180px,28vw,275px)!important;max-width:100%!important;max-height:75px!important;}
 .header .menu-toggle{display:block!important;flex:0 0 auto;background:transparent;border:1px solid rgba(251,202,0,.6);color:#fff;padding:12px 14px;font-size:12px;letter-spacing:.07em;order:2;}
 .header .nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;z-index:40!important;background:#071f35!important;padding:20px clamp(20px,4vw,48px) 26px!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;box-shadow:0 20px 30px rgba(0,0,0,.18);border-bottom:2px solid #fbca00;}
 .header .nav.open{display:flex!important;}
 .header .nav a{font-size:13px!important;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.13);}
 .header .header-wa{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;order:1;white-space:nowrap;padding:12px!important;font-size:11px;}
}
@media (max-width:760px){
 .header{min-height:78px!important;padding:10px 20px!important;gap:10px!important;}
 .header .brand img{width:clamp(145px,36vw,215px)!important;max-height:65px!important;}
 .header .header-wa{display:none!important;}
 .header .menu-toggle{padding:11px 12px;}
 .site-footer-v21 .footer-v21-top,.site-footer-v21 .footer-v21-main,.site-footer-v21 .footer-v21-bottom{width:calc(100% - 40px);}
 .site-footer-v21 .footer-v21-head{display:flex;flex-direction:column;align-items:flex-start;gap:22px;}
 .site-footer-v21 .footer-v21-head h2{font-size:clamp(32px,7vw,48px)!important;}
 .site-footer-v21 .footer-v21-cta{width:auto;max-width:100%;min-width:0;}
 .site-footer-v21 .footer-v21-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 20px;}
 .site-footer-v21 .footer-v21-brand,.site-footer-v21 .footer-v21-contact{grid-column:1/-1;}
 .site-footer-v21 .footer-v21-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
 .site-footer-v21 .footer-v21-bottom>*{text-align:left!important;}
}
@media (max-width:460px){
 .site-footer-v21 .footer-v21-main{grid-template-columns:1fr;gap:29px;}
 .site-footer-v21 .footer-v21-brand,.site-footer-v21 .footer-v21-contact{grid-column:auto;}
 .site-footer-v21 .footer-v21-head h2{font-size:clamp(29px,9vw,39px)!important;}
 .site-footer-v21 .footer-v21-top{padding-top:42px;padding-bottom:35px;}
 .site-footer-v21 .footer-v21-main{padding-top:40px;padding-bottom:42px;}
}
@media(prefers-reduced-motion:reduce){.header .nav{transition:none!important;}}

/* V31: en tabletas se oculta únicamente la columna PRODUCTOS del footer. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-footer-v21 nav.footer-v21-column[aria-label="Familias de productos"] { display: none !important; }
  .site-footer-v21 .footer-v21-main { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(18px, 3vw, 38px) !important; }
}

/* V32 — iPad Mini / tabletas compactas: pie equilibrado en dos niveles. */
@media (min-width:761px) and (max-width:900px){
 .site-footer-v21 .footer-v21-main{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;column-gap:clamp(26px,6vw,64px)!important;row-gap:36px!important;}
 .site-footer-v21 .footer-v21-brand{grid-column:1!important;}
 .site-footer-v21 nav.footer-v21-column[aria-label="Explorar sitio"]{grid-column:2!important;}
 .site-footer-v21 .footer-v21-contact{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(20px,5vw,48px);align-items:start;}
 .site-footer-v21 .footer-v21-contact h3{grid-column:1/-1;margin-bottom:10px;}
 .site-footer-v21 .footer-v21-contact a{min-width:0;overflow-wrap:anywhere;}
 .site-footer-v21 .footer-v21-contact p{margin:12px 0 0;}
 .site-footer-v21 .footer-v21-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px 24px!important;}
 .site-footer-v21 .footer-v21-bottom>:first-child{grid-column:1!important;grid-row:1!important;}
 .site-footer-v21 .footer-v21-bottom>:nth-child(2){grid-column:1!important;grid-row:2!important;text-align:left!important;}
 .site-footer-v21 .footer-v21-bottom>:last-child{grid-column:2!important;grid-row:1 / 3!important;text-align:right!important;white-space:nowrap;}
}

/* V33 — footer móvil esencial: marca + contacto, sin enlaces duplicados. */
@media (max-width:760px){
 .site-footer-v21 nav.footer-v21-column[aria-label="Explorar sitio"],
 .site-footer-v21 nav.footer-v21-column[aria-label="Familias de productos"]{display:none!important;}
 .site-footer-v21 .footer-v21-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:30px!important;}
 .site-footer-v21 .footer-v21-brand,.site-footer-v21 .footer-v21-contact{grid-column:1/-1!important;min-width:0;}
 .site-footer-v21 .footer-v21-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:20px!important;}
 .site-footer-v21 .footer-v21-cta{align-self:flex-start!important;width:auto!important;max-width:100%!important;}
 .site-footer-v21 .footer-v21-contact{display:block!important;}
 .site-footer-v21 .footer-v21-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;}
 .site-footer-v21 .footer-v21-bottom>*{grid-column:auto!important;grid-row:auto!important;text-align:left!important;white-space:normal!important;}
}
