/* =============================================================
   DENTAL AURORA · Morelia
   Paleta: petróleo #0E3E48 · hueso #FAF7F2 · menta #4FBFA8 · coral #E4705C
   Tipografía: Newsreader (títulos) + Outfit (texto)
   ============================================================= */

:root {
  --deep:       #0E3E48;
  --deep-2:     #16535F;
  --bone:       #FAF7F2;
  --soft:       #F1EDE5;
  --surface:    #FFFFFF;
  --mint:       #3FA891;
  --mint-light: #4FBFA8;
  --mint-tint:  #E4F3EF;
  --coral:      #E4705C;
  --coral-deep: #C8543F;

  /* tokens que se reasignan en .block-deep */
  --fg:        #12343B;
  --fg-soft:   #4E6B71;
  --fg-mute:   #7E9499;
  --line-c:    rgba(14,62,72,.14);
  --card-bg:   #FFFFFF;
  --card-line: rgba(14,62,72,.11);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 12px 30px -22px rgba(14,62,72,.5);
  --shadow:    0 30px 70px -40px rgba(14,62,72,.6);
  --ease:      cubic-bezier(.16,1,.3,1);
  --gutter:    clamp(1.1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  background: var(--bone);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .97rem + .16vw, 1.07rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--mint-light); color: var(--deep); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; background: var(--coral); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - var(--gutter) * 2); }

/* ── Tipografía ────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.8rem); }
h3 { font-size: 1.28rem; }
em { font-style: italic; color: var(--mint); }

.eyebrow {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--mint); margin-bottom: .9rem;
}
.lead { color: var(--fg-soft); max-width: 58ch; font-size: 1.05rem; }
.lead.center { margin-inline: auto; }
.lead strong { color: var(--fg); font-weight: 600; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.75rem; border-radius: 100px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 12px 28px -16px rgba(228,112,92,.9); }
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-c); color: var(--fg); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.btn-sm { padding: .72rem 1.35rem; font-size: .88rem; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s, backdrop-filter .4s; }
.nav.is-solid { background: rgba(250,247,242,.93); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-c); }
.nav-inner { display: flex; align-items: center; gap: 1.4rem; padding: .85rem 0; }

.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; }
.brand-mark { display: grid; place-items: center; }
.brand-word { font-family: var(--serif); font-size: 1.32rem; color: var(--deep); letter-spacing: -.01em; }
.brand-word em { font-style: italic; color: var(--mint); }

.nav-links { display: none; gap: 1.7rem; }
.nav-links a { position: relative; font-size: .93rem; font-weight: 400; color: var(--fg-soft); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--mint); transition: width .35s var(--ease); }
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; padding: .7rem 1.3rem; font-size: .88rem; }

.nav-toggle { display: grid; gap: 5px; padding: .5rem; margin-left: auto; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--deep); border-radius: 2px; transition: .3s var(--ease); }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: grid; max-height: 0; overflow: hidden; background: rgba(250,247,242,.98); backdrop-filter: blur(14px); transition: max-height .45s var(--ease); }
.nav.is-open .nav-mobile { max-height: 460px; border-top: 1px solid var(--line-c); }
.nav-mobile a { padding: .9rem var(--gutter); font-size: .95rem; color: var(--fg-soft); border-bottom: 1px solid var(--line-c); }
.nav-mobile a:last-child { color: var(--coral); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-marks { display: grid; gap: 1rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line-c); }
.hero-marks li { display: flex; gap: .8rem; align-items: start; }
.mark-ico {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--mint-tint); color: var(--mint);
  font-size: .82rem; font-weight: 700; margin-top: .15rem;
}
.hero-marks strong { display: block; font-weight: 600; color: var(--fg); font-size: .98rem; }
.hero-marks span span, .hero-marks li > span:last-child { font-size: .92rem; color: var(--fg-soft); }

.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: center 58%; }

/* ── Bloques ───────────────────────────────────────────────── */
.block { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.block-soft { background: var(--soft); }
.block-deep {
  background: var(--deep); color: var(--bone);
  --fg: #FAF7F2;
  --fg-soft: rgba(250,247,242,.76);
  --fg-mute: rgba(250,247,242,.55);
  --line-c: rgba(250,247,242,.18);
  --card-bg: rgba(255,255,255,.06);
  --card-line: rgba(250,247,242,.15);
}
.block-deep em { color: var(--mint-light); }
.block-deep .eyebrow { color: var(--mint-light); }
.block-deep .btn-ghost { color: var(--bone); }
.block-deep .btn-ghost:hover { border-color: var(--mint-light); color: var(--mint-light); }

.sec-head { text-align: center; max-width: 64ch; margin: 0 auto clamp(2.4rem, 6vw, 3.6rem); }
.sec-head .lead { margin-top: 1rem; }
.center-cta { text-align: center; margin-top: clamp(2rem, 5vw, 2.8rem); }

/* ── Servicios ─────────────────────────────────────────────── */
.serv-grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); }
.serv {
  display: grid; gap: 0; align-content: start; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.serv-photo { overflow: hidden; }
/* las fotos originales son casi cuadradas: un 16/9 les cortaba los dientes */
.serv-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .8s var(--ease); }
#limpieza .serv-photo img { object-position: center 50%; }
#brackets .serv-photo img { object-position: center 62%; }
.serv:hover .serv-photo img { transform: scale(1.03); }
.serv-body { padding: clamp(1.5rem, 4vw, 2.2rem); }
.serv-tag { font-size: .76rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--mint); margin-bottom: .6rem; }
.serv-body h3 { margin-bottom: .8rem; font-size: 1.45rem; }
.serv-body > p { color: var(--fg-soft); font-size: .98rem; }

.ticks { display: grid; gap: .6rem; margin: 1.3rem 0; }
.ticks li { position: relative; padding-left: 1.75rem; font-size: .95rem; color: var(--fg-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1rem; height: .55rem;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.from { font-size: .9rem; color: var(--fg-mute); margin-bottom: 1.2rem; }
.from strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--coral); }

/* ── Antes y después ───────────────────────────────────────── */
.ba-figure { max-width: 900px; margin-inline: auto; }
.ba-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ba-figure figcaption { margin-top: .9rem; text-align: center; font-size: .85rem; color: var(--fg-mute); }

/* ── Precios ───────────────────────────────────────────────── */
.price-split { display: grid; gap: 1.6rem; align-items: start; }
.price-col { display: grid; gap: 1rem; align-content: start; }
.price-col-head { text-align: center; }
.price-col-head h3 { font-size: 1.5rem; color: var(--deep); }
.price-block {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius-lg); padding: .4rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.price-list li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: 1rem 0; border-bottom: 1px dotted var(--line-c);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .n { color: var(--fg-soft); font-size: .98rem; }
.price-list li::after {
  content: ""; flex: 1 1 auto; min-width: .8rem; order: 1;
  border-bottom: 1px dotted var(--line-c); transform: translateY(-.25em);
}
.price-list .p {
  order: 2; font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--coral); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price-list .p.free { color: var(--mint); font-size: 1.1rem; }

.callout {
  max-width: 780px; margin: clamp(2rem, 5vw, 2.8rem) auto 0;
  padding: 1.2rem 1.5rem; font-size: .96rem; color: var(--fg-soft);
  background: var(--mint-tint); border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout strong { color: var(--deep); }

/* ── Pasos ─────────────────────────────────────────────────── */
.steps { display: grid; gap: 1.2rem; }
.steps li {
  display: grid; gap: .5rem; align-content: start;
  padding: 1.8rem 1.6rem; background: var(--surface);
  border: 1px solid var(--card-line); border-radius: var(--radius-lg);
}
.step-num {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--deep); color: var(--mint-light);
  font-family: var(--serif); font-size: 1.15rem; margin-bottom: .3rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .94rem; color: var(--fg-soft); }

/* ── Preguntas ─────────────────────────────────────────────── */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--card-line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .3s;
}
.faq details[open] { border-color: var(--mint); }
.faq summary {
  padding: 1.15rem 3rem 1.15rem 1.4rem; position: relative;
  font-weight: 500; font-size: 1rem; color: var(--fg); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%;
  width: .58rem; height: .58rem; margin-top: -.4rem;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.15rem; }
.faq p { padding: 0 1.4rem 1.3rem; font-size: .96rem; color: var(--fg-soft); max-width: 64ch; }

/* ── Contacto ──────────────────────────────────────────────── */
.split { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.split-copy h2 { margin-bottom: 1.1rem; }
.info { display: grid; gap: 1.2rem; margin: 2rem 0; }
.info li { display: grid; gap: .2rem; }
.info span { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-mute); }
.info a, .info p { font-size: 1.04rem; color: var(--fg); }
.info a:hover { color: var(--mint-light); }

.hours-card {
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
}
.hours-title {
  font-family: var(--serif); font-size: 1.3rem; color: var(--mint-light);
  text-align: center; padding-bottom: 1rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--card-line);
}
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; font-size: .93rem; color: var(--fg-soft);
  border-bottom: 1px dotted var(--line-c); font-variant-numeric: tabular-nums;
}
.hours li:last-child { border-bottom: 0; }
.hours .off { color: var(--fg-mute); }
.hours-note { margin-top: 1.1rem; font-size: .84rem; color: var(--fg-mute); text-align: center; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: #0A2F37; color: rgba(250,247,242,.7); padding: clamp(3rem, 7vw, 4.2rem) 0 1.6rem; }
.footer-inner { display: grid; gap: 2.2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(250,247,242,.14); }
.footer .brand-word { color: var(--bone); font-size: 1.4rem; }
.footer .brand-word em { color: var(--mint-light); }
.footer-brand p { margin-top: .5rem; font-size: .94rem; max-width: 36ch; }
.footer-nav { display: grid; gap: .7rem; align-content: start; }
.footer-nav a { font-size: .94rem; transition: color .3s; }
.footer-nav a:hover { color: var(--mint-light); }
.footer-contact { display: grid; gap: .4rem; font-size: .94rem; align-content: start; }
.footer-contact a:hover { color: var(--mint-light); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding-top: 1.5rem; padding-bottom: 3.2rem;
  font-size: .82rem; color: rgba(250,247,242,.45);
}

/* ── WhatsApp flotante ─────────────────────────────────────── */
.wa-float { transition: transform .3s var(--ease), background .3s; }
.wa-float:hover { background: #20BD5A !important; transform: translateY(-3px) scale(1.05); }

/* ── Reveals ───────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.is-ready [data-reveal].is-in { opacity: 1; transform: none; }
html:not(.is-ready) [data-reveal] { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-split { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; }
  .serv { grid-template-columns: .95fr 1.05fr; align-items: stretch; }
  .serv-photo img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.15fr .85fr; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1.1fr; }
}

@media (max-width: 559px) {
  .wa-float { right: 1rem !important; bottom: 1rem !important; width: 52px !important; height: 52px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .btn, .serv-photo img, .wa-float, .faq summary::after { transition: none; }
}
