.screen { min-height: 100svh; position: relative; display: flex; flex-direction: column; justify-content: center; padding: max(13vh, 96px) 5vw 11vh; overflow-x: clip; }

/* 1 inicio */
.film { position: absolute; inset: -14%; filter: blur(40px) saturate(1.15); }
.film i { position: absolute; border-radius: 50%; opacity: .85; }
.film .b1 { width: 70vmax; height: 70vmax; left: -15%; top: -20%; background: radial-gradient(circle, #ccb98e, transparent 65%); animation: d1 26s ease-in-out infinite alternate; }
.film .b2 { width: 60vmax; height: 60vmax; right: -20%; top: 5%; background: radial-gradient(circle, #766e63, transparent 65%); animation: d2 32s ease-in-out infinite alternate; }
.film .b3 { width: 55vmax; height: 55vmax; left: 15%; bottom: -35%; background: radial-gradient(circle, #f1d8bd, transparent 65%); animation: d3 38s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes d2 { to { transform: translate(-16vw, 18vh) scale(.9); } }
@keyframes d3 { to { transform: translate(12vw, -18vh) scale(1.2); } }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,34,30,.82), rgba(43,34,30,.3) 60%, rgba(43,34,30,.55)); }
.grain { position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero { justify-content: center; overflow: hidden; padding-top: max(15vh, 112px); padding-bottom: 9vh; }
.hero .in-wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5vw; align-items: center; width: 100%; max-width: 1280px; margin: 0 auto; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-portrait { grid-column: 2; grid-row: 1; justify-self: end; position: relative; }
.hero-portrait::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid rgba(204,185,142,.6); border-radius: 999px 999px 36px 36px; pointer-events: none; }
.portrait { position: relative; height: min(66vh, 640px); aspect-ratio: 3 / 4; border-radius: 999px 999px 28px 28px; background: transparent; }
.portrait i { background: linear-gradient(165deg, #f1d8bd, #b89a74 52%, #544941); }
.portrait i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* until her real photo arrives: her monogram, so the arch is intentional rather than empty */
.portrait-mark { position: absolute; z-index: 2; inset: 0; margin: auto; width: 46%; aspect-ratio: 1572 / 1536; background: rgba(245,241,237,.82); -webkit-mask: url(/assets/img/logo-mark.svg) center / contain no-repeat; mask: url(/assets/img/logo-mark.svg) center / contain no-repeat; }
.portrait.has-photo .portrait-mark { display: none; }
.hero .eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--em); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 98px); line-height: 1; margin: 20px 0 20px; color: #fff; }
.nowrap { white-space: nowrap; }
.hero-sub { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.hero .btns { margin-top: 34px; }
.hero .btn.out { color: #fff; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust li { border: 1px solid rgba(245,241,237,.4); padding: 8px 16px; border-radius: 999px; font-size: 12px; letter-spacing: .14em; color: var(--fg); }

/* 2 ¿qué te gustaría mejorar? — a dial, see dial.js */
.pick { overflow-x: clip; }
.dial {
  --R: clamp(190px, 43vw, 440px);   /* radius of the ring */
  --ring-top: 52px;
  --ring-line: rgba(118, 110, 99, .38);
  position: relative; margin-top: 5vh; min-height: 460px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  overflow: clip; border-radius: 36px;
}
.dial.dragging { cursor: grabbing; }
.dial-bg { position: absolute; inset: 0; border-radius: 36px; opacity: .22; transition: background 1.1s ease; pointer-events: none; z-index: 0; }
.dial-bg img, .dial-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.dial-ring { position: absolute; left: 50%; top: var(--ring-top); width: calc(var(--R) * 2); height: calc(var(--R) * 2); margin-left: calc(var(--R) * -1); border-radius: 50%; border: 1px solid var(--ring-line); pointer-events: none; will-change: transform; z-index: 1; }
.dial-ring::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; border: 1px dashed var(--ring-line); opacity: .6; }
.dial-list { list-style: none; }
.tick { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tick-btn {
  position: absolute; left: 0; top: calc(var(--R) * -1); pointer-events: auto;
  font: 400 clamp(16px, 1.7vw, 22px) var(--serif); white-space: nowrap; cursor: pointer;
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--mut);
  transition: background-color .6s, color .6s, border-color .6s;
}
.tick-btn[aria-current="true"] { background: var(--btn); color: var(--btnfg); }
@media (hover: hover) { .tick-btn:not([aria-current="true"]):hover { border-color: currentColor; } }

.dial-detail {
  position: relative; z-index: 2; text-align: center; max-width: 440px; margin: 0 auto;
  padding-top: calc(var(--ring-top) + var(--R) * .5 + 66px);
  transition: opacity .26s ease, transform .26s ease;
}
.dial-detail.swap { opacity: 0; transform: translateY(10px); }
.dial-detail h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.dial-detail p { margin: 14px auto 0; line-height: 1.7; color: var(--mut); max-width: 44ch; }
.dial-detail .btn { margin-top: 22px; }

.dial-controls { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.dial-controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: var(--fg); font: 400 24px/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: background-color .4s, color .4s, transform .4s var(--ease); }
@media (hover: hover) { .dial-controls button:hover { background: var(--fg); color: var(--bg); transform: scale(1.06); } }
#dial-pause { width: 44px; height: 44px; font: 600 11px/1 var(--sans); letter-spacing: 0; padding: 0; margin-left: 10px; opacity: .8; }
#dial-count { min-width: 74px; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--mut); }
.dial-hint { position: relative; z-index: 3; text-align: center; margin-top: 16px; font-size: 13px; color: var(--mut); transition: opacity .7s ease; }
.dial.used .dial-hint { opacity: 0; }

@media (min-width: 1100px) { .dial { --ring-top: 70px; } .dial-detail { padding-top: 150px; } }

/* 3 sobre la doctora */
.about { overflow: hidden; }
.about-split { display: grid; grid-template-columns: .78fr 1.22fr; gap: 6vw; align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.about-portrait { justify-self: center; position: relative; }
.about-portrait::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(204,185,142,.5); border-radius: 999px 999px 34px 34px; pointer-events: none; }
.about .portrait { height: min(62vh, 560px); }
.about-role { margin-top: 22px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); max-width: 60ch; line-height: 1.7; }
.about-lead { margin-top: 20px; line-height: 1.75; color: var(--fg); max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); }
.about-story p { margin-top: 14px; line-height: 1.75; max-width: 54ch; color: var(--mut); }
.about .creds { grid-template-columns: repeat(2, 1fr); gap: 22px 24px; margin-top: 36px; max-width: 560px; }
.about .btns { margin-top: 36px; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 7vh; max-width: 1100px; position: relative; z-index: 2; }
.cred { border-top: 1px solid currentColor; padding-top: 14px; }
.cred b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); }
.cred span { font-size: 13px; color: var(--mut); line-height: 1.5; }

/* 4 primera consulta */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: 8vh; max-width: 1150px; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: currentColor; opacity: .35; transform-origin: left; }
html.motion-ready .flow::before { transform: scaleX(0); transition: transform 2s var(--ease); }
html.motion-ready .flow.in::before { transform: none; }
.step .n { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; position: relative; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); margin-top: 20px; }
.step p { margin-top: 10px; line-height: 1.7; color: var(--mut); max-width: 30ch; }

/* 5 resultados */
.reels { padding-right: 0; overflow: hidden; }
.strip { display: flex; gap: 18px; margin-top: 8vh; padding-right: 5vw; align-items: flex-start; }
.strip > div { flex: 0 0 clamp(170px, 20vw, 300px); }
.reel { width: 100%; aspect-ratio: 9/16; max-height: 54vh; border-radius: 18px; position: relative; overflow: hidden; }
.strip > div:nth-child(2n) .reel { margin-top: 4vh; }
.strip > div:nth-child(1) .reel i { background: linear-gradient(170deg, #f1d8bd, #544941); }
.strip > div:nth-child(2) .reel i { background: linear-gradient(170deg, #ccb98e, #403430); }
.strip > div:nth-child(3) .reel i { background: linear-gradient(170deg, #ececeb, #766e63); }
.strip > div:nth-child(4) .reel i { background: linear-gradient(170deg, #f5f1ed, #544941); }

/* 6 cierre */
.final { text-align: center; align-items: center; }
.final .btns { justify-content: center; margin-top: 44px; }
.final .logo-lockup { margin-top: 7vh; }
.final small { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--mut); }

@media (max-width: 760px) {
  .final small { left: 5vw; transform: none; } /* the floating WhatsApp button lives on the right */
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .strip > div { scroll-snap-align: start; }
  .hero { padding-top: 92px; padding-bottom: 6vh; justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-portrait { grid-column: 1; grid-row: 1; justify-self: center; width: 62%; max-width: 250px; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .portrait { height: auto; width: 100%; aspect-ratio: 3 / 3.4; }
  .hero h1 { margin: 16px 0 14px; }
  .hero .btns { margin-top: 24px; }
  .btn { padding: 17px 24px; }
  .trust { margin-top: 26px; }
  .about-split { grid-template-columns: 1fr; gap: 34px; }
  .about .portrait { height: auto; width: 100%; aspect-ratio: 3 / 3.6; }
  .about-portrait { width: 70%; max-width: 280px; }
  .flow { grid-template-columns: 1fr; gap: 34px; }
  .flow::before { display: none; }
  .strip > div:nth-child(2n) .reel { margin-top: 0; }
}

/* decorative frames need room: hide them on narrow or short screens */
@media (max-width: 760px), (max-height: 620px) { .frame-wrap { display: none; } }

/* optional media (see media.js) */
.reel-label { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; font: 500 22px var(--serif); line-height: 1.1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.reel.embed { aspect-ratio: auto; max-height: none; height: min(68vh, 580px); background: #fff; }
.reel.embed .reel-label { display: none; }
.reel-embed { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.reel-open { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-video .film { display: none; }
.photo i img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* animated silk background (silk.js): sits behind the section's content; the CSS blobs remain as the fallback */
.screen { isolation: isolate; }
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.silk.silk-ready { opacity: 1; }
.silk-on .film { opacity: 0; transition: opacity 1.4s ease; }
