/* ===========================================================================
   Self-hosted fonts — no external calls (no Google Fonts).
   Files live in ./fonts/ next to this stylesheet.
   =========================================================================== */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Newsreader-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/Newsreader-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/Newsreader-SemiBold.woff2") format("woff2");
}

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  /* Dental Face green */
  --green-deep: #79BE0B;/*#0F5C4D;*/
  --green-mid:  #5A8F08;/*#137A63;*/
  --green-tint: #F1F7E4;/*#EAF2EE;*/
  --green-line: #D6E6B3;/*#CADED5;*/
  --white:      #FFFFFF;
  --ink:        #232616;/*#1A2420;*/
  --muted:      #6E7659;/*#6B7770;*/

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

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #0E1512; --ink: #E7EEEA; --muted: #93A29B;
    --green-tint: #16241E; --green-line: #26382F;
    --green-mid: #4FB79B; --green-deep: #7ED0B8;
  }
}
:root[data-theme="dark"] {
  --white: #0E1512; --ink: #E7EEEA; --muted: #93A29B;
  --green-tint: #16241E; --green-line: #26382F;
  --green-mid: #4FB79B; --green-deep: #7ED0B8;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; border-radius: 2px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--green-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--green-mid); }
.brand .wordmark { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 1.8rem; font-size: .94rem; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--green-mid); text-decoration: none; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Intro ---------- */
.intro { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.intro h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 1.3rem; max-width: 20ch;
}
.intro p { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Facts band ---------- */
.facts { border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); background: var(--green-tint); }
.facts .grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin-inline: auto; }
.fact { padding: 1.9rem var(--pad); border-left: 1px solid var(--green-line); }
.fact:first-child { border-left: 0; }
.fact .num { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--green-deep); line-height: 1; }
.fact .cap { font-size: .86rem; color: var(--muted); margin-top: .45rem; }
@media (max-width: 720px) {
  .facts .grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(3), .fact:nth-child(4) { border-top: 1px solid var(--green-line); }
}

section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.sec-head { max-width: 64ch; margin-bottom: 2.4rem; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .7rem; }
.sec-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---------- Clínica ---------- */
.clinica p { max-width: 64ch; font-size: 1.05rem; margin: 0 0 1.1rem; }
.clinica p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */
.services { background: var(--green-tint); border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--green-line); border: 1px solid var(--green-line); border-radius: 12px; overflow: hidden; }
.svc { background: var(--white); padding: 1.5rem 1.5rem; }
.svc h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin: 0 0 .35rem; }
.svc p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Director ---------- */
.director { background: var(--green-tint); border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); }
.director .cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.director .role { font-size: .9rem; color: var(--green-mid); font-weight: 500; margin: 0 0 .5rem; }
.director h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1.1rem; letter-spacing: -.015em; }
.director p { color: var(--ink); margin: 0; max-width: 60ch; }
.cv { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--green-line); }
.cv li { display: flex; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--green-line); font-size: .95rem; }
.cv .yr { font-family: var(--serif); color: var(--green-deep); font-weight: 500; min-width: 3.5rem; }
@media (max-width: 780px) { .director .cols { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit .cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.info-row { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--green-line); }
.info-row:first-child { border-top: 1px solid var(--green-line); }
.info-row .k { font-size: .82rem; color: var(--muted); }
.info-row .v { font-size: 1.02rem; color: var(--ink); }
.info-row .v a { color: var(--ink); }
.hours { background: var(--white); border: 1px solid var(--green-line); border-radius: 12px; padding: 1.6rem; }
.hours h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin: 0 0 1rem; }
.hours dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: .7rem; column-gap: 1rem; }
.hours dt { color: var(--muted); font-size: .95rem; }
.hours dd { margin: 0; font-size: .95rem; text-align: right; }
@media (max-width: 780px) { .visit .cols { grid-template-columns: 1fr; } }

/* ---------- Button ---------- */
.df-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: .7rem 1.3rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--green-deep); background: var(--green-deep); color: #fff;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.df-btn:hover { background: var(--green-mid); border-color: var(--green-mid); text-decoration: none; }
.df-btn.df-btn-ghost { background: transparent; color: var(--ink); border-color: var(--green-line); }
.df-btn.df-btn-ghost:hover { border-color: var(--green-mid); color: var(--green-mid); background: transparent; }
.df-btn:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }


/* ---------- Footer ---------- */
footer.site { background: var(--green-deep); color: color-mix(in srgb, var(--white) 82%, var(--green-deep)); }
:root[data-theme="dark"] footer.site, :root:not([data-theme="light"]) footer.site { background: #0B211B; }
footer.site .wrap { padding-block: 2.6rem; }
footer .frow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
footer .fbrand { font-family: var(--serif); font-size: 1.25rem; color: var(--white); font-weight: 600; }
footer .fnav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: color-mix(in srgb, var(--white) 82%, transparent); }
footer a:hover { color: var(--white); }
footer .small { font-size: .84rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--white) 22%, transparent); opacity: .85; }
