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

/* ============================================================
   HERO HOME
   ============================================================ */
.hero-home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

.hero-home__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.hero-logo-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  animation: tmFadeIn 1.6s ease forwards;
}

@media (max-width: 600px) {
  .hero-logo-img {
    max-width: 260px;
  }
}

/* ============================================================
   BANNER FRASE PRINCIPAL
   ============================================================ */
.section-banner-frase {
  width: 100%;
  background-image: url('../assets/images/bg-site.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 100px;
}

.banner-frase__img {
  width: 100%;
  max-width: 1240px;
  height: auto;
  display: block;
}

.banner-frase__img--mobile {
  display: none;
}

@media (max-width: 768px) {
  .section-banner-frase {
    padding: 48px 24px;
  }

  .banner-frase__img--desktop {
    display: none;
  }

  .banner-frase__img--mobile {
    display: block;
  }
}

/* ============================================================
   SECTION CASO DE EXITO HOME
   ============================================================ */
.section-caso-exito-home {
  background: #070707;
  padding: 100px var(--container-padding) 120px;
}

.caso-exito-home__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.caso-exito-home__img-wrap {
  flex: 0 0 55%;
}

.caso-exito-home__img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: var(--radius-card-lg);
  display: block;
}

.caso-exito-home__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.caso-exito-home__label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-blue);
}

.caso-exito-home__title {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 2px;
  line-height: 1.05;
  white-space: nowrap;
}

.caso-exito-home__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-white);
  line-height: 1.8;
  text-align: justify;
}

/* ============================================================
   SECTION SERVICIOS PREVIEW
   ============================================================ */
.section-servicios-preview {
  background-image: url('../assets/images/bg-site.webp');
  background-size: cover;
  background-position: center;
  padding: 100px var(--container-padding);
}

.servicios-preview__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.servicios-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
  flex-wrap: wrap;
}

.servicios-preview__title {
  font-family: var(--font-display);
  font-size: 128px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 4px;
  line-height: 1;
}

.servicios-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.servicio-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.servicio-preview-item__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.servicio-preview-item:hover .servicio-preview-item__img {
  transform: scale(1.04);
}

.servicio-preview-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: background var(--transition-base);
}

.servicio-preview-item:hover .servicio-preview-item__overlay {
  background: rgba(0, 0, 0, 0.2);
}

.servicio-preview-item__label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-text-white);
  letter-spacing: 2px;
  font-weight: normal;
}

/* ============================================================
   SECTION CARRUSEL HOME (Gira de Medios)
   ============================================================ */
.section-carrusel-home {
  background: var(--color-bg-black);
  padding: 100px var(--container-padding);
}

.carrusel-home__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.carrusel-home__title {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
}

/* Stage = flechas a los lados + track en el centro */
.carrusel-home__stage {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Track ocupa todo el espacio entre las flechas */
.carrusel-home__track {
  flex: 1;
  min-width: 0;
  display: grid;
}

/* Cada slide: apilados en la misma celda — el contenedor no crece ni decrece */
.carrusel-home__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carrusel-home__slide.active {
  visibility: visible;
  opacity: 1;
  animation: tmFadeIn 0.5s ease forwards;
}

.carrusel-home__slide-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-carousel);
  display: block;
}

.carrusel-home__desc {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--color-text-white);
  line-height: 1.8;
  text-align: justify;
  width: 100%;
}

/* Flechas alineadas con la imagen */
.carrusel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  margin-top: calc((100% * (2 / 3) / 2) - 18px);
  opacity: 0.7;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.carrusel-arrow:hover {
  opacity: 1;
  transform: scale(1.1);
}

.carrusel-arrow--prev {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-bg-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.carrusel-arrow--prev:hover {
  background: var(--color-bg-white);
  color: var(--color-bg-black);
}

.carrusel-arrow--next {
  background: rgba(128, 171, 254, 0.2);
  color: var(--color-accent-blue);
  border: 1px solid rgba(128, 171, 254, 0.4);
}

.carrusel-arrow--next:hover {
  background: var(--color-accent-blue);
  color: var(--color-bg-black);
}

.carrusel-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   RESPONSIVE — HOME
   ============================================================ */
@media (max-width: 1200px) {
  .caso-exito-home__img {
    width: 480px;
    height: 480px;
  }
}

@media (max-width: 900px) {
  .section-frase__text {
    font-size: 52px;
  }

  .caso-exito-home__inner {
    flex-direction: column;
    gap: 40px;
  }

  .caso-exito-home__img {
    width: 100%;
    height: 400px;
  }

  .servicios-preview__title {
    font-size: 64px;
  }

  .servicios-preview__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .carrusel-home__title {
    font-size: 48px;
  }

  .carrusel-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .section-frase__text {
    font-size: 36px;
  }

  .caso-exito-home__title {
    font-size: 36px;
  }

  .servicios-preview__grid {
    grid-template-columns: 1fr;
  }

  .servicios-preview__title {
    font-size: 48px;
    white-space: nowrap;
  }

  .section-carrusel-home {
    padding: 64px var(--container-padding);
  }

  .carrusel-home__title {
    font-size: 36px;
  }

  .carrusel-home__inner {
    gap: 32px;
  }

  .carrusel-home__slide {
    gap: 28px;
  }

  .carrusel-home__stage {
    gap: 10px;
  }

  .carrusel-arrow {
    width: 32px;
    height: 32px;
    margin-top: 0;
    align-self: center;
  }
}
