/* Teba Dental Clinic — shared styles for the doctor profile pages.
   Uses the same tokens, type scale and components as the homepage. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #171A19;
  --ink-soft: #424947;
  --muted: #8C9391;
  --cream: #F6F8F8;
  --paper: #FFFFFF;
  --line: #E7EBEA;
  --orange: #F26B1D;
  --orange-deep: #C2410C;
  --orange-wash: #FFF1E7;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
}

.label::before { content: ''; width: 28px; height: 1px; background: var(--orange); }

/* ── NAV ─────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { text-decoration: none; display: flex; align-items: center; gap: 13px; }
.brand-mark { height: 46px; width: auto; display: block; flex-shrink: 0; }
.brand-lines { display: flex; flex-direction: column; gap: 3px; }

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-tag {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.nav-back {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-back:hover { color: var(--orange); }

/* ── BUTTONS ─────────────── */
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 18px 38px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, gap 0.3s, box-shadow 0.3s;
}

.btn-solid:hover {
  background: var(--orange);
  border-color: var(--orange);
  gap: 18px;
  box-shadow: 0 14px 34px rgba(23,26,25,0.16);
}

.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border-bottom: 1.5px solid var(--ink);
  transition: color 0.25s, border-color 0.25s;
}

.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

/* ── PROFILE HERO ─────────────── */
.p-hero {
  background: var(--cream);
  padding: 170px 2.5rem 90px;
  border-bottom: 1px solid var(--line);
}

.p-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.p-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--orange-wash);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-mono {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--orange);
  color: var(--orange-deep);
  font-family: var(--serif);
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin: 1.5rem 0 0;
  color: var(--ink);
}

.p-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--orange);
  margin-top: 1.25rem;
  max-width: 30ch;
}

.p-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
  line-height: 1.7;
}

.p-hero .btn-solid { margin-top: 2.25rem; }

/* ── PROFILE BODY ─────────────── */
.p-body { padding: 120px 2.5rem; background: var(--paper); }

.p-body-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 6rem;
  align-items: start;
}

.p-prose p {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.95;
}

.p-prose p + p { margin-top: 1.4rem; }

.p-aside {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.75rem 2.5rem;
}

.p-aside h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.p-list { list-style: none; border-top: 1px solid var(--line); }

.p-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ink-soft);
}

.p-list li i {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ── PROFILE CTA ─────────────── */
.p-cta {
  background: var(--orange);
  padding: 110px 2.5rem;
  text-align: center;
}

.p-cta h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: #fff;
  max-width: 18ch;
  margin: 0 auto;
}

.p-cta h2 em { font-style: italic; font-weight: 300; }

.p-cta p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin: 1.5rem auto 2.75rem;
  max-width: 440px;
}

.p-cta .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.p-cta .btn-solid:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── FOOTER ─────────────── */
footer { background: var(--ink); color: rgba(250,246,241,0.6); padding: 80px 2.5rem 0; }
.foot-inner { max-width: 1320px; margin: 0 auto; }

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

.foot-logo {
  width: 230px;
  max-width: 70%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.foot-brand p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 300px;
  margin-top: 1.25rem;
}

.foot-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250,246,241,0.4);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
}

.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.9rem; }

.foot-col a {
  color: rgba(250,246,241,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.25s;
}

.foot-col a:hover { color: var(--orange); }

.foot-bottom {
  border-top: 1px solid rgba(250,246,241,0.12);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-size: 12.5px;
  font-weight: 300;
  flex-wrap: wrap;
}

/* ── WHATSAPP ─────────────── */
.wa-fab {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 250;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}

.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 40px rgba(37,211,102,0.5); }

/* ── REVEAL ─────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1);
}

[data-reveal].visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn-solid, .wa-fab { transition: none; }
}

/* ── RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  .p-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .p-portrait { aspect-ratio: 16 / 10; max-width: 420px; }
  .p-body-inner { grid-template-columns: 1fr; gap: 3rem; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
  .nav-inner { padding: 0 1.5rem; height: 74px; }
  .brand-mark { height: 38px; }
  .brand-name { font-size: 14px; }
  .nav-back { font-size: 12px; }
  .p-hero { padding: 120px 1.5rem 70px; }
  .p-body { padding: 70px 1.5rem; }
  .p-aside { padding: 2rem 1.5rem; }
  .p-cta { padding: 80px 1.5rem; }
  .p-prose p { font-size: 15.5px; line-height: 1.9; }
  footer { padding: 70px 1.5rem 0; }
  .foot-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-col a { display: inline-block; padding: 10px 0; }
  .foot-col li { margin-bottom: 0.25rem; }
  .wa-fab { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .btn-solid { padding: 16px 30px; }
}

@media (max-width: 400px) {
  .btn-solid { padding: 15px 24px; font-size: 13.5px; }
  .p-mono { width: 100px; height: 100px; font-size: 30px; }
}
