/* The Bubble Wash: minimal, scroll-linked cinematic experience. */
:root {
  --tbw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --tbw-ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tbw-surface: #ffffff;
  --tbw-canvas: #f5f5f7;
  --tbw-hairline: rgba(4, 25, 49, 0.12);
  --tbw-ink-soft: #536479;
  --page-progress: 0;
  --page-scroll: 0px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

html {
  scroll-padding-top: 112px;
}

body.tbw-cinematic-v2 {
  background: var(--tbw-canvas);
  color: #07192f;
}

body.tbw-cinematic-v2 h1,
body.tbw-cinematic-v2 h2,
body.tbw-cinematic-v2 h3,
body.tbw-cinematic-v2 h4,
body.tbw-cinematic-v2 p,
body.tbw-cinematic-v2 a,
body.tbw-cinematic-v2 button,
body.tbw-cinematic-v2 span {
  letter-spacing: 0;
}

body.tbw-cinematic-v2 main {
  overflow: clip;
}

/* The dock keeps its original geometry; only the material and behavior change. */

body.tbw-cinematic-v2 .site-header {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 23, 45, 0.74);
  box-shadow:
    0 14px 38px rgba(0, 12, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  transition:
    background 420ms var(--tbw-ease-out),
    box-shadow 420ms var(--tbw-ease-out),
    border-color 420ms ease;
}

body.tbw-cinematic-v2.tbw-has-scrolled .site-header {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(4, 23, 45, 0.88);
  box-shadow:
    0 18px 48px rgba(0, 12, 30, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.tbw-cinematic-v2 .nav-item {
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 320ms var(--tbw-ease-out);
}

body.tbw-cinematic-v2 .nav-item:hover {
  transform: translateY(-1px);
}

/* A restrained page-position indicator. */
.tbw-page-progress {
  position: fixed;
  z-index: 120;
  top: 112px;
  right: 10px;
  width: 2px;
  height: calc(100svh - 132px);
  overflow: hidden;
  border-radius: 2px;
  background: rgba(7, 25, 47, 0.09);
  pointer-events: none;
}

.tbw-page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  border-radius: inherit;
  background: #28bce9;
  will-change: transform;
}

/* Motion values are calculated continuously by motion.js. */
body.tbw-cinematic-v2 .tbw-motion-item {
  opacity: var(--element-opacity, 1);
  transform: translate3d(0, var(--element-y, 0px), 0) scale(var(--element-scale, 1));
  filter: blur(var(--element-blur, 0px));
  animation: none !important;
  transition: none !important;
  will-change: transform, opacity, filter;
}

body.tbw-cinematic-v2 .tbw-kinetic-heading {
  transform-origin: 0 55%;
  text-wrap: balance;
}

body.tbw-cinematic-v2 .tbw-liquid-surface {
  isolation: isolate;
}

body.tbw-cinematic-v2 .tbw-liquid-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--glass-x, 50%) var(--glass-y, 18%), rgba(255, 255, 255, 0.34), transparent 31%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.17), transparent 44%, rgba(76, 207, 246, 0.08));
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 260ms ease;
}

body.tbw-cinematic-v2 .tbw-liquid-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

body.tbw-cinematic-v2 .tbw-liquid-surface > * {
  position: relative;
  z-index: 1;
}

body.tbw-cinematic-v2 .site-header.tbw-liquid-surface {
  overflow: visible;
}

body.tbw-cinematic-v2 .site-header.tbw-liquid-surface::before,
body.tbw-cinematic-v2 .site-header.tbw-liquid-surface::after {
  z-index: 0;
}

/* Home hero: a pinned scene whose motion follows the user's scroll. */
body.tbw-cinematic-v2 .hero {
  min-height: 138svh;
  align-items: start;
  padding-top: 128px;
  padding-bottom: 110px;
  background: #061629;
}

body.tbw-cinematic-v2 .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

body.tbw-cinematic-v2 .hero-copy,
body.tbw-cinematic-v2 .hero-visual {
  position: sticky;
  top: 132px;
  align-self: start;
  animation: none;
}

body.tbw-cinematic-v2 .hero.tbw-scroll-scene > .hero-copy {
  opacity: var(--scene-copy-opacity, 1);
  transform: translate3d(0, var(--scene-lift, 0px), 0) scale(1);
  filter: none;
}

body.tbw-cinematic-v2 .hero.tbw-scroll-scene > .hero-visual {
  opacity: var(--scene-media-opacity, 1);
  transform: translate3d(0, var(--scene-image-shift, 0px), 0) scale(var(--scene-image-scale, 1));
  filter: none;
}

body.tbw-cinematic-v2 .hero h1 {
  max-width: 650px;
  font-size: 3.7rem;
  font-weight: 760;
  line-height: 1.04;
}

body.tbw-cinematic-v2 .category-ribbon {
  min-height: 58px;
  border-bottom: 1px solid var(--tbw-hairline);
  background: rgba(255, 255, 255, 0.9);
  color: #17304d;
  animation: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Quiet content sections with stronger hierarchy and fewer decorations. */
body.tbw-cinematic-v2 .section,
body.tbw-cinematic-v2 .aroma-section {
  width: min(1100px, calc(100% - 44px));
}

body.tbw-cinematic-v2 .collection {
  padding-top: 108px;
  padding-bottom: 104px;
}

body.tbw-cinematic-v2 .section-heading {
  margin-bottom: 42px;
}

body.tbw-cinematic-v2 .section-heading h2,
body.tbw-cinematic-v2 .aroma-copy h2,
body.tbw-cinematic-v2 .coming-soon h2 {
  font-size: 2.65rem;
  font-weight: 740;
  line-height: 1.08;
}

body.tbw-cinematic-v2 .aroma-mood-tag {
  font-weight: 720;
}

body.tbw-cinematic-v2 .collection-grid,
body.tbw-cinematic-v2 .product-grid {
  gap: 18px;
}

body.tbw-cinematic-v2 .collection-card,
body.tbw-cinematic-v2 .product-card,
body.tbw-cinematic-v2 .aroma-row,
body.tbw-cinematic-v2 .profile-card {
  border: 1px solid var(--tbw-hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(18, 41, 67, 0.06);
}

body.tbw-cinematic-v2 .collection-card {
  min-height: 380px;
  padding: 24px;
}

body.tbw-cinematic-v2 .collection-card.sky,
body.tbw-cinematic-v2 .collection-card.mint {
  background: rgba(255, 255, 255, 0.9);
}

body.tbw-cinematic-v2 .collection-card.blue {
  border-color: rgba(15, 120, 196, 0.42);
  background: #0b78bf;
}

body.tbw-cinematic-v2 .collection-card:hover,
body.tbw-cinematic-v2 .product-card:hover,
body.tbw-cinematic-v2 .profile-card:hover {
  box-shadow: 0 24px 58px rgba(18, 41, 67, 0.12);
}

body.tbw-cinematic-v2 .aroma-section {
  min-height: 108svh;
  gap: 70px;
  padding-top: 108px;
  padding-bottom: 108px;
}

body.tbw-cinematic-v2 .aroma-copy {
  top: 142px;
}

body.tbw-cinematic-v2 .aroma-list {
  gap: 16px;
}

body.tbw-cinematic-v2 .aroma-row {
  min-height: 126px;
  padding: 20px;
}

body.tbw-cinematic-v2 .aroma-orb {
  box-shadow: none;
}

body.tbw-cinematic-v2 .live-catalog {
  padding-top: 112px;
  padding-bottom: 118px;
}

body.tbw-cinematic-v2 .product-card {
  min-height: 285px;
  padding: 22px;
}

body.tbw-cinematic-v2 .product-card::before {
  display: none;
}

body.tbw-cinematic-v2 .button-add-cart,
body.tbw-cinematic-v2 .button {
  min-height: 46px;
  box-shadow: none;
  transition:
    transform 300ms var(--tbw-ease-out),
    background 220ms ease,
    color 220ms ease,
    box-shadow 300ms ease;
}

body.tbw-cinematic-v2 .button:hover,
body.tbw-cinematic-v2 .button-add-cart:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(7, 30, 57, 0.14);
}

/* Nosotros: long-form editorial scenes with pinned photography. */

body.tbw-cinematic-v2 .story-chapter-card {
  margin-bottom: 72px;
  padding: 52px;
  border: 1px solid var(--tbw-hairline) !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 22px 60px rgba(18, 41, 67, 0.07);
  animation: none;
}

body.tbw-cinematic-v2 .story-chapter-card:hover {
  box-shadow: 0 22px 60px rgba(18, 41, 67, 0.07);
}

body.tbw-cinematic-v2 .story-chapter-card > h2 {
  max-width: 760px;
  font-size: 2.35rem;
  font-weight: 740;
}

body.tbw-cinematic-v2 .coming-soon {
  min-height: 78svh;
  padding-top: 120px;
  padding-bottom: 120px;
  background: #061629;
}

body.tbw-cinematic-v2 .coming-soon > p {
  color: rgba(255, 255, 255, 0.7);
}

/* Login/profile surfaces receive the same motion language without replacing weather. */
body.tbw-cinematic-v2.profile-locked .auth-form-panel,
body.tbw-cinematic-v2:has(.profile-main) .auth-card[data-auth-guest] .auth-form-panel,
body.tbw-cinematic-v2 .profile-main .auth-card[data-auth-guest] .auth-form-panel {
  border-radius: 8px !important;
  animation: none !important;
}

@media (max-width: 900px) {
  body.tbw-cinematic-v2 .hero {
    min-height: auto;
    padding-bottom: 76px;
  }

  body.tbw-cinematic-v2 .hero-copy,
  body.tbw-cinematic-v2 .hero-visual {
    position: relative;
    top: auto;
  }

  body.tbw-cinematic-v2 .hero h1 {
    font-size: 3.1rem;
  }

  body.tbw-cinematic-v2 .story-chapter-card {
    padding: 38px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 126px;
  }

  .tbw-page-progress {
    top: 126px;
    right: 4px;
    height: calc(100svh - 142px);
  }

  body.tbw-cinematic-v2 .site-header {
    background: rgba(4, 23, 45, 0.86);
  }

  body.tbw-cinematic-v2 .hero {
    padding-top: 146px;
  }

  body.tbw-cinematic-v2 .hero h1 {
    font-size: 2.45rem;
    line-height: 1.06;
  }

  body.tbw-cinematic-v2 .section,
  body.tbw-cinematic-v2 .aroma-section {
    width: min(100% - 28px, 1100px);
  }

  body.tbw-cinematic-v2 .collection,
  body.tbw-cinematic-v2 .aroma-section,
  body.tbw-cinematic-v2 .live-catalog {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  body.tbw-cinematic-v2 .section-heading h2,
  body.tbw-cinematic-v2 .aroma-copy h2,
  body.tbw-cinematic-v2 .coming-soon h2,
  body.tbw-cinematic-v2 .story-chapter-card > h2 {
    font-size: 2rem;
  }

  body.tbw-cinematic-v2 .collection-card {
    min-height: 310px;
  }

  body.tbw-cinematic-v2 .aroma-section {
    min-height: auto;
    gap: 34px;
  }

  body.tbw-cinematic-v2 .aroma-row {
    min-height: 0;
  }

  body.tbw-cinematic-v2 .story-chapter-card {
    margin-bottom: 38px;
    padding: 28px 22px;
  }

  body.tbw-cinematic-v2 .coming-soon {
    min-height: 68svh;
    padding: 90px 20px;
  }

  body.tbw-cinematic-v2 .tbw-motion-item {
    filter: blur(var(--element-blur, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tbw-cinematic-v2 .tbw-motion-item,
  body.tbw-cinematic-v2 .hero.tbw-scroll-scene > .hero-copy,
  body.tbw-cinematic-v2 .hero.tbw-scroll-scene > .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
