/* Clínica Dental Entre Sonrisas: one stylesheet for every page. Black, white and light wood, after the clinic's own
   sign and reception desk. Motion follows Emil Kowalski's rules: transform, opacity and clip-path only; strong custom
   curves; hover gated to a fine pointer; under reduced motion nothing travels, things fade and unblur in place. */

:root {
  --bg: #f5f2ec;
  --surface: #ebe4d8;
  --card: #fffdf9;
  --ink: #161616;
  --muted: #5f5850;
  --line: #ddd3c4;
  --accent: #161616;
  --accent-ink: #ffffff;
  --wood: #c9a77a;
  --wood-soft: #efe4d2;
  --wood-ink: #7a5528;
  --leaf: #3f8a52;
  --star: #d9a12c;
  --dark: #161616;
  --dark-card: #242320;
  --dark-ink: #f3efe8;
  --dark-muted: #aaa298;

  --font-display: "Urbanist", "DM Sans", system-ui, sans-serif;
  --font-text: "DM Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav: 72px;
  --radius: 22px;
  --radius-sm: 14px;
  --section: clamp(88px, 11vw, 144px);
  --bar: 0px;
}
@media (max-width: 767px) { :root { --nav: 60px; --bar: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.label { font: 600 13px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--wood-ink); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); }
.pending { background: color-mix(in srgb, var(--star) 28%, transparent); padding: 1px 6px; border-radius: 4px; font-size: .94em; }

/* buttons: a press scales them to .97, which tells the hand it was heard */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light { background: var(--dark-ink); color: var(--dark); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #3a3631; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn--light:hover { background: #ffffff; }
  .btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); transition: background-color 240ms ease, box-shadow 240ms ease; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; padding: 6px; border-radius: 12px; background: var(--ink); color: #fff; flex: none; }
.brand__name { font: 600 19px/1.05 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.brand__name small { display: block; font: 500 12px/1.4 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--muted); }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; place-items: center; transition: transform 160ms var(--ease-out); }
.nav__toggle:active { transform: scale(0.94); }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 260ms var(--ease-in-out); }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 379px) { .brand__name small { display: none; } }
@media (max-width: 959px) {
  .nav__links, .nav .wrap > .btn { display: none; }
  .nav__toggle { display: grid; }
}

/* the phone menu: one panel slides in, its links are simply there (one entrance per container) */
.sheet { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--nav) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s linear 260ms; }
.sheet.is-open { transform: translateY(0); visibility: visible; transition: transform 460ms var(--ease-drawer), visibility 0s; }
.sheet a:not(.btn) { font: 600 34px/1.2 var(--font-display); letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: auto; }
@media (prefers-reduced-motion: reduce) {
  .sheet { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .sheet.is-open { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav) + clamp(40px, 6vw, 88px)) 0 clamp(72px, 9vw, 120px); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5vw, 76px); margin: 20px 0 24px; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; color: var(--muted); font-size: 15px; }
.rating { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.stars { position: relative; display: inline-block; width: 92px; height: 17px; }
.stars svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars__fill { color: var(--star); clip-path: inset(0 2% 0 0); }
.stars__base { color: var(--line); }
.hero__media { position: relative; aspect-ratio: 1 / 0.92; }
.hero__photo { position: absolute; inset: 0 0 16% 0; border-radius: var(--radius); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__inset { position: absolute; left: 6%; bottom: 0; width: 34%; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 24px 60px -24px rgb(22 22 22 / .4); }
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag { position: absolute; right: 4%; bottom: 4%; background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: 0 18px 50px -20px rgb(22 22 22 / .4); display: flex; gap: 12px; align-items: center; }
.hero__tag strong { display: block; font: 600 19px/1.1 var(--font-display); letter-spacing: -0.01em; }
.hero__tag span { font-size: 14px; color: var(--muted); }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }
.parallax { will-change: transform; }
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 600px; width: 100%; justify-self: center; margin-top: 8px; }
}
@media (max-width: 479px) {
  .hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__media { aspect-ratio: 1 / 1.05; }
  .hero__photo { inset: 0 0 22% 0; }
  .hero__inset { width: 40%; left: 4%; }
  .hero__tag { right: 3%; top: 4%; bottom: auto; padding: 10px 14px; }
  .hero__tag strong { font-size: 16px; }
}

/* the live "open now" status: a dot that breathes while the clinic is open */
.status__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--wood); position: relative; }
.status.is-open .status__dot { background: var(--leaf); }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf); opacity: 0; }
@keyframes breathe { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .status.is-open .status__dot::after { animation: breathe 2.2s var(--ease-out) infinite; } }

/* hero entrance, seen once per visit: the photograph opens out of the clinic's hexagon, the headline leads the text */
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 18px)); filter: blur(6px); } }
@keyframes hexopen {
  from { clip-path: polygon(50% 26%, 63% 38%, 63% 62%, 50% 74%, 37% 62%, 37% 38%); }
  to { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%, 0 100%, 0 0); }
}
@keyframes settle { from { transform: scale(1.14); } }
@keyframes unblur { from { opacity: 0; filter: blur(8px); } }
@keyframes fill { from { clip-path: inset(0 100% 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero [data-in] { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
  .hero h1 .line { --rise: 30px; }
  .hero__photo { animation: hexopen 1150ms var(--ease-in-out) 120ms both; }
  .hero__photo img { animation: settle 1600ms var(--ease-out) 120ms both; }
  .hero__inset { animation: rise 800ms var(--ease-out) 700ms both; --rise: 28px; }
  .hero__tag { animation: rise 700ms var(--ease-out) 900ms both; --rise: 12px; }
  .stars__fill { animation: fill 900ms var(--ease-in-out) 900ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero [data-in], .hero__photo, .hero__inset, .hero__tag { animation: unblur 500ms ease both; }
}

/* ---------- section scaffolding and scroll reveals ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2, .tour__head h2, .reviews h2, .visit h2 { font-size: clamp(38px, 4.8vw, 68px); margin-top: 16px; }
.head .lead { max-width: 44ch; justify-self: end; }
@media (max-width: 899px) { .head { grid-template-columns: minmax(0, 1fr); } .head .lead { justify-self: start; } }

.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-clip] { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1000ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 1ms); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 500ms ease, filter 500ms ease; transition-delay: 0ms; }
  .js [data-clip] { clip-path: none; opacity: 0; filter: blur(8px); transition: opacity 500ms ease, filter 500ms ease; }
  .js [data-clip].is-in { opacity: 1; filter: none; }
}

/* ---------- the statement: a patient's sentence, lit word by word as it crosses the screen ---------- */
.say { padding: clamp(24px, 4vw, 48px) 0 var(--section); }
.say__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.say__mark { width: clamp(48px, 6vw, 84px); color: var(--wood); margin-top: .4em; }
.say__quote { margin: 0; }
.say__quote p { font: 600 clamp(36px, 5.6vw, 84px)/1.06 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.say__quote footer { margin-top: 28px; color: var(--muted); font-size: 16px; }
.js .say .w { opacity: .16; transition: opacity 360ms ease; }
.js .say .w.is-lit { opacity: 1; }
@media (max-width: 599px) { .say__inner { grid-template-columns: minmax(0, 1fr); } .say__mark { margin: 0; } }

/* ---------- tratamientos: a list whose bar slides to the chosen one, a card that crossfades ---------- */
.treats { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.treats__list { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.treats__bar { position: absolute; left: 0; top: 0; width: 3px; height: 100px; background: var(--ink); border-radius: 3px; transform-origin: top; opacity: 0;
  transition: transform 340ms var(--ease-in-out), opacity 200ms ease; }
.treats__bar.is-set { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .treats__bar { transition: opacity 200ms ease; } }
.treat { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 20px 8px 20px 22px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font: 600 clamp(24px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -0.025em; color: var(--muted); transition: color 200ms ease; }
.treat__n { font: 500 13px/1 var(--font-text); letter-spacing: .04em; color: var(--wood-ink); font-variant-numeric: tabular-nums; flex: none; }
.treat[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .treat:hover { color: var(--ink); } }
.treat:active { transform: scale(0.99); transition: transform 120ms var(--ease-out), color 200ms ease; }
.treats__pending { margin-top: 20px; font-size: 14px; color: var(--muted); }
.treats__panels { display: grid; position: sticky; top: calc(var(--nav) + 32px); }
.tpanel { grid-area: 1 / 1; background: var(--card); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 1px 0 var(--line);
  opacity: 0; filter: blur(4px); transform: translateY(8px); visibility: hidden;
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms var(--ease-out), visibility 0s linear 160ms; }
.tpanel.is-active { opacity: 1; filter: none; transform: none; visibility: visible; transition: opacity 260ms ease 60ms, filter 260ms ease 60ms, transform 300ms var(--ease-out) 60ms, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .tpanel, .tpanel.is-active { transform: none; } }
.tpanel__n { font: 600 clamp(64px, 7vw, 104px)/.8 var(--font-display); letter-spacing: -0.05em; color: var(--wood-soft); -webkit-text-stroke: 1.5px var(--wood); }
.tpanel h3 { font-size: clamp(28px, 2.6vw, 40px); }
.tpanel p { color: var(--muted); }
.tpanel blockquote { margin: 0; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--wood-soft); }
.tpanel blockquote p { color: var(--ink); font: 500 18px/1.45 var(--font-text); }
.tpanel blockquote footer { margin-top: 10px; font-size: 14px; color: var(--muted); }
.tpanel__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); margin-top: auto; }
.tpanel__cta span { font-weight: 600; }
.tpanel__cta small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
@media (max-width: 899px) {
  .treats { grid-template-columns: minmax(0, 1fr); }
  .treats__list { flex-direction: row; overflow-x: auto; border: 0; gap: 8px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-snap-type: x proximity; }
  .treats__list::-webkit-scrollbar { display: none; }
  .treats__bar, .treat__n { display: none; }
  .treat { flex: none; scroll-snap-align: start; font: 600 16px/1 var(--font-text); letter-spacing: 0; padding: 13px 18px; border: 0; border-radius: 999px; white-space: nowrap; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 200ms ease, color 200ms ease, transform 120ms var(--ease-out); }
  .treat[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .treats__pending { order: 3; }
  .treats__panels { position: static; }
}

/* ---------- la clínica: on a computer the photographs travel sideways while the page scrolls; elsewhere you swipe ---------- */
.tour { padding: 0 0 var(--section); --shot-h: clamp(340px, 58svh, 600px); }
.tour__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.tour__side { display: grid; gap: 20px; justify-items: end; }
.tour__side .lead { max-width: 44ch; }
.tour__count { font: 600 15px/1 var(--font-text); color: var(--muted); font-variant-numeric: tabular-nums; }
.tour__count b { color: var(--ink); }
.tour__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tour__viewport::-webkit-scrollbar { display: none; }
.tour__track { display: flex; gap: clamp(14px, 1.6vw, 22px); list-style: none; margin: 0; width: max-content;
  padding: 0 calc((100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / 2); }
.shot { height: var(--shot-h); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; flex: none; background: var(--surface); }
.shot--wide { aspect-ratio: 1170 / 890; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.03); } }
.shot--card { background: var(--dark); color: var(--dark-ink); }
.access { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.access i { width: 52px; height: 52px; border-radius: 14px; background: var(--dark-card); color: var(--wood); display: grid; place-items: center; font-style: normal; }
.access i svg { width: 26px; height: 26px; }
.access h3 { font-size: clamp(32px, 3vw, 44px); margin-top: auto; }
.access p { color: var(--dark-muted); }
.access .btn { align-self: flex-start; margin-top: 8px; }
.tour.is-pinned .tour__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav); overflow: hidden; }
.tour.is-pinned .tour__viewport { overflow: visible; scroll-snap-type: none; }
.tour.is-pinned .tour__track { will-change: transform; }
@media (max-width: 899px) {
  .tour { --shot-h: min(108vw, 460px); }
  .tour__head { grid-template-columns: minmax(0, 1fr); }
  .tour__side { justify-items: start; }
}

/* ---------- opiniones: a deck of cards you flick away, or step through with the arrows ---------- */
.reviews { background: var(--dark); color: var(--dark-ink); overflow: hidden; }
.reviews .label { color: var(--wood); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.score { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: clamp(32px, 4vw, 56px); }
.score__item strong { display: block; font: 600 clamp(64px, 8vw, 120px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score__item span { color: var(--dark-muted); }
.deck { display: grid; gap: 28px; }
.deck__stack { display: grid; padding-top: 36px; touch-action: pan-y; }
.card { grid-area: 1 / 1; background: var(--dark-card); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; min-height: 300px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .05); transform-origin: 50% 0;
  transition: transform 460ms var(--ease-out), opacity 300ms ease; user-select: none; }
.card p { font: 500 clamp(19px, 1.7vw, 24px)/1.45 var(--font-text); }
.card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; color: var(--dark-muted); font-size: 14px; }
.card footer b { color: var(--dark-ink); font-weight: 600; font-size: 16px; }
.card .mini { color: var(--star); letter-spacing: 3px; font-size: 15px; }
.card.is-top { cursor: grab; }
.card.is-dragging { cursor: grabbing; transition: none; }
.deck__ctrl { display: flex; align-items: center; gap: 14px; }
.deck__btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--dark-card); color: var(--dark-ink); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.deck__btn svg { width: 18px; height: 18px; }
.deck__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .deck__btn:hover { background: #34322e; } }
.deck__btn:focus-visible { outline-color: var(--dark-ink); }
.deck__count { font: 600 15px/1 var(--font-text); color: var(--dark-muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
.deck__count b { color: var(--dark-ink); }
.deck__hint { margin-left: auto; font-size: 14px; color: var(--dark-muted); }
@media (prefers-reduced-motion: reduce) { .card { transition: opacity 300ms ease; } .deck__hint { display: none; } }
@media (max-width: 899px) { .reviews__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .deck__hint { display: none; } .card { min-height: 340px; } }

/* ---------- horario y visita ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.visit__facts { display: grid; gap: 28px; align-content: start; }
.hours { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 1px 0 var(--line); }
.hours__now { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.hours__now strong { font-weight: 600; }
.hours__now .status__next { color: var(--muted); }
.hours__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours__table th, .hours__table td { padding: 9px 10px; text-align: left; font-weight: 400; }
.hours__table td { text-align: right; }
.hours__table tr { border-radius: 10px; }
.hours__table .is-closed { color: var(--muted); }
.hours__table .is-today { background: var(--wood-soft); }
.hours__table .is-today th, .hours__table .is-today td { font-weight: 600; }
.hours__table .is-today th:first-child { border-radius: 10px 0 0 10px; }
.hours__table .is-today td:last-child { border-radius: 0 10px 10px 0; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.fact i { width: 44px; height: 44px; border-radius: 12px; background: var(--wood-soft); color: var(--wood-ink); display: grid; place-items: center; font-style: normal; }
.fact i svg { width: 20px; height: 20px; }
.fact h3 { font: 600 17px/1.3 var(--font-text); letter-spacing: 0; }
.fact p, .fact a { color: var(--muted); }
.fact a { text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 160ms ease, text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .fact a:hover { color: var(--ink); text-decoration-color: currentColor; } }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.visit__pic { border-radius: var(--radius); overflow: hidden; min-height: 460px; position: relative; }
.visit__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .visit { grid-template-columns: minmax(0, 1fr); } .visit__pic { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 399px) { .hours__table th, .hours__table td { padding: 8px 6px; font-size: 15px; } }

/* ---------- cierre y pie ---------- */
.closing { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-ink); border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.closing > div, .closing > .btn { position: relative; }
.closing__mark { position: absolute; right: -4%; top: -30%; width: min(46%, 440px); color: #2c2a26; stroke-width: 2; }
.closing h2 { font-size: clamp(42px, 6vw, 88px); }
.closing p { color: var(--dark-muted); margin-top: 16px; max-width: 40ch; }
@media (max-width: 767px) { .closing { grid-template-columns: minmax(0, 1fr); } .closing .btn { width: 100%; } .closing__mark { width: 70%; top: -12%; right: -20%; } }
.footer { padding: 48px 0 calc(40px + var(--bar)); color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); } }

/* ---------- phone action bar: slides up once the hero's own buttons are gone ---------- */
.actionbar { display: none; }
@media (max-width: 767px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform 260ms var(--ease-out); }
  .actionbar.is-up { transform: translateY(0); transition: transform 460ms var(--ease-drawer); }
  .actionbar .btn { min-height: 50px; padding: 0 12px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .actionbar { transform: none; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .actionbar.is-up { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; }
}

/* ---------- legal and credits pages ---------- */
.doc { padding: calc(var(--nav) + clamp(48px, 7vw, 96px)) 0 var(--section); }
.doc__body { max-width: 70ch; }
.doc h1 { font-size: clamp(44px, 6vw, 80px); margin: 16px 0 28px; }
.doc h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 48px 0 14px; }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-block: 8px; }
.doc a:not(.btn) { color: var(--wood-ink); text-underline-offset: 3px; }
.doc .lead { color: var(--ink); }
.doc__date { color: var(--muted); font-size: 14px; margin-top: 48px; }
.facts { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px 24px; margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 639px) { .facts { grid-template-columns: minmax(0, 1fr); row-gap: 0; } .facts dd { margin-bottom: 14px; } }
