html,body{overflow-x:hidden;}
img{max-width:100%;}
@media (max-width:1024px){
  section[style*="padding: 130px 40px"],section[style*="padding: 120px 40px"],section[style*="padding: 110px 40px"]{padding-top:96px!important;padding-bottom:96px!important;}
}
@media (max-width:760px){
  /* Espaciado general */
  section[style*="40px"],footer[style*="40px"],header>div[style*="padding"]{padding-left:22px!important;padding-right:22px!important;}
  section[style*="padding: 13"],section[style*="padding: 12"],section[style*="padding: 11"],section[style*="padding: 10"]{padding-top:72px!important;padding-bottom:72px!important;}
  section[style*="padding: 90px"]{padding-top:56px!important;}
  [style*="padding: 48px 44px"],[style*="padding: 46px 42px"],[style*="padding: 52px 46px"],[style*="padding: 50px 46px"],[style*="padding: 40px 44px"],[style*="padding: 44px 40px"],[style*="padding: 40px 38px"]{padding:30px 22px!important;}
  [style*="margin-bottom: 80px"],[style*="margin-bottom: 90px"],[style*="margin: 0px auto 80px"],[style*="margin: 0px auto 90px"]{margin-bottom:48px!important;}

  /* Rejillas: una o dos columnas */
  [style*="minmax(300px, 1fr)"],[style*="minmax(320px, 1fr)"],[style*="minmax(340px, 1fr)"],[style*="minmax(290px, 1fr)"],[style*="minmax(280px, 1fr)"]{grid-template-columns:1fr!important;gap:36px!important;}
  [style*="repeat(3, minmax(0px, 1fr))"],[style*="repeat(3, 1fr)"]:not([style*="gap: 10px"]){grid-template-columns:1fr!important;}
  [style*="repeat(4, minmax(0px, 1fr))"],[style*="repeat(5, minmax(0px, 1fr))"],[style*="repeat(4, 1fr)"]{grid-template-columns:1fr 1fr!important;}
  [style*="repeat(4, minmax(0px, 1fr))"]>*,[style*="repeat(5, minmax(0px, 1fr))"]>*{border-left:none!important;}
  [style*="minmax(0px, 1.2fr) minmax(0px, 1fr)"],[style*="minmax(0px, 1fr) minmax(0px, 1.2fr)"],[style*="minmax(0px, 0.9fr) minmax(0px, 1.1fr)"]{grid-template-columns:1fr!important;}
  [style*="150px minmax(0px, 1fr)"]{grid-template-columns:1fr!important;gap:4px!important;}
  [style*="130px minmax(0px, 1fr) 36px"]{grid-template-columns:minmax(0,1fr) 30px!important;}
  [style*="130px minmax(0px, 1fr) 36px"]>span:first-child{display:none!important;}
  [style*="70px minmax(0px, 1fr) auto 44px"]{grid-template-columns:minmax(0,1fr) 40px!important;}
  [style*="70px minmax(0px, 1fr) auto 44px"]>span:nth-child(1),[style*="70px minmax(0px, 1fr) auto 44px"]>span:nth-child(3){display:none!important;}
  [style*="padding: 0px 56px 32px 150px"]{padding:0 0 28px!important;}
  [style*="padding: 10px 0px 64px 94px"]{padding:0 0 48px!important;}
  [style*="grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.2fr) auto"]{grid-template-columns:1fr auto!important;}
  [style*="grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.2fr) auto"]>span:nth-child(2){display:none!important;}

  /* Encabezado: logo + botón */
  header>div{flex-wrap:nowrap!important;gap:10px!important;}
  header>div>a:first-child{flex-shrink:1!important;min-width:0;overflow:hidden;}
  header>div>a:first-child span span:first-child,header>div>a:first-child>span[style*="letter-spacing"]{font-size:15px!important;letter-spacing:0.12em!important;white-space:nowrap;}
  header>div>a[style*="background"]{flex-shrink:0!important;white-space:nowrap!important;padding:10px 12px!important;font-size:9px!important;letter-spacing:0.08em!important;}
  header a[style*="text-transform: uppercase"]:not([style*="background"]):not([style*="border: 1px solid"]){display:none!important;}
  header div[style*="flex-shrink: 0"]{flex-shrink:1!important;min-width:0;}
  header>div>div{flex-wrap:nowrap!important;gap:10px!important;}
  header a[style*="background: rgb(11, 31, 58)"]{white-space:nowrap!important;padding:10px 12px!important;font-size:9px!important;letter-spacing:0.08em!important;}
  section a[style*="background: rgb(11, 31, 58)"],section a[style*="display: inline-flex"]{max-width:100%;box-sizing:border-box;white-space:normal!important;}
  [style*="minmax(200px, 260px) minmax(0px, 1fr)"]{grid-template-columns:1fr!important;gap:30px!important;}
  [style*="minmax(200px, 260px) minmax(0px, 1fr)"]>nav{position:static!important;}
  article,article *{overflow-wrap:anywhere;}
  header a span[style*="flex-direction: column"]>span:nth-child(2){display:none!important;}
  header a[style*="gap: 14px"]{gap:10px!important;min-width:0;}
  header nav{display:none!important;}
  header a[style*="white-space: nowrap"][style*="padding: 13px 20px"]{padding:11px 14px!important;font-size:9.5px!important;letter-spacing:0.16em!important;}
  header span[style*="font-size: 20px"][style*="letter-spacing: 0.22em"],header span[style*="font-size: 21px"]{font-size:16px!important;letter-spacing:0.16em!important;}
  header img[style*="width: 38px"],header img[style*="width: 40px"]{width:32px!important;height:32px!important;}
  header div[style*="gap: 26px"],header div[style*="gap: 28px"],header div[style*="gap: 22px"]{gap:12px!important;}

  /* Portadas: foto a todo el ancho detrás del texto */
  section img[style*="position: absolute; right: 0px; top: 0px"]{width:100%!important;opacity:0.4;}
  section[style*="min-height: 9"],section[style*="min-height: 88vh"]{min-height:auto!important;}
  section[style*="min-height: 9"]>div[style*="padding: 110px 40px"],section[style*="min-height: 9"]>div[style*="padding: 120px 40px"],section[style*="min-height: 88vh"]>div[style*="padding: 110px 40px"]{padding:96px 22px 64px!important;}

  /* Decoración que se sale del borde */
  [style*="top: -18px; right: -18px"],[style*="top: -18px; left: -18px"]{display:none!important;}

  /* Botones a todo el ancho */
  section a[style*="padding: 20px 3"],section a[style*="padding: 21px 4"],section a[style*="padding: 19px 3"]{display:flex!important;justify-content:center;text-align:center;width:100%;box-sizing:border-box;}

  /* Mapa */
  iframe[title*="Ubicación"],iframe[title*="Location"]{height:300px!important;}
}
@media (max-width:420px){
  [style*="repeat(4, minmax(0px, 1fr))"] span[style*="font-size: 30px"],[style*="repeat(4, minmax(0px, 1fr))"] div[style*="font-size: 36px"]{font-size:24px!important;}
  [style*="repeat(auto-fit, minmax(130px, 1fr))"],[style*="repeat(auto-fit, minmax(125px, 1fr))"]{grid-template-columns:1fr 1fr!important;}
}
