/* =====================================================
   PÁGINAS DE SERVICIO / TRATAMIENTOS
   ===================================================== */

/* HERO */

.service-hero {
  position: relative;
  height: 75vh;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: center center / cover no-repeat;
  padding-top: 100px;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 30px;
}

.service-subtitle {
  display: block;
  color: var(--gold-light);
  letter-spacing: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.service-hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

/* INTRO */

.service-intro {
  text-align: center;
  padding: 100px 8% 80px;
}

.service-intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.service-intro p {
  max-width: 820px;
  margin: 30px auto 0;
  color: var(--text-soft);
  line-height: 2;
}

/* LISTADO · CINEMATIC */

#treatments-container {
  position: relative;
}

.treatment-cine {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 !important;
}

.treatment-cine__bg {
  position: absolute;
  inset: -8%;
}

.treatment-cine__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cineKenBurns 22s ease-in-out infinite;
  will-change: transform;
}

.treatment-cine:nth-child(even) .treatment-cine__bg img {
  animation-direction: reverse;
  animation-duration: 26s;
}

@keyframes cineKenBurns {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.07) translate(-1%, -0.5%); }
  66% { transform: scale(1.04) translate(1%, 0.5%); }
}

.treatment-cine__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.treatment-cine:nth-child(even) .treatment-cine__overlay {
  background: linear-gradient(
    255deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.treatment-cine__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 100px 8%;
  color: white;
  text-align: left;
}

.treatment-cine:nth-child(even) .treatment-cine__content {
  margin-left: auto;
}

.treatment-cine__line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.15s;
}

.treatment-cine.is-visible .treatment-cine__line {
  transform: scaleX(1);
}

.treatment-cine__content h2 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: white;
  text-align: left;
}

.treatment-cine__content p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: 680px;
}

.treatment-cine__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.treatment-price {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.treatment-bonos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.treatment-bono {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  text-align: left;
}

.treatment-bono small {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.treatment-bono strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
}

.treatment-cine__btn {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: var(--transition);
}

.treatment-cine__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Separador diagonal entre tratamientos */

.treatment-cine:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  background: var(--bg);
  z-index: 4;
  pointer-events: none;
}

.treatment-cine:nth-child(odd):not(:last-child)::after {
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%);
}

.treatment-cine:nth-child(even):not(:last-child)::after {
  clip-path: polygon(0 0, 100% 35%, 100% 65%, 0 100%);
}

.reveal-treatment {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-treatment.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.treatments-empty {
  text-align: center;
  padding: 80px 8%;
  color: var(--text-soft);
}

/* CTA */

.cta-contact {
  text-align: center;
  background: var(--bg-soft);
  padding: 120px 8%;
}

.cta-contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-contact p {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.cta-contact a {
  display: inline-block;
  margin-top: 35px;
  padding: 18px 42px;
  background: var(--gold);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition);
}

.cta-contact a:hover {
  background: var(--gold-dark);
}

@media (max-width: 900px) {
  .service-hero {
    height: 65vh;
    min-height: 420px;
  }

  .service-intro {
    padding: 80px 6% 60px;
  }

  .treatment-cine {
    min-height: 85vh;
  }

  .treatment-cine__content,
  .treatment-cine:nth-child(even) .treatment-cine__content {
    margin: 0;
    padding: 80px 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatment-cine__bg img {
    animation: none;
  }

  .reveal-treatment,
  .treatment-cine__line {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
