/**
 * NAIRA — Carta de Tratamientos Widget Styles
 */

.ntc-widget-container {
  width: 100%;
  box-sizing: border-box;
}

.ntc-widget-container * {
  box-sizing: border-box;
}

.ntc-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
  width: 100%;
}

/* Left Column: Treatments List */
.ntc-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ntc-item {
  border-bottom: 1px solid rgba(52, 32, 25, 0.22);
  padding: clamp(20px, 2.6vw, 30px) 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  outline: none;
  transition: border-color 0.3s ease;
}

.ntc-item:first-child {
  padding-top: 6px;
}

.ntc-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.ntc-item-left {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.8vw, 36px);
  flex: 1;
}

.ntc-item-num {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #342019;
  opacity: 0.85;
  min-width: 22px;
  padding-top: 6px;
  letter-spacing: 0.02em;
}

.ntc-item-info {
  flex: 1;
}

.ntc-item-title {
  font-family: 'Grandeur', 'Playfair Display', Georgia, serif;
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  color: #342019;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

/* Accordion Drawer */
.ntc-item-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ntc-item.is-active .ntc-item-drawer {
  grid-template-rows: 1fr;
}

.ntc-drawer-content {
  overflow: hidden;
}

.ntc-item-desc {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.62;
  color: #4a3b34;
  margin: 0;
  padding-top: 14px;
  padding-bottom: 4px;
  max-width: 540px;
}

/* Arrow Button */
.ntc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.2px solid #342019;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #342019;
  cursor: pointer;
  margin-top: 2px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ntc-item:hover .ntc-btn {
  background-color: rgba(52, 32, 25, 0.08);
}

.ntc-item.is-active .ntc-btn {
  background-color: rgba(52, 32, 25, 0.12);
  border-color: #342019;
}

.ntc-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotate(-135deg);
}

.ntc-item.is-active .ntc-btn svg {
  transform: rotate(0deg);
}

/* Right Column: Visual Showcase */
.ntc-media-col {
  position: sticky;
  top: 110px;
  width: 100%;
}

.ntc-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 590px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #342019;
  box-shadow: 0 20px 42px -12px rgba(52, 32, 25, 0.18);
}

.ntc-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.ntc-media-img.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
  .ntc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ntc-media-col {
    order: -1;
    position: relative;
    top: 0;
  }
  .ntc-media-box {
    aspect-ratio: 16 / 10;
    max-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ntc-item-drawer,
  .ntc-btn svg,
  .ntc-media-img {
    transition: none !important;
  }
}
