/* INCISUS Clínica Odontológica — standalone stylesheet. */
:root {
  --blue: #1b63db;
  --blue-dark: #124a9f;
  --blue-soft: #eaf2fe;
  --ice: #f2f6fc;
  --paper: #fdfeff;
  --navy: #0a1d3a;
  --navy-2: #10294d;
  --ink: #10233d;
  --muted: #3d4e63;
  --line: #d6e0ef;
  --line-dark: #2a4570;
  --gold: #f2c36b;
  --green: #79e0a3;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --edge: clamp(20px, 6vw, 104px);
  --header-height: 78px;
  --radius: 4px;
  color-scheme: light;
  font-family: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-inline-size: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.symbols { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
svg:not(.symbols) { display: block; inline-size: 1.2rem; block-size: 1.2rem; flex: none; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .header :focus-visible, .reviews :focus-visible, .footer :focus-visible, .wa-float:focus-visible { outline-color: #a9c9ff; }
.wrap { inline-size: min(calc(100% - var(--edge) * 2), 1280px); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, min(6.6vw, 11.5svh), 7.2rem); }
h2 { font-size: clamp(2.15rem, 4.4vw, 4.2rem); line-height: 1.03; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0; }
.lead { max-width: 34rem; margin-top: 1.25rem; color: var(--muted); }
.eyebrow { margin-bottom: 1rem; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: #9ec4ff; }
.skip { position: fixed; z-index: 30; top: .75rem; left: .75rem; padding: .65rem 1rem; color: var(--ink); background: var(--paper); font-weight: 600; transform: translateY(-180%); }
.skip:focus { transform: none; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 10; min-block-size: var(--header-height);
  color: #fff; background: linear-gradient(180deg, #07162be8, #07162b52 78%, #07162b00);
  transition: background-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.header.is-scrolled, .header[data-menu-open] { background: #0a1d3af2; backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: var(--header-height); }
.brand { display: inline-flex; align-items: center; min-block-size: 44px; text-decoration: none; }
.brand-plate { display: inline-flex; padding: .34rem .58rem .3rem; background: #fff; border-radius: 3px; box-shadow: 0 1px 0 #ffffff30; }
.brand img { inline-size: 116px; block-size: auto; }
.header nav { display: flex; align-items: center; gap: clamp(.45rem, 2.1vw, 2rem); }
.header nav a, .menu-toggle { position: relative; display: flex; align-items: center; min-block-size: 44px; color: inherit; font-size: .84rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.header nav a::after { content: ""; position: absolute; inset: auto 0 7px; block-size: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.header nav a:hover::after, .header nav a[aria-current]::after { transform: scaleX(1); }
.header nav a[aria-current] { color: #a9c9ff; font-weight: 700; }
.header nav a:last-child { margin-left: .2rem; padding-inline: .95rem; border: 1px solid #ffffff80; border-radius: 2px; }
.header nav a:last-child::after { display: none; }
.header nav a:last-child:hover, .header nav a:last-child[aria-current] { background: #fff; color: var(--navy); border-color: #fff; }
.menu-toggle { display: none; padding-inline: .9rem; color: #fff; background: transparent; border: 1px solid #ffffff8c; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: end;
  min-height: 100svh; height: auto;
  padding-block: calc(var(--header-height) + 34px) clamp(38px, 8.5vh, 104px);
  color: #fff; background: var(--navy);
}
.hero-visual, .hero::after { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: -1; }
.hero-visual { display: block; object-fit: cover; object-position: 50% 46%; }
.hero-visual img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 46%; }
.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #06142af2 0%, #06142ac9 40%, #06142a45 76%),
    linear-gradient(0deg, #06142ae6 0%, transparent 62%);
}
.hero-inner { position: relative; }
.hero-inner h1 { max-width: 12em; letter-spacing: -.055em; }
.hero-inner > p { max-width: 33rem; margin-block: 1.15rem 1.6rem; color: #e2ecfb; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .6rem 1.2rem; border: 1px solid transparent; border-radius: 2px;
  font-size: .9rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.button:active { transform: scale(.985); }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--blue-soft); }
.button-outline { border-color: #ffffff9e; color: #fff; background: #ffffff12; }
.button-outline:hover { border-color: #fff; background: #ffffff24; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  margin-top: 1.45rem; max-width: 42rem; color: #c9d9ef; font-size: .82rem; line-height: 1.5;
}
.hero-meta > svg { inline-size: 1rem; block-size: 1rem; color: #a9c9ff; }
.hero-meta span:first-of-type { padding-right: .25rem; }
.open-status { display: inline-flex; align-items: center; gap: .4rem; padding: .16rem .55rem; border: 1px solid #ffffff3d; border-radius: 99px; color: #dfe9f8; font-size: .76rem; font-weight: 600; }
.open-status .dot { inline-size: .42rem; block-size: .42rem; border-radius: 50%; background: #9aa9bd; }
.open-status.is-open { border-color: #79e0a355; color: #c8f7da; }
.open-status.is-open .dot { background: var(--green); box-shadow: 0 0 0 3px #79e0a324; }

/* Sections */
.section { padding-block: clamp(66px, 8.6vw, 128px); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 1.6rem 3rem; margin-bottom: clamp(28px, 4.5vw, 58px); }
.section-header h2 { max-width: 12em; }

/* Care */
.care { background: var(--ice); }
.care-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(30px, 5.5vw, 78px); }
.care-copy .lead { max-width: 38rem; }
.care-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 2rem; }
.care-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  min-height: 104px; padding: 1rem 1rem 1rem 1.05rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.care-link:hover { transform: translateY(-2px); border-color: #a9c6ee; box-shadow: 0 8px 22px #0a1d3a12; }
.care-link:active { transform: translateY(0) scale(.995); }
.care-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.care-icon svg { inline-size: 22px; block-size: 22px; }
.care-text { display: grid; gap: .14rem; min-width: 0; }
.care-text strong { font-size: .98rem; line-height: 1.25; letter-spacing: -.012em; }
.care-text > span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.care-arrow { inline-size: 1rem; block-size: 1rem; color: var(--blue); opacity: .55; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.care-link:hover .care-arrow { transform: translateX(3px); opacity: 1; }
.clinic-photo { position: relative; overflow: hidden; background: var(--blue-soft); border-radius: var(--radius); }
.clinic-photo img { inline-size: 100%; aspect-ratio: 3 / 4; max-height: 690px; object-fit: cover; object-position: 54% 42%; transition: transform .5s var(--ease); }
@media (hover: hover) { .clinic-photo:hover img { transform: scale(1.025); } }

/* Reviews */
.reviews { background: var(--navy); color: #f4f8ff; }
.reviews h2 { color: #fff; }
.rating { display: inline-flex; align-items: center; gap: 1.1rem; white-space: nowrap; text-decoration: none; }
.rating strong { color: #fff; font-family: var(--serif); font-size: clamp(3.6rem, 6.2vw, 6.4rem); font-weight: 400; line-height: .85; letter-spacing: -.03em; }
.rating > span { color: #bacce5; font-size: .82rem; line-height: 1.55; }
.rating:hover > span { text-decoration: underline; }
.stars { display: inline-flex; gap: .16rem; color: var(--gold); }
.stars svg { inline-size: .86rem; block-size: .86rem; }
.stars .star-partial { opacity: .58; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.review { display: flex; flex-direction: column; gap: .9rem; padding: clamp(21px, 2.4vw, 32px); margin: 0; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.review blockquote { margin: 0; color: #e7eefb; font-size: .98rem; line-height: 1.62; }
.review figcaption { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .25rem; font-size: .88rem; font-weight: 600; }
.review figcaption > span:first-child { display: grid; place-items: center; min-inline-size: 2.3rem; block-size: 2.3rem; padding-inline: .2rem; border-radius: 50%; background: #24406b; color: #cfe0fb; font-size: .74rem; letter-spacing: .04em; }
.review figcaption small { display: block; margin-top: .1rem; color: #93a9c9; font-size: .71rem; font-weight: 400; }
.review-source { margin-top: 1.6rem; color: #93a9c9; font-size: .78rem; }
.review-source a { color: #cfe0fb; }

/* FAQ */
.questions { background: var(--paper); }
.qa-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(30px, 6vw, 90px); }
.qa-grid .lead { max-width: 27rem; }
.qa-contact { margin-top: 2rem; padding: 1.25rem; max-width: 24rem; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); }
.qa-contact p { margin-bottom: .85rem; font-weight: 600; }
.qa-contact .button { min-height: 46px; }
.button-ghost { color: var(--ink); border-color: #9db1cc; background: transparent; }
.button-ghost:hover { border-color: var(--ink); background: #fff; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; padding: .7rem .1rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font-size: 1.45rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 38rem; margin: 0 2.2rem 1.15rem .1rem; color: var(--muted); font-size: .95rem; }

/* Booking */
.booking { background: var(--blue-soft); }
.booking-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start; gap: clamp(30px, 5vw, 76px); }
.steps { margin: 1.70rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 2.1rem 1fr; gap: .05rem .65rem; padding: .78rem 0; border-bottom: 1px solid #b9cdea; color: var(--muted); font-size: .95rem; }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(steps, decimal-leading-zero); grid-row: span 2; color: var(--blue); font-family: var(--serif); font-size: .95rem; }
.call-note { margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }
.call-note a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 700; }
#wa-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 15px; padding: clamp(20px, 3vw, 38px); background: var(--paper); border: 1px solid #fff; border-radius: var(--radius); box-shadow: 0 18px 48px #0a1d3a14; }
.field { position: relative; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .86rem; font-weight: 600; }
label span { color: var(--muted); font-weight: 400; }
input, select { inline-size: 100%; min-height: 48px; padding: .5rem .62rem; color: var(--ink); background: #fff; border: 1px solid #9db1cc; border-radius: 2px; }
input:hover, select:hover { border-color: #718bb0; }
input[aria-invalid="true"] { border-color: #b02a1e; box-shadow: 0 0 0 1px #b02a1e; }
.field:has(.field-error) { padding-bottom: 1.4rem; margin-bottom: -1.4rem; }
.field-error { position: absolute; color: #a9271c; font-size: .78rem; line-height: 1.35; }
.form-status { min-block-size: 1.5em; color: var(--blue-dark); font-size: .86rem; }
.form-status a { font-weight: 700; }
.form-note { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.form-status:empty + .form-note { margin-top: .1rem; }

/* Footer */
.footer { padding-block: 38px 22px; background: var(--navy); color: #eef4ff; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer-cta .eyebrow { margin-bottom: .55rem; }
.footer-cta h2 { color: #fff; font-size: clamp(1.85rem, 3.4vw, 3.1rem); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 2rem; padding-block: 30px; }
.footer-grid h3 { margin: 0 0 .45rem; color: #fff; font-size: .92rem; }
.footer-grid p, .footer-grid address, .footer-grid a:not(.brand) { color: #b9cae2; font-size: .85rem; overflow-wrap: anywhere; }
.footer-grid p { margin-top: .55rem; }
.footer-grid address { font-style: normal; }
.footer-brand p { max-width: 15rem; }
.footer-grid a:not(.brand) { display: flex; align-items: center; gap: .42rem; inline-size: fit-content; min-height: 38px; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-grid svg { inline-size: 1rem; block-size: 1rem; }
.footer-grid small { color: #8fa5c4; font-size: .72rem; }
.google-badge { margin-top: .4rem; padding: .28rem .6rem; border: 1px solid #3f5b85; border-radius: 2px; text-decoration: none; }
.google-mark { color: #9ec4ff; font-weight: 800; }
.back-top svg { transform: rotate(-90deg); }
.legal { display: flex; justify-content: space-between; gap: .6rem 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); color: #8fa5c4; font-size: .76rem; }
.legal a { color: #c6d8f1; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 8; inset: auto max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  display: grid; place-items: center; inline-size: 56px; block-size: 56px;
  background: var(--blue); color: #fff; border: 1px solid #0f3d87; border-radius: 50%;
  box-shadow: 0 6px 22px #0a1d3a45;
  transition: background-color .18s var(--ease), transform .15s var(--ease), visibility .1s;
}
.wa-float:hover { background: var(--blue-dark); }
.wa-float:active { transform: scale(.96); }
.wa-float svg { inline-size: 27px; block-size: 27px; }
.wa-float.is-occluded { visibility: hidden; }

/* Reveals: displacement only, content is never hidden. */
.reveal-ready [data-reveal] { transition: transform .45s var(--ease); }
.reveal-ready [data-reveal]:not(.is-in) { transform: translateY(12px); }

@media (max-width: 1000px) {
  .care-grid { grid-template-columns: 1fr; }
  .clinic-photo { max-width: 720px; }
  .clinic-photo img { aspect-ratio: 16 / 10; max-height: 440px; object-position: 50% 44%; }
  .qa-grid, .booking-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .qa-grid .lead { max-width: 34rem; }
}
@media (max-width: 900px) {
  :root { --header-height: 66px; }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .has-menu .header nav { display: none; }
  .has-menu .header[data-menu-open] nav { display: grid; inline-size: 100%; grid-column: 1 / -1; gap: 0; padding-bottom: .7rem; }
  .has-menu .header nav a { border-top: 1px solid #ffffff24; padding-inline: 0; font-size: 1rem; }
  .has-menu .header nav a:last-child { margin-left: 0; border: 0; border-top: 1px solid #ffffff24; border-radius: 0; }
  .has-menu .header nav a:last-child:hover { background: transparent; color: #a9c9ff; }
  .brand img { inline-size: 102px; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid .review:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-block: calc(var(--header-height) + 28px) 44px; }
  .hero-inner h1 { font-size: clamp(2.6rem, min(9.4vw, 12svh), 5rem); }
}
@media (max-width: 680px) {
  .care-links { grid-template-columns: 1fr; gap: .55rem; }
  .care-link { min-height: 88px; padding-block: .8rem; }
  .section-header { display: grid; justify-content: start; gap: 1.4rem; }
  .rating strong { font-size: 4.2rem; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid .review:last-child { grid-column: auto; }
  .footer-cta { display: grid; }
  .footer-cta .actions .button { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .legal { flex-direction: column; }
  .hero { padding-block: calc(var(--header-height) + 24px) 34px; }
  .hero::after { background: linear-gradient(0deg, #06142af7 0%, #06142abf 48%, #06142a22 92%), linear-gradient(90deg, #06142a66, transparent); }
  .hero-visual, .hero-visual img { object-position: 56% 42%; }
  .hero-inner h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .hero-inner > p { max-width: 23rem; margin-block: .95rem 1.2rem; font-size: .98rem; }
  .hero-meta { margin-top: 1.05rem; font-size: .77rem; }
  .hero-meta { padding-right: 62px; }
  .open-status { flex-basis: 100%; inline-size: fit-content; margin-top: .15rem; }
  .actions .button { font-size: .86rem; padding-inline: .9rem; }
}
@media (max-width: 470px) {
  #wa-form { grid-template-columns: 1fr; gap: 16px; }
  .field:has(.field-error) { margin-bottom: 0; }
  .care-icon { inline-size: 38px; block-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-height: 700px) and (min-width: 681px) {
  .hero { padding-block: calc(var(--header-height) + 16px) 26px; }
  .hero-inner h1 { font-size: clamp(2.7rem, min(6.4vw, 13.5svh), 5.4rem); }
  .hero-inner > p { margin-block: .8rem 1rem; font-size: 1rem; }
  .hero-meta { margin-top: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { transform: none !important; }
}
