    :root{
      --nav-bg:#1e2f55;           /* azul barra */
      --nav-bg-alpha: #1f3a5ce4; /* azul barra con alpha */
      --nav-ink:#ffffff;
      --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
      --capmex-blue:#1f3a5c;
      --page-bg:rgba(30, 47, 85, 0.255); /* gris azulado como la referencia */
    }
    html, body { height: 100%;  }
 

    body{ background: var(--page-bg); overflow-x: hidden; font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

    /* NAVBAR */
    .navbar{
      --bs-navbar-padding-y: .5rem;
      background: var(--nav-bg-alpha);
      backdrop-filter: saturate(140%) blur(8px);
    }
    .navbar .nav-link,
    .navbar .navbar-brand{ color: var(--nav-ink); }
    .navbar .nav-link:hover,
    .navbar .nav-link:focus{ color:#e6edf7; }
    .dropdown-menu{
      background: var(--nav-bg);
      border: 1px solid rgba(255,255,255,.15);
    }
    .dropdown-item{ color:#e6edf7; }
    .dropdown-item:hover{ background: rgba(255,255,255,.08); color:#fff; }

    /* HERO */
    .hero{
      position: relative;
      min-height: 100vh;
      background: var(--hero-overlay), url("../img/hero.jpg") center/cover no-repeat fixed;
      display: grid;
      place-items: center;
      text-align: center;
      color: #fff;
    }
    .hero__inner{ max-width: 1100px; padding: 96px 16px 48px; }
    .hero__logo{
      width: clamp(120px, 18vw, 220px);
      height: auto;
      margin-bottom: 18px;
      filter: drop-shadow(0 6px 20px rgba(0,0,0,.25));
    }
    .hero__title{
      font-weight: 800;
      letter-spacing: .6px;
      font-size: clamp(32px, 7vw, 72px);
      margin-bottom: 18px;
    }
    .hero__social a{
      display:inline-flex; align-items:center; justify-content:center;
      width:44px; height:44px;
      border:2px solid rgba(255,255,255,.8);
      border-radius: .6rem;
      margin:0 6px;
      color:#fff;
      transition: .2s ease;
    }
    .hero__social a:hover{ transform: translateY(-2px); background: rgba(255,255,255,.08); }

    .page-hero{
      padding: 96px 0 32px; /* deja espacio por navbar fixed */
      text-align:center; color:#0e1726;
    }
    .page-hero h1{
      font-size: clamp(32px,4.5vw,56px);
      font-weight: 800; letter-spacing:.5px;
      text-shadow: 0 2px 8px rgba(0,0,0,.25);
    }

    /* GRID DE SERVICIOS */
    .services{
      padding: 24px 0 64px;
    }
    .service-card{
      text-decoration:none; color:#0e1726;
      display:flex; flex-direction:column; align-items:center; gap:12px;
      padding: 12px 8px; border-radius:16px; transition: .2s ease;
    }
    .service-card:focus, .service-card:hover{
      transform: translateY(-2px);
    }
    .service-icon{
      width: 132px; height:132px; border-radius:50%;
      background: var(--capmex-blue); color:#fff;
      display:grid; place-items:center;
      box-shadow: 0 6px 18px rgba(0,0,0,.18);
    }

    .service-icon .icon-img{
      width: 80px; height: 80px;
    }

    .service-icon i{
      font-size: 58px;
    }
    .service-title{
      margin:0; font-weight:700; font-size: clamp(16px,2.4vw,18px); color:#1f3a5c;
    }

    /* Espaciado de filas como en la referencia */
    .services .row > [class*="col"]{ margin-bottom: 36px; }

    /* ======= CONTABLE (y plantilla para otros servicios) ======= */
.service-hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url("../img/contable-hero.png") center/cover no-repeat fixed;
  color: #fff;
  overflow: hidden; /* 👈 evita overflow y la barra extra */
}


/* Caja del título “CONTABLE” */
.service-box-title{
  border: 4px solid #ffffff;
  border-radius: 4px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(240px, 50vw, 540px);
  min-height: 72px;
  backdrop-filter: blur(0.5px);
}
.service-box-title span{
  font-weight: 800;
  letter-spacing: .6px;
  font-size: clamp(22px, 4.2vw, 36px);
  color: #fff;
}

/* Lista con “•” como en el mock */
.service-bullets{
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.6;
}
.service-bullets li{
  position: relative;
  padding-left: 1.2em;
  margin-bottom: .35rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-size: 23px;
}
.service-bullets li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  opacity: .95;
}

/* ======= JURÍDICO ======= */
.service-hero--juridico{
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/juridico-hero.png") center/cover no-repeat fixed;
}

/* ======= CAPITAL HUMANO ======= */
.service-hero--capital{
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/capital-humano-hero.png") center/cover no-repeat fixed;
}

/* ======= CORPORATIVO ======= */
.service-hero--corporativo{
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/corporativo-hero.png") center/cover no-repeat fixed;
}

/* ======= INVERSIONES ======= */
.service-hero--inversiones{
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/inversiones-hero.png") center/cover no-repeat fixed;
}

/* ======= FINANCIEROS ======= */
.service-hero--financieros{
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/financiero-hero.png") center/cover no-repeat fixed;
}

/* ======= NOSOTROS ======= */
.about-hero{
  padding-top: 96px; /* despeje por navbar */
  padding-bottom: 48px;
  min-height: calc(100vh - 64px);

  display: flex;
  align-items: center;

}
.about-title{
  max-width: 1000px;
  margin: 0 auto 24px;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.35;
}
.about-layout{ margin-top: 8px; }

/* Mapa */
.about-map img{
  width: clamp(420px, 55vw, 900px);   /* ← Aumenta el máximo si lo quieres todavía más grande */
  height: auto;
  display: block;
 
  /* Si te pasan un PNG oscuro y quieres tintarlo, descomenta:
     filter: brightness(.92) saturate(.9) drop-shadow(0 6px 14px rgba(0,0,0,.15));
  */
}

/* Círculos (desktop: columna; tablet: grid; móvil: carrusel horizontal) */
.about-circles{
  display: grid;
  gap: 16px;
  justify-items: center;
}
.mvv-circle{
  background: var(--capmex-blue);
  color: #fff;
  width: clamp(240px, 26vw, 340px);
  height: clamp(240px, 26vw, 340px);
  border-radius: 50%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-inline: auto; /* centra en tablet */
}

/* Centrado interno SOLO para el círculo de VALORES */
.mvv-circle.valores{
  /* no cambia posición del círculo, solo su contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;   /* 👈 centra horizontalmente el bloque UL */
}

/* El listado queda centrado como bloque, pero el texto va alineado a la izquierda */
.mvv-circle.valores ul{
  display: inline-block;
  width: min(22ch, 80%); /* 👈 evita que “toque” el borde y no se salga la viñeta */
  margin: 0 auto;        /* 👈 centra el UL dentro del círculo */
  padding-left: 1.2rem;  /* sangría para las viñetas */
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

/* Viñetas blancas y sin desbordes raros */
.mvv-circle.valores li::marker{ color:#fff; }
.mvv-circle.valores li{ overflow-wrap: anywhere; }




.mvv-circle h3{
  margin: 0 0 8px;
  letter-spacing: .6px;
  font-weight: 800;
  font-size: clamp(14px, 3.5vw, 20px);
}
.mvv-circle p, .mvv-circle li{
  font-size: clamp(12px, 2.8vw, 16px);
  line-height: 1.45;
}
.mvv-circle ul{ padding-left: 18px; text-align: left; }


/* ======= CONTACTO ======= */
.contacto-section{
  padding-top: 96px;            /* despeje por navbar */
  padding-bottom: 48px;

}

/* Colores y superficies del formulario */
.contact-control{
  background: rgba(26, 46, 70, .6);    /* parecido a tu mock */
  color: #fff;
  border: 0;
  border-radius: 4px;
}
.contact-control::placeholder{ color: rgba(255,255,255,.7); }
.contact-control:focus{
  background: rgba(26, 46, 70, .75);
  color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255,255,255,.15);
}

/* Botón */
.btn-capmex{
  background: #415872;
  color: #fff;
  border: 0;
  padding: .6rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
}
.btn-capmex:hover{ background: #4d6b8a; color:#fff; }

/* Tarjeta lateral */
.contacto-card{
  color: #fff;
}
.contacto-title{
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 48px);
  margin-bottom: 18px;
}
.contacto-item{
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0;
}

.contacto-item a{
  color: #1f3a5c !important;
}

.contacto-correos a {
  display: block;
  color: #1f3a5c !important;
  text-decoration: none;
  line-height: 0.4; /* reduce espacio vertical entre los enlaces */
}


.contacto-icon{
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--capmex-blue);
  color: #fff;
  font-size: 20px;
}
.contacto-card a{
  color: #e6edf7; text-decoration: none; font-weight: 600;
}
.contacto-card a:hover{ text-decoration: underline; }



/* ===== Home highlights (con breakpoints móviles/tablets/desktop) ===== */

/* Marco base */
.hl-media{
  display:block;
  position:relative;
  width:100%;
  border-radius:12px;
  overflow:hidden;
  background-color:#13263a !important;
}
.hl-media img,
.hl-media iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  object-fit:cover; /* Revista llena el marco */
}

/* MOBILE: cuadrado */
.hl-media{ aspect-ratio: 1 / 1; }

/* TABLET: 4:3 */
@media (min-width: 768px) and (max-width: 991.98px){
  .hl-media{ aspect-ratio: 4 / 3; }
}

/* DESKTOP: 3:4 */
@media (min-width: 992px){
  .hl-media{ aspect-ratio: 3 / 4; }
}

/* Para no recortar en YouTube/Spotify (letterboxing suave) */
.hl-media--contain img,
.hl-media--contain iframe{
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

/* Estética de la sección */
.home-highlights{
  min-height: calc(100vh - 140px);
  display:grid; align-items:center;
  padding: clamp(24px, 5vw, 64px) 0;
}
.home-highlights .container-xxl,
.home-highlights .container{ max-width:1280px; }
.hl-card{
  background: var(--page-bg);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding: clamp(16px, 3vw, 36px);
  max-width:1200px; margin:0 auto;
}

.hl-title{ font-weight:800; letter-spacing:.3px; color:#eaf1ff; }
.hl-desc { color:#e6edf7; opacity:.92; }
.carousel-indicators [data-bs-target]{ width:10px; height:10px; border-radius:50%; }



/* Responsive: en móvil, separa un poco más los bloques */
@media (max-width: 991.98px){
  .contacto-section{ padding-top: 90px; }
  .contacto-card{ margin-top: 4px; }
}

/* Tablet grande (992–1199px): versión similar pero un poco más compacta */
@media (min-width: 992px) and (max-width: 1199.98px){
  .about-circles{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    justify-items: center;
  }
  .mvv-circle.mision{  grid-column:1; grid-row:1; }
  .mvv-circle.vision{  grid-column:2; grid-row:1; }
  .mvv-circle.valores{ grid-column:1 / span 2; grid-row:2; }
}

/* Tablet: mapa arriba, círculos en grid 2×2 */
@media (min-width: 640px) and (max-width: 991.98px){
  .about-circles{
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    justify-items: center;
  }
}

/* Desktop: dos columnas (mapa izquierda, círculos derecha en columna) */
@media (min-width: 992px){

  .about-layout{ 
    align-items: center; 
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* mapa más ancho */
    gap: 24px;
  }  /* fila centrada en desktop */

  .about-circles{
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    justify-items: end;
  }
  .mvv-circle{ margin-inline: 0 8px; }
}

/* Móvil: carrusel horizontal con scroll-snap */
@media (max-width: 639.98px){
  .about-circles{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .mvv-circle{ scroll-snap-align: center; margin: 0; font-size: 18px; }
}


/* Responsivo */
@media (max-width: 991.98px){ /* tablets y abajo */
  .service-hero{ background-attachment: scroll; } /* mejor performance móvil */
  .service-box-title{ margin-bottom: 16px; }
}
@media (max-width: 575.98px){ /* móvil */
  .service-box-title{
    min-width: 90%;
    padding: 12px 18px;
    border-width: 3px;
  }

}

/* Para pantallas de hasta 576px */
@media (max-width: 576px){
  .mvv-circle h3{
    font-size: 14px;
  }
  .mvv-circle p,
  .mvv-circle li{
    font-size: 12px;
  }
}

/* Para tablets chicas (577px–768px) */
@media (min-width: 577px) and (max-width: 768px){
  .mvv-circle h3{ font-size: 16px; }
  .mvv-circle p,
  .mvv-circle li{ font-size: 13px; }
}



/* (Opcional) Ajuste fino para que la caja no pegue al borde derecho en desktop grande */
@media (min-width: 1200px){
  .service-hero--juridico .service-box-title{ margin-right: 2vw; }
}

/* Desktop grande: grilla y posiciones a la “mock” */
@media (min-width: 1200px){
  .about-circles{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 28px 28px; /* filas / columnas */
    justify-items: end; /* apoya la alineación a la derecha */
  }
  .mvv-circle.mision{   grid-column: 1; grid-row: 1; align-self: start;  }
  .mvv-circle.vision{   grid-column: 2; grid-row: 1; align-self: start;  }
  .mvv-circle.valores{  grid-column: 1 / span 2; grid-row: 2; 
                         justify-self: center; align-self: start; 
                         transform: translateY(10px); /* leve ajuste vertical */
  }
}

/* Ajustes para que el header no tape anclas */
:target{ scroll-margin-top: 80px; }




/* Ajustes específicos para el grid de círculos en “Nosotros” */

@media (max-width: 639.98px){
  .about-circles--top{
    grid-template-columns: 1fr;   /* 1 por fila */
  }
}
@media (min-width: 640px) and (max-width: 991.98px){
  .about-circles--top{
    grid-template-columns: repeat(2, minmax(220px, 1fr)); /* 2 por fila */
  }
}
@media (min-width: 1200px){
  .about-circles--top{
    grid-template-columns: repeat(3, minmax(240px, 1fr)); /* 3 por fila */
    justify-items: center;
  }
  /* En este layout ya no se necesita spanning para valores */
  .about-circles--top .mvv-circle.valores{
    grid-column: auto; grid-row: auto; transform: none; justify-self: center;
  }
}
/* Mapa centrado y con ancho controlado */
.about-map img{
  width: clamp(420px, 70vw, 1100px);
  height: auto;
  display: inline-block;
  margin-top: 120px;
}
