/* Sucursales - La Postal */

.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */
.br-hero{
  position: relative;
  padding: 110px 0 42px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,243,238,.14);
  background: #111;
}

.br-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(15,15,15,.62), rgba(15,15,15,.20)),
    url("/static/core/img/otros/sucursales.png") center/cover no-repeat;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
}

.br-hero-inner{
  position: relative;
  z-index: 1;
}

.br-hero-title{
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: .14em;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(245,243,238,.95);
}

.br-hero-sub{
  margin: 0;
  max-width: 820px;
  color: rgba(245,243,238,.86);
  line-height: 1.6;
}

/* PAGE */
.br-page{
  padding: 34px 0 70px;
  background: #111;
}

/* GRID */
.br-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.br-card{
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

@media (max-width: 1100px){
  .br-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .br-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .br-grid{ grid-template-columns: 1fr; }
}

/* CARD */
.br-card{
  border-radius: 16px;
  overflow: hidden;
  background: rgba(245,243,238,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.32);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}

.br-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,0,0,.40);
}

.br-card:focus-visible{
  outline: 2px solid rgba(230,32,38,.92);
  outline-offset: 3px;
}

.br-photo{
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,.10);
  overflow: hidden;
}

.br-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

/* Playas source image is rotated; fix only this card */
.br-photo--playas img{
  transform: scale(1.01);
  transform-origin: center;
  object-position: center;
}

.br-photo--playas{
  aspect-ratio: 16 / 10;
}

.br-card--fundadores .br-photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.br-photo--fundadores{
  background: transparent;
}

@media (max-width: 520px){
  .br-photo--playas{
    aspect-ratio: 16 / 10;
  }

  .br-photo--playas img{
    transform: scale(1.01);
  }
}

.br-body{
  padding: 14px 14px 16px;
  text-align: center;
}

.br-name{
  margin: 6px 0 10px;
  font-weight: 950;
  letter-spacing: .10em;
  font-size: 13px;
  color: rgba(17,17,17,.92);
  text-transform: uppercase;
}

.br-phone{
  margin: 0 0 12px;
  color: rgba(17,17,17,.72);
  font-size: 13px;
}

.br-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(230,32,38,.55);
  color: rgba(230,32,38,.92);
  font-weight: 950;
  letter-spacing: .10em;
  font-size: 11px;
  text-decoration: none;
  background: transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.br-cta:hover{
  background: rgba(230,32,38,.92);
  color: #fff;
  border-color: rgba(230,32,38,.92);
}
.br-phone a{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.br-phone a:hover{
  text-decoration: underline;
}
