@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reglas de Tipografía Base (Régimen Médico Premium) */
body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
p  { font-size: 16px; line-height: 1.6; }

/* Header Capsule Styles */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 44px), 1400px);
  height: 86px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 10vw, 132px) minmax(0, 1fr);
  column-gap: clamp(18px, 2.7vw, 48px);
  align-items: center;
  padding: 0 clamp(30px, 5vw, 74px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(6, 36, 58, 0.10);
  transition: all 0.3s ease;
}

.header-side {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-side--left {
  justify-content: flex-end;
}

.header-side--right {
  justify-content: flex-start;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  min-width: 0;
}

.header-nav--left {
  justify-content: flex-end;
  align-items: baseline;
}

.header-nav--right {
  justify-content: flex-start;
}

.header-dropdown {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.header-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.header-dropdown__trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .2s ease;
}

.header-dropdown:hover .header-dropdown__trigger::after,
.header-dropdown:focus-within .header-dropdown__trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 1010;
  display: grid;
  min-width: 250px;
  padding: 10px;
  border: 1px solid rgba(6, 36, 58, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(6, 36, 58, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.header-dropdown:hover .header-dropdown__menu,
.header-dropdown:focus-within .header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .header-dropdown__menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: #06243A;
  font-size: 10px;
  letter-spacing: .12em;
  transition: background .2s ease, color .2s ease;
}

.site-header .header-dropdown__menu a:hover,
.site-header .header-dropdown__menu a:focus-visible {
  background: #06243A;
  color: #fff;
  outline: none;
}

.site-header a {
  color: #06243A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 50px rgba(6, 36, 58, 0.14);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: clamp(100px, 8vw, 116px);
  height: auto;
  display: block;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  image-rendering: auto;
  transform: translateY(1px);
}

.mobile-menu-trigger {
  display: none;
}

.mobile-specialties-summary:focus {
  outline: none;
}

.mobile-specialties-summary:focus-visible > div:first-of-type {
  box-shadow: 0 0 0 2px rgba(6, 36, 58, 0.2), 0 10px 30px rgba(6, 36, 58, 0.08);
}

/* Entre 1024 y 1279px la barra derecha no cabe con la etiqueta de idioma:
   queda solo el globo (el aria-label conserva el nombre). */
@media (max-width: 1279px) {
  .header-lang__label {
    display: none;
  }

  .header-nav {
    gap: 18px;
  }

  .site-header a {
    font-size: 11px;
    letter-spacing: .1em;
  }

  .header-nav .btn-magnetic {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: 84px;
    grid-template-columns: 1fr 108px 1fr;
    column-gap: 16px;
    padding: 0 22px;
  }

  .header-nav {
    gap: 20px;
  }

  .site-header a {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .header-nav .btn-magnetic {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-dropdown__menu {
    right: auto;
    left: 0;
  }

  .logo img {
    width: 100px;
  }
}

@media (max-width: 767px) {
  .site-header {
    width: min(calc(100% - 28px), 560px);
    height: 76px;
    grid-template-columns: 1fr 96px 1fr;
    padding: 0 18px;
  }

  .header-side--left {
    justify-content: flex-start;
  }

  .header-nav {
    display: none;
  }

  .logo img {
    width: 88px;
  }

  .mobile-menu-trigger {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }
}

/* Hero Copy Glassmorphism */
.hero-copy {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 20px 60px rgba(6, 36, 58, 0.12);
}

.hero-copy h1 {
  color: #151515;
}

.hero-copy p {
  color: rgba(6, 36, 58, 0.9);
}

/* Fade Utilities para fusión impecable entre secciones */
.fade-top,
.fade-bottom {
  isolation: isolate;
}

.fade-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 16vh, 220px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #F7F4EF 0%,
    rgba(247, 244, 239, 0.82) 34%,
    rgba(247, 244, 239, 0) 100%
  );
}

.fade-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: clamp(150px, 20vh, 280px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #F7F4EF 0%,
    rgba(247, 244, 239, 0.86) 38%,
    rgba(247, 244, 239, 0) 100%
  );
}

/* Textos Rotativos del Hero */
#heroText {
  display: inline-block;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
  transform-origin: center;
  will-change: opacity, transform, filter;
}

#heroText.is-changing {
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
  filter: blur(7px);
}

/* Secuencia de diagnóstico */
.diag-visual {
  isolation: isolate;
}

.diag-image {
  position: absolute;
  inset: -7% -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(1.04) brightness(0.96);
  will-change: transform;
}

.diag-visual__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(247, 244, 239, 0) 52%, rgba(247, 244, 239, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 36, 58, 0.12), rgba(166, 128, 104, 0.10));
}

.diag-panel {
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, rgba(29, 111, 99, 0.13), transparent 32%),
    linear-gradient(135deg, #FDFBF7 0%, #F3ECE3 52%, #EAD9CB 100%);
}

.diag-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(6, 36, 58, 0.10);
  border-radius: 999px;
  pointer-events: none;
}

.diag-copy {
  position: relative;
  z-index: 2;
}

.diag-kicker {
  margin-bottom: 28px;
  color: #1D6F63;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.diag-step {
  color: #06243A;
}

.diag-step-number {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: #1D6F63;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.diag-step-number::after {
  content: "";
  width: 46px;
  height: 1px;
  margin-left: 14px;
  background: rgba(29, 111, 99, 0.45);
}

.diag-step h2 {
  max-width: 11ch;
  margin-bottom: 24px;
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 400;
  line-height: .98;
}

.diag-step p {
  max-width: 560px;
  color: rgba(6, 36, 58, 0.72);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.75;
}

.diag-rule {
  width: min(100%, 460px);
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(6, 36, 58, 0.22), rgba(29, 111, 99, 0), transparent);
}

@media (max-width: 767px) {
  .diag-visual__veil {
    background:
      radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.28), transparent 30%),
      linear-gradient(180deg, rgba(247, 244, 239, 0) 46%, rgba(247, 244, 239, 0.82) 100%),
      linear-gradient(180deg, rgba(6, 36, 58, 0.08), rgba(166, 128, 104, 0.08));
  }

  .diag-panel {
    align-items: flex-start;
  }

  .diag-panel::before {
    inset: 14px;
    border-radius: 28px;
  }

  .diag-kicker {
    margin-bottom: 18px;
  }

  .diag-step h2 {
    max-width: 13ch;
    margin-bottom: 16px;
    font-size: clamp(32px, 10vw, 42px);
  }

  .diag-step p {
    font-size: 15px;
    line-height: 1.55;
  }
}

/* Sobre nosotros */
.about-kicker {
  margin-bottom: 18px;
  color: #1D6F63;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.about-title {
  max-width: 920px;
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 400;
  line-height: .96;
}

.about-lede {
  max-width: 760px;
  margin-top: 32px;
  color: rgba(6, 36, 58, 0.78);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.about-primary-cta,
.about-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.about-primary-cta {
  background: #06243A;
  color: #fff;
  box-shadow: 0 18px 45px rgba(6, 36, 58, 0.18);
}

.about-primary-cta:hover {
  background: #0A3859;
  color: #fff;
}

.about-secondary-cta {
  background: rgba(255, 255, 255, 0.74);
  color: #06243A;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.about-secondary-cta:hover {
  background: #fff;
}

.about-portrait {
  position: relative;
  min-height: min(70vh, 680px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 28px 80px rgba(6, 36, 58, 0.16);
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(6, 36, 58, 0.62) 100%);
}

.about-portrait figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}

.about-portrait span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.about-portrait strong {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.about-section {
  padding: clamp(84px, 10vw, 140px) 0;
}

.about-intro-grid,
.about-timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.about-section h2,
.about-cta h2 {
  max-width: 780px;
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.about-copy {
  color: rgba(6, 36, 58, 0.76);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 24px;
}

.about-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 70px;
  background: rgba(6, 36, 58, 0.10);
  border: 1px solid rgba(6, 36, 58, 0.10);
}

.about-credentials article {
  min-height: 250px;
  padding: clamp(28px, 3vw, 42px);
  background: #FDFBF7;
}

.about-credentials span,
.about-method-grid span,
.about-timeline span {
  color: #1D6F63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.about-credentials h3,
.about-method-grid h3 {
  margin-top: 24px;
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.06;
}

.about-credentials p,
.about-method-grid p,
.about-timeline p {
  margin-top: 18px;
  color: rgba(6, 36, 58, 0.70);
  line-height: 1.65;
}

.about-method {
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 111, 99, 0.12), transparent 28%),
    linear-gradient(135deg, #06243A 0%, #123B50 58%, #1D6F63 100%);
  color: #fff;
}

.about-method .about-kicker,
.about-method-grid span {
  color: #98D8C8;
}

.about-method h2,
.about-method-grid h3 {
  color: #fff;
}

.about-method-header {
  max-width: 880px;
}

.about-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 72px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-method-grid article {
  min-height: 320px;
  padding: clamp(28px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.about-method-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.about-timeline {
  border-top: 1px solid rgba(6, 36, 58, 0.16);
}

.about-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.about-list-stack {
  display: grid;
  gap: 18px;
}

.about-list-panel {
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
  border: 1px solid rgba(6, 36, 58, 0.10);
}

.about-list-panel h3 {
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.about-list-panel ul {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  color: rgba(6, 36, 58, 0.72);
  line-height: 1.62;
}

.about-list-panel li {
  position: relative;
  padding-left: 20px;
}

.about-list-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1D6F63;
}

.about-timeline div {
  padding: 28px 0;
  border-bottom: 1px solid rgba(6, 36, 58, 0.16);
}

.about-timeline p {
  margin-top: 12px;
  font-size: clamp(16px, 1.5vw, 19px);
}

.about-cta {
  padding: clamp(92px, 12vw, 160px) 0;
  background:
    linear-gradient(rgba(247, 244, 239, 0.84), rgba(247, 244, 239, 0.90)),
    image-set(
      url("../img/microscopio-diagnostico.avif") type("image/avif"),
      url("../img/microscopio-diagnostico.webp") type("image/webp"),
      url("../img/microscopio-diagnostico.png") type("image/png")
    ) center / cover no-repeat;
}

.about-cta h2 {
  margin: 0 auto 36px;
}

.case-thumb {
  background:
    radial-gradient(circle at 72% 24%, rgba(29, 111, 99, 0.16), transparent 30%),
    linear-gradient(135deg, #F7F4EF 0%, #E7EDF0 48%, #D8C3B4 100%);
}

.case-eye-mask {
  position: absolute;
  left: var(--mask-left, 50%);
  top: var(--mask-top, 38%);
  width: min(var(--mask-width, 48%), 260px);
  height: var(--mask-height, 12%);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(6, 36, 58, 0.86);
  box-shadow: 0 8px 22px rgba(6, 36, 58, 0.22);
}

@keyframes caseFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-card-animate {
  animation: caseFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .case-card-animate {
    animation: none !important;
  }
}

@media (max-width: 1023px) {
  .about-hero {
    min-height: auto;
  }

  .about-title {
    max-width: 860px;
    font-size: clamp(40px, 6.4vw, 62px);
  }

  .about-portrait {
    min-height: min(64vh, 590px);
  }

  .about-portrait figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-intro-grid,
  .about-timeline-grid,
  .about-detail-grid,
  .about-credentials,
  .about-method-grid {
    grid-template-columns: 1fr;
  }

  .about-credentials article,
  .about-method-grid article {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .about-title {
    font-size: clamp(42px, 14vw, 58px);
  }

  .about-hero-actions {
    flex-direction: column;
  }

  .about-primary-cta,
  .about-secondary-cta {
    width: 100%;
  }

  .about-portrait {
    min-height: 470px;
  }

  .about-portrait figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B1E2E; 
}
::-webkit-scrollbar-thumb {
    background: #1A365D; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #06B6D4; 
}

/* Canvas utilities */
canvas {
    image-rendering: optimizeQuality;
}

/* Cirugía de Mohs */
.mohs {
  --mohs-ink: #06243A;
  --mohs-ink-soft: rgba(6, 36, 58, 0.74);
  --mohs-green: #1D6F63;
  --mohs-line: rgba(6, 36, 58, 0.12);
}

.mohs-hero {
  position: relative;
  overflow: hidden;
  padding: 136px 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 78% 12%, rgba(29, 111, 99, 0.16), transparent 30%),
    linear-gradient(135deg, #F7F4EF 0%, #EFE5DC 54%, #D7B9A8 100%);
}

.mohs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--mohs-ink-soft);
  font-size: 13px;
  letter-spacing: .02em;
}

.mohs-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s ease;
}

.mohs-breadcrumb a:hover,
.mohs-breadcrumb a:focus-visible {
  text-decoration-color: var(--mohs-green);
}

.mohs-breadcrumb [aria-current] {
  color: var(--mohs-ink);
  font-weight: 600;
}

.mohs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.mohs-title {
  max-width: 14ch;
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.mohs-lede {
  max-width: 62ch;
  margin-top: 30px;
  color: var(--mohs-ink-soft);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}

.mohs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.mohs-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--mohs-line);
}

.mohs-facts dt {
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mohs-facts dd {
  max-width: 22ch;
  margin-top: 10px;
  color: var(--mohs-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.mohs-portrait {
  min-height: min(62vh, 620px);
}

.mohs-section {
  padding: clamp(80px, 9vw, 128px) 0;
}

.mohs-section--white {
  background: #FDFBF7;
}

.mohs-section h2 {
  max-width: 18ch;
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.mohs-split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.mohs-copy {
  max-width: 68ch;
  color: var(--mohs-ink-soft);
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.72;
}

.mohs-copy p + p {
  margin-top: 22px;
}

.mohs-note {
  padding-top: 22px;
  border-top: 1px solid var(--mohs-line);
  color: var(--mohs-green);
  font-size: 15px;
}

.mohs-heading {
  max-width: 760px;
}

.mohs-heading p {
  margin-top: 22px;
  color: var(--mohs-ink-soft);
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.65;
}

.mohs-heading--row {
  display: flex;
  max-width: none;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.mohs-heading--row > div {
  max-width: 640px;
}

.mohs-inline-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--mohs-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-underline-offset .2s ease;
}

.mohs-inline-link:hover {
  text-underline-offset: 9px;
}

/* Indicaciones: lista de dos columnas separada por líneas, sin tarjetas */
.mohs-indications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 96px);
  margin-top: 56px;
  border-top: 1px solid var(--mohs-line);
}

.mohs-indications li {
  padding: 30px 0;
  border-bottom: 1px solid var(--mohs-line);
}

.mohs-indications h3,
.mohs-steps h3 {
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
}

.mohs-indications p,
.mohs-steps p {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--mohs-ink-soft);
  line-height: 1.65;
}

/* Pasos: la numeración sí es información (el orden del procedimiento) */
.mohs-steps-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 111, 99, 0.14), transparent 28%),
    linear-gradient(135deg, #06243A 0%, #123B50 58%, #1D6F63 100%);
  color: #fff;
}

.mohs-steps-section h2,
.mohs-steps-section h3 {
  color: #fff;
}

.mohs-steps-section .mohs-heading p,
.mohs-steps p {
  color: rgba(255, 255, 255, 0.78);
}

.mohs-steps {
  counter-reset: paso;
  display: grid;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mohs-steps li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mohs-step-num {
  color: #98D8C8;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mohs-steps-loop {
  margin-top: 28px;
  color: #98D8C8;
  font-size: 14px;
  letter-spacing: .04em;
}

/* Quién la realiza */
.mohs-doctor-name {
  margin-top: 28px;
  color: var(--mohs-ink);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
}

.mohs-doctor-name small {
  margin-left: 8px;
  color: var(--mohs-green);
  font-size: .7em;
  font-weight: 700;
  letter-spacing: .1em;
}

.mohs-doctor-role {
  margin-top: 6px;
  color: var(--mohs-ink-soft);
  font-size: 15px;
}

.mohs-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin-top: 64px;
  background: var(--mohs-line);
  border: 1px solid var(--mohs-line);
}

.mohs-credentials li {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
}

.mohs-credentials span {
  color: var(--mohs-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mohs-credentials h3 {
  margin-top: 20px;
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 400;
  line-height: 1.1;
}

.mohs-credentials p {
  flex: 1;
  margin-top: 14px;
  color: var(--mohs-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.mohs-credentials a {
  margin-top: 22px;
  color: var(--mohs-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(6, 36, 58, 0.3);
  transition: text-decoration-color .2s ease;
}

.mohs-credentials a:hover {
  text-decoration-color: var(--mohs-green);
}

/* Certificado del fellowship de Mohs */
.mohs-certificate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--mohs-line);
}

.mohs-certificate + .mohs-certificate {
  margin-top: 24px;
}

.mohs-certificate img {
  width: 100%;
  height: auto;
  border: 1px solid var(--mohs-line);
  background: #fff;
}

.mohs-certificate figcaption span {
  color: var(--mohs-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mohs-certificate figcaption h3 {
  margin-top: 18px;
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}

.mohs-certificate figcaption p {
  margin-top: 14px;
  color: var(--mohs-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Casos */
.mohs-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.mohs-case {
  display: block;
}

.mohs-case .case-thumb {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(6, 36, 58, 0.12);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.mohs-case:hover .case-thumb {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(6, 36, 58, 0.18);
}

.mohs-case h3 {
  margin-top: 16px;
  color: var(--mohs-ink);
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.clinical-gallery {
  margin: 0 0 4rem;
}

.clinical-gallery h2 {
  margin-bottom: 1.5rem;
  color: #0B1E2E;
  font-size: 1.5rem;
  font-weight: 500;
}

.clinical-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.clinical-gallery__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.clinical-gallery__grid figure {
  min-width: 0;
  margin: 0;
}

.clinical-gallery__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  height: 28rem;
  overflow: hidden;
  border-radius: 12px;
  background: #F7F4EF;
}

.clinical-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clinical-gallery figcaption {
  margin-top: .75rem;
  color: #1A365D;
  font-size: 1rem;
  line-height: 1.5;
}

.mohs-case > p {
  margin-top: .5rem;
  color: var(--mohs-ink-soft);
}

@media (max-width: 639px) {
  .clinical-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .clinical-gallery__image {
    height: 24rem;
  }
}

/* FAQ */
.mohs-split--faq {
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
}

.mohs-faq {
  border-top: 1px solid var(--mohs-line);
}

.mohs-faq details {
  border-bottom: 1px solid var(--mohs-line);
}

.mohs-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--mohs-ink);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.mohs-faq summary::-webkit-details-marker {
  display: none;
}

.mohs-faq summary::after {
  content: "+";
  flex: none;
  color: var(--mohs-green);
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.mohs-faq details[open] summary::after {
  transform: rotate(45deg);
}

.mohs-faq summary:focus-visible {
  outline: 2px solid var(--mohs-green);
  outline-offset: 4px;
}

.mohs-faq p {
  max-width: 64ch;
  padding: 0 0 26px;
  color: var(--mohs-ink-soft);
  line-height: 1.7;
}

/* CTA final */
.mohs-cta p {
  max-width: 60ch;
  margin: 0 auto 36px;
  color: var(--mohs-ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.mohs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.mohs-cta-phone {
  margin-top: 32px !important;
  font-size: 15px !important;
}

.mohs-cta-phone a {
  color: var(--mohs-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1023px) {
  .mohs-hero {
    padding-top: 120px;
  }

  .mohs-hero-grid,
  .mohs-split,
  .mohs-split--faq {
    grid-template-columns: 1fr;
  }

  .mohs-credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mohs-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mohs-heading--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .mohs-title {
    font-size: clamp(40px, 12vw, 54px);
  }

  .mohs-hero-actions,
  .mohs-cta-actions {
    flex-direction: column;
  }

  .mohs-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mohs-portrait {
    min-height: 440px;
  }

  .mohs-indications,
  .mohs-credentials,
  .mohs-cases {
    grid-template-columns: 1fr;
  }

  .mohs-certificate {
    grid-template-columns: 1fr;
  }

  .mohs-steps li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }
}

/* Home: Cirugía de Mohs */
.home-mohs {
  padding: clamp(84px, 10vw, 140px) 0;
  background: #FDFBF7;
}

.home-mohs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}

.home-mohs h2,
.home-cancer h2 {
  max-width: 16ch;
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.home-mohs-lede {
  max-width: 58ch;
  margin-top: 28px;
  color: rgba(6, 36, 58, 0.76);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
}

.home-mohs-benefits {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(6, 36, 58, 0.12);
}

.home-mohs-benefits li {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(6, 36, 58, 0.12);
}

.home-mohs-benefits strong {
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}

.home-mohs-benefits span {
  color: rgba(6, 36, 58, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.home-mohs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.home-mohs-portrait {
  min-height: min(52vh, 520px);
  aspect-ratio: 4 / 4.6;
}

.home-mohs-credentials {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid rgba(6, 36, 58, 0.12);
}

.home-mohs-credentials li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(6, 36, 58, 0.12);
}

.home-mohs-credentials span {
  padding-top: 4px;
  color: #1D6F63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.home-mohs-credentials strong {
  display: block;
  color: #06243A;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.home-mohs-credentials em {
  display: block;
  margin-top: 4px;
  color: rgba(6, 36, 58, 0.66);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.home-mohs-doctor .mohs-inline-link {
  margin-top: 22px;
}

/* Home: Cáncer de piel */
.home-cancer {
  padding: clamp(84px, 10vw, 140px) 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(29, 111, 99, 0.14), transparent 30%),
    linear-gradient(135deg, #F7F4EF 0%, #EFE5DC 60%, #E2CFC2 100%);
}

.home-cancer-header {
  max-width: 820px;
}

.home-cancer-header p {
  max-width: 62ch;
  margin-top: 24px;
  color: rgba(6, 36, 58, 0.76);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.home-cancer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 60px;
  background: rgba(6, 36, 58, 0.12);
  border: 1px solid rgba(6, 36, 58, 0.12);
}

.home-cancer-item {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(253, 251, 247, 0.92);
  transition: background .25s ease;
}

.home-cancer-item:hover,
.home-cancer-item:focus-visible {
  background: #fff;
  outline: none;
}

.home-cancer-item h3 {
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.home-cancer-item p {
  flex: 1;
  margin-top: 16px;
  color: rgba(6, 36, 58, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.home-cancer-item span {
  display: inline-block;
  margin-top: 24px;
  color: #1D6F63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-underline-offset .2s ease;
}

.home-cancer-item:hover span {
  text-underline-offset: 9px;
}

.home-cancer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
}

.home-cancer-cta p {
  color: #06243A;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.2vw, 30px);
}

@media (max-width: 1023px) {
  .home-mohs-grid {
    grid-template-columns: 1fr;
  }

  .home-cancer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cancer-item {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .home-mohs-benefits li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-mohs-actions {
    flex-direction: column;
  }

  .home-mohs-portrait {
    min-height: 420px;
  }

  .home-cancer-grid {
    grid-template-columns: 1fr;
  }

  .home-cancer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Migas de pan (breadcrumb_nav() en includes/config.php) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(6, 36, 58, 0.55);
}

.breadcrumb a {
  color: rgba(6, 36, 58, 0.7);
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--mohs-green, #0A3859);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb span[aria-hidden] {
  color: rgba(6, 36, 58, 0.3);
}

.breadcrumb span[aria-current] {
  color: #06243A;
  font-weight: 600;
}
