/* Self-hosted fonts (latin subset from Google Fonts, SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/jost.woff2") format("woff2"); }

:root {
  --cream: #f7f2eb;
  --beige: #ede3d6;
  --sand: #d9c8b2;
  --gold: #7f6044;
  --gold-dark: #6e523a;
  --ink: #3a2e26;
  --muted: #6b5c50;
  --white: #fffdf9;
  --logo: var(--ink);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --radius: 999px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* <picture> only picks WebP or JPEG: layout styles the <img> as before, and <source> must not become a grid item */
picture { display: contents; }
picture source { display: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; color: var(--gold-dark); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-bottom: .8em;
}
h1 .eyebrow { display: block; font-family: var(--sans); line-height: 1.65; } /* SEO: the H1 starts with "Odontología integral en Cali" */
.lead { font-size: 1.12rem; color: var(--muted); max-width: 32em; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.small { font-size: .85rem; }

/* Draft placeholders: highlighted until the client sends real content */
.ph { background: rgba(140, 106, 74, .12); outline: 1px dashed var(--sand); border-radius: 4px; padding: 0 .25em; }
.ph-box {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--beige) 0 12px, #e8dccc 12px 24px);
  color: var(--muted); font-size: .9rem; padding: 1rem;
}

/* Buttons and links */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 400 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 1.05em 2em; border-radius: var(--radius);
  background: var(--gold); color: var(--white); border: 1px solid var(--gold);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--gold-dark); }
.btn--ghost:hover { background: var(--gold); color: var(--white); }
.btn--light { background: var(--cream); color: var(--gold-dark); border-color: var(--cream); }
.btn--light:hover { background: var(--white); border-color: var(--white); }
.btn--small { padding: .8em 1.4em; font-size: .72rem; }
.link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--sand); }
.link:hover { border-color: var(--gold); }

/* Logo: the Z and ZENIT are SVG symbols traced from her logo file; sizes follow its proportions,
   scaled by --w (the width of ZENIT). Stacked by default (footer), side by side in the header. */
.logo { --w: 11rem; display: inline-flex; flex-direction: column; align-items: center; gap: calc(var(--w) * .05); text-decoration: none; color: var(--logo); line-height: 1; }
.logo svg { fill: currentColor; display: block; }
.logo__mono { width: calc(var(--w) * .533); height: calc(var(--w) * .386); }
.logo__text { display: flex; flex-direction: column; align-items: center; }
.logo__word { width: var(--w); height: calc(var(--w) * .191); }
.logo__sub { font: 400 calc(var(--w) * .052)/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-top: .9em; padding-left: .5em; }
.logo--small { --w: 6.5rem; flex-direction: row; gap: .7rem; }
.logo--small .logo__mono { width: calc(var(--w) * .46); height: calc(var(--w) * .333); }

/* Divider with star */
.divider { display: flex; align-items: center; gap: 1rem; max-width: 18rem; margin: 1.6rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.divider svg { width: 14px; height: 14px; fill: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem max(1rem, calc((100% - var(--max)) / 2));
  background: rgba(247, 242, 235, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 200, 178, .5);
}
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) max(1rem, calc((100% - var(--max)) / 2)); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 6rem) max(1rem, calc((100% - var(--max)) / 2));
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }
.rating { font-size: .9rem; color: var(--muted); }
.stars { color: #c09a5b; letter-spacing: .15em; }
.hero__img { position: relative; margin: 0; }
.hero__img img { border-radius: 220px 220px 12px 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(58, 46, 38, .35); }
.badge {
  position: absolute; left: -1.2rem; bottom: 2rem;
  background: var(--white); padding: 1rem 1.5rem; border-radius: 10px;
  font: 500 1.5rem/1.05 var(--serif); color: var(--gold-dark);
  box-shadow: 0 12px 30px -12px rgba(58, 46, 38, .3);
}
.badge span { font: 400 .68rem var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Doctor */
.doctor { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; background: var(--white); }
.doctor__photo { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: 12px; }
.credentials { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .2em; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--white); border: 1px solid rgba(217, 200, 178, .6); border-radius: 14px;
  padding: 1.8rem 1.5rem; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(58, 46, 38, .35); }
.card__icon { width: 18px; height: 18px; fill: var(--gold); margin-bottom: 1rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
a.card { display: block; text-decoration: none; }
.card__more {
  display: inline-block; margin-top: 1rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--sand);
}
.card__more:hover, a.card:hover .card__more { border-color: var(--gold); }
/* Space on the right, not the left: a link that wraps to its own line stays aligned with the first */
.card__more:not(:last-child) { margin-right: 1.25rem; }

/* Treatment pages */
.page-hero { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem clamp(2.5rem, 6vw, 4rem); }
.page-hero .divider, .page-hero .lead { margin-inline: auto; }
.page-hero .hero__ctas { justify-content: center; }
.crumbs { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); }
.treatment { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; background: var(--white); }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1em; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--sand); font: 500 1.1rem/1 var(--serif); color: var(--gold-dark);
}
.steps strong { font-weight: 500; }
.facts { position: sticky; top: 100px; background: var(--cream); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.2rem); }
.facts h2 { font-size: 1.7rem; }
.facts dl { margin: 0 0 1.5rem; }
.facts dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.facts dd { margin: .15rem 0 1rem; }
.facts .btn { display: block; text-align: center; margin-bottom: 1.2rem; }
.facts .small { color: var(--muted); margin: 0; }
.case.case--single { max-width: 32rem; margin: 0 auto; }
.case.case--single img { aspect-ratio: auto; }
.quote.quote--single { max-width: 40rem; margin: 0 auto 2rem; }
.treatments-links a { white-space: nowrap; }
.cards + .center { margin-top: 2.5rem; }

/* Cases */
.cases { background: var(--beige); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case { margin: 0; }
/* Instagram before/after posts (square or 4:5) shown in one 4:5 frame; their cream background fills the gaps */
.case img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #f3eee9; border-radius: 12px; }
.case figcaption { text-align: center; margin-top: .8rem; font-family: var(--serif); font-size: 1.25rem; color: var(--gold-dark); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.quote { margin: 0; background: var(--white); border-radius: 14px; padding: 2rem; position: relative; }
.quote::before { content: "“"; font: 4rem/1 var(--serif); color: var(--sand); position: absolute; top: .6rem; left: 1.2rem; }
.quote p { font: italic 1.2rem/1.5 var(--serif); margin-top: 1.4rem; }
.quote footer { font-size: .85rem; color: var(--muted); }

/* Promo */
.promo {
  text-align: center; color: var(--cream); background: var(--gold);
  padding: clamp(4rem, 8vw, 6rem) 1rem; position: relative; overflow: hidden;
}
.promo .eyebrow { color: var(--beige); }
.promo h2 { color: var(--white); max-width: 22em; margin-inline: auto; }
.promo__star { position: absolute; width: 360px; height: 360px; right: -90px; top: -90px; fill: rgba(255, 255, 255, .07); }

/* Booking */
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 16px; }
.form label { display: grid; gap: .35rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 300 1rem var(--sans); color: var(--ink); width: 100%;
  border: 1px solid var(--sand); border-radius: 8px; padding: .8rem .9rem; background: var(--cream);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.phone { display: flex; }
.phone > span { display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--sand); border-right: 0; border-radius: 8px 0 0 8px; background: var(--beige); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.phone input { border-radius: 0 8px 8px 0; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.consent input { width: auto; margin-top: .3rem; accent-color: var(--gold); }
.consent a { color: var(--gold); }
.form .btn { justify-self: start; }
.form__error { color: #a2453b; font-size: .9rem; margin: 0; }

/* Location */
/* FAQ: native <details>, no JS */
.faq { background: var(--beige); }
.faq__list { max-width: 46rem; margin: 0 auto; }
.faq__item { background: var(--white); border-radius: 12px; margin-bottom: .8rem; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.4rem; position: relative;
  font: 500 1.3rem/1.3 var(--serif); color: var(--gold-dark);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font: 300 1.5rem/1 var(--sans); color: var(--gold); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0; padding: 0 1.4rem 1.2rem; color: var(--muted); }
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; background: var(--white); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 1.5rem 0 2rem; }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; color: var(--muted); }
.location__map { width: 100%; min-height: 340px; border: 0; border-radius: 14px; background: var(--beige); filter: sepia(.25) saturate(.85); }
.address { font-size: 1.1rem; }

/* Footer */
.site-footer { text-align: center; padding: 3.5rem 1rem 6rem; background: var(--beige); color: var(--muted); }
.site-footer .logo { margin-bottom: 1.5rem; }
.site-footer a { text-decoration: none; white-space: nowrap; }
.site-footer a:hover { color: var(--gold-dark); }
.social { display: flex; justify-content: center; gap: 1rem; margin: 1.4rem 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--sand); color: var(--gold-dark); transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes, .cases__grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .cases__grid { gap: 2.8rem; }
  .case img { aspect-ratio: auto; } /* stacked: no need for equal heights, so no empty bands */
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.2rem;
    padding: 1.5rem 1rem 2rem; background: var(--cream); border-bottom: 1px solid var(--sand);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .hero, .doctor, .booking, .location, .treatment { grid-template-columns: 1fr; }
  .facts { position: static; }
  .hero__img { max-width: 30rem; margin-inline: auto; }
  .badge { left: .8rem; }
  .doctor__photo { max-width: 26rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
