/* ============================================================
   dcodontología — Estilos específicos de la homepage
   Se carga DESPUÉS de landing.css (que ya define variables,
   reset, tipografía, nav, botones, chip y reveal).
   ============================================================ */

/* ---------- Display heading (solo homepage) ---------- */
.h-display {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding: 144px 32px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--navy);
  max-width: 14ch;
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 620px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--teal-dark);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero split — 50/50 foto + bio */
.hero-split {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;   /* cada columna se dimensiona por su propio contenido */
  position: relative;
}

.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: visible;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--mint) 0%, var(--teal) 100%);
}

.hero-media .placeholder {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 0 2px,
    transparent 2px 14px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media .placeholder-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(18, 83, 88, 0.55);
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

/* Retrato superpuesto en la esquina del media */
.hero-badge {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: clamp(140px, 13vw, 170px);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  border: 6px solid var(--white);
  box-shadow: 0 20px 60px rgba(33, 38, 92, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-badge .placeholder {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(54, 135, 140, 0.12) 0 2px,
    transparent 2px 10px
  );
}

.hero-badge-label {
  position: relative;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10px;
  color: var(--teal-dark);
  text-align: center;
  padding: 0 8px;
  letter-spacing: 0.02em;
}

/* Panel bio — no estira al alto de la foto; se dimensiona por contenido */
.hero-bio {
  background: var(--cream);
  border-radius: 28px;
  padding: 48px 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;          /* no estira al alto de la imagen */
  scroll-margin-top: 80px;
}

.bio-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.bio-name {
  margin-top: 14px;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--navy);
}

.bio-role {
  margin-top: 10px;
  font-size: 16px;
  color: var(--teal-dark);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

.bio-quote {
  margin-top: 24px;
  margin-bottom: 32px;
  font-size: 17px;
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1.55;
  letter-spacing: -0.01em;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.bio-creds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(18, 83, 88, 0.14);
  padding-top: 20px;
}

.bio-creds li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--teal-dark);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.bio-creds .check {
  color: var(--gold);
  font-weight: 600;
  margin-top: 1px;
}

.bio-creds strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Stats ---------- */
.stats {
  max-width: 1280px;
  margin: 96px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(18, 83, 88, 0.12);
  border-bottom: 1px solid rgba(18, 83, 88, 0.12);
}

.stat {
  padding: 40px 24px;
  border-right: 1px solid rgba(18, 83, 88, 0.12);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--teal-dark);
  letter-spacing: -0.005em;
}

/* ---------- Differential ---------- */
.differential {
  max-width: 1280px;
  margin: 0 auto;
  padding: 144px 32px;
  scroll-margin-top: 64px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 72px;
}

.section-header .eyebrow { margin-bottom: 20px; display: inline-block; }
.section-header .lede { margin-top: 24px; max-width: 640px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.diff-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.diff-card:hover { transform: translateY(-4px); }

.diff-num {
  font-size: 72px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 32px;
  font-feature-settings: "tnum";
}

.diff-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.15;
}

.diff-body {
  font-size: 16px;
  color: var(--teal-dark);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 44ch;
}

/* ---------- Treatments ---------- */
.treatments {
  background: var(--cream);
  padding: 144px 32px;
  scroll-margin-top: 64px;
}

.treatments-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.treatment-hero {
  background: var(--navy);
  color: var(--white);
  border-radius: 32px;
  padding: 72px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 420px;
}

.treatment-hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 80%; height: 180%;
  background: radial-gradient(circle, rgba(182, 150, 66, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.pill-star {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(216, 190, 133, 0.18);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pill-star .star {
  width: 10px; height: 10px;
  background: var(--gold-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.treatment-hero h3 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
  color: var(--white);
}

.treatment-hero p {
  font-size: 17px;
  color: rgba(203, 220, 212, 0.85);
  line-height: 1.55;
  max-width: 48ch;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}

.treatment-hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.treatment-hero-visual .placeholder {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.06) 0 2px,
    transparent 2px 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-hero-visual .placeholder-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 6px;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.treatment-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-decoration: none;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(33, 38, 92, 0.08);
}

.treatment-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-dark);
}

.treatment-card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.15;
}

.treatment-card p {
  font-size: 14px;
  color: var(--teal-dark);
  line-height: 1.55;
  letter-spacing: -0.005em;
  flex: 1;
}

.treatment-card .arrow {
  margin-top: 20px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease);
  text-decoration: none;
}

.treatment-card:hover .arrow { gap: 10px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--white);
  padding: 144px 32px;
  text-align: center;
}

.cta-final-inner {
  max-width: 820px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: clamp(40px, 5.8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--navy);
  margin: 20px 0 24px;
}

.cta-final .lede {
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Consultorio ---------- */
.consultorio {
  background: var(--cream);
  padding: 120px 32px;
  scroll-margin-top: 64px;
}

.consultorio-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.consultorio .eyebrow { display: block; }

.consultorio-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--navy);
  margin: 16px 0 20px;
}

.consultorio-info .lede { max-width: 480px; margin-bottom: 32px; }

.consultorio-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(18, 83, 88, 0.14);
}

.consultorio-meta .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

.consultorio-meta .k {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 2px;
}

.consultorio-meta .v {
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* ---------- Footer (override: homepage usa cream, no navy) ---------- */
.footer {
  background: var(--cream);
  color: var(--ink);
}

.footer .logo .dc { color: var(--navy); }
.footer .logo .odo { color: var(--teal); font-weight: 400; }

.footer-right {
  color: var(--teal-dark);
}

/* ---------- Hero cascade animation ---------- */
.hero-chip, .hero-title, .hero-subtitle, .hero-ctas, .hero-split {
  opacity: 0;
  transform: translateY(24px);
  animation: cascade 0.68s var(--ease) forwards;
}

.hero-chip  { animation-delay: 0.10s; }
.hero-title { animation-delay: 0.22s; }
.hero-subtitle { animation-delay: 0.34s; }
.hero-ctas  { animation-delay: 0.46s; }
.hero-split { animation-delay: 0.58s; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 104px 0 48px;
  }
  .hero > *:not(.hero-split) {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-title { font-size: 44px; line-height: 1.02; }
  .hero-subtitle { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
  }
  .hero-media {
    border-radius: 0;
    aspect-ratio: 4 / 5;
    position: relative;
  }
  .hero-bio {
    align-self: auto;   /* en mobile se estira full-width normalmente */
    border-radius: 0;
    padding: 48px 24px 40px;
  }
  .hero-badge {
    position: absolute;
    top: auto;
    bottom: -60px;
    right: 24px;
    left: auto;
    transform: none;
    width: 120px;
    border-width: 4px;
    border-radius: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 48px 24px 0;
    padding: 0;
  }
  .stat {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(18, 83, 88, 0.12);
  }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  .differential, .treatments, .cta-final {
    padding: 80px 24px;
  }
  .diff-grid, .treatment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .diff-card { padding: 32px 28px; border-radius: 20px; }
  .diff-num { font-size: 56px; margin-bottom: 20px; }

  .treatment-hero {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    border-radius: 24px;
  }
  .treatment-hero-visual { aspect-ratio: 16/10; }
  .treatment-card { min-height: auto; padding: 28px 24px; }

  .consultorio {
    padding: 72px 24px;
  }
  .consultorio-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .consultorio-meta .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
