/* Manuel Marquez — cabecera integrada y galeria real de talleres v26. */

:root{
  --mm-header-blue:#526fa8;
  --mm-header-blue-deep:#405b91;
}

html body#encore-theme .mm-header{
  background:rgba(82,111,168,.97)!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 8px 26px rgba(29,45,79,.10)!important;
  backdrop-filter:blur(16px)!important;
}

html body#encore-theme .mm-header .mm-brand,
html body#encore-theme .mm-header .mm-nav,
html body#encore-theme .mm-header .mm-nav a,
html body#encore-theme .mm-header .mm-account,
html body#encore-theme .mm-header .mm-menu{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body#encore-theme .mm-header .mm-nav a{
  position:relative;
  opacity:.86!important;
  transition:opacity .18s ease!important;
}

html body#encore-theme .mm-header .mm-nav a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-7px;
  height:1px;
  background:#fff;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}

html body#encore-theme .mm-header .mm-nav a:hover{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

html body#encore-theme .mm-header .mm-nav a:hover:after{transform:scaleX(1)}
html body#encore-theme .mm-header .mm-nav__newsletter{opacity:1!important}

html body#encore-theme .mm-mobile{
  background:var(--mm-header-blue-deep)!important;
  color:#fff!important;
  border-top-color:rgba(255,255,255,.16)!important;
}

html body#encore-theme .mm-mobile a{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-bottom-color:rgba(255,255,255,.16)!important;
}

.mm-gallery{
  --gallery-ink:#151821;
  --gallery-copy:#555b68;
  --gallery-line:#e1e4ea;
  background:#fff;
  color:var(--gallery-ink);
  padding:78px 0 108px;
}

.mm-gallery,.mm-gallery *{box-sizing:border-box}
.mm-gallery a{color:inherit;text-decoration:none}
.mm-gallery__wrap{width:min(1280px,calc(100% - 52px));margin:0 auto}
.mm-gallery__hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.55fr);gap:72px;align-items:end;padding:18px 0 58px;border-bottom:1px solid var(--gallery-line)}
.mm-gallery__eyebrow{margin:0 0 18px;color:#526fa8!important;font-size:11px!important;font-weight:800!important;letter-spacing:.16em!important;text-transform:uppercase}
.mm-gallery__hero h1{margin:0!important;max-width:780px;color:var(--gallery-ink)!important;-webkit-text-fill-color:var(--gallery-ink)!important;font-size:clamp(48px,6vw,76px)!important;line-height:.98!important;letter-spacing:-.045em!important;font-weight:650!important}
.mm-gallery__intro{max-width:700px;margin:24px 0 0!important;color:var(--gallery-copy)!important;font-size:18px!important;line-height:1.58!important}
.mm-gallery__stats{display:grid;grid-template-columns:1fr 1fr;gap:22px;border-top:1px solid var(--gallery-ink);padding-top:22px}
.mm-gallery__stats strong{display:block;margin-bottom:7px;font-size:39px;line-height:1;font-weight:650;letter-spacing:-.04em}
.mm-gallery__stats span{display:block;color:#707582;font-size:10px;line-height:1.4;font-weight:800;letter-spacing:.09em;text-transform:uppercase}

.mm-gallery__group{--group:#526fa8;padding:58px 0 4px}
.mm-gallery__group>header{display:grid;grid-template-columns:46px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:26px}
.mm-gallery__group>header>span{width:34px;height:34px;border:1px solid var(--group);border-radius:50%;display:grid;place-items:center;color:var(--group);font-size:10px;font-weight:850}
.mm-gallery__group>header p{margin:0 0 7px!important;color:var(--group)!important;font-size:10px!important;line-height:1.3!important;font-weight:850!important;letter-spacing:.13em!important;text-transform:uppercase}
.mm-gallery__group>header h2{margin:0!important;max-width:670px;color:var(--gallery-ink)!important;-webkit-text-fill-color:var(--gallery-ink)!important;font-size:clamp(28px,3vw,40px)!important;line-height:1.05!important;letter-spacing:-.035em!important;font-weight:650!important}
.mm-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}
.mm-gallery__card{display:block;min-width:0}
.mm-gallery__card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid rgba(21,24,33,.08);transition:transform .22s ease,box-shadow .22s ease}
.mm-gallery__card span{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 2px 0;font-size:12px;font-weight:750;letter-spacing:.01em}
.mm-gallery__card span:after{content:"↗";color:var(--group);font-size:16px;font-weight:500;transition:transform .18s ease}
.mm-gallery__card:hover img{transform:translateY(-4px);box-shadow:0 18px 38px rgba(21,24,33,.11)}
.mm-gallery__card:hover span:after{transform:translate(2px,-2px)}

.mm-gallery__group--identity{--group:#697563}
.mm-gallery__group--performance{--group:#a15440}
.mm-gallery__group--evolution{--group:#55728d}
.mm-gallery__group--future{--group:#b37a32}
.mm-gallery__group--shadow{--group:#785466}

@media(max-width:900px){
  .mm-gallery__hero{grid-template-columns:1fr;gap:38px}
  .mm-gallery__stats{max-width:540px}
  .mm-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  .mm-gallery{padding:52px 0 76px}
  .mm-gallery__wrap{width:min(100% - 30px,1280px)}
  .mm-gallery__hero{padding:10px 0 42px}
  .mm-gallery__hero h1{font-size:48px!important}
  .mm-gallery__intro{font-size:16px!important}
  .mm-gallery__stats strong{font-size:32px}
  .mm-gallery__group{padding-top:46px}
  .mm-gallery__group>header{grid-template-columns:38px minmax(0,1fr);gap:12px}
  .mm-gallery__group>header>span{width:30px;height:30px}
  .mm-gallery__grid{grid-template-columns:1fr;gap:25px}
  .mm-gallery__card span{font-size:13px}
}
