
   .branches{
    background: var(--color-neutral-white, #FFFFFF);
    color: var(--color-neutral-black, #1F1F1F);
    padding: 0 0 60px;
    font-family: "Poppins", sans-serif;
  }
  
  .branches .container{
    max-width: 1200px;
  }
  
  /* HERO */
  .hero-section{
    position: relative;
    background: url('../images/sucursales/mapaamerica.png') center center / cover no-repeat;
    min-height: 500px;
    display: grid;
    place-content: center;
    gap: 14px;
    text-align: center;
    padding: 120px 18px 60px;
    margin-top: 80px;
    overflow: hidden;
  }
  
  .hero-section::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(var(--bs-primary-rgb, 51, 64, 158), .92) 0%,
      rgba(var(--bs-primary-rgb, 51, 64, 158), .72) 55%,
      rgba(var(--bs-primary-rgb, 51, 64, 158), .50) 100%
    );
    z-index: 0;
  }
  
  .hero-section > *{
    position: relative;
    z-index: 1;
  }
  
  .hero-section h1{
    margin: 0;
    color: var(--color-neutral-white, #FFFFFF);
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.05;
    font-size: clamp(28px, 4vw, 54px);
  }
  
  .hero-section h1 span{
    color: var(--bs-secondary, #A5C230);
  }
  
  /* =========================
     BOTÓN OFICIAL (btn-partner)
     ========================= */
  .btn-partner{
    background: linear-gradient(90deg, #2A3481 0%, #4756B8 50.48%, #4756B8 72.41%, #2A3481 100%);
    color: var(--color-neutral-white, #FFFFFF);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3),
                0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
  }
  
  .btn-partner:hover{
    filter: brightness(1.03);
    transform: translateY(-1px);
  }
  
  .btn-partner:focus{
    outline: none;
    box-shadow:
      0 0 0 3px rgba(var(--bs-secondary-rgb, 165, 194, 48), .35),
      0px 1px 3px 0px rgba(0, 0, 0, 0.3),
      0px 4px 8px 3px rgba(0, 0, 0, 0.15);
  }
  
  .btn-partner__icon{
    font-size: 16px;
    line-height: 1;
    transform: translateY(-1px);
  }
  
  /* Centrar botón del hero */
  .btn-partner--center{
    justify-self: center;
  }
  
  /* Botón ancho completo dentro de cards */
  .btn-partner--block{
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }
  
  /* =========================
     SECCIONES + GRID
     ========================= */
  .branches-main{ padding: 6px 0 0; }
  
  .branches-section-header{ margin: 22px 0 10px; }
  
  .branches-section-title{
    margin: 0;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    color: var(--bs-primary, #33409E);
  }
  
  .branches-grid{
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
    margin-top: 14px;
  }
  
  /* =========================
     CARDS
     ========================= */
  :root{
    --branch-card-radius: 28px;
    --branch-card-minh: 500px; /* físicas: misma medida */
    --branch-cover-h: 200px;
  }
  
  .branch-card{
    border-radius: var(--branch-card-radius);
    overflow: hidden;
    background: var(--color-neutral-white, #FFFFFF);
    border: 0;
    box-shadow: 0 18px 38px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  
  /* Misma altura SOLO para físicas */
  .branches-grid--physical .branch-card{
    min-height: var(--branch-card-minh);
  }
  
  .branch-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 26px 52px rgba(0,0,0,.16);
  }
  
  .branch-card:focus-within{
    transform: translateY(-6px);
    box-shadow: 0 26px 52px rgba(0,0,0,.16);
  }
  
  /* Cover superior (solo físicas) */
  .branch-card__image{
    position: relative;
    width: 100%;
    height: var(--branch-cover-h);
    background: rgba(var(--bs-primary-rgb, 51, 64, 158), .08);
    overflow: hidden;
  }
  
  .branch-card__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  .branch-card__image::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      135deg,
      rgba(var(--bs-primary-rgb, 51, 64, 158), .10) 0%,
      rgba(var(--bs-secondary-rgb, 165, 194, 48), .10) 100%
    );
    pointer-events: none;
  }
  
  /* Cuerpo (padding bottom +24px) */
  .branch-card__body{
    padding: 18px 18px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  /* Títulos */
  .branch-card__title{
    margin: 2px 0 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .2px;
    text-transform: none;
    color: var(--color-neutral-black, #1F1F1F);
  }
  
  .branch-card__time{
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-neutral-gray, #9E9E9E);
  }
  
  /* Info en párrafos (sin <br>) */
  .branch-card__info p{
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(var(--bs-primary-rgb, 51, 64, 158), .92);
  }
  
  /* Etiquetas en negro */
  .branch-card__info strong{
    color: var(--color-neutral-black, #1F1F1F);
    font-weight: 800;
  }
  
  /* Links en azul */
  .branch-card__info a{
    color: rgba(var(--bs-primary-rgb, 51, 64, 158), .98);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .branch-card__info a:hover{ text-decoration: underline; }
  
  /* Espacio extra antes del botón */
  .branch-card__emails{
    margin-bottom: 14px;
  }
  
  /* Acciones: botón abajo, ancho completo */
  .branch-card__actions{
    margin-top: auto;
    display: flex;
  }
  
  /* =========================
     VIRTUALES: solo info, sin cover ni alto forzado
     ========================= */
  .branches-grid--virtual{
    align-items: start;
  }
  
  .branches-grid--virtual .branch-card{
    min-height: 0;
    align-self: start;
  }
  
  /* Oculta cualquier cover si existiera */
  .branches-grid--virtual .branch-card__image{
    display: none !important;
  }
  
  /* Un poco más de aire arriba en virtuales */
  .branches-grid--virtual .branch-card__body{
    padding-top: 22px;
  }
  
  /* =========================
     MOBILE
     ========================= */
  @media (max-width: 640px){
    :root{ --branch-cover-h: 170px; }
    .branches-grid--physical .branch-card{ min-height: 0; }
  }
  
  /* =========================
     MAPA
     ========================= */
  .branches-map{
    margin-top: 26px;
    padding-top: 10px;
  }
  
  .branches-map__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
  }
  
  .branches-map__title{
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--bs-primary, #33409E);
  }
  
  .branches-map__frame{
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius-xl, 18px);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    background: rgba(var(--bs-secondary-rgb, 165, 194, 48), .12);
  }
  
  .branches-map__canvas{
    width: 100%;
    height: 430px;
  }
  
  @media (max-width: 640px){
    .branches-map__canvas{ height: 360px; }
  }
  