/* ===== Página "Nuestro grupo" ===== */
.sbg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* El widget de shortcode ocupa todo el ancho aunque la sección centre su contenido */
.elementor-widget-shortcode:has(.sbg-org), .elementor-widget-shortcode:has(.sbg-presencia) { align-self: stretch; width: 100%; }
/* Empresas: dos bandas unidas por un conector */
.sbg-org { display: flex; flex-direction: column; align-items: stretch; margin-top: 10px; }
.sbg-banda { background: #fff; border-radius: 26px; padding: 30px 30px 34px; box-shadow: 0 14px 40px rgba(11,59,84,.10); }
.sbg-banda--saborinter { background-color: #0B3B54; color: #fff; overflow: hidden; }
.sbg-banda-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.sbg-banda-cab h3 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 30px; color: #262626; display: flex; align-items: center; }
.sbg-banda-cab p { margin: 0; max-width: 520px; color: #6b6b6b; font-size: 16px; }
.sbg-banda--saborinter .sbg-banda-cab p { color: rgba(255,255,255,.85); }
.sbg-logo-saborinter { height: 46px; width: auto; }
.sbg-conector { height: 56px; display: flex; justify-content: center; }
.sbg-conector span { width: 3px; height: 100%; background: repeating-linear-gradient(#F4B223 0 8px, transparent 8px 14px); position: relative; }
.sbg-conector span::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #F4B223; box-shadow: 0 0 0 6px rgba(244,178,35,.25); animation: sbgLatido 2.4s ease-in-out infinite; }
.sbg-carril { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.sbg-banda--saborinter .sbg-carril { grid-template-columns: repeat(3, minmax(230px, 1fr)); max-width: 75%; margin: 0 auto; }
.sbg-tarjeta { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #EFE9DD;
  box-shadow: 0 8px 22px rgba(0,0,0,.06); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sbg-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f3efe6; }
.sbg-foto img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center 50%; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(1.15) contrast(1.05); }
.sbg-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #C1272D; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.sbg-logo { position: relative; z-index: 2; align-self: flex-start; margin: -34px 0 0 16px; height: 68px; padding: 8px 14px; background: #fff; border-radius: 14px; box-shadow: 0 8px 22px rgba(11,59,84,.16); display: flex; align-items: center; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sbg-logo img { height: 100% !important; width: auto !important; max-width: 170px; object-fit: contain; }
.sbg-logo--sabores-andinos { height: 92px; margin-top: -52px; } .sbg-logo--bambu { height: 76px; }
.sbg-tarjeta:hover .sbg-logo { transform: translateY(-4px) scale(1.04); }
.sbg-info { padding: 14px 18px 20px; }
.sbg-sin-logo .sbg-info { padding-top: 18px; }
.sbg-info h4 { margin: 0 0 8px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.15; color: #262626; }
.sbg-info p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #6b6b6b; }
.sbg-tarjeta:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,0,0,.16); }
.sbg-tarjeta:hover .sbg-foto img { transform: scale(1.08); }
.sbg-tarjeta:hover .sbg-foto::after { transform: scaleX(1); }
@keyframes sbgLatido { 0%,100% { box-shadow: 0 0 0 4px rgba(244,178,35,.30); } 50% { box-shadow: 0 0 0 12px rgba(244,178,35,0); } }
/* entrada escalonada al hacer scroll */
.sb-anim { opacity: 0; transform: translateY(26px); }
.sb-anim.is-in { opacity: 1; transform: none; transition: opacity .6s ease calc(var(--i, 0) * 90ms), transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms); }

/* Presencia: pestañas + mapa */
.sbg-pestanas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.sbg-pestanas button { border: 1px solid #E7E2D8; background: #fff; color: #262626; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: .2s; }
.sbg-pestanas button:hover { border-color: #0B3B54; color: #0B3B54; }
.sbg-pestanas button[aria-selected="true"] { background: #0B3B54; border-color: #0B3B54; color: #fff; }
.sbg-pestanas button:focus-visible { outline: 3px solid #F4B223; outline-offset: 2px; }
.sbg-panel { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 48px; align-items: center; }
.sbg-panel[hidden] { display: none; }
.sbg-panel.is-activo .sbg-panel-texto > * { animation: sbgSubir .55s cubic-bezier(.2,.7,.2,1) both; }
.sbg-panel.is-activo .sbg-panel-texto > *:nth-child(2) { animation-delay: .08s; } .sbg-panel.is-activo .sbg-panel-texto > *:nth-child(3) { animation-delay: .16s; } .sbg-panel.is-activo .sbg-panel-texto > *:nth-child(4) { animation-delay: .24s; }
.sbg-panel.is-activo .sbg-mapa { animation: sbgMapa .7s cubic-bezier(.2,.7,.2,1) both; }
.sbg-num { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(64px, 8vw, 104px); line-height: .9; color: #C1272D; }
.sbg-etq { margin: 6px 0 14px; font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; color: #262626; }
.sbg-lugares { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #0B3B54; line-height: 1.5; }
.sbg-txt { margin: 0; color: #6b6b6b; font-size: 16px; }
.sbg-mapa { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(11,59,84,.10); }
.sbg-mapa img { width: 100%; height: auto; display: block; }
@keyframes sbgSubir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sbgMapa { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) { .sbg-banda--saborinter .sbg-carril { max-width: none; } }
@media (max-width: 767px) {
  .sbg-banda { padding: 22px 0 24px; border-radius: 20px; }
  .sbg-banda-cab { padding: 0 20px; margin-bottom: 16px; } .sbg-banda-cab h3 { font-size: 24px; } .sbg-logo-saborinter { height: 36px; }
  .sbg-carril, .sbg-banda--saborinter .sbg-carril { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 10px; scrollbar-width: none; }
  .sbg-carril::-webkit-scrollbar { display: none; }
  .sbg-tarjeta { flex: 0 0 78%; scroll-snap-align: center; }
  .sbg-conector { height: 36px; }
  .sbg-panel { grid-template-columns: 1fr; gap: 20px; }
  .sbg-pestanas { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; scrollbar-width: none; } .sbg-pestanas::-webkit-scrollbar { display: none; }
  .sbg-pestanas button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-anim { opacity: 1; transform: none; } .sbg-panel.is-activo .sbg-panel-texto > *, .sbg-panel.is-activo .sbg-mapa { animation: none; }
  .sbg-tarjeta, .sbg-foto img { transition: none; } .sbg-conector span::after { animation: none; }
}
@keyframes sbgFlota { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.sbg-cifra .elementor-counter-number-wrapper { justify-content: center; }
@media (prefers-reduced-motion: reduce) { [class*="elementor"] img { animation: none !important; } }

/* ===== Mapas SVG animados ===== */
.sbg-mapa { padding: 18px; }
.sbg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sbg-pin-in, .sbg-pulso, .sbg-punto, .sbg-dest { transform-box: fill-box; }
.sbg-pin-in { transform-origin: 50% 100%; }
.sbg-pulso { transform-origin: center; opacity: 0; }
.sbg-mapa-nota { font: 700 15px 'Century Gothic', 'Questrial', sans-serif; fill: #8a8273; }
.sbg-pin-txt { font: 700 21px 'Century Gothic', 'Questrial', sans-serif; fill: #0B3B54; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.sbg-svg--eu .sbg-mapa-nota { font: 700 15px 'Century Gothic', 'Questrial', sans-serif; fill: #8a8273; }
.sbg-pin-txt { font-size: 18px; }
.sbg-punto { transform-origin: center; fill-opacity: .88; }
.sbg-pais { transition: fill .2s; }
.sbg-pais:hover { fill: #9E1F24; }
.sbg-arco { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sbg-dest { transform-origin: center; }
.sbg-panel.is-activo .sbg-pin-in { animation: sbgPinCae .7s cubic-bezier(.2,.9,.3,1.25) both; animation-delay: calc(var(--i, 0) * 140ms + 150ms); }
.sbg-panel.is-activo .sbg-pulso { animation: sbgPulso 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * 140ms + 900ms); }
.sbg-panel.is-activo .sbg-punto { animation: sbgPop .5s cubic-bezier(.2,.9,.3,1.4) both; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
.sbg-panel.is-activo .sbg-pais { animation: sbgPais .7s ease both; animation-delay: calc(var(--i, 0) * 110ms); }
.sbg-panel.is-activo .sbg-arco { animation: sbgArco 1.1s cubic-bezier(.4,0,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 400ms); }
.sbg-panel.is-activo .sbg-dest { animation: sbgPop .4s both; animation-delay: calc(var(--i, 0) * 70ms + 1300ms); }
.sbg-presencia:not(.is-visto) .sbg-panel * { animation-play-state: paused !important; }
@keyframes sbgPinCae { from { opacity: 0; transform: translateY(-46px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes sbgPulso { 0% { opacity: .45; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes sbgPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes sbgPais { from { fill: #E6E0D4; } to { fill: #C1272D; } }
@keyframes sbgArco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ===== Clientes: gris suave, color al pasar ===== */
.sbg-clientes { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.sbg-clientes li { background: #fff; border-radius: 16px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; box-shadow: 0 6px 18px rgba(11,59,84,.06); transition: box-shadow .3s, transform .3s; }
.sbg-clientes img { max-height: 60px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .62; transition: filter .35s, opacity .35s, transform .35s; }
.sbg-clientes li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,59,84,.14); }
.sbg-clientes li:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.elementor-widget-shortcode:has(.sbg-clientes) { align-self: stretch; width: 100%; }
@media (max-width: 1024px) { .sbg-clientes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .sbg-clientes { grid-template-columns: repeat(3, 1fr); gap: 10px; } .sbg-clientes li { height: 78px; padding: 10px; } .sbg-clientes img { max-height: 44px; } .sbg-mapa-nota { font: 700 15px 'Century Gothic', 'Questrial', sans-serif; fill: #8a8273; }
.sbg-pin-txt { font-size: 26px; } }
@media (hover: none) { .sbg-clientes img { filter: grayscale(.2); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .sbg-panel.is-activo * { animation: none !important; } .sbg-pulso { display: none; } }
