:root{
  --ays-blue: #1e3f72;
  --ays-blue-2:#18365e;
  --ays-red:#e02020;
  --glass: rgba(255,255,255,.12);
  --glass-2: rgba(255,255,255,.08);
}

.branches-hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  padding: 60px 0 45px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 40%, rgba(224,32,32,.20), transparent 55%),
    linear-gradient(135deg, var(--ays-blue), var(--ays-blue-2));
}

.branches-hero__content{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items:center;
  min-height: 440px;
  position:relative;
  z-index: 2;
}

.branches-hero__title{
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
  margin: 10px 0 10px;
}

.branches-hero__sub{
  max-width: 58ch;
  opacity:.95;
  font-size: 1.05rem;
}

.kicker{
  display:flex;
  align-items:center;
  gap:10px;
  opacity:.9;
  font-weight:600;
}
.kicker::before{
  content:"";
  width:10px; height:10px;
  border-radius:50%;
  background: var(--ays-red);
  box-shadow: 0 0 0 6px rgba(224,32,32,.18);
}

.branches-hero__chips{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  display:inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color:#fff;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease;
}
.chip:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
}

.hero-panel{
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.hero-panel h3{ margin:0 0 6px; font-size: 1.15rem; }
.hero-panel p{ margin:0 0 14px; opacity:.9; }

.mini-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini-stat{
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.12);
  text-align:center;
}
.mini-stat__num{ font-weight:800; font-size: 1.1rem; }
.mini-stat__label{ opacity:.85; font-size: .85rem; margin-top: 4px; }

.branches-hero__wave{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.18));
  filter: blur(0px);
  opacity:.9;
}

/* sección */
.branches-section{
  position:relative;
  padding: 64px 0;
}

.center-head{
  text-align:center;
  margin-bottom: 26px;
}
.section-title{ font-size: clamp(30px, 3vw, 40px); margin:0 0 8px; }
.section-sub{ opacity:.8; max-width: 70ch; margin: 0 auto; }

.branches-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.branch-card{
  border-radius: 22px;
  overflow:hidden;
  background: #fff;
  border: 1px solid rgba(10,30,60,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.branch-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 65px rgba(0,0,0,.14);
}

.branch-card__head{
  padding: 18px 18px 12px;
  background:
    radial-gradient(800px 260px at 30% 0%, rgba(224,32,32,.08), transparent 55%),
    linear-gradient(135deg, #f7f9ff, #ffffff);
}
.branch-card__badge{
  display:inline-flex;
  font-size: .78rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ays-red);
  box-shadow: 0 10px 24px rgba(224,32,32,.22);
  margin-bottom: 10px;
}
.branch-card__head h3{ margin:0 0 6px; font-size: 1.25rem; }
.branch-card__head p{ margin:0; opacity:.85; }

.branch-card__body{
  padding: 14px 18px 18px;
}

.branch-meta{
  list-style:none;
  padding:0;
  margin:0 0 14px;
  display:grid;
  gap: 8px;
}
.branch-meta li{ color:#1c2430; }
.branch-meta strong{ color:#0d1b2a; }

.branch-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

/* map */
.map-frame{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(10,30,60,.12);
  background: #eef3ff;
}
.map-frame iframe{
  width: 100%;
  height: 280px;
  border: 0;
  display:block;
}

/* fondos tipo conocenos */
.textured{
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0, rgba(0,0,0,.02) 2px, transparent 2px, transparent 8px),
    #f7f8fb;
}
.textured.alt{
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0, rgba(0,0,0,.02) 2px, transparent 2px, transparent 8px),
    #f3f6ff;
}
.ribbon{
  position:absolute;
  top:0; right:0;
  width: 52px;
  height: 120px;
  background: var(--ays-red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%);
  opacity: .95;
}

/* blobs (si ya tienes en conocenos, puedes reutilizar) */
.branches-hero__bg .blob{
  position:absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: .26;
}
.branches-hero__bg .blob-1{ width: 460px; height: 460px; left: -160px; top: 50px; background: rgba(255,255,255,.22); }
.branches-hero__bg .blob-2{ width: 520px; height: 520px; right: -220px; top: 120px; background: rgba(224,32,32,.22); }
.branches-hero__bg .blob-3{ width: 520px; height: 520px; left: 45%; bottom: -260px; background: rgba(0,0,0,.18); }

/* responsive */
@media (max-width: 980px){
  .branches-hero__content{
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 10px;
  }
  .branches-grid{
    grid-template-columns: 1fr;
  }
  .map-frame iframe{ height: 260px; }
}
/* Piura ocupa toda la fila */
.branch-card--wide{
  grid-column: span 2;
}
@media (max-width: 980px){
  .branch-card--wide{
    grid-column: span 1;
  }
}
