/* =====================================================================
   LUMINA · style.css
   Design system + foundation components (calm-tech / luxury wellness)
   ===================================================================== */

:root {

  --paper:        #EAE6E1;   
  --paper-2:      #D8CEC2;   
  --ink:          #1F2A38;   
  --ink-soft:     #5F5A55;   
  --line:         rgba(168, 159, 148, 0.4); 

  --mint:         #A89F94;   
  --mint-deep:    #1F2A38;   
  --azure:        #C8D0D6;   
  --azure-soft:   rgba(200, 208, 214, 0.2); 
  --sand-highlight: #B5A89A; 

  --glass-bg:     rgba(250, 248, 245, 0.8);
  --glass-brd:    rgba(255, 255, 255, 0.6);
  --glass-blur:   18px;

  --sh-sm: 0 2px 8px rgba(95, 90, 85, 0.04);
  --sh-md: 0 8px 24px rgba(95, 90, 85, 0.06);
  --sh-lg: 0 20px 48px rgba(95, 90, 85, 0.1);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", "Helvetica Neue", sans-serif;

  --r-sm: 12px;  --r-md: 18px;  --r-lg: 28px;  --r-xl: 40px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1240px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 4px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--mint-deep);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint-deep);
  font-weight: 500;
}

.btn {
  --pad: 1.05rem 1.8rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad);
  border-radius: 100px;
  font-weight: 500; font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s var(--ease), border-color .3s;
  will-change: transform;
  text-align: center;
}
.btn--sm { --pad: .7rem 1.3rem; font-size: .9rem; }
.btn--primary {
  background-color: var(--ink);
  color: #FAF8F5;
  box-shadow: var(--sh-sm);
  border: 1px solid transparent;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background-color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--sh-sm);
}
.btn--ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background-color: var(--ink);
  color: #FAF8F5;
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.btn--ghost:active {
  transform: translateY(0);
}

.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  font-size: .72rem; letter-spacing: .14em;
}
.marquee__track {
  display: inline-flex; gap: 1.6rem; align-items: center;
  padding: .55rem 0;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee__track span { opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--azure));
  z-index: 60; transition: width .1s linear;
}
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(31, 42, 56, 0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s, padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(31, 42, 56, 0.95);
  border-bottom-color: rgba(200, 208, 214, 0.15);
  padding-top: .75rem; padding-bottom: .75rem;
}
.nav__brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color .4s;
  line-height: 1;
}
.nav__brand-spec {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 300;
  opacity: .8;
  transition: opacity .4s;
}
.nav.is-scrolled .nav__brand-name { color: var(--paper); }
.nav.is-scrolled .nav__brand-spec { opacity: .6; }
.nav__logo {
  height: 42px; width: auto; display: block;
  filter: brightness(0) invert(0.97);
}
.nav__logo--footer { height: 56px; filter: none; }
.nav__brand--footer { flex-direction: column; align-items: flex-start; gap: .2rem; }
.nav__brand--footer .nav__brand-name { font-size: 2rem; color: var(--paper); }
.nav__brand--footer .nav__brand-spec { font-size: .72rem; }
.nav__word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; }
.logo { width: 34px; height: 34px; display: block; flex: none; }
.logo svg { width: 100%; height: 100%; display: block; }
.logo--light svg { filter: none; }
.nav__links { display: flex; gap: 1.8rem; font-size: .82rem; font-weight: 400; letter-spacing: .08em; }
.nav__links a { position: relative; color: var(--azure); transition: color .3s; text-transform: uppercase; }
.nav__links a:hover { color: var(--paper); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--azure); transition: width .35s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--azure); }
.lang__opt { transition: color .3s; }
.lang__opt.is-active { color: var(--paper); }
.lang__sep { opacity: .4; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__burger span { width: 22px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navmenu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(31, 42, 56, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  padding: 5rem 2rem 3rem;
}
.navmenu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.navmenu__links { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.navmenu__links a { font-family: var(--font-display); font-size: 1.7rem; color: var(--paper); transition: color .25s, transform .25s; }
.navmenu__links a:hover { color: var(--azure); transform: translateX(4px); }
.navmenu__cta { margin-top: 1rem; }
.navmenu__social { display: flex; gap: 1.4rem; margin-top: .6rem; font-size: .9rem; font-weight: 600; color: var(--azure); }
.navmenu__social a { transition: color .25s; }
.navmenu__social a:hover { color: var(--paper); }
body.menu-open { overflow: hidden; }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.2rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem);
  background: radial-gradient(circle at center, #F5F2ED 0%, #D8CEC2 70%, #A89F94 100%);
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__aura {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  background:
    radial-gradient(circle at 70% 30%, rgba(200, 208, 214, 0.4), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(168, 159, 148, 0.35), transparent 50%);
  filter: blur(40px); z-index: 0; pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.05); } }
.hero__grain {
  position: absolute; inset: 0; z-index: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__copy, .hero__visual { position: relative; z-index: 1; }

.hero__copy .eyebrow {
  color: var(--mint-deep);
}
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 1rem 0 1.3rem;
  color: var(--mint-deep);
}
.hero__title span { display: block; }
.hero__title-em { font-style: italic; color: #6B5040; }
.text-em { font-style: italic; color: #6B5040; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink); max-width: 30ch; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.6rem; align-items: center; }

.hero__visual { position: relative; }
.hero__frame {
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 3 / 4;
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.6s var(--ease-out);
}
.hero__frame:hover img {
  transform: scale(1.02);
}
.img--placeholder {
  background: linear-gradient(135deg, var(--paper-2), var(--mint) 120%);
  min-height: 100%;
}
.img--placeholder::after {
  content: "imagen · assets/hero.jpg"; display: grid; place-items: center; height: 100%;
  font-size: .8rem; color: var(--ink-soft); letter-spacing: .05em;
}

.glass-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem; border-radius: var(--r-md);
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--sh-md); font-size: .82rem;
  animation: float 6s ease-in-out infinite;
}
.glass-card strong { display: block; font-size: .85rem; }
.glass-card small { color: var(--ink-soft); }
.glass-card--top { top: 6%; right: -7%; left: auto; animation-delay: .2s; }
.glass-card--bottom { bottom: 6%; left: -7%; right: auto; animation-delay: 1.4s; }
.glass-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 4px rgba(2,64,87,.18); }
@keyframes float { 50% { transform: translateY(-9px); } }
.glass-card__ring { width: 30px; height: 30px; }
.glass-card__ring svg { transform: rotate(-90deg); }
.glass-card__ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.glass-card__prog { stroke: var(--azure); stroke-dasharray: 100; stroke-dashoffset: 28; stroke-linecap: round; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"]{ transition-delay:.06s }
.reveal[data-reveal-delay="2"]{ transition-delay:.12s }
.reveal[data-reveal-delay="3"]{ transition-delay:.18s }
.reveal[data-reveal-delay="4"]{ transition-delay:.24s }
.reveal[data-reveal-delay="5"]{ transition-delay:.32s }



.stub { max-width: var(--maxw); margin: 0 auto; padding: 6rem 2rem; text-align: center; color: var(--ink-soft); border-top: 1px solid var(--line); }
.stub[hidden]{ display: none; }

.section-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em;
  margin: .8rem 0 1rem;
}
.section-lead { color: #3E3A36; max-width: 52ch; font-size: 1.05rem; }

.assist {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: radial-gradient(circle at 90% 80%, rgba(168, 159, 148, 0.2), transparent 50%), var(--paper);
}
.assist__inner { max-width: 920px; margin: 0 auto; text-align: center; }
.assist__head { margin-bottom: 2.6rem; }
.assist__head .section-lead { margin: 0 auto; }

.assist__stage {
  position: relative;
  background: linear-gradient(180deg, #FAF8F5, var(--paper));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  min-height: 320px;
  display: grid; place-items: center;
  overflow: hidden;
}
.assist__dots { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.assist__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .4s, width .4s var(--ease); }
.assist__dots span.is-active { background: var(--mint-deep); width: 20px; border-radius: 4px; }

.assist__step { display: none; width: 100%; animation: stepIn .55s var(--ease-out) both; }
.assist__step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }

.assist__q { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1.6rem; }
.assist__opts { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 100px;
  background-color: #FAF8F5; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  cursor: pointer;
}
.chip:hover, .chip:focus-visible { 
  background-color: #fff; border-color: var(--mint-deep); box-shadow: var(--sh-sm); 
}
.chip__ico { color: var(--mint-deep); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.chip--urgent { border-color: #e6b8af; background-color: #fdf6f5; color: #a63628; }
.chip--urgent:hover, .chip--urgent:focus-visible { border-color: #a63628; background-color: #fff; }
.chip--urgent .chip__ico { color: #a63628; }

.assist__back {
  margin-top: 1.8rem; color: var(--ink-soft); font-size: .88rem; font-weight: 500;
  transition: color .3s;
}
.assist__back:hover { color: var(--ink); }

.assist__result { text-align: left; max-width: 560px; margin: 0 auto; }
.assist__result h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .6rem; }
.assist__result .tag {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint-deep); font-weight: 600; margin-bottom: .9rem;
}
.assist__result p { color: var(--ink-soft); margin-bottom: 1rem; }
.assist__result ul { list-style: none; display: grid; gap: .5rem; margin-bottom: .4rem; }
.assist__result li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.assist__result li::before { content: "→"; color: var(--mint-deep); flex: none; }
.assist__result-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.8rem; }

.vdd__name-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 420px; margin: 0 auto; }
.vdd__name-input {
  width: 100%; padding: .95rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s; outline: none;
}
.vdd__name-input:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(2,64,87,.08); }
.vdd__wa-btn { width: 100%; text-align: center; justify-content: center; }

.tx { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--paper), var(--paper-2) 120%); }
.tx__inner { max-width: var(--maxw); margin: 0 auto; }
.tx__head { max-width: 640px; margin-bottom: 3rem; }
.tx__swipe { display: none; font-size: .82rem; color: var(--mint-deep); font-weight: 600; margin-bottom: .8rem; }

.tx__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.tx-card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: #FAF8F5;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.tx-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.tx-card--wide { grid-column: span 4; flex-direction: row; }
.tx-card--wide .tx-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 240px; }
.tx-card--wide .tx-card__body { align-self: center; }

.tx-card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.tx-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.tx-card:hover .tx-card__media img { transform: scale(1.04); }

.tx-card__media--invisalign { background: radial-gradient(120% 120% at 20% 10%, #eaf3f8, #cfe6f2 70%, #a9d2e8); }
.tx-card__media--whitening  { background: radial-gradient(120% 120% at 80% 10%, #fffdf6, #f3ecda 70%, #e7dcc2); }
.tx-card__media--implants   { background: radial-gradient(120% 120% at 70% 30%, #eef3fd, #d8e4f8 70%, #bcd0f1); }
.tx-card__media--cleaning   { background: radial-gradient(140% 120% at 10% 50%, #ecf7f4, #d3eae2 70%, #b2d8c9); }
.tx-card__media--periodontal{ background: radial-gradient(120% 120% at 20% 70%, #edf7f0, #cce8d8 70%, #a8d5be); }

.tx-card__body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.tx-card__tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint-deep); font-weight: 600;
}
.tx-card__body h3 { font-family: var(--font-display); font-size: 1.5rem; margin: .5rem 0 .6rem; }
.tx-card__body p  { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.1rem; }
.tx-card__list { list-style: none; display: grid; gap: .45rem; margin-top: auto; }
.tx-card__list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--ink); }
.tx-card__list li::before { content: "→"; color: var(--mint-deep); flex: none; font-size: .85rem; margin-top: .05em; }

.bk {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--paper), var(--paper-2) 100%);
}
.bk__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.bk__head { margin-bottom: 2.4rem; }
.bk__head .section-lead { margin: 0 auto; }

.bk__card {
  position: relative; text-align: left;
  background: #FAF8F5; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.bk__rail { display: flex; list-style: none; gap: .4rem; margin-bottom: 2rem; }
.bk__rail li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; position: relative; opacity: .5; transition: opacity .4s; }
.bk__rail li.is-active, .bk__rail li.is-done { opacity: 1; }
.bk__rail li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-soft); font-size: .85rem; font-weight: 600;
  transition: background .4s, color .4s;
}
.bk__rail li.is-active span { background: var(--ink); color: var(--paper); }
.bk__rail li.is-done span { background: var(--mint-deep); color: #fff; }
.bk__rail li em { font-style: normal; font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }
.bk__rail li::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: var(--line); z-index: -1;
}
.bk__rail li:first-child::before { display: none; }
.bk__rail li.is-done::before, .bk__rail li.is-active::before { background: var(--mint); }

.bk__step { display: none; animation: stepIn .5s var(--ease-out) both; }
.bk__step.is-active { display: block; }
.bk__q { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.3rem; }

.bk__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.bk-opt {
  padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background-color: var(--paper); border: 1px solid var(--line); font-weight: 600; text-align: left; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s; cursor: pointer;
}
.bk-opt:hover, .bk-opt:focus-visible { border-color: var(--mint-deep); box-shadow: var(--sh-sm); background-color: #fff; }

.bk__opts--docs { grid-template-columns: repeat(2, 1fr); }
.bk-doc { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background-color: var(--paper); border: 1px solid var(--line); text-align: left; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s; cursor: pointer; }
.bk-doc:hover, .bk-doc:focus-visible { border-color: var(--mint-deep); box-shadow: var(--sh-sm); background-color: #fff; }
.bk-doc__av { width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--paper-2));
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; color: var(--ink); }
.bk-doc__meta strong { display: block; font-size: .95rem; }
.bk-doc__meta small { color: var(--ink-soft); font-size: .8rem; }

.bk__cal { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.bk__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.bk__cal-head strong { font-family: var(--font-display); font-size: 1.05rem; text-transform: capitalize; }
.bk__cal-nav { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background .3s; font-size: 1.1rem; }
.bk__cal-nav:hover { background: var(--paper-2); }
.bk__cal-dow, .bk__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.bk__cal-dow span { text-align: center; font-size: .7rem; color: var(--ink-soft); padding: .3rem 0; letter-spacing: .04em; }
.bk__day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  font-size: .95rem; font-weight: 500; background-color: var(--paper); color: var(--ink); transition: background-color .25s, color .25s;
}
.bk__day:hover:not(:disabled), .bk__day:focus-visible:not(:disabled) { background-color: var(--mint); color: #fff; }
.bk__day:disabled { opacity: .4; cursor: default; }
.bk__day.is-empty { background-color: transparent; }
.bk__day.is-sel { background-color: var(--ink); color: #FAF8F5; font-weight: 700; }

.bk__opts--times { grid-template-columns: repeat(4, 1fr); }
.bk-time { padding: .85rem 0; border-radius: var(--r-sm); background-color: var(--paper); border: 1px solid var(--line);
  text-align: center; font-weight: 600; font-size: .95rem; color: var(--ink); transition: border-color .25s, background-color .25s; cursor: pointer; }
.bk-time:hover, .bk-time:focus-visible { border-color: var(--mint-deep); background-color: #fff; }

.bk__back { margin-top: 1.5rem; color: var(--ink-soft); font-size: .88rem; font-weight: 500; transition: color .3s; }
.bk__back:hover { color: var(--ink); }

.bk__step--done { text-align: center; }
.bk__check { width: 64px; height: 64px; margin: 0 auto 1rem; }
.bk__check svg { width: 100%; height: 100%; }
.bk__check circle { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawC .6s var(--ease-out) forwards; }
.bk__check path { fill: none; stroke: var(--mint-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawC .4s .5s var(--ease-out) forwards; }
@keyframes drawC { to { stroke-dashoffset: 0; } }
.bk__summary { display: inline-grid; gap: .4rem; text-align: left; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.1rem 1.4rem; margin: .4rem auto 1.2rem; }
.bk__summary div { display: flex; gap: .6rem; font-size: .92rem; }
.bk__summary dt { color: var(--ink-soft); min-width: 92px; }
.bk__summary dd { font-weight: 600; }
.bk__intake { display: flex; align-items: center; gap: .7rem; max-width: 460px; margin: 0 auto;
  background: linear-gradient(135deg, var(--azure-soft), #fff); border: 1px solid #d6e2fb;
  border-radius: var(--r-md); padding: .9rem 1.1rem; text-align: left; }
.bk__intake-ico { color: var(--azure); font-size: 1.1rem; }
.bk__intake p { font-size: .88rem; color: var(--ink); }

.tm { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--paper-2), var(--paper) 120%); }
.tm__inner { max-width: var(--maxw); margin: 0 auto; }
.tm__head { max-width: 620px; margin-bottom: 2.6rem; }
.tm__head .section-lead { color: #2E2B28; }

.tm__viewport { overflow: hidden; }
.tm__track { display: flex; gap: 1.6rem; transition: transform .6s var(--ease-out); will-change: transform; }
.tm-card {
  flex: 0 0 calc((100% - 3.2rem) / 3);
  background: #FAF8F5; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 1.8rem 1.7rem; display: flex; flex-direction: column; gap: 1.3rem;
}
.tm-card blockquote {
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; font-style: italic;
  color: var(--ink); position: relative;
}
.tm-card blockquote::before { content: "\201C"; font-size: 2.4rem; color: var(--mint); line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.tm-card__stars { color: #F5A623; font-size: 1rem; letter-spacing: .12em; line-height: 1; }
.tm-card figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.tm-card__av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.tm-card__av--ph { display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: var(--mint-deep); background: var(--mint); }
.tm-card figcaption strong { display: block; font-size: .95rem; }
.tm-card figcaption small { color: var(--ink-soft); font-size: .82rem; }

.tm__nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2rem; }
.tm__arrow { width: 44px; height: 44px; border-radius: 50%; background: #FAF8F5; border: 1px solid var(--line);
  font-size: 1.3rem; color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s, background .3s; }
.tm__arrow:hover { transform: translateY(-2px); box-shadow: var(--sh-md); background: var(--paper); }
.tm__dots { display: flex; gap: .5rem; }
.tm__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .35s var(--ease), background .35s; }
.tm__dots button.is-active { width: 22px; border-radius: 4px; background: var(--mint-deep); }

.ft {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem) 1.8rem;
}
.ft__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.8rem;
}

.ft__brand .nav__brand-name { color: #fff; }
.ft__brand .nav__brand-spec { color: rgba(247,245,241,.5); }
.ft__tagline {
  color: rgba(247,245,241,.62); font-size: .93rem;
  max-width: 28ch; margin: 1.1rem 0 1.6rem; line-height: 1.65;
}
.ft__social { display: flex; gap: .55rem; }
.ft__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(247,245,241,.18);
  color: rgba(247,245,241,.65);
  transition: background .3s, color .3s, border-color .3s;
}
.ft__social a:hover { background: rgba(247,245,241,.12); color: #fff; border-color: rgba(247,245,241,.4); }

.ft__col h4 {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; font-weight: 600;
  margin-bottom: 1.1rem; padding-bottom: .75rem;
  border-bottom: 1px solid rgba(247,245,241,.12);
}

.ft__col a {
  display: block; color: rgba(247,245,241,.6); font-size: .9rem;
  padding: .28rem 0; transition: color .25s, padding-left .25s;
}
.ft__col a:hover { color: #fff; padding-left: .35rem; }

.ft__contact-row {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .32rem 0;
}
.ft__contact-icon {
  flex: none; width: 15px; height: 15px;
  display: grid; place-items: center;
  color: rgba(247,245,241,.45); margin-top: .18rem;
}
.ft__contact-row a {
  color: rgba(247,245,241,.78); font-size: .9rem;
  padding: 0; transition: color .25s;
}
.ft__contact-row a:hover { color: #fff; padding-left: 0; }
.ft__contact-row span {
  color: rgba(247,245,241,.55); font-size: .88rem;
  line-height: 1.55;
}
.ft__contact-row span.ft__hours {
  color: rgba(247,245,241,.5); font-size: .85rem; font-style: italic;
}

.ft__bar {
  max-width: var(--maxw); margin: 3rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(247,245,241,.1);
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(247,245,241,.38);
}
.ft__credit { color: rgba(247,245,241,.55); transition: color .3s; }
.ft__credit:hover { color: rgba(247,245,241,.9); }

.faq {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: radial-gradient(circle at 10% 90%, rgba(168, 159, 148, 0.2), transparent 50%), var(--paper);
}
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__head { text-align: center; max-width: 620px; margin: 0 auto 2.8rem; }
.faq__head .section-lead { margin: 0 auto; }

.faq__list { display: grid; gap: .9rem; }
.faq-item {
  background: #FAF8F5; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--azure); box-shadow: var(--sh-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1.02rem;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mint-deep); }

.faq-item__ico { position: relative; width: 18px; height: 18px; flex: none; }
.faq-item__ico::before, .faq-item__ico::after {
  content: ""; position: absolute; background: var(--mint-deep); border-radius: 2px;
  transition: transform .35s var(--ease);
}
.faq-item__ico::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item__ico::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-item__ico::after { transform: rotate(90deg); opacity: 0; }

.faq-item__body { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-item__body p { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .96rem; }

.ab {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  background: radial-gradient(circle at 10% 20%, rgba(168, 159, 148, 0.2), transparent 50%), var(--paper);
}
.ab__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ab__media { position: relative; }
.ab__frame {
  position: relative;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5; background: var(--paper-2);
  border: 1px solid rgba(168, 159, 148, 0.3);
  -webkit-mask-image: radial-gradient(ellipse 92% 94% at 48% 50%,
    black 30%, rgba(0,0,0,0.78) 55%, rgba(0,0,0,0.32) 76%, transparent 92%);
  mask-image: radial-gradient(ellipse 92% 94% at 48% 50%,
    black 30%, rgba(0,0,0,0.78) 55%, rgba(0,0,0,0.32) 76%, transparent 92%);
}
.ab__frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.6s var(--ease-out);
}
.ab__frame:hover img {
  transform: scale(1.03);
}
.ab__badge { position: absolute; bottom: 1.4rem; right: -1rem; animation: float 6s ease-in-out infinite; }
.ab__badge strong { color: var(--sand-highlight); }
.ab__copy .section-title { margin-top: .6rem; }
.ab__doc { display: inline-block; font-family: var(--font-display); font-size: 1.05rem; color: #5C4832; font-style: italic; margin-bottom: .2rem; }
.ab__copy p { color: #3A3530; margin-bottom: 1rem; max-width: 46ch; line-height: 1.7; }
.ab__values { list-style: none; display: flex; gap: 1.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.ab__values li { display: flex; flex-direction: column; }
.ab__values strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.ab__values span { font-size: .85rem; color: #4A4540; }

.ab__credentials {
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--mint, #34a1da);
  background: rgba(2, 64, 87, 0.04);
  border-radius: 6px;
  max-width: 46ch;
}
.ab__credentials-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .7;
  margin-bottom: .35rem;
}
.ab__credentials-line {
  margin: 0 !important;
  font-size: .92rem;
  line-height: 1.55 !important;
  color: #3A3530;
  max-width: none !important;
}
.ab__credentials-line strong { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.ab__credentials-line small { display: inline-block; margin-top: .25rem; font-size: .78rem; opacity: .75; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__book { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 440px; margin: 0 auto; }
  .glass-card { display: none; }
  .tx__swipe { display: inline-block; }
  .tx__grid {
    display: flex; gap: 1rem; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -1.2rem; padding: .5rem 1.2rem 1rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tx__grid::-webkit-scrollbar { display: none; }
  .tx-card, .tx-card--wide {
    grid-column: auto; flex: 0 0 80%; scroll-snap-align: center;
  }
  .tx-card--wide { flex-direction: column; }
  .tx-card--wide .tx-card__media { flex: none; min-height: auto; aspect-ratio: 16 / 10; }
  .bk__opts, .bk__opts--docs { grid-template-columns: 1fr; }
  .bk__opts--times { grid-template-columns: repeat(3, 1fr); }
  .bk__rail li em { display: none; }
  .tm-card { flex: 0 0 100%; }
  .ft__inner { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
  .ab__inner { grid-template-columns: 1fr; }
  .ab__media { max-width: 420px; margin: 0 auto; }
  .ab__badge { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.fab {
  position: fixed; z-index: 70; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), filter .35s;
}
.fab:hover, .fab:focus-visible { transform: translateY(-2px); box-shadow: var(--sh-lg); filter: brightness(1.1); }
.fab--wa { right: 1.4rem; bottom: 5.6rem; background-color: #25d366; color: #fff; }
.fab--chat { right: 1.4rem; bottom: 1.4rem; background-color: #FAF8F5; color: var(--ink); border: 2px solid var(--paper-2); }
.fab--urgent {
  right: 1.4rem; bottom: 9.8rem;
  width: auto; height: 48px; padding: 0 14px 0 12px; border-radius: 999px;
  background-color: #e23b3b; color: #fff; gap: 8px;
  display: inline-flex; align-items: center; position: fixed; z-index: 70;
}
.fab--urgent .fab__label { font: 600 0.82rem/1 "Jost", sans-serif; letter-spacing: .02em; white-space: nowrap; }
.fab--urgent .fab__pulse {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(226,59,59,.55);
  animation: fabPulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,59,59,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(226,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,59,59,0); }
}
@media (prefers-reduced-motion: reduce) {
  .fab--urgent .fab__pulse { animation: none; }
}

/* Hero urgency pill — dimensiones idénticas a .btn--primary */
.hero__urgent {
  align-self: center;
  background: rgba(226,59,59,.07);
  border-color: rgba(226,59,59,.28);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.hero__urgent:hover, .hero__urgent:focus-visible {
  background: rgba(226,59,59,.13);
  border-color: rgba(226,59,59,.5);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.hero__urgent:active {
  transform: translateY(0);
  box-shadow: var(--sh-sm);
}
.hero__urgent-ico {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #e23b3b;
  animation: phoneRing 1.8s ease-in-out infinite;
}
@keyframes phoneRing {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0px  rgba(226,59,59,0));   }
  50%       { transform: scale(1.2); filter: drop-shadow(0 0 6px  rgba(226,59,59,.75)); }
}
/* .hero__urgent-txt hereda font-size/weight del padre; solo ajuste de color */
.hero__urgent-txt { color: var(--ink); }

.chat__open, .chat__close { transition: opacity .25s, transform .25s; }
.chat__close { display: none; }
.chat.is-open .fab--chat .chat__open { display: none; }
.chat.is-open .fab--chat .chat__close { display: block; }

.chat__window {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 69;
  width: min(340px, calc(100vw - 2.8rem)); max-height: 70vh;
  background: #FAF8F5; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.chat.is-open .chat__window { opacity: 1; transform: none; pointer-events: auto; }
.chat__header { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem;
  background: var(--paper); border-bottom: 1px solid var(--line); }
.chat__header .logo { width: 36px; height: 36px; }
.chat__id { flex: 1; }
.chat__header strong { display: block; font-size: .95rem; }
.chat__header small { color: var(--mint-deep); font-size: .76rem; }
.chat__reset { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-soft); transition: background-color .25s, color .25s, transform .4s var(--ease); cursor: pointer; }
.chat__reset:hover, .chat__reset:focus-visible { background-color: var(--line); color: var(--ink); transform: rotate(-90deg); }
.chat__body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; min-height: 180px; }
.chat__msg { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.45; animation: stepIn .4s var(--ease-out) both; color: var(--ink); }
.chat__msg--bot { background-color: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__msg--user { background-color: var(--ink); color: #FAF8F5; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__msg strong { font-weight: 600; }
.chat__msg em { font-style: normal; color: var(--mint-deep); font-weight: 600; }

.chat__typing { display: flex; gap: 4px; align-self: flex-start; padding: .8rem .9rem; background-color: #fff; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background-color: var(--ink-soft); opacity: .4; animation: typing 1.2s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .2s; }
.chat__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.chat__quick:empty { display: none; }
.chat__quick button { padding: .65rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  background-color: #FAF8F5; font-size: .88rem; font-weight: 600; color: var(--ink); transition: background-color .25s, border-color .25s; cursor: pointer;
  animation: stepIn .35s var(--ease-out) both; }
.chat__quick button:hover, .chat__quick button:focus-visible { background-color: #fff; border-color: var(--mint-deep); }
.chat__quick button.is-action { background-color: var(--ink); color: #FAF8F5; border-color: var(--ink); }
.chat__quick button.is-action:hover, .chat__quick button.is-action:focus-visible { background-color: var(--ink-soft); border-color: var(--ink-soft); }
.chat__quick button.is-back { color: var(--ink-soft); border-style: dashed; }
@media (max-width: 860px) {
  .fab--chat { bottom: 1.5rem; right: 1.5rem; }
  .fab--wa { bottom: 5.2rem; right: 1.5rem; }
  .fab--urgent { bottom: 9.0rem; right: 1.5rem; height: 44px; }
  .fab--urgent .fab__label { font-size: 0.78rem; }
  .chat__window { bottom: 8.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fab:hover { transform: none; }
  .chat__window { transition: opacity .001ms; }
}

@media (max-width: 500px) {
  .ft__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ft__col { margin-bottom: 0; }
  .ft__brand { grid-column: 1 / -1; }
}

/* =====================================================================
   RESPONSIVE — MOBILE-FIRST AUDIT
   Fixes for 320–420px (iPhone SE, iPhone 12 mini, small Android)
   Strategy: prevent horizontal overflow, scale typography fluidly,
   relax flex containers, allow safe wrapping. Preserves desktop layout.
   ===================================================================== */

/* Global safety: no horizontal scroll, allow long words to wrap */
html, body { max-width: 100%; overflow-x: clip; }
body { overflow-wrap: break-word; word-wrap: break-word; }

/* Long links/emails/phone numbers should break before overflowing */
a, p, li, span, strong, small, h1, h2, h3, h4 { overflow-wrap: anywhere; }

/* Media never exceeds its container */
img, picture, svg, video { max-width: 100%; height: auto; }

/* Buttons: never clip, wrap if needed, keep touch target generous */
.btn { max-width: 100%; white-space: normal; line-height: 1.25; min-height: 44px; }
.btn > span { min-width: 0; }

/* Flex children that hold text frequently need min-width:0 to shrink */
.nav__brand,
.ft__contact-row,
.hero__urgent,
.tx-card__back-actions,
.tm-card figcaption,
.bk-doc { min-width: 0; }

.nav__brand-name,
.nav__brand-spec,
.ft__contact-row a,
.ft__contact-row span,
.hero__urgent-txt { min-width: 0; }

/* ---------- ≤ 540px (small tablets / large phones) ---------- */
@media (max-width: 540px) {
  /* Hero CTAs stack full width */
  .hero__cta { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero__cta .btn { width: 100%; }
  .hero__urgent { width: 100%; justify-content: flex-start; }

  /* Assist stage: reduce inner padding */
  .assist__stage { padding: 1.4rem 1.1rem; }
  .assist__q { font-size: 1.18rem; }

  /* Treatment carousel: cards take more viewport for better read */
  .tx-card, .tx-card--wide { flex: 0 0 86% !important; }

  /* Booking time grid: 3 columns max on narrow screens */
  .bk__opts--times { grid-template-columns: repeat(3, 1fr) !important; }

  /* Booking time buttons: smaller padding */
  .bk-time { padding: .75rem 0; font-size: .9rem; }

  /* Testimonial cards: tighter padding */
  .tm-card { padding: 1.4rem 1.3rem; gap: 1rem; }
  .tm-card blockquote { font-size: 1.02rem; }

  /* FAQ: tighter padding */
  .faq-item summary { padding: 1rem 1.1rem; font-size: .96rem; gap: .6rem; }
  .faq-item__body p { padding: 0 1.1rem 1.1rem; }

  /* Footer rows: wrap content gracefully */
  .ft__contact-row { flex-wrap: wrap; }
  .ft__contact-row a { word-break: break-word; }

  /* Marquee: smaller, less aggressive */
  .marquee { font-size: .66rem; letter-spacing: .12em; }
  .marquee__track { gap: 1.1rem; }

  /* About values list: stack vertical */
  .ab__values { gap: 1rem; }

  /* Section heading decorative SVG icons: scale down inline */
  .tx__head svg[width="64"], .tm__head svg[width="64"] { width: 44px !important; height: 44px !important; }
  .tx__head > div, .tm__head > div { gap: .5rem !important; }

  /* Hero pill is full-width above; reduce internal sizes */
  .hero__urgent { padding: 9px 12px; gap: 8px; }
  .hero__urgent-txt { font-size: .88rem; }
  .hero__urgent-txt small { font-size: .75rem; }
}

/* ---------- ≤ 420px (iPhone SE / 12 Mini / small Android) ---------- */
@media (max-width: 420px) {
  /* Navbar: stack brand vertically, drop spec to keep things tight */
  .nav { gap: .8rem; padding: .9rem 1rem; }
  .nav__brand { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .nav__brand-name { font-size: 1.25rem; }
  .nav__brand-spec { font-size: .58rem; letter-spacing: .16em; }
  .nav__actions { gap: .6rem; }
  .nav__burger { width: 36px; height: 36px; }
  .lang { font-size: .76rem; }

  /* Hero: tighter padding + smaller min font */
  .hero { padding-left: 1rem; padding-right: 1rem; padding-top: 2.6rem; padding-bottom: 3rem; }
  .hero__title { font-size: clamp(1.95rem, 8.5vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }

  /* Section titles slightly smaller floor */
  .section-title { font-size: clamp(1.65rem, 7vw, 2rem); }
  .section-lead { font-size: 1rem; }

  /* Generic section padding floor */
  .tx, .tm, .ab, .faq, .assist, .bk { padding-left: 1rem; padding-right: 1rem; }

  /* Chips: allow wrapping in their flex container */
  .assist__opts { gap: .55rem; }
  .chip { padding: .7rem 1rem; font-size: .9rem; gap: .4rem; }

  /* Booking calendar: tighter padding */
  .bk__cal { padding: .75rem; }
  .bk__day { font-size: .85rem; }
  .bk__opts--times { grid-template-columns: repeat(2, 1fr) !important; gap: .55rem; }

  /* Treatment card body: tighter */
  .tx-card__body { padding: 1.2rem 1.2rem 1.3rem; }
  .tx-card__body h3 { font-size: 1.3rem; }
  .tx-card__back { padding: 1.6rem 1.4rem; }
  .tx-card__back-title { font-size: 1.5rem; }
  .tx-card__back-text { font-size: .98rem; }

  /* Footer: tighter padding */
  .ft { padding-left: 1rem; padding-right: 1rem; }
  .ft__inner { gap: 2rem; }

  /* Floating buttons: respect iOS home-bar safe area */
  .fab--chat { bottom: max(1.2rem, env(safe-area-inset-bottom, 1.2rem)); right: 1.1rem; }
  .fab--wa { bottom: calc(max(1.2rem, env(safe-area-inset-bottom, 1.2rem)) + 3.8rem); right: 1.1rem; }
  .chat__window {
    bottom: calc(max(1.2rem, env(safe-area-inset-bottom, 1.2rem)) + 7.4rem);
    right: 1.1rem; left: 1.1rem;
    width: auto; max-height: 65vh;
  }

  /* Chat message bubbles: wider on tiny screens */
  .chat__msg { max-width: 92%; font-size: .9rem; }
  .chat__quick { padding: .7rem .8rem; gap: .4rem; }
  .chat__quick button { padding: .55rem .9rem; font-size: .82rem; }

  /* Testimonials nav: smaller arrows */
  .tm__arrow { width: 40px; height: 40px; font-size: 1.1rem; }
  .tm__nav { gap: 1rem; }

  /* Footer bar wraps */
  .ft__bar { flex-direction: column; align-items: flex-start; gap: .4rem; text-align: left; }
}

/* ---------- ≤ 360px (very small Android, older devices) ---------- */
@media (max-width: 360px) {
  .nav__brand-name { font-size: 1.15rem; }
  .nav__brand-spec { display: none; }
  .hero__title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .section-title { font-size: clamp(1.45rem, 7.5vw, 1.85rem); }
  .tx-card, .tx-card--wide { flex: 0 0 90% !important; }
  .marquee__track { gap: .9rem; }
}

/* ---------- iOS safe-area for sticky / fixed elements (all sizes) ---------- */
@supports (padding: max(0px)) {
  .nav { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .ft { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); padding-bottom: max(1.8rem, env(safe-area-inset-bottom)); }
}

/* ---------- Reduce-motion: kill long-running pulses on touch devices that prefer it ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__urgent-dot, .hero__aura { animation: none !important; }
}
