.titulos{
  padding: 32px 0 80px;
}

.titulos-inner{
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.titulos-header{
  text-align: center;
  margin-bottom: 16px;
}

.titulos-title{
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  color: #0d2a3c;
}

.titulos-carousel-wrapper{
  position: relative;
}

.titulos-carousel{
  display: flex;
  gap: 16px;
  overflow-x: scroll;
  padding-block: 8px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  max-width: 90%;
  margin-inline: auto;
}

.titulos-carousel::-webkit-scrollbar{
  height: 0; /* Ocultar en WebKit */
}

.titulos-carousel::-webkit-scrollbar-track{
  background: transparent;
  border-radius: 999px;
}

.titulos-carousel::-webkit-scrollbar-thumb{
  background: transparent;
  border-radius: 999px;
}

.titulos-item{
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.titulos-item img{
  display: block;
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.25);
}

.titulos-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #0d2a3c;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  cursor: pointer;
}

.titulos-arrow--prev{
  left: -8px;
}

.titulos-arrow--next{
  right: -8px;
}

.titulos-featured{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.titulos-featured-inner{
  max-width: 520px;
  width: 100%;
}

.titulos-featured img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0,0,0,.25);
  background: rgba(255,255,255,.3);
}

/* Lightbox para títulos */
#titulos-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.titulos-lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.titulos-lightbox-inner{
  max-width: 90vw;
  width: auto;
}

.titulos-lightbox-img{
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  background: #fff;
}
