/* La mezcla: Happy's light billboard page with Denthub's split headline; one structure, three themes */
@font-face { font-family: "Red Hat Display"; src: url(fonts/red-hat-display-var.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #17161c; --muted: #3f3d46; --line: #d6d5db; --white: #fff;
  --page: #ececee; --panel: #f6f6f7; --card: #fbfbfc; --accent: #3a2fb8; --accent-2: #2a2190; --tint: #e4e2f6; --deep: #1c1760; --on-deep: #d9d6f7;
  --r-panel: 32px; --r-card: 24px; --gut: clamp(16px, 2.2vw, 28px); --pad: clamp(20px, 3.4vw, 48px);
  --bn: 0px; --bn0: 0px; --barra-h: 0px;
  --f: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
[data-theme="verde"] { --page: #e9ece8; --panel: #f7f8f6; --card: #fbfcfb; --accent: #0f6b4f; --accent-2: #0a503b; --tint: #dbeae2; --line: #d3d8d3; --deep: #0b3a2c; --on-deep: #cfe6dc; }
[data-theme="bracket"] { --page: #eeece8; --panel: #f8f7f4; --card: #fcfbf9; --accent: #b93c0b; --accent-2: #942f08; --tint: #f3e1d6; --line: #dbd7d0; --deep: #46200f; --on-deep: #f1d9cc; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(96px + var(--bn)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; padding: 0 var(--gut) var(--barra-h); overflow-x: clip; }
::selection { background: var(--accent); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }

/* buttons: flat, as the comps */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 24px; border-radius: 999px; background: var(--accent); color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; transition: background .25s var(--ease), transform .25s var(--ease); }
.btn .ar { flex: none; transition: transform .3s var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--accent-2); } .btn:hover .ar { transform: translate(2px, -2px); } }
.btn:active { transform: scale(.98); }
.quiet { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: underline; }

/* menu: inside the panel's top at first (the panel starts 16px under the banner), a floating pill once the page moves */
.nav { position: fixed; z-index: 30; top: calc(var(--bn) + 28px); left: calc(var(--gut) + 14px); right: calc(var(--gut) + 14px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px; transition: background .3s var(--ease), box-shadow .3s var(--ease), top .3s var(--ease); }
.nav.solid { top: calc(var(--bn) + 12px); background: var(--panel); box-shadow: 0 12px 32px -18px rgba(23, 22, 28, .35), 0 0 0 1px var(--line); }
.marca { font-weight: 500; font-size: 21px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.links { display: none; gap: 8px; margin-right: 6px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 999px; font-size: 14.5px; text-decoration: none; transition: background .2s, color .2s; }
@media (hover: hover) { .links a:hover { background: var(--ink); color: var(--white); } }
.phone { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px; font-size: 15px; text-decoration: none; }
.btn-nav { min-height: 48px; padding: 0 18px; font-size: 15px; }
.mobile { position: relative; }
.pill { min-height: 48px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px var(--f); cursor: pointer; }
.drop { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 40px -20px rgba(23, 22, 28, .4), 0 0 0 1px var(--line); }
.open > .drop { display: grid; }
.drop a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; }
@media (hover: hover) { .drop a:hover { background: var(--tint); } }
@media (max-width: 767px) { .nav .btn-nav { display: none; } .marca { font-size: 19px; } }
@media (min-width: 768px) { .mobile { display: none; } }
@media (min-width: 1100px) { .links { display: flex; } .phone { display: inline-flex; } }
@media (min-width: 768px) and (max-width: 1099px) { .mobile { display: block; } }

/* hero: the panel and the four-line staircase */
.hero { padding-top: calc(var(--bn0) + 16px); }
.panel { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--r-panel); min-height: calc(100svh - 32px - var(--bn0)); padding: 76px var(--pad) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 16px; isolation: isolate; }
.facts { justify-self: end; display: grid; text-align: right; font-size: 14px; line-height: 1.45; color: var(--muted); }
h1 { position: relative; display: grid; font-weight: 400; font-size: clamp(2.9rem, 12.4vw, 8.2rem); line-height: .9; letter-spacing: -.028em; }
h1 .ha, h1 .hb { position: relative; display: grid; }
h1 .ha { z-index: 0; justify-self: start; }
h1 .hb { z-index: 2; justify-self: end; text-align: right; margin-top: 1.25em; }
.obj { position: absolute; z-index: 1; mix-blend-mode: multiply; pointer-events: none; width: 92%; max-width: none; left: 6%; top: 1.15em; transform-origin: 50% 60%; -webkit-mask-image: linear-gradient(#000 76%, transparent 98%); mask-image: linear-gradient(#000 76%, transparent 98%); }
.lead { display: grid; gap: 10px; max-width: 34rem; }
.eyebrow { font-weight: 500; font-size: 15px; }
.lede { font-size: 16.5px; color: var(--muted); max-width: 40ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat .n { font-weight: 300; font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: .8; letter-spacing: -.035em; color: var(--ink); }
.stat .l { font-size: 15px; }
.stat-b { justify-self: end; }
.stat-b .n { color: var(--accent); }
.down { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; transition: background .25s, color .25s; }
@media (hover: hover) { .down:hover { background: var(--ink); color: var(--white); } }
@media (max-width: 767px) {
  .panel { padding-top: 64px; gap: 14px; }
  .btn { padding: 0 14px 0 18px; font-size: 15px; gap: 8px; }
  .acts { gap: 6px 12px; flex-wrap: nowrap; }
  .acts .quiet { white-space: nowrap; }
  .book-form label:nth-of-type(2) { grid-column: 1 / -1; }
  .stat .n { font-size: 2.4rem; }
  .down { width: 48px; height: 48px; }
}
[data-theme="bracket"] .obj { width: 150%; left: -30%; top: .55em; }
/* phones: the headline reads whole, the render sits under it (the space is reserved in the h1's own padding) */
@media (max-width: 767px) {
  .panel { padding-top: 48px; }
  h1 { padding-bottom: 30%; }
  h1 .hb { margin-top: 0; }
  .obj, [data-theme="bracket"] .obj { top: auto; bottom: 0; width: 56%; left: -5%; }
  [data-theme="bracket"] .obj { width: 92%; left: -6%; }
}

@media (min-width: 768px) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "facts facts" "ha ha" "lead hb" "foot foot"; grid-template-rows: auto auto 1fr auto; padding-top: 92px; row-gap: 0; }
  .facts { grid-area: facts; }
  h1 { display: contents; }
  h1 .ha { grid-area: ha; }
  h1 .hb { grid-area: hb; align-self: end; margin: 0 0 22px; }
  h1 .ha, h1 .hb { font-weight: 400; font-size: clamp(4.2rem, 8.2vw, 8.2rem); line-height: .9; letter-spacing: -.028em; }
  .lead { grid-area: lead; align-self: end; margin-bottom: 26px; }
  .foot { grid-area: foot; }
  .obj { width: 50%; left: 31%; top: 19%; }
  [data-theme="bracket"] .obj { width: 96%; left: 14%; top: 7%; }
}

/* sections */
section:not(.hero) { margin-top: clamp(72px, 10vw, 140px); }
h2 { font-weight: 400; font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: .96; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.card { background: var(--card); border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 32px); }

/* the deep band: who treats you */
.band { background: var(--deep); color: var(--white); border-radius: var(--r-panel); padding: clamp(32px, 5.4vw, 72px) var(--pad); }
.docs h2 { color: var(--white); margin-bottom: clamp(28px, 4vw, 48px); }
.docs-grid { display: grid; gap: 18px; }
.say-card { display: grid; align-content: space-between; gap: 28px; padding-right: 2vw; }
.say { font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -.03em; }
.say-card footer { color: var(--on-deep); font-size: 15px; }
.doc { position: relative; display: grid; align-content: end; gap: 6px; min-height: 300px; padding: clamp(22px, 2.6vw, 32px); padding-top: 150px; background: var(--card); color: var(--ink); border-radius: var(--r-card); }
.doc-pic { position: absolute; top: 6px; right: 6px; width: 54%; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.doc h3 { font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.025em; }
.role { font-weight: 500; }
.line { color: var(--muted); margin-top: 6px; max-width: 36ch; font-size: 16px; }
@media (min-width: 900px) { .docs-grid { grid-template-columns: 1.25fr 1fr 1fr; align-items: end; } .doc { min-height: 380px; align-self: stretch; } }

/* specialties: renders break out of the card corners */
.esp-head { display: grid; gap: 14px; margin-bottom: 64px; }
.esp-head .sub { color: var(--muted); max-width: 44ch; font-size: 18px; }
@media (min-width: 900px) { .esp-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.esp-big, .esp-mid { display: grid; gap: 16px; }
.big { position: relative; display: grid; align-content: end; gap: 10px; min-height: 0; padding-top: calc(55% - 24px); }
.big .pic { position: absolute; top: -56px; right: clamp(-28px, -2vw, -6px); width: 70%; mix-blend-mode: multiply; transition: transform .6s var(--ease); -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent); mask-image: radial-gradient(closest-side, #000 74%, transparent); }
.big h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; letter-spacing: -.02em; }
.big p { color: var(--muted); max-width: 36ch; }
.big .by { color: var(--ink); font-weight: 500; font-size: 15.5px; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 4px; color: var(--accent); font-weight: 500; text-decoration: none; }
@media (hover: hover) { .big:hover .pic { transform: translate(-6px, 6px) rotate(-3deg); } .go:hover { text-decoration: underline; } }
.esp-mid { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mid { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 6px; }
.mid .pic { display: block; width: min(100%, 200px); height: auto; aspect-ratio: 1; margin: 0 auto 14px; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 90%, transparent); mask-image: radial-gradient(closest-side, #000 90%, transparent); }
.mid h3 { font-size: 18px; }
.mid p { color: var(--muted); font-size: 15px; }
.esp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.esp-pills li { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 999px; font-size: 16px; }
@media (min-width: 768px) { .esp-big { grid-template-columns: 1fr 1fr; } .esp-mid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* how to book: one panel, a shared rail */
.pasos { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; background: var(--panel); border-radius: var(--r-panel); padding: clamp(32px, 5vw, 64px) var(--pad); }
/* the render sits in the heading's row, ending above the rules (never across them) */
.pasos-pic { grid-column: 2; grid-row: 1; align-self: end; width: clamp(112px, 20vw, 260px); height: auto; margin-bottom: clamp(12px, 2vw, 24px); mix-blend-mode: multiply; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent); mask-image: radial-gradient(closest-side, #000 80%, transparent); }
.pasos h2 { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: clamp(28px, 4vw, 48px); }
.rail { grid-column: 1 / -1; display: grid; gap: 28px; }
.rail li { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.rail .k { font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: .9; letter-spacing: -.03em; color: var(--accent); padding-bottom: 14px; }
.rail p { color: var(--muted); }
@media (min-width: 768px) { .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* booking: the tinted band */
.book { display: grid; gap: 28px; background: var(--tint); border-radius: var(--r-panel); padding: clamp(32px, 5vw, 64px) var(--pad); }
.book-copy { display: grid; gap: 16px; align-content: start; }
.book-lede { color: var(--muted); max-width: 46ch; font-size: 18px; }
.book-talk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.talk { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 500; }
.book-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; background: var(--card); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px); }
.book-form .full { grid-column: 1 / -1; }
.book-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.book-form select, .book-form input { width: 100%; min-height: 54px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 400 16px var(--f); appearance: none; }
.book-form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 22px top 50%, right 17px top 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.book-form input::placeholder { color: #6c6a73; }
.book-form input:focus, .book-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.book-form [aria-invalid="true"] { border-color: #b3261e; }
.book-who { font-size: 15px; color: var(--ink); text-align: center; }
.btn-big { min-height: 60px; justify-content: center; font-size: 17px; margin-top: 6px; }
@media (min-width: 900px) { .book { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* before you come: an open list on the page ground */
.faq { display: grid; gap: 28px; padding-inline: var(--pad); }   /* no panel of its own: its text lines up with the text inside the panels */
.faq dl { display: grid; gap: 0 48px; }
.faq dl > div { border-top: 1px solid var(--ink); padding: 20px 0 28px; }
.faq dt { font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.faq dd { margin-top: 8px; color: var(--muted); max-width: 58ch; }
/* like «Cómo agendar»: the title on top, the questions in columns under it */
@media (min-width: 768px) { .faq dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .faq dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.visita { display: grid; gap: 14px; }
.v-hours h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.puerta { font-weight: 500; min-height: 1.5em; margin-bottom: 10px; }
.horas { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horas th, .horas td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.horas td { text-align: right; }
.horas .hoy { display: none; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--page); color: var(--ink); font-size: 13px; font-weight: 500; }
.horas [data-today] .hoy { display: inline-block; }
.horas [data-today] th, .horas [data-today] td { font-weight: 500; }
.v-datos { display: grid; gap: 22px; align-content: start; }
.v-datos dt { font-size: 14px; color: var(--muted); }
.v-datos dd { font-size: 18px; }
@media (min-width: 900px) { .visita { grid-template-columns: 1fr 1fr; } }

.pie { padding: clamp(72px, 10vw, 140px) 0 8px; overflow: hidden; }
.pie-row { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 22px; }
.pie-row a { display: inline-flex; min-height: 24px; }
.creditos { flex-basis: 100%; font-size: 13.5px; }
.wordmark { margin-top: 28px; font-weight: 400; font-size: 13.9vw; line-height: 1.08; letter-spacing: -.035em; white-space: nowrap; color: var(--ink); }

.barra { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; transform: translateY(140%); transition: transform .35s var(--ease); }
.barra.is-up { transform: none; }
.barra .btn { flex: 1; justify-content: center; min-height: 56px; }
.barra-tel { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(23, 22, 28, .4); }
@media (min-width: 768px) { .barra { display: none; } }
/* the assistant's door: floats above the phone bar, a labelled pill from tablet up */
.fab { position: fixed; z-index: 41; right: 16px; bottom: calc(16px + var(--barra-h) + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; box-shadow: 0 12px 28px -12px rgba(23, 22, 28, .55); transition: bottom .35s var(--ease), background .25s var(--ease), transform .35s var(--ease); }
@media (max-width: 767.98px) { .fab { transform: translateY(calc(100% + 120px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; } :root:has(.barra.is-up) .fab { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; } }
.fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 768px) { .fab { right: 24px; bottom: 24px; width: auto; padding: 0 22px 0 18px; } .fab span { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
@media (hover: hover) { .fab:hover { background: var(--accent-2); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }

.motion .say .w { display: inline-block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
