/* Menú "Industrias" — compartido por el header de todas las páginas y por la
   barra de ruta de las landings de industria. El botón hereda tipografía y
   color del resto de los links del nav. */
.af-ind { position: relative; display: inline-flex; align-items: center; }
.af-ind-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; line-height: inherit; }
.af-ind-btn:hover, .af-ind.open .af-ind-btn { color: #0B1A3D; }
.af-ind-btn svg { flex: none; transition: transform .2s ease; }
.af-ind.open .af-ind-btn svg { transform: rotate(180deg); }
.af-ind-menu { position: absolute; top: calc(100% + 18px); left: 50%; z-index: 70; width: 660px; max-width: calc(100vw - 32px); margin: 0; box-sizing: border-box;
  background: #FFFFFF; border: 1px solid rgba(11,26,61,0.08); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(11,26,61,0.22);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.af-ind.open .af-ind-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* sin JS: lista simple de links */
.af-ind-menu > a { display: block; padding: 12px 18px; color: #0B1A3D; font-size: 15px; text-decoration: none; }
.af-ind-menu > a .af-ind-d { display: none; }

/* ── Panel de dos columnas: industria (izquierda) → landings (derecha) ── */
.mm { display: grid; grid-template-columns: 230px 1fr; grid-auto-rows: min-content; min-height: 268px; text-align: left; font-size: 15px; line-height: 1.35; color: #0B1A3D; }
.mm-g { display: contents; }
.mm-cat { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% - 16px); margin: 8px 0 0 8px; padding: 15px 14px;
  border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: #0B1A3D; text-align: left; cursor: pointer; }
.mm-g:last-child .mm-cat { margin-bottom: 8px; }
.mm-cat svg { flex: none; color: rgba(11,26,61,0.45); }
.mm-g.on .mm-cat { background: #F5F4FF; color: #543FA6; }
.mm-g.on .mm-cat svg { color: #543FA6; }
.mm-pane { display: none; grid-column: 2; grid-row: 1 / span 4; padding: 26px 28px 24px; border-left: 1px solid rgba(11,26,61,0.07); }
.mm-g.on .mm-pane { display: block; }
.mm-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #0B1A3D; }
.mm-desc { margin: 8px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(11,26,61,0.07); font-size: 14px; line-height: 1.5; color: #5B5F6B; }
.mm-items { display: flex; flex-direction: column; gap: 4px; }
.mm-item { display: flex; align-items: center; gap: 14px; margin: 0 -10px; padding: 11px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #0B1A3D; text-decoration: none; }
.mm-item:hover, .mm-item:focus-visible { background: #F5F4FF; }
.mm-item.current { background: #F5F4FF; color: #543FA6; }
.mm-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #F5F4FF; color: #543FA6; }
.mm-item.current .mm-ic { background: #FFFFFF; }

/* acordeón en pantallas angostas */
@media (max-width: 760px) {
  .mm { display: block; min-height: 0; }
  .mm-g { display: block; border-bottom: 1px solid rgba(11,26,61,0.07); }
  .mm-g:last-child { border-bottom: 0; }
  .mm-cat { width: 100%; margin: 0; padding: 16px 18px; border-radius: 0; }
  .mm-g:last-child .mm-cat { margin-bottom: 0; }
  .mm-cat svg { transform: rotate(90deg); transition: transform .2s ease; }
  .mm-g.on .mm-cat { background: none; }
  .mm-g.on .mm-cat svg { transform: rotate(-90deg); }
  .mm-pane { padding: 0 18px 14px; border-left: 0; }
  .mm-title { display: none; }
  .mm-desc { margin: 0 0 10px; padding-bottom: 0; border-bottom: 0; font-size: 13px; }
}

/* ── Barra de ruta de las landings ── */
.af-ruta { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.af-ruta-lvl { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.af-ruta-lvl:hover { text-decoration: underline; text-underline-offset: 3px; }
.af-ruta-sep { opacity: .6; }
.af-ruta-tog { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 2px; padding: 0; border: 1px solid currentColor; border-radius: 50%;
  background: none; color: inherit; cursor: pointer; opacity: .8; }
.af-ruta-tog:hover { opacity: 1; }
.af-ruta-tog svg { transform: rotate(90deg); transition: transform .2s ease; }
.af-ruta.open .af-ruta-tog svg { transform: rotate(-90deg); }
.af-ruta-panel { position: absolute; top: calc(100% + 8px); left: 34px; z-index: 85; width: 660px; max-width: calc(100% - 68px); box-sizing: border-box;
  background: #FFFFFF; border: 1px solid rgba(11,26,61,0.08); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(11,26,61,0.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.af-ruta.open .af-ruta-panel { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 560px) { .af-ruta-panel { left: 14px; max-width: none; width: calc(100% - 28px); } }
@media print { .af-ruta-tog, .af-ruta-panel { display: none !important; } }

/* Grilla del footer con la columna Industrias (index y management). */
@media (max-width: 900px) { .af-foot-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 520px) { .af-foot-grid { grid-template-columns: 1fr !important; } }

/* Menú móvil estático (contacto, ingreso, blog y recursos): grupo Industrias. */
.af-ind-label { display: block; padding: 12px 4px 4px; font-size: 16px; color: #0F1420; }
.mobile-menu nav a.af-ind-sub { padding: 9px 4px 9px 20px; font-size: 15px; color: #3D3566; border-bottom: 0; }
.mobile-menu nav a.af-ind-sub.af-ind-last { border-bottom: 1px solid rgba(15,20,32,0.08); }
