/* coleccion.css — Full-viewport soap sections layout */

/* ── Page header (full-viewport hero with bg image) ── */
.page-header {
  background-color: #1A1816;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  align-items: end;
  padding: var(--nav-h-ed) 0 clamp(40px, 6svh, 88px);
}
.page-header__bg { position: absolute; inset: 0; z-index: 0; }
.page-header__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
  display: block;
}
.page-header__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}
.page-header__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(40px, 6vw, 80px);
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto; width: 100%;
}
.page-header__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-body); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 22px;
}
.page-header__eyebrow::before {
  content: ''; width: 20px; height: 1px;
  background-color: rgba(245, 240, 232, 0.4); opacity: 0.5;
}
.page-header__h1 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.98; letter-spacing: -0.02em;
  color: #F5F0E8; text-wrap: balance;
}
.page-header__right { padding-bottom: 6px; }
.page-header__desc {
  font-family: var(--ff-body);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.82;
  color: rgba(245, 240, 232, 0.75);
  max-width: 380px; margin-bottom: 36px;
}
.page-header__meta { display: flex; gap: 36px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-item__value {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: 0.01em; color: #F5F0E8; line-height: 1;
}
.meta-item__label {
  font-family: var(--ff-body); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}

/* ── Soap nav strip — right-aligned, sticky ── */
.soap-nav {
  position: sticky;
  top: var(--nav-h-ed);
  z-index: 100;
  background-color: var(--c-bg);
  border-bottom: 1px solid var(--c-rule);
  transition: top 0.4s var(--ease-quart);
  margin-left: calc(55% + 3px);
}
body:has(#nav.scrolled) .soap-nav { top: var(--nav-h-sm); }
body.nav-scrolled .soap-nav { top: var(--nav-h-sm); }
.soap-nav__inner {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.soap-nav__inner::-webkit-scrollbar { display: none; }
.soap-nav__item {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-right: 1px solid var(--c-rule);
  font-family: var(--ff-body); font-size: 8px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-secondary);
  text-align: center; line-height: 1.5;
  transition: color 0.25s, background-color 0.25s;
  flex: 1;
}
.soap-nav__item:last-child { border-right: none; }
.soap-nav__item:hover { color: var(--c-text); background-color: rgba(0,0,0,0.02); }
.soap-nav__item:focus-visible { outline: 1px solid var(--c-accent); outline-offset: -1px; }
.soap-nav__item.active {
  color: var(--c-text);
  box-shadow: inset 0 -2px 0 var(--cx, var(--c-accent));
}
.soap-nav__dot {
  width: 8px; height: 8px;
  flex-shrink: 0; display: block; overflow: visible;
}

/* ── Full-viewport soap sections ── */
.soap-section {
  height: 100vh;
  height: 100svh;
  position: relative;
  scroll-margin-top: var(--nav-h-ed);
  border-bottom: 3px solid var(--c-gold, #C9AD88);
}

.soap-section__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: 100%;
}

.soap-section__image {
  overflow: hidden;
  position: relative;
}
.soap-section__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 88%;
  display: block;
  transition: transform 7s ease;
}
.soap-section:hover .soap-section__image img {
  transform: scale(1.02);
}

.soap-section__content {
  padding: clamp(24px, 3svh, 48px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Crystal accent bar — full height left edge */
.soap-section__crystal-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cx);
}

/* Background number — editorial oversized */
.soap-section__bg-num {
  position: absolute;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(200px, 28vw, 380px);
  line-height: 0.8; letter-spacing: -0.04em;
  color: var(--cx, var(--c-accent));
  opacity: 0.07;
  pointer-events: none; user-select: none;
  transition: opacity 0.5s var(--ease-quart);
}
.soap-section:hover .soap-section__bg-num { opacity: 0.10; }

/* Identity block — meta + name + tagline */
.soap-section__identity {
  padding-bottom: clamp(10px, 1.5svh, 24px);
  border-bottom: 1px solid var(--c-gold, #C9AD88);
  margin-bottom: clamp(10px, 1.5svh, 24px);
}
.soap-section__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.soap-section__crystal-dot {
  width: 12px; height: 12px;
  flex-shrink: 0; display: block; overflow: visible;
}
.soap-section__number {
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-secondary);
}
.soap-section__center {
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-secondary);
}
.soap-section__name {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.06; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 10px;
}
.soap-section__tagline {
  font-family: var(--ff-display); font-weight: 400;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--c-secondary);
  max-width: 400px;
}

/* Details block — oils, crystal, CTA */
.soap-section__details {
  display: flex; flex-direction: column;
  gap: clamp(8px, 1svh, 18px);
}
.soap-section__oils-label {
  font-family: var(--ff-body); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-secondary); margin-bottom: 6px;
}
.soap-section__oils {
  list-style: none;
  border-top: 1px solid var(--c-rule);
}
.soap-section__oils li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: clamp(4px, 0.6svh, 7px) 0;
  border-bottom: 1px solid var(--c-rule);
}
.soap-section__oil-common {
  font-family: var(--ff-body); font-size: 12px;
  letter-spacing: 0.04em; color: var(--c-text);
  flex-shrink: 0;
}
.soap-section__oil-inci {
  font-family: var(--ff-body); font-size: 0.6875rem;
  font-style: italic; letter-spacing: 0.02em;
  color: var(--c-secondary); text-align: right;
  word-break: break-word; hyphens: manual;
}

/* Crystal info */
.soap-section__crystal {
  padding: clamp(8px, 1svh, 12px);
  border: 1px solid var(--c-rule);
  position: relative;
}
.soap-section__crystal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--cx, var(--c-accent));
  opacity: 0.5;
}
.soap-section__crystal-gem {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 8px;
}
.soap-section__crystal-icon {
  width: 10px; height: 10px;
  flex-shrink: 0; display: block; overflow: visible;
}
.soap-section__crystal-name {
  font-family: var(--ff-body); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-secondary);
}
.soap-section__crystal-desc {
  font-family: var(--ff-body); font-size: 11px;
  line-height: 1.7; color: var(--c-secondary);
}

/* Actions */
.soap-section__actions {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.btn-wa-cta {
  display: inline-flex; align-items: center;
  padding: 12px 24px;
  background: var(--c-cta); color: #FAF7F1;
  border: 1px solid var(--c-cta);
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.3s;
}
.btn-wa-cta:hover { opacity: 0.85; }
.soap-section__actions .btn-ghost {
  border: 1px solid var(--cx);
  color: var(--c-text);
}
.soap-section__actions .btn-ghost:hover { opacity: 0.7; }

/* Gold divider — now rendered via border-bottom on .soap-section */
.soap-section__divider { display: none; }

/* ── Buttons ── */
.btn-text-link {
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-secondary); transition: color 0.25s;
  padding: 8px 0; display: inline-block;
}
.btn-text-link:hover { color: var(--c-text); }
.btn-text-link:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }

/* ── Responsive ── */
@media (max-width: 1366px) {
  .page-header__title { font-size: clamp(44px, 7vw, 84px); }
}
@media (max-width: 1024px) {
  .page-header__inner { grid-template-columns: 1fr; gap: 36px; }
  .page-header__desc { max-width: 100%; }
}
@media (max-width: 768px) {
  .page-header {
    height: auto;
    min-height: 50vh;
  }
  .soap-section {
    height: auto;
    border-bottom: 3px solid var(--c-gold, #C9AD88);
  }
  .soap-section__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .soap-section__image {
    aspect-ratio: 4 / 3;
    max-height: 50vh;
  }
  .soap-section__content {
    padding: 24px var(--gap-container-sm, 24px) 32px;
  }
  .soap-section__crystal-bar { display: none; }
  .soap-section__bg-num {
    font-size: clamp(140px, 35vw, 200px);
    top: 50%; right: 0;
    transform: translateY(-50%);
    opacity: 0.06;
  }
  .soap-section__name { font-size: clamp(24px, 6vw, 32px); }
  .soap-section__tagline { margin-bottom: 12px; font-size: 13px; }
  .soap-section__identity { padding-bottom: 16px; margin-bottom: 16px; }
  .soap-section__details { gap: 12px; }
  .soap-section__oil-inci { font-size: 0.625rem; }
  .soap-section__actions { gap: 12px; }
  .btn-wa-cta { padding: 10px 20px; }
  .soap-nav { margin-left: 0; top: 100px; }
  .soap-nav__item { min-height: 44px; font-size: 9px; padding: 14px 16px; }
}

/* max-height override removed — soap-section always height: 100svh on desktop (Design Principle #6) */

@media (prefers-reduced-motion: reduce) {
  .soap-section__image img { transition: none; }
}
