/* =====================================================
   Dr. Leonardo Alejandro González Meléndez
   Otorrinolaringólogo · CDMX & Naucalpan
   Design tokens y estilos globales
   ===================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/styles/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/styles/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/styles/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/styles/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Azules primarios */
  --color-primary:        #2C3FB8;
  --color-primary-deep:   #1E2A8A;
  --color-primary-soft:   #4A5BD4;
  --color-accent:         #5B9BFF;

  /* Neutros */
  --color-bg:             #FFFFFF;
  --color-surface:        #F6F8FF;
  --color-surface-2:      #EEF1FB;
  --color-text:           #0E1330;
  --color-text-soft:      #4A4F6A;
  --color-text-muted:     #6B7088;
  --color-border:         #E5E8F2;
  --color-border-soft:    #EDEFF7;

  /* Énfasis */
  --color-cta:            #2C3FB8;
  --color-cta-hover:      #1E2A8A;
  --color-star:           #FFB800;
  --color-success:        #1A8754;
  --color-whatsapp:       #25D366;
  --color-whatsapp-deep:  #128C7E;

  /* Tipografía */
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Inter", Georgia, serif;

  --fs-display:   clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h1:        clamp(2rem, 4vw, 3rem);
  --fs-h2:        clamp(1.6rem, 2.8vw, 2.25rem);
  --fs-h3:        clamp(1.25rem, 2vw, 1.5rem);
  --fs-body:      1rem;
  --fs-small:     0.875rem;
  --fs-pill:      0.8125rem;
  --fs-micro:     0.75rem;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  --lh-tight:     1.1;
  --lh-snug:      1.25;
  --lh-normal:    1.5;
  --lh-loose:     1.7;

  /* Geometría */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-pill:  9999px;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --shadow-sm:  0 2px 8px rgba(14, 19, 48, 0.06);
  --shadow-md:  0 8px 24px rgba(14, 19, 48, 0.08);
  --shadow-lg:  0 16px 40px rgba(44, 63, 184, 0.18);
  --shadow-xl:  0 24px 56px rgba(44, 63, 184, 0.22);

  --container:  1200px;
}

/* Reset suave y base ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }

button { font: inherit; cursor: pointer; border: none; background: transparent; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-4); color: var(--color-text-soft); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; color: var(--color-text-soft); }
li + li { margin-top: var(--space-2); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Layout helpers ================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { padding: var(--space-20) 0; }
@media (max-width: 720px) { section { padding: var(--space-16) 0; } }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-pill);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
  max-width: 760px;
}

.section-lead {
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-12);
}

/* Top bar ======================================================= */
.top-bar {
  background: var(--color-primary-deep);
  color: #fff;
  font-size: var(--fs-small);
}
.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-2) var(--space-6);
}
.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.95;
}
.top-bar__icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .top-bar__inner { gap: var(--space-3); padding: var(--space-2) var(--space-4); }
  .top-bar__item { font-size: 0.78rem; }
  .top-bar__item--hide { display: none; }
}

/* Navbar ======================================================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(8px);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand__logo {
  height: 32px;
  width: auto;
  display: block;
}
.footer .brand__logo { height: 80px; }
@media (max-width: 600px) {
  .brand__logo { height: 28px; }
  .footer .brand__logo { height: 64px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  color: var(--color-text);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
  padding: var(--space-2) 0;
}
.nav-link:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-cta);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-cta:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-6) var(--space-6);
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-soft); }
  .nav-toggle { display: inline-flex; }
  .nav-cta--desktop { display: none; }
}

/* Buttons ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn--secondary {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--secondary:hover { background: var(--color-whatsapp-deep); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: var(--color-surface-2); color: var(--color-primary); }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: 1rem; }
.btn--block { width: 100%; }

/* Hero ========================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 80% at 100% 0%, rgba(91, 155, 255, 0.10), transparent 60%),
              radial-gradient(80% 60% at 0% 100%, rgba(44, 63, 184, 0.06), transparent 70%),
              #fff;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0 var(--space-20);
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); padding: var(--space-12) 0; }
}

.hero__content { display: flex; flex-direction: column; gap: var(--space-5); }

.hero__badge {
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-pill);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
}
.hero__badge-icon {
  width: 16px; height: 16px; color: var(--color-primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__title strong { color: var(--color-primary); font-weight: var(--fw-bold); }

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero__stars { color: var(--color-star); letter-spacing: 2px; font-size: 1.1rem; }
.hero__rating-text { color: var(--color-text-soft); font-size: var(--fs-small); }
.hero__rating-text strong { color: var(--color-text); }

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-soft);
  line-height: var(--lh-normal);
  max-width: 56ch;
}
.hero__subtitle strong { color: var(--color-primary); font-weight: var(--fw-semibold); }

.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-pill);
  color: var(--color-text);
  font-weight: var(--fw-medium);
}
.trust-chip svg { width: 14px; height: 14px; color: var(--color-primary); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  overflow: visible;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 70%; height: 80%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.95;
}
.hero__media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background: #000;
}
.hero__photo,
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__video { background: #000; }
.hero__media .hero__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 2;
}
.hero__media:hover .hero__play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.hero__media .hero__play svg { width: 32px; height: 32px; margin-left: 4px; }
.hero__media__label {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(14, 19, 48, 0.78);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--fs-pill);
  font-weight: var(--fw-semibold);
  backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none;
  width: max-content;
  margin: 0 auto;
  max-width: calc(100% - 32px);
}
.hero__media__label svg { width: 14px; height: 14px; }
.hero__media.is-playing .hero__photo,
.hero__media.is-playing .hero__play,
.hero__media.is-playing .hero__media__label { display: none; }

.hero__visual:has(.hero__media.is-playing) .hero__credential,
.hero__visual:has(.hero__media.is-playing) .hero__stat { display: none; }
.hero__stat {
  position: absolute;
  bottom: 6%; left: -16px;
  background: #fff;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  min-width: 200px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__stat-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.hero__stat-icon svg { width: 22px; height: 22px; }
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: var(--fw-medium);
}

.hero__credential {
  position: absolute;
  top: 8%; right: -16px;
  background: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
  font-size: var(--fs-pill);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 220px;
}
.hero__credential strong { color: var(--color-text); display: block; line-height: 1.2; }
.hero__credential span { color: var(--color-text-soft); font-size: 0.72rem; }

@media (max-width: 980px) {
  .hero__stat { left: 8px; min-width: auto; }
  .hero__credential { right: 8px; max-width: 180px; padding: var(--space-2) var(--space-3); }
}

/* Trust strip =================================================== */
.trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-size: var(--fs-small);
}
.trust-strip__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}
.trust-strip__icon svg { width: 22px; height: 22px; }
.trust-strip__title { font-weight: var(--fw-semibold); display: block; line-height: 1.2; }
.trust-strip__sub { color: var(--color-text-soft); font-size: 0.78rem; }
@media (max-width: 900px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-strip__grid { grid-template-columns: 1fr; }
}

/* Procedimientos grid =========================================== */
.procedures {
  background: #fff;
}
.procedures__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-12);
  align-items: end;
  margin-bottom: var(--space-12);
}
@media (max-width: 900px) { .procedures__head { grid-template-columns: 1fr; gap: var(--space-6); } }

.procedures__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.proc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: var(--space-6);
  gap: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.proc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary-soft); color: inherit; }

.proc-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}
.proc-card__icon svg { width: 24px; height: 24px; }

.proc-card__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}
.proc-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--fw-bold); color: var(--color-text); margin: 0; line-height: 1.25; }
.proc-card__excerpt { font-size: var(--fs-small); color: var(--color-text-soft); margin: 0; flex: 1; }
.proc-card__cta {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-soft);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.proc-card__star {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-2);
}

.proc-card--star {
  grid-column: span 6;
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  border-color: var(--color-primary-soft);
  padding: var(--space-8);
}
.proc-card--star .proc-card__title { font-size: 1.5rem; }
.proc-card--star .proc-card__excerpt { font-size: 1rem; }
.proc-card:not(.proc-card--star) { grid-column: span 3; }

@media (max-width: 1024px) {
  .proc-card--star { grid-column: span 12; }
  .proc-card:not(.proc-card--star) { grid-column: span 6; }
}
@media (max-width: 560px) {
  .proc-card:not(.proc-card--star) { grid-column: span 12; }
  .proc-card--star .proc-card__title { font-size: 1.25rem; }
}

/* Modal de calendario =========================================== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(14, 19, 48, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.is-open { display: flex; opacity: 1; }

.modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__panel { transform: none; }

.modal__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.modal__title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-soft);
  font-weight: var(--fw-medium);
  margin-top: 2px;
}
.modal__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--color-primary); color: #fff; }
.modal__close svg { width: 18px; height: 18px; }

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.modal__body iframe {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 600px;
  border: 0;
  background: #fff;
}

.modal__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0 var(--space-3);
  flex-shrink: 0;
}
.modal__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.modal__tab svg { width: 16px; height: 16px; }
.modal__tab:hover { color: var(--color-primary); background: rgba(255,255,255,0.5); }
.modal__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: #fff;
}

@media (max-width: 600px) {
  .modal { padding: 0; }
  .modal__panel {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal__tab { font-size: 0.85rem; padding: var(--space-3) var(--space-2); }
}

/* Calendario embebido en sección agenda ========================= */
.agenda__calendar {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.18);
  min-height: 620px;
}
.agenda__calendar iframe { display: block; width: 100%; min-height: 620px; border: 0; }

/* Sobre el doctor =============================================== */
.sobre {
  background: var(--color-surface);
}
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) { .sobre__grid { grid-template-columns: 1fr; } }

.sobre__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.sobre__visual img { width: 100%; height: 100%; object-fit: cover; }
.sobre__visual::after {
  content: "";
  position: absolute;
  bottom: -24px; right: -24px;
  width: 120px; height: 120px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  opacity: 0.12;
}

.sobre__body p { font-size: 1.0625rem; color: var(--color-text-soft); }
.sobre__body p strong { color: var(--color-text); }

.creds-list {
  list-style: none;
  margin: var(--space-6) 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.creds-list li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--color-text);
  margin: 0;
}
.creds-list li strong { color: var(--color-text); display: block; font-size: var(--fs-small); }
.creds-list li span { color: var(--color-text-soft); font-size: 0.78rem; }
.creds-list .cred-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
}
.creds-list .cred-icon svg { width: 16px; height: 16px; }

.cedula-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--fs-small);
  margin-top: var(--space-2);
}
.cedula-row strong { color: var(--color-text); }
.cedula-row span { color: var(--color-text-soft); }

/* Filosofia ===================================================== */
.filosofia { background: #fff; }
.filosofia__contrast {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--color-text);
  max-width: 880px;
  margin: 0 0 var(--space-12);
  font-weight: var(--fw-bold);
}
.filosofia__contrast em {
  color: var(--color-primary);
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(91, 155, 255, 0.18) 60%);
  padding: 0 4px;
}

.principios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .principios { grid-template-columns: 1fr; } }

.principio-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.principio-card:hover { border-color: var(--color-primary-soft); transform: translateY(-2px); }
.principio-card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.9;
}
.principio-card h3 { font-size: 1.25rem; margin: 0; }
.principio-card p { margin: 0; font-size: var(--fs-small); color: var(--color-text-soft); line-height: var(--lh-loose); }

/* Inversión ===================================================== */
.inversion {
  background: linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
}
.inversion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 900px) { .inversion__grid { grid-template-columns: 1fr; } }

.pricing-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 560px) { .pricing-card-group { grid-template-columns: 1fr; } }

.pricing-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pricing-tile:hover { transform: translateY(-2px); }
.pricing-tile__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  font-weight: var(--fw-semibold);
}
.pricing-tile__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-tile__price small {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-soft);
  margin-left: 4px;
  font-family: var(--font-sans);
}
.pricing-tile__note {
  font-size: var(--fs-small);
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.5;
}
.pricing-tile__note strong { color: var(--color-text); }

.pricing-tile--accent {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
}
.pricing-tile--accent .pricing-tile__tag { color: var(--color-primary); }
.pricing-tile--accent .pricing-tile__price { color: var(--color-primary); }
.pricing-tile__badge {
  position: absolute;
  top: -10px;
  right: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.inversion__notes {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
}
.inversion__notes h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.inversion__notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.inversion__notes li {
  position: relative;
  padding-left: 34px;
  font-size: var(--fs-small);
  color: var(--color-text-soft);
  line-height: 1.55;
  margin: 0;
}
.inversion__notes li strong { color: var(--color-text); white-space: nowrap; }
.inversion__notes li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
}

/* Testimonios =================================================== */
.testimonios { background: #fff; }
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .testimonios__grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
}
.testimonial__stars { color: var(--color-star); font-size: 1.05rem; letter-spacing: 1px; }
.testimonial__quote {
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: var(--lh-loose);
  flex: 1;
  margin: 0;
}
.testimonial__quote::before { content: "“"; color: var(--color-primary); font-size: 2rem; line-height: 0.5; vertical-align: -10px; margin-right: 4px; font-family: var(--font-display); }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: var(--fw-semibold);
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.testimonial__name { font-weight: var(--fw-semibold); color: var(--color-text); font-size: 0.92rem; line-height: 1.2; display: block; }
.testimonial__meta { color: var(--color-text-soft); font-size: 0.78rem; }

/* Video testimoniales =========================================== */
.video-testimonials { background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 19, 48, 0.0) 40%, rgba(14, 19, 48, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-4) var(--space-5);
  color: #fff;
  pointer-events: none;
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-card__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-card__quote {
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-1);
  line-height: 1.3;
}
.video-card__meta { font-size: 0.78rem; opacity: 0.85; }
.video-card.is-playing .video-card__overlay,
.video-card.is-playing .video-card__play { display: none; }

/* FAQ =========================================================== */
.faq { background: #fff; }
.faq__list { max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  padding: 0;
  gap: var(--space-3);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  display: grid; place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item__a-inner { padding: var(--space-4) 0 0; color: var(--color-text-soft); font-size: 0.95rem; line-height: var(--lh-loose); max-width: 70ch; }
.faq-item__a-inner p { margin: 0; }

/* Agenda ======================================================== */
.agenda {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: #fff;
}
.agenda h2, .agenda h3, .agenda p, .agenda strong { color: #fff; }
.agenda__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) { .agenda__grid { grid-template-columns: 1fr; } }

.agenda__lead { font-size: 1.0625rem; opacity: 0.92; }
.agenda__closers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-8);
  list-style: none; padding: 0;
}
.agenda__closers li {
  display: flex; gap: var(--space-2);
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}
.agenda__closers li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
}
@media (max-width: 480px) { .agenda__closers { grid-template-columns: 1fr; } }

.agenda__buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.agenda__buttons .btn--primary { background: #fff; color: var(--color-primary-deep); }
.agenda__buttons .btn--primary:hover { background: rgba(255, 255, 255, 0.92); color: var(--color-primary-deep); }
.agenda__buttons .btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.agenda__buttons .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.agenda__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
}
.agenda__card h3 { font-size: 1.15rem; margin-bottom: var(--space-4); }
.agenda__schedule {
  display: grid;
  gap: var(--space-3);
  font-size: 0.9rem;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.schedule-row:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-row__day { font-weight: var(--fw-semibold); }

/* Contacto / Mapa =============================================== */
.contacto { background: var(--color-surface); }
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--space-6);
}

.location-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location-card__map {
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
}
/* Cuando es la única tarjeta del grid, layout horizontal en desktop */
@media (min-width: 901px) {
  .location-card:only-child { flex-direction: row; }
  .location-card:only-child .location-card__map {
    aspect-ratio: auto;
    flex: 1.1 1 0;
    min-height: 360px;
  }
  .location-card:only-child .location-card__body { flex: 1 1 0; }
}
.location-card__map iframe { width: 100%; height: 100%; border: none; display: block; }
.location-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.location-card__tag { display: inline-flex; align-self: flex-start; padding: 4px 10px; background: var(--color-surface); border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary); }
.location-card h3 { font-size: 1.25rem; margin: 0; }
.location-card__address { color: var(--color-text-soft); font-size: var(--fs-small); margin: 0; line-height: 1.5; }
.location-card__details {
  margin: var(--space-2) 0 var(--space-3);
  padding: 0; list-style: none;
  display: grid; gap: var(--space-2);
}
.location-card__details li { display: flex; gap: var(--space-2); font-size: var(--fs-small); color: var(--color-text); margin: 0; }
.location-card__details svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.location-card__buttons { display: flex; gap: var(--space-3); margin-top: auto; flex-wrap: wrap; }
.location-card__buttons .btn { padding: var(--space-2) var(--space-4); font-size: 0.85rem; }

/* Floating CTAs ================================================= */
.float-help, .float-cta {
  position: fixed;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.float-help {
  right: 18px;
  bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: grid; place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.float-help:hover { background: var(--color-whatsapp-deep); color: #fff; transform: translateY(-2px); }
.float-help svg { width: 28px; height: 28px; }

.float-cta {
  left: 18px;
  bottom: 18px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.float-cta:hover { background: var(--color-primary-deep); color: #fff; transform: translateY(-2px); }
.float-cta svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .float-cta { display: none; }
  .float-help { right: 14px; bottom: 14px; }
}

/* Footer ======================================================== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.78);
  padding: var(--space-16) 0 var(--space-8);
}
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); font-weight: var(--fw-semibold); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand { color: rgba(255,255,255,0.85); font-size: var(--fs-small); line-height: 1.6; max-width: 320px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__role { color: var(--color-accent); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer__list a { color: rgba(255,255,255,0.78); font-size: var(--fs-small); }
.footer__list a:hover { color: #fff; }
.footer__nap { font-size: var(--fs-small); line-height: 1.6; }
.footer__nap strong { color: #fff; display: block; margin-bottom: 2px; }
.footer__nap + .footer__nap { margin-top: var(--space-4); }
.footer__cedulas { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--fs-small); margin-top: var(--space-3); }
.footer__cedulas strong { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.8rem;
}
.footer__bottom a { color: rgba(255,255,255,0.78); }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Página de procedimiento ======================================= */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--color-text-soft); margin-right: var(--space-2); }
.breadcrumbs a { color: var(--color-primary); }

.proc-hero {
  padding: var(--space-12) 0 var(--space-16);
  background: radial-gradient(80% 60% at 0% 0%, rgba(91, 155, 255, 0.10), transparent 60%), #fff;
}
.proc-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) { .proc-hero__grid { grid-template-columns: 1fr; } }

.proc-hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.proc-hero__visual img { width: 100%; height: 100%; object-fit: cover; }

.proc-hero__chips {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin: var(--space-4) 0;
}

.proc-content {
  padding: var(--space-16) 0;
  background: #fff;
}
.proc-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) { .proc-content__grid { grid-template-columns: 1fr; } }

.proc-content article > * + * { margin-top: var(--space-6); }
.proc-content h2 { font-size: var(--fs-h2); margin-top: var(--space-10); margin-bottom: var(--space-3); }
.proc-content h2:first-child { margin-top: 0; }
.proc-content h3 { margin-top: var(--space-6); }
.proc-content p, .proc-content li { color: var(--color-text-soft); font-size: 1rem; line-height: var(--lh-loose); }
.proc-content ul li { margin-bottom: var(--space-2); }

.proc-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--fs-small);
}
.proc-content table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text);
}
.proc-content table tr:last-child td { border-bottom: none; }
.proc-content table td:first-child { color: var(--color-text-soft); width: 40%; }

.proc-aside {
  position: sticky;
  top: 96px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.proc-aside h3 { font-size: 1.1rem; margin-bottom: var(--space-4); }
.proc-aside ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.proc-aside li { font-size: var(--fs-small); color: var(--color-text); display: flex; gap: var(--space-2); margin: 0; }
.proc-aside li svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.proc-aside .btn { width: 100%; }
.proc-aside__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.proc-aside__price-label { font-size: 0.78rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }

.related-procs {
  background: var(--color-surface);
  padding: var(--space-16) 0;
}
.related-procs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .related-procs__grid { grid-template-columns: 1fr; } }

/* Consultorio ==================================================== */
.location-hero { background: var(--color-surface); padding: var(--space-12) 0 var(--space-16); }
.location-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
@media (max-width: 900px) { .location-hero__grid { grid-template-columns: 1fr; } }
.location-hero__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.location-hero__map iframe { width: 100%; height: 100%; border: none; }

.location-info { padding: var(--space-16) 0; background: #fff; }
.location-info__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .location-info__grid { grid-template-columns: 1fr; } }

/* Animaciones suaves ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.is-visible { opacity: 1; transform: none; }
}
