/* ============================================================
   TOWN MUSIC — servicios.css
   Styles specific to servicios.html
   ============================================================ */

/* ============================================================
   HERO SERVICIOS
   ============================================================ */
.hero-servicios {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--container-padding);
}

.hero-servicios__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-servicios__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.hero-servicios__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}

.hero-servicios__title {
  font-family: var(--font-display);
  font-size: 128px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 8px;
  line-height: 1;
  animation: tmFadeIn 1s ease forwards;
}

@media (max-width: 1100px) {
  .hero-servicios__title {
    font-size: 88px;
  }
}

@media (max-width: 768px) {
  .hero-servicios {
    justify-content: center;
    padding: 0 var(--container-padding);
  }

  .hero-servicios__content {
    align-items: center;
    text-align: center;
  }

  .hero-servicios__title {
    font-size: 64px;
    letter-spacing: 6px;
  }
}

@media (max-width: 480px) {
  .hero-servicios__title {
    font-size: 48px;
    letter-spacing: 4px;
  }
}

/* ============================================================
   SECTION LISTA SERVICIOS
   ============================================================ */
.section-lista-servicios {
  background: var(--color-bg-primary)
    url('../assets/images/textura-artistas.png') center / cover no-repeat;
  background-attachment: fixed;
  padding: 100px var(--container-padding);
}

.lista-servicios__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.lista-servicios__header {
  margin-bottom: 56px;
}

.lista-servicios__title {
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

/* ============================================================
   SECTION CASOS DE EXITO
   ============================================================ */
.section-casos-exito {
  background: var(--color-bg-black);
  padding: 100px var(--container-padding);
}

.casos-exito__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.casos-exito__header {
  margin-bottom: 56px;
}

.casos-exito__title {
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 2px;
}

/* Strip carousel */
.casos-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.casos-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 8px 2px 52px;
}

.casos-carousel__track::-webkit-scrollbar {
  display: none;
}

.casos-carousel__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.casos-carousel__arrow:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.casos-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

/* Card: imagen full + título overlaid */
.caso-carousel-item {
  flex-shrink: 0;
  width: 380px;
  height: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #111;
}

.caso-carousel-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: transform 0.55s ease, opacity 0.4s ease;
}

.caso-carousel-item:hover .caso-carousel-item__img {
  transform: scale(1.04);
  opacity: 1;
}

.caso-carousel-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.08) 55%);
  transition: background 0.4s ease;
}

.caso-carousel-item:hover .caso-carousel-item__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.caso-carousel-item__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
}

.caso-carousel-item__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .casos-carousel__arrow {
    display: none;
  }
  .caso-carousel-item {
    width: min(340px, 85vw);
    height: 400px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* iOS Safari no soporta background-attachment: fixed */
  .section-lista-servicios {
    background-attachment: scroll;
  }

}

@media (max-width: 700px) {
  .lista-servicios__title {
    font-size: 30px;
  }

  .casos-exito__title {
    font-size: 36px;
  }
}
