/* Wellnessbridge Atelier — cinematic editorial experience */
:root {
  --cream: #f4efe6;
  --sand: #e7dcc9;
  --paper: #faf7f1;
  --ink: #1f1b16;
  --ink-soft: #3a342c;
  --muted: #7d7568;
  --teal: #2f636a;
  --teal-deep: #1e454b;
  --teal-glow: rgba(47, 99, 106, 0.18);
  --gold: #b08d52;
  --gold-soft: rgba(176, 141, 82, 0.35);
  --rose: #a86b72;
  --white: #ffffff;
  --max: 78rem;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
}

::selection {
  background: var(--teal);
  color: var(--white);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
  body:hover .cursor {
    opacity: 1;
  }
}

.cursor.is-hot {
  width: 42px;
  height: 42px;
  background: rgba(176, 141, 82, 0.15);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--white);
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip:focus {
  transform: none;
}

/* Top bar */
.top {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.92), rgba(244, 239, 230, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease);
}

.top.is-solid {
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid rgba(31, 27, 22, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__text span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: var(--white);
}

.icon-btn[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  margin: 3px 0;
  transition: transform 0.3s var(--ease);
}

/* Progress bridge */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  z-index: 850;
}

.rail {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 700;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 1100px) {
  .rail {
    display: flex;
  }
}

.rail a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(47, 99, 106, 0.45);
  background: transparent;
  text-indent: -999px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.rail a.is-active,
.rail a:hover {
  background: var(--teal);
  transform: scale(1.35);
}

/* Drawer nav */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 860;
  pointer-events: none;
}

.drawer__veil {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28rem, 92vw);
  height: 100%;
  background: linear-gradient(165deg, #f7f2e8, #e9e0cf);
  padding: 5.5rem 2rem 2rem;
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer.is-open .drawer__veil {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(31, 27, 22, 0.08);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.drawer a:hover {
  color: var(--teal);
  padding-left: 0.4rem;
}

.drawer__meta {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 22, 24, 0.25) 0%, rgba(15, 22, 24, 0.15) 35%, rgba(15, 22, 24, 0.78) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(47, 99, 106, 0.25), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 4.5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero__logo {
  width: min(9rem, 42vw);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  text-wrap: balance;
}

.hero__lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.scroll-hint i {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.2s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0.4); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 560;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* Chapters */
.chapter {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 1.35rem;
}

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

/* Revista: la imagen flota y el texto la envuelve a todo el ancho */
.chapter--split .chapter__inner {
  display: flow-root;
}

.chapter--split .chapter__visual {
  float: right;
  width: min(36%, 22rem);
  margin: 0.15rem 0 1.5rem 2rem;
  shape-outside: margin-box;
  shape-margin: 1rem;
  min-height: 0;
}

.chapter--split.is-flip .chapter__visual {
  float: left;
  margin: 0.15rem 2rem 1.5rem 0;
}

.chapter--split .chapter__copy {
  display: block;
  min-width: 0;
}

.chapter--split .chapter__copy .grid,
.chapter--split .chapter__copy .faq,
.chapter--split .chapter__copy .quote,
.chapter--split .chapter__copy .hero__cta {
  clear: both;
}

@media (max-width: 899px) {
  .chapter--split .chapter__visual,
  .chapter--split.is-flip .chapter__visual {
    float: none;
    width: auto;
    margin: 0 0 1.35rem;
    shape-outside: none;
  }
}

.chapter__copy .kicker {
  color: var(--teal);
}

.chapter h2,
.chapter h1.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
}

.chapter h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 1.15rem 0 0.45rem;
  color: var(--teal-deep);
}

.lede,
.chapter p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: none;
}

@media (min-width: 900px) {
  .lede,
  .chapter p,
  .chapter li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .chapter--split .chapter__copy > .kicker,
  .chapter--split .chapter__copy > .section-title,
  .chapter--split .chapter__copy > h2,
  .chapter--split .chapter__copy > h3,
  .chapter--split .chapter__copy > .lede,
  .chapter--split .chapter__copy > p,
  .chapter--split .chapter__copy > .list {
    max-width: none;
  }
}

.chapter__visual {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.chapter--split .chapter__visual {
  min-height: 18rem;
}

.chapter__visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  display: block;
}

.chapter--split .chapter__visual img {
  min-height: 22rem;
  aspect-ratio: 4 / 5;
  height: auto;
  transform: none;
}

.chapter__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(31, 27, 22, 0.12);
  pointer-events: none;
}

.chapter--dark {
  background: linear-gradient(160deg, #1a2f33 0%, #123038 45%, #1f1b16 100%);
  color: var(--cream);
}

.chapter--dark h2,
.chapter--dark h3,
.chapter--dark .section-title {
  color: var(--cream);
}

.chapter--dark p,
.chapter--dark .lede,
.chapter--dark li {
  color: rgba(244, 239, 230, 0.86);
}

.chapter--dark .kicker {
  color: var(--gold);
}

.chapter--sand {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(47, 99, 106, 0.08), transparent 45%),
    linear-gradient(180deg, var(--sand), var(--cream));
}

.chapter--paper {
  background: var(--paper);
}

/* Cards */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 27, 22, 0.08);
  padding: 1.25rem 1.2rem 1.35rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 27, 22, 0.08);
  border-color: var(--gold-soft);
}

.chapter--dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.card a {
  font-weight: 600;
  text-decoration: none;
}

.list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid rgba(31, 27, 22, 0.08);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.chapter--dark .list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.quote {
  margin: 2rem 0 0;
  padding: 1.5rem 1.35rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: none;
}

.quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--muted);
}

.chapter--dark .quote {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.faq {
  margin-top: 2rem;
  max-width: none;
}

.faq details {
  border-bottom: 1px solid rgba(31, 27, 22, 0.1);
  padding: 0.9rem 0;
}

.chapter--dark .faq details {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--gold);
  margin-right: 0.55rem;
}

.faq details[open] summary::before {
  content: "–";
}

.faq p {
  margin: 0.65rem 0 0;
}

/* Full bleed band */
.band {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: end start;
  color: var(--white);
  overflow: hidden;
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 28, 30, 0.78), rgba(18, 28, 30, 0.25));
}

.band__copy {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 36rem;
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

/* Contact */
.form-shell {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .form-shell {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: start;
  }
}

.form {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 27, 22, 0.08);
  padding: 1.5rem 1.35rem 1.75rem;
  backdrop-filter: blur(6px);
}

.form h3 {
  margin-top: 0;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.field .req {
  color: var(--teal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(31, 27, 22, 0.15);
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal-glow);
  border-color: var(--teal);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-ok,
.form-status.is-err {
  display: block;
}

.form-status.is-ok {
  background: rgba(47, 99, 106, 0.12);
  color: var(--teal-deep);
}

.form-status.is-err {
  background: rgba(168, 107, 114, 0.15);
  color: #6e343a;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

.aside-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 27, 22, 0.08);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.85rem;
}

.aside-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.aside-card p {
  margin: 0 0 0.5rem;
}

/* Footer */
.footer {
  padding: 3rem 1.35rem 5.5rem;
  background: #14110e;
  color: rgba(244, 239, 230, 0.78);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: end;
}

.footer strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.footer a {
  color: var(--cream);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.2);
  color: var(--cream);
  text-decoration: none;
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Music dock */
.music-dock {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 880;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  background: rgba(244, 239, 230, 0.92);
  border: 1px solid rgba(31, 27, 22, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.music-dock__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 0.35rem;
}

.eq {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 14px;
  opacity: 0.35;
}

.eq span {
  width: 2px;
  background: var(--teal);
  height: 40%;
}

.music-dock.is-on .eq {
  opacity: 1;
}

.music-dock.is-on .eq span:nth-child(1) { animation: eq 0.9s ease-in-out infinite; }
.music-dock.is-on .eq span:nth-child(2) { animation: eq 0.7s ease-in-out infinite 0.1s; }
.music-dock.is-on .eq span:nth-child(3) { animation: eq 1.1s ease-in-out infinite 0.05s; }
.music-dock.is-on .eq span:nth-child(4) { animation: eq 0.8s ease-in-out infinite 0.15s; }

@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* Reveal helpers — no ocultar contenido (evita huecos junto a imágenes) */
[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .scroll-hint i,
  .music-dock.is-on .eq span {
    animation: none;
  }
  .cursor {
    display: none !important;
  }
}

.legacy-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 870;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(20, 17, 14, 0.8);
  color: rgba(244, 239, 230, 0.85);
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.legacy-note:hover {
  color: var(--white);
}

@media (max-width: 700px) {
  .legacy-note {
    display: none;
  }
}
