/* STATIC · Patrocinios. Compatible con Bootstrap 4 y 5; estilos delimitados. */
#patrocinios {
  --sp-yellow: var(--static-yellow, #f6b900);
  --sp-orange: var(--static-orange, #f37021);
  --sp-dark: var(--static-dark, #111827);
  padding: clamp(56px, 7vw, 104px) 0;
  background: #faf9f6;
  color: var(--sp-dark);
  scroll-margin-top: 110px;
}
#patrocinios *, #sp-lightbox * { box-sizing: border-box; }
#patrocinios a, #patrocinios button, #sp-lightbox button, #sp-lightbox a {
  font-family: inherit;
}
#patrocinios p, #sp-lightbox p { font-family: inherit; }
#patrocinios .sp-heading { margin-bottom: 32px; }
#patrocinios .sp-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 16px; color: #414b5a;
}
#patrocinios .sp-kicker::before {
  content: ""; width: 28px; height: 3px; background: var(--sp-yellow);
}
#patrocinios .sp-title {
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -.035em; margin: 0 0 18px;
  color: var(--sp-dark);
}
#patrocinios .sp-intro { max-width: 630px; color: #556070; line-height: 1.75; margin: 0; }
#patrocinios .sp-partner {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid #dddcd6; border-radius: 999px; padding: 10px 18px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  background: #fff; margin-top: 20px;
}
#patrocinios .sp-partner span { color: #6b7280; font-weight: 400; }
#patrocinios .sp-gallery { margin-right: -12px; margin-left: -12px; }
#patrocinios .sp-cell { padding: 0 12px 24px; }
#patrocinios .sp-card {
  display: block; height: 100%; padding: 0; border: 1px solid #e5e4de;
  border-radius: 18px; overflow: hidden; background: #fff; color: var(--sp-dark);
  text-decoration: none; line-height: 1.5; box-shadow: 0 8px 24px rgb(17 24 39 / 4%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#patrocinios .sp-card:hover {
  transform: translateY(-3px); border-color: #c9c7bd;
  box-shadow: 0 12px 30px rgb(17 24 39 / 9%); color: var(--sp-dark);
}
#patrocinios .sp-media {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: #eeede8; height: 306px; padding: 12px;
}
#patrocinios .sp-cell--lead .sp-media { background: #e8ece6; padding: 0; }
#patrocinios .sp-cell--jersey .sp-media { background: #eee9e0; }
#patrocinios .sp-media picture { display: contents; }
#patrocinios .sp-media img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  margin: 0; border-radius: 6px;
}
#patrocinios .sp-zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 15px rgb(0 0 0 / 12%); color: var(--sp-dark);
}
#patrocinios .sp-zoom svg { width: 19px; height: 19px; }
#patrocinios .sp-caption { display: block; padding: 18px 20px 20px; }
#patrocinios .sp-category {
  display: block; color: #59616d; font-size: .69rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; font-weight: 700;
}
#patrocinios .sp-caption strong { display: block; font-size: 1rem; font-weight: 700; }
#patrocinios .sp-note { font-size: .81rem; color: #67707d; margin: 6px 0 0; }
#patrocinios .sp-bottom {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  align-items: center; border-top: 1px solid #e0dfd8; padding-top: 26px;
}
#patrocinios .sp-bottom p { max-width: 660px; margin: 0; font-size: .9rem; color: #59616d; line-height: 1.7; }
#patrocinios .sp-more {
  display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--sp-dark);
  padding: 13px 21px; min-height: 48px; border-radius: 8px; background: transparent;
  color: var(--sp-dark); font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: background .2s, color .2s;
}
#patrocinios .sp-more:hover { background: var(--sp-dark); color: #fff; }
#patrocinios [hidden], #sp-lightbox [hidden] { display: none !important; }
#patrocinios :focus-visible, #sp-lightbox :focus-visible {
  outline: 3px solid #b57900 !important; outline-offset: 4px;
}
html.sp-lightbox-open { overflow: hidden; }
#sp-lightbox {
  display: none; position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(1100px, calc(100% - 24px)); max-width: none;
  max-height: calc(100dvh - 24px); border: 1px solid #354050; border-radius: 16px;
  background: #0b0f19; color: #fff; font-family: inherit; overflow: auto;
}
#sp-lightbox[open] { display: block; }
#sp-lightbox::backdrop { background: rgb(5 8 15 / 88%); }
#sp-lightbox .sp-lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid #273140;
}
#sp-lightbox .sp-lb-title { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .05em; }
#sp-lightbox button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1b2534; border: 1px solid #475366; border-radius: 8px;
  color: #fff; min-width: 44px; min-height: 44px; padding: 10px; cursor: pointer;
}
#sp-lightbox button:hover { background: #354052; }
#sp-lightbox button svg { width: 20px; height: 20px; }
#sp-lightbox .sp-lb-stage { padding: 12px; min-height: 160px; }
#sp-lightbox .sp-lb-stage img {
  display: block; margin: auto; max-width: 100%; width: auto;
  height: auto; max-height: calc(100dvh - 230px); object-fit: contain;
}
#sp-lightbox .sp-lb-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px 18px; border-top: 1px solid #273140;
}
#sp-lightbox .sp-lb-description { flex: 1; text-align: center; font-size: .82rem; line-height: 1.5; }
#sp-lightbox .sp-lb-description p { margin: 0; color: inherit; }
#sp-lightbox .sp-lb-description span { color: #b7c0ce; font-size: .75rem; }
#sp-lightbox .sp-lb-error { text-align: center; padding: 20px; }
#sp-lightbox .sp-lb-error a { color: #ffce3e; font-size: .9rem; }
@media (min-width: 992px) {
  #patrocinios .sp-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
  #patrocinios .sp-partner { flex-shrink: 0; margin: 0 0 5px; }
  #patrocinios .sp-cell[data-extra] .sp-media { height: 272px; }
}
@media (max-width: 767px) {
  #patrocinios .sp-cell { padding: 0 8px 16px; }
  #patrocinios .sp-gallery { margin-left: -8px; margin-right: -8px; }
  #patrocinios .sp-cell--lead .sp-media { height: auto; aspect-ratio: 1280 / 616; }
  #patrocinios .sp-cell--jersey .sp-media { height: 340px; }
  #patrocinios .sp-cell--jornada .sp-media { height: 320px; }
  #patrocinios .sp-media { height: 235px; padding: 8px; }
  #patrocinios .sp-caption { padding: 12px; }
  #patrocinios .sp-caption strong { font-size: .87rem; }
  #patrocinios .sp-category { font-size: .62rem; letter-spacing: .06em; }
  #patrocinios .sp-more { width: 100%; justify-content: center; }
  #sp-lightbox .sp-lb-top, #sp-lightbox .sp-lb-bottom { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #patrocinios *, #sp-lightbox * { animation: none !important; transition: none !important; }
}
